From 823bb4ed8241b758e22055d4e1e2e7de37558e0a Mon Sep 17 00:00:00 2001 From: James Agnew Date: Mon, 16 Mar 2015 17:02:44 -0400 Subject: [PATCH] Add support for profiles and tags in meta for DSTU2 --- hapi-fhir-android/dependency-reduced-pom.xml | 49 +- .../model/api/ResourceMetadataKeyEnum.java | 555 +- .../java/ca/uhn/fhir/parser/BaseParser.java | 121 +- .../java/ca/uhn/fhir/parser/JsonParser.java | 38 +- .../java/ca/uhn/fhir/parser/ParserState.java | 26 +- .../java/ca/uhn/fhir/parser/XmlParser.java | 64 +- .../org.eclipse.wst.common.component | 8 +- hapi-fhir-structures-dstu2/.classpath | 1 + .../ca/uhn/fhir/parser/JsonParserTest.java | 66 +- .../ca/uhn/fhir/parser/XmlParserTest.java | 63 +- .../src/test/resources/xml-bundle.xml | 491 +- hapi-tinder-plugin/pom.xml | 13 +- .../java/ca/uhn/fhir/model/dev/FhirDev.java | 125 - .../fhir/model/dev/composite/AddressDt.java | 607 - .../uhn/fhir/model/dev/composite/AgeDt.java | 28 - .../model/dev/composite/AttachmentDt.java | 577 - .../dev/composite/BoundCodeableConceptDt.java | 123 - .../dev/composite/CodeableConceptDt.java | 243 - .../fhir/model/dev/composite/CodingDt.java | 497 - .../model/dev/composite/ContactPointDt.java | 343 - .../fhir/model/dev/composite/ContainedDt.java | 53 - .../uhn/fhir/model/dev/composite/CountDt.java | 28 - .../fhir/model/dev/composite/DistanceDt.java | 28 - .../fhir/model/dev/composite/DurationDt.java | 28 - .../dev/composite/ElementDefinitionDt.java | 3212 -- .../fhir/model/dev/composite/HumanNameDt.java | 624 - .../model/dev/composite/IdentifierDt.java | 479 - .../uhn/fhir/model/dev/composite/MoneyDt.java | 28 - .../fhir/model/dev/composite/NarrativeDt.java | 175 - .../fhir/model/dev/composite/PeriodDt.java | 262 - .../fhir/model/dev/composite/QuantityDt.java | 529 - .../uhn/fhir/model/dev/composite/RangeDt.java | 180 - .../uhn/fhir/model/dev/composite/RatioDt.java | 180 - .../fhir/model/dev/composite/ReferenceDt.java | 236 - .../dev/composite/ResourceReferenceDt.java | 234 - .../model/dev/composite/SampledDataDt.java | 652 - .../fhir/model/dev/composite/TimingDt.java | 683 - .../fhir/model/dev/resource/BaseResource.java | 164 - .../fhir/model/dev/resource/Conformance.java | 5636 --- .../fhir/model/dev/resource/DataElement.java | 2401 - .../dev/resource/OperationDefinition.java | 2679 -- .../fhir/model/dev/resource/Organization.java | 1103 - .../uhn/fhir/model/dev/resource/Profile.java | 1978 - .../uhn/fhir/model/dev/resource/ValueSet.java | 4077 -- .../model/dev/valueset/AddressUseEnum.java | 130 - .../valueset/AdministrativeGenderEnum.java | 130 - .../model/dev/valueset/AdmitSourceEnum.java | 162 - .../AdverseReactionRiskCategoryEnum.java | 126 - .../AdverseReactionRiskCertaintyEnum.java | 126 - .../AdverseReactionRiskCriticalityEnum.java | 118 - .../AdverseReactionRiskSeverityEnum.java | 126 - .../AdverseReactionRiskStatusEnum.java | 134 - .../valueset/AdverseReactionRiskTypeEnum.java | 118 - .../dev/valueset/AggregationModeEnum.java | 116 - .../model/dev/valueset/AlertStatusEnum.java | 123 - .../model/dev/valueset/AnimalSpeciesEnum.java | 126 - .../model/dev/valueset/AnswerFormatEnum.java | 200 - .../dev/valueset/AppointmentStatusEnum.java | 130 - .../dev/valueset/BindingConformanceEnum.java | 123 - .../CarePlanActivityCategoryEnum.java | 151 - .../valueset/CarePlanActivityStatusEnum.java | 144 - .../dev/valueset/CarePlanGoalStatusEnum.java | 130 - .../dev/valueset/CarePlanStatusEnum.java | 123 - .../valueset/CausalityExpectationEnum.java | 130 - .../CompositionAttestationModeEnum.java | 130 - .../dev/valueset/CompositionStatusEnum.java | 137 - .../valueset/ConceptMapEquivalenceEnum.java | 144 - .../dev/valueset/ConditionStatusEnum.java | 130 - .../valueset/ConformanceEventModeEnum.java | 116 - .../ConformanceStatementStatusEnum.java | 123 - .../dev/valueset/ConstraintSeverityEnum.java | 116 - .../dev/valueset/ContactPointSystemEnum.java | 130 - .../dev/valueset/ContactPointUseEnum.java | 137 - .../valueset/ContractSubtypeCodesEnum.java | 112 - .../valueset/ContractTermTypeCodesEnum.java | 117 - .../dev/valueset/ContractTypeCodesEnum.java | 112 - .../dev/valueset/DataAbsentReasonEnum.java | 158 - .../valueset/DataElementGranularityEnum.java | 109 - .../fhir/model/dev/valueset/DataTypeEnum.java | 347 - .../valueset/DiagnosticOrderPriorityEnum.java | 134 - .../valueset/DiagnosticOrderStatusEnum.java | 165 - .../valueset/DiagnosticReportStatusEnum.java | 158 - .../model/dev/valueset/DocumentModeEnum.java | 116 - .../valueset/DocumentReferenceStatusEnum.java | 123 - .../DocumentRelationshipTypeEnum.java | 130 - .../dev/valueset/EncounterClassEnum.java | 158 - .../valueset/EncounterReasonCodesEnum.java | 102 - .../dev/valueset/EncounterStateEnum.java | 137 - .../model/dev/valueset/EncounterTypeEnum.java | 126 - .../EnteralFormulaAdditiveTypeEnum.java | 102 - .../dev/valueset/EnteralFormulaTypeEnum.java | 102 - .../model/dev/valueset/EventTimingEnum.java | 102 - .../dev/valueset/ExcludeFoodModifierEnum.java | 102 - .../model/dev/valueset/ExposureTypeEnum.java | 123 - .../dev/valueset/FHIRDefinedTypeEnum.java | 823 - .../dev/valueset/FilterOperatorEnum.java | 144 - .../valueset/FluidConsistencyTypeEnum.java | 102 - .../fhir/model/dev/valueset/FoodTypeEnum.java | 102 - .../model/dev/valueset/GroupTypeEnum.java | 144 - .../HierarchicalRelationshipTypeEnum.java | 118 - .../model/dev/valueset/IdentifierUseEnum.java | 130 - .../dev/valueset/ImagingModalityEnum.java | 102 - .../valueset/ImmunizationReasonCodesEnum.java | 102 - ...nRecommendationDateCriterionCodesEnum.java | 126 - ...nizationRecommendationStatusCodesEnum.java | 118 - .../valueset/ImmunizationRouteCodesEnum.java | 102 - .../valueset/InstanceAvailabilityEnum.java | 102 - .../model/dev/valueset/IssueSeverityEnum.java | 130 - .../model/dev/valueset/IssueTypeEnum.java | 130 - .../fhir/model/dev/valueset/LinkTypeEnum.java | 126 - .../fhir/model/dev/valueset/ListModeEnum.java | 123 - .../model/dev/valueset/LocationModeEnum.java | 116 - .../dev/valueset/LocationStatusEnum.java | 123 - .../model/dev/valueset/LocationTypeEnum.java | 150 - .../dev/valueset/MaritalStatusCodesEnum.java | 110 - .../model/dev/valueset/MediaTypeEnum.java | 123 - .../MedicationAdministrationStatusEnum.java | 137 - .../MedicationDispenseStatusEnum.java | 137 - .../dev/valueset/MedicationKindEnum.java | 116 - .../MedicationPrescriptionStatusEnum.java | 144 - .../model/dev/valueset/MessageEventEnum.java | 200 - .../MessageSignificanceCategoryEnum.java | 123 - .../dev/valueset/MessageTransportEnum.java | 123 - .../fhir/model/dev/valueset/ModalityEnum.java | 102 - .../fhir/model/dev/valueset/NameUseEnum.java | 151 - .../valueset/NamespaceIdentifierTypeEnum.java | 130 - .../dev/valueset/NamespaceStatusEnum.java | 123 - .../model/dev/valueset/NamespaceTypeEnum.java | 123 - .../dev/valueset/NutrientModifierEnum.java | 102 - .../valueset/NutritionOrderStatusEnum.java | 142 - .../ObservationInterpretationCodesEnum.java | 102 - .../ObservationRelationshipTypeEnum.java | 151 - .../valueset/ObservationReliabilityEnum.java | 151 - .../dev/valueset/ObservationStatusEnum.java | 145 - .../model/dev/valueset/OperationKindEnum.java | 116 - .../valueset/OperationParameterUseEnum.java | 116 - .../dev/valueset/OrderOutcomeStatusEnum.java | 158 - .../dev/valueset/OrganizationTypeEnum.java | 156 - .../dev/valueset/ParticipantRequiredEnum.java | 123 - .../dev/valueset/ParticipantStatusEnum.java | 144 - .../dev/valueset/ParticipantTypeEnum.java | 118 - .../dev/valueset/ParticipationStatusEnum.java | 144 - .../valueset/PatientRelationshipTypeEnum.java | 102 - .../dev/valueset/PractitionerRoleEnum.java | 134 - .../valueset/PractitionerSpecialtyEnum.java | 132 - .../model/dev/valueset/PriorityCodesEnum.java | 117 - .../ProcedureRelationshipTypeEnum.java | 116 - .../valueset/PropertyRepresentationEnum.java | 109 - .../valueset/ProvenanceEntityRoleEnum.java | 109 - .../dev/valueset/QuantityComparatorEnum.java | 130 - .../model/dev/valueset/QueryOutcomeEnum.java | 130 - .../QuestionnaireAnswersStatusEnum.java | 126 - .../dev/valueset/QuestionnaireStatusEnum.java | 126 - .../dev/valueset/ReactionSeverityEnum.java | 130 - .../dev/valueset/ReferralStatusEnum.java | 144 - .../ResourceDataElementStatusEnum.java | 123 - .../valueset/ResourceProfileStatusEnum.java | 123 - .../model/dev/valueset/ResourceTypeEnum.java | 578 - .../valueset/ResourceVersionPolicyEnum.java | 126 - .../model/dev/valueset/ResponseTypeEnum.java | 123 - .../valueset/RestfulConformanceModeEnum.java | 116 - .../valueset/RestfulSecurityServiceEnum.java | 137 - .../dev/valueset/SearchParamTypeEnum.java | 151 - .../dev/valueset/SecurityEventActionEnum.java | 142 - .../SecurityEventObjectLifecycleEnum.java | 207 - .../valueset/SecurityEventObjectRoleEnum.java | 294 - .../SecurityEventObjectSensitivityEnum.java | 102 - .../valueset/SecurityEventObjectTypeEnum.java | 130 - .../valueset/SecurityEventOutcomeEnum.java | 134 - ...curityEventParticipantNetworkTypeEnum.java | 137 - .../valueset/SecurityEventSourceTypeEnum.java | 174 - .../model/dev/valueset/SlicingRulesEnum.java | 123 - .../model/dev/valueset/SlotStatusEnum.java | 130 - .../SpecimenCollectionMethodEnum.java | 102 - .../SpecimenTreatmentProcedureEnum.java | 102 - .../valueset/SubscriptionChannelTypeEnum.java | 137 - .../dev/valueset/SubscriptionStatusEnum.java | 130 - .../model/dev/valueset/SubstanceTypeEnum.java | 102 - .../dev/valueset/SupplementTypeEnum.java | 102 - .../valueset/SupplyDispenseStatusEnum.java | 126 - .../dev/valueset/SupplyItemTypeEnum.java | 118 - .../model/dev/valueset/SupplyStatusEnum.java | 142 - .../SystemRestfulInteractionEnum.java | 102 - .../dev/valueset/TextureModifierEnum.java | 102 - .../valueset/TypeRestfulInteractionEnum.java | 102 - .../model/dev/valueset/UnitsOfTimeEnum.java | 102 - .../dev/valueset/ValueSetStatusEnum.java | 126 - .../ca/uhn/fhir/model/dstu/FhirDstu1.java | 395 - .../fhir/model/dstu/composite/AddressDt.java | 673 - .../uhn/fhir/model/dstu/composite/AgeDt.java | 30 - .../model/dstu/composite/AttachmentDt.java | 582 - .../dstu/composite/CodeableConceptDt.java | 255 - .../fhir/model/dstu/composite/CodingDt.java | 495 - .../fhir/model/dstu/composite/ContactDt.java | 375 - .../model/dstu/composite/ContainedDt.java | 53 - .../fhir/model/dstu/composite/DurationDt.java | 33 - .../model/dstu/composite/HumanNameDt.java | 705 - .../model/dstu/composite/IdentifierDt.java | 511 - .../model/dstu/composite/NarrativeDt.java | 175 - .../fhir/model/dstu/composite/PeriodDt.java | 258 - .../fhir/model/dstu/composite/QuantityDt.java | 529 - .../fhir/model/dstu/composite/RangeDt.java | 362 - .../fhir/model/dstu/composite/RatioDt.java | 362 - .../dstu/composite/ResourceReferenceDt.java | 234 - .../model/dstu/composite/SampledDataDt.java | 751 - .../fhir/model/dstu/composite/ScheduleDt.java | 721 - .../model/dstu/resource/AdverseReaction.java | 1380 - .../uhn/fhir/model/dstu/resource/Alert.java | 721 - .../dstu/resource/AllergyIntolerance.java | 1134 - .../fhir/model/dstu/resource/Appointment.java | 1885 - .../dstu/resource/AppointmentResponse.java | 1277 - .../model/dstu/resource/Availability.java | 812 - .../model/dstu/resource/BaseResource.java | 164 - .../uhn/fhir/model/dstu/resource/Binary.java | 111 - .../fhir/model/dstu/resource/CarePlan.java | 2911 -- .../uhn/fhir/model/dstu/resource/Claim.java | 2895 -- .../fhir/model/dstu/resource/Composition.java | 2327 - .../fhir/model/dstu/resource/ConceptMap.java | 2459 - .../fhir/model/dstu/resource/Condition.java | 2419 - .../fhir/model/dstu/resource/Conformance.java | 6252 --- .../fhir/model/dstu/resource/Coverage.java | 1379 - .../uhn/fhir/model/dstu/resource/Device.java | 1423 - .../resource/DeviceObservationReport.java | 1175 - .../model/dstu/resource/DiagnosticOrder.java | 2049 - .../model/dstu/resource/DiagnosticReport.java | 1853 - .../model/dstu/resource/DocumentManifest.java | 1474 - .../dstu/resource/DocumentReference.java | 3277 -- .../fhir/model/dstu/resource/Encounter.java | 2867 -- .../model/dstu/resource/FamilyHistory.java | 1299 - .../uhn/fhir/model/dstu/resource/GVFMeta.java | 2206 - .../fhir/model/dstu/resource/GVFVariant.java | 4316 -- .../model/dstu/resource/GeneExpression.java | 1509 - .../model/dstu/resource/GeneticAnalysis.java | 3139 -- .../uhn/fhir/model/dstu/resource/Group.java | 1237 - .../model/dstu/resource/ImagingStudy.java | 2984 -- .../model/dstu/resource/Immunization.java | 2951 -- .../resource/ImmunizationRecommendation.java | 1799 - .../model/dstu/resource/ListResource.java | 1388 - .../fhir/model/dstu/resource/Location.java | 1590 - .../uhn/fhir/model/dstu/resource/Media.java | 1330 - .../fhir/model/dstu/resource/Medication.java | 1565 - .../resource/MedicationAdministration.java | 1881 - .../dstu/resource/MedicationDispense.java | 2669 -- .../dstu/resource/MedicationPrescription.java | 2385 - .../dstu/resource/MedicationStatement.java | 1546 - .../model/dstu/resource/MessageHeader.java | 1869 - .../fhir/model/dstu/resource/Microarray.java | 2091 - .../fhir/model/dstu/resource/Observation.java | 2307 - .../model/dstu/resource/OperationOutcome.java | 495 - .../uhn/fhir/model/dstu/resource/Order.java | 1215 - .../model/dstu/resource/OrderResponse.java | 966 - .../model/dstu/resource/Organization.java | 1536 - .../uhn/fhir/model/dstu/resource/Other.java | 706 - .../uhn/fhir/model/dstu/resource/Patient.java | 2772 -- .../model/dstu/resource/Practitioner.java | 1844 - .../fhir/model/dstu/resource/Procedure.java | 1688 - .../uhn/fhir/model/dstu/resource/Profile.java | 6799 --- .../fhir/model/dstu/resource/Provenance.java | 1701 - .../uhn/fhir/model/dstu/resource/Query.java | 1252 - .../model/dstu/resource/Questionnaire.java | 2082 - .../model/dstu/resource/RelatedPerson.java | 1054 - .../fhir/model/dstu/resource/Remittance.java | 816 - .../model/dstu/resource/SecurityEvent.java | 3071 -- .../dstu/resource/SequencingAnalysis.java | 991 - .../model/dstu/resource/SequencingLab.java | 1403 - .../ca/uhn/fhir/model/dstu/resource/Slot.java | 1033 - .../fhir/model/dstu/resource/Specimen.java | 2517 - .../fhir/model/dstu/resource/Substance.java | 1123 - .../uhn/fhir/model/dstu/resource/Supply.java | 1587 - .../ca/uhn/fhir/model/dstu/resource/User.java | 970 - .../fhir/model/dstu/resource/ValueSet.java | 3690 -- .../model/dstu/valueset/AddressUseEnum.java | 130 - .../AdministrativeGenderCodesEnum.java | 122 - .../model/dstu/valueset/AdmitSourceEnum.java | 162 - .../dstu/valueset/AggregationModeEnum.java | 116 - .../model/dstu/valueset/AlertStatusEnum.java | 123 - .../dstu/valueset/AnimalSpeciesEnum.java | 126 - .../dstu/valueset/BindingConformanceEnum.java | 123 - .../CarePlanActivityCategoryEnum.java | 151 - .../valueset/CarePlanActivityStatusEnum.java | 144 - .../dstu/valueset/CarePlanGoalStatusEnum.java | 130 - .../dstu/valueset/CarePlanStatusEnum.java | 123 - .../valueset/CausalityExpectationEnum.java | 130 - .../CompositionAttestationModeEnum.java | 130 - .../dstu/valueset/CompositionStatusEnum.java | 137 - .../valueset/ConceptMapEquivalenceEnum.java | 144 - .../ConditionRelationshipTypeEnum.java | 116 - .../dstu/valueset/ConditionStatusEnum.java | 130 - .../valueset/ConformanceEventModeEnum.java | 116 - .../ConformanceStatementStatusEnum.java | 123 - .../dstu/valueset/ConstraintSeverityEnum.java | 116 - .../dstu/valueset/ContactSystemEnum.java | 130 - .../model/dstu/valueset/ContactUseEnum.java | 137 - .../model/dstu/valueset/CriticalityEnum.java | 130 - .../model/dstu/valueset/DataTypeEnum.java | 340 - .../valueset/DiagnosticOrderPriorityEnum.java | 134 - .../valueset/DiagnosticOrderStatusEnum.java | 165 - .../valueset/DiagnosticReportStatusEnum.java | 158 - .../model/dstu/valueset/DocumentModeEnum.java | 116 - .../valueset/DocumentReferenceStatusEnum.java | 123 - .../DocumentRelationshipTypeEnum.java | 130 - .../dstu/valueset/EncounterClassEnum.java | 158 - .../valueset/EncounterReasonCodesEnum.java | 102 - .../dstu/valueset/EncounterStateEnum.java | 137 - .../dstu/valueset/EncounterTypeEnum.java | 126 - .../model/dstu/valueset/EventTimingEnum.java | 152 - .../model/dstu/valueset/ExposureTypeEnum.java | 123 - .../dstu/valueset/ExtensionContextEnum.java | 130 - .../dstu/valueset/FHIRDefinedTypeEnum.java | 676 - .../dstu/valueset/FilterOperatorEnum.java | 144 - .../model/dstu/valueset/GroupTypeEnum.java | 144 - .../HierarchicalRelationshipTypeEnum.java | 118 - .../dstu/valueset/IdentifierUseEnum.java | 130 - .../dstu/valueset/ImagingModalityEnum.java | 282 - .../valueset/ImmunizationReasonCodesEnum.java | 112 - ...nRecommendationDateCriterionCodesEnum.java | 126 - ...nizationRecommendationStatusCodesEnum.java | 118 - .../valueset/ImmunizationRouteCodesEnum.java | 117 - .../valueset/InstanceAvailabilityEnum.java | 122 - .../dstu/valueset/IssueSeverityEnum.java | 130 - .../model/dstu/valueset/IssueTypeEnum.java | 130 - .../model/dstu/valueset/LinkTypeEnum.java | 123 - .../model/dstu/valueset/ListModeEnum.java | 123 - .../model/dstu/valueset/LocationModeEnum.java | 116 - .../dstu/valueset/LocationStatusEnum.java | 123 - .../model/dstu/valueset/LocationTypeEnum.java | 150 - .../dstu/valueset/MaritalStatusCodesEnum.java | 160 - .../model/dstu/valueset/MediaTypeEnum.java | 123 - .../MedicationAdministrationStatusEnum.java | 137 - .../MedicationDispenseStatusEnum.java | 137 - .../dstu/valueset/MedicationKindEnum.java | 116 - .../MedicationPrescriptionStatusEnum.java | 144 - .../model/dstu/valueset/MessageEventEnum.java | 179 - .../MessageSignificanceCategoryEnum.java | 123 - .../dstu/valueset/MessageTransportEnum.java | 123 - .../model/dstu/valueset/ModalityEnum.java | 367 - .../fhir/model/dstu/valueset/NameUseEnum.java | 151 - .../dstu/valueset/NarrativeStatusEnum.java | 130 - .../ObservationInterpretationCodesEnum.java | 102 - .../ObservationRelationshipTypeEnum.java | 151 - .../valueset/ObservationReliabilityEnum.java | 151 - .../dstu/valueset/ObservationStatusEnum.java | 144 - .../dstu/valueset/OrderOutcomeStatusEnum.java | 158 - .../dstu/valueset/OrganizationTypeEnum.java | 156 - .../dstu/valueset/ParticipantTypeEnum.java | 118 - .../valueset/PatientRelationshipTypeEnum.java | 102 - .../dstu/valueset/PractitionerRoleEnum.java | 134 - .../valueset/PractitionerSpecialtyEnum.java | 132 - .../ProcedureRelationshipTypeEnum.java | 116 - .../valueset/PropertyRepresentationEnum.java | 109 - .../valueset/ProvenanceEntityRoleEnum.java | 109 - .../valueset/QuantityCompararatorEnum.java | 130 - .../model/dstu/valueset/QueryOutcomeEnum.java | 130 - .../valueset/QuestionnaireGroupNameEnum.java | 132 - .../dstu/valueset/QuestionnaireNameEnum.java | 120 - .../valueset/QuestionnaireStatusEnum.java | 150 - .../dstu/valueset/ReactionSeverityEnum.java | 130 - .../valueset/ResourceProfileStatusEnum.java | 123 - .../model/dstu/valueset/ResourceTypeEnum.java | 550 - .../model/dstu/valueset/ResponseTypeEnum.java | 123 - .../valueset/RestfulConformanceModeEnum.java | 116 - .../valueset/RestfulOperationSystemEnum.java | 117 - .../valueset/RestfulOperationTypeEnum.java | 147 - .../valueset/RestfulSecurityServiceEnum.java | 137 - .../dstu/valueset/SearchParamTypeEnum.java | 151 - .../valueset/SecurityEventActionEnum.java | 142 - .../SecurityEventObjectLifecycleEnum.java | 207 - .../valueset/SecurityEventObjectRoleEnum.java | 294 - .../SecurityEventObjectSensitivityEnum.java | 102 - .../valueset/SecurityEventObjectTypeEnum.java | 130 - .../valueset/SecurityEventOutcomeEnum.java | 134 - ...curityEventParticipantNetworkTypeEnum.java | 137 - .../valueset/SecurityEventSourceTypeEnum.java | 174 - .../dstu/valueset/SensitivityStatusEnum.java | 130 - .../dstu/valueset/SensitivityTypeEnum.java | 123 - .../model/dstu/valueset/SlicingRulesEnum.java | 123 - .../SpecimenCollectionMethodEnum.java | 167 - .../SpecimenTreatmentProcedureEnum.java | 102 - .../dstu/valueset/SubstanceTypeEnum.java | 102 - .../valueset/SupplyDispenseStatusEnum.java | 126 - .../dstu/valueset/SupplyItemTypeEnum.java | 118 - .../model/dstu/valueset/SupplyStatusEnum.java | 142 - .../model/dstu/valueset/SupplyTypeEnum.java | 118 - .../model/dstu/valueset/UnitsOfTimeEnum.java | 137 - .../dstu/valueset/ValueSetStatusEnum.java | 123 - .../ca/uhn/fhir/model/dstu2/FhirDstu2.java | 112 - .../fhir/model/dstu2/composite/AddressDt.java | 636 - .../uhn/fhir/model/dstu2/composite/AgeDt.java | 29 - .../model/dstu2/composite/AttachmentDt.java | 577 - .../composite/BoundCodeableConceptDt.java | 125 - .../dstu2/composite/CodeableConceptDt.java | 245 - .../fhir/model/dstu2/composite/CodingDt.java | 497 - .../model/dstu2/composite/ContactPointDt.java | 345 - .../model/dstu2/composite/ContainedDt.java | 54 - .../fhir/model/dstu2/composite/CountDt.java | 29 - .../model/dstu2/composite/DistanceDt.java | 29 - .../model/dstu2/composite/DurationDt.java | 29 - .../dstu2/composite/ElementDefinitionDt.java | 3212 -- .../model/dstu2/composite/HumanNameDt.java | 625 - .../model/dstu2/composite/IdentifierDt.java | 478 - .../fhir/model/dstu2/composite/MoneyDt.java | 29 - .../model/dstu2/composite/NarrativeDt.java | 175 - .../fhir/model/dstu2/composite/PeriodDt.java | 263 - .../model/dstu2/composite/QuantityDt.java | 528 - .../fhir/model/dstu2/composite/RangeDt.java | 181 - .../fhir/model/dstu2/composite/RatioDt.java | 181 - .../model/dstu2/composite/ReferenceDt.java | 237 - .../dstu2/composite/ResourceReferenceDt.java | 237 - .../model/dstu2/composite/SampledDataDt.java | 653 - .../fhir/model/dstu2/composite/TimingDt.java | 684 - .../model/dstu2/resource/BaseResource.java | 164 - .../model/dstu2/resource/Organization.java | 1103 - .../fhir/model/dstu2/resource/ValueSet.java | 4077 -- .../model/dstu2/valueset/AddressUseEnum.java | 130 - .../dstu2/valueset/AdjudicationCodesEnum.java | 137 - .../valueset/AdjudicationErrorCodesEnum.java | 112 - .../valueset/AdjustmentReasonCodesEnum.java | 112 - .../valueset/AdministrativeGenderEnum.java | 130 - .../model/dstu2/valueset/AdmitSourceEnum.java | 162 - .../dstu2/valueset/AggregationModeEnum.java | 116 - .../model/dstu2/valueset/AlertStatusEnum.java | 123 - .../AllergyIntoleranceCategoryEnum.java | 126 - .../AllergyIntoleranceCertaintyEnum.java | 126 - .../AllergyIntoleranceCriticalityEnum.java | 126 - .../AllergyIntoleranceSeverityEnum.java | 126 - .../AllergyIntoleranceStatusEnum.java | 134 - .../valueset/AllergyIntoleranceTypeEnum.java | 118 - .../dstu2/valueset/AnimalSpeciesEnum.java | 126 - .../dstu2/valueset/AnswerFormatEnum.java | 200 - .../dstu2/valueset/AppointmentStatusEnum.java | 150 - .../valueset/BindingConformanceEnum.java | 123 - .../dstu2/valueset/CarePlan2StatusEnum.java | 123 - .../CarePlanActivityCategoryEnum.java | 151 - .../valueset/CarePlanActivityStatusEnum.java | 144 - .../valueset/CarePlanGoalStatusEnum.java | 130 - .../dstu2/valueset/CarePlanStatusEnum.java | 123 - .../CommunicationRequestStatusEnum.java | 172 - .../valueset/CommunicationStatusEnum.java | 137 - .../CompositionAttestationModeEnum.java | 130 - .../dstu2/valueset/CompositionStatusEnum.java | 137 - .../valueset/ConceptMapEquivalenceEnum.java | 137 - .../dstu2/valueset/ConditionStatusEnum.java | 130 - .../dstu2/valueset/ConditionsCodesEnum.java | 107 - .../valueset/ConformanceEventModeEnum.java | 116 - .../ConformanceStatementStatusEnum.java | 123 - .../valueset/ConstraintSeverityEnum.java | 116 - .../valueset/ContactPointSystemEnum.java | 130 - .../dstu2/valueset/ContactPointUseEnum.java | 137 - .../valueset/ContractSignerTypeCodesEnum.java | 238 - .../valueset/ContractSubtypeCodesEnum.java | 112 - .../valueset/ContractTermTypeCodesEnum.java | 117 - .../dstu2/valueset/ContractTypeCodesEnum.java | 112 - .../dstu2/valueset/DataAbsentReasonEnum.java | 158 - .../valueset/DataElementGranularityEnum.java | 109 - .../model/dstu2/valueset/DataTypeEnum.java | 368 - .../DeviceMetricCalibrationStateEnum.java | 130 - .../DeviceMetricCalibrationTypeEnum.java | 130 - .../valueset/DeviceMetricCategoryEnum.java | 130 - .../DeviceMetricOperationalStateEnum.java | 123 - .../DeviceUseRequestPriorityEnum.java | 130 - .../valueset/DeviceUseRequestStatusEnum.java | 172 - .../valueset/DiagnosticOrderPriorityEnum.java | 134 - .../valueset/DiagnosticOrderStatusEnum.java | 165 - .../valueset/DiagnosticReportStatusEnum.java | 158 - .../dstu2/valueset/DocumentModeEnum.java | 116 - .../valueset/DocumentReferenceStatusEnum.java | 123 - .../DocumentRelationshipTypeEnum.java | 130 - .../dstu2/valueset/EncounterClassEnum.java | 165 - .../valueset/EncounterLocationStatusEnum.java | 126 - .../valueset/EncounterReasonCodesEnum.java | 102 - .../dstu2/valueset/EncounterStateEnum.java | 150 - .../dstu2/valueset/EncounterTypeEnum.java | 126 - .../EnteralFormulaAdditiveTypeEnum.java | 102 - .../valueset/EnteralFormulaTypeEnum.java | 102 - .../valueset/EpisodeOfCareStatusEnum.java | 150 - .../model/dstu2/valueset/EventTimingEnum.java | 152 - .../dstu2/valueset/ExceptionCodesEnum.java | 112 - .../valueset/ExcludeFoodModifierEnum.java | 102 - .../dstu2/valueset/ExtensionContextEnum.java | 130 - .../dstu2/valueset/FHIRDefinedTypeEnum.java | 1061 - .../dstu2/valueset/FilterOperatorEnum.java | 144 - .../valueset/FluidConsistencyTypeEnum.java | 102 - .../model/dstu2/valueset/FoodTypeEnum.java | 102 - .../model/dstu2/valueset/GoalStatusEnum.java | 158 - .../model/dstu2/valueset/GroupTypeEnum.java | 144 - .../HierarchicalRelationshipTypeEnum.java | 118 - .../dstu2/valueset/IdentifierUseEnum.java | 130 - .../valueset/IdentityAssuranceLevelEnum.java | 134 - .../dstu2/valueset/ImagingModalityEnum.java | 282 - .../valueset/ImmunizationReasonCodesEnum.java | 112 - ...nRecommendationDateCriterionCodesEnum.java | 126 - ...nizationRecommendationStatusCodesEnum.java | 118 - .../valueset/ImmunizationRouteCodesEnum.java | 117 - .../valueset/InstanceAvailabilityEnum.java | 122 - .../dstu2/valueset/InterventionCodesEnum.java | 112 - .../dstu2/valueset/IssueSeverityEnum.java | 130 - .../model/dstu2/valueset/IssueTypeEnum.java | 130 - .../model/dstu2/valueset/KOStitleEnum.java | 227 - .../model/dstu2/valueset/LinkTypeEnum.java | 126 - .../model/dstu2/valueset/ListModeEnum.java | 123 - .../dstu2/valueset/LocationModeEnum.java | 116 - .../dstu2/valueset/LocationStatusEnum.java | 123 - .../dstu2/valueset/LocationTypeEnum.java | 150 - .../valueset/MaritalStatusCodesEnum.java | 160 - .../dstu2/valueset/MeasmntPrincipleEnum.java | 190 - .../model/dstu2/valueset/MediaTypeEnum.java | 123 - .../MedicationAdministrationStatusEnum.java | 137 - .../MedicationDispenseStatusEnum.java | 137 - .../dstu2/valueset/MedicationKindEnum.java | 116 - .../MedicationPrescriptionStatusEnum.java | 144 - .../dstu2/valueset/MessageEventEnum.java | 186 - .../MessageSignificanceCategoryEnum.java | 123 - .../dstu2/valueset/MessageTransportEnum.java | 123 - .../model/dstu2/valueset/ModalityEnum.java | 367 - .../model/dstu2/valueset/NameUseEnum.java | 151 - .../NamingSystemIdentifierTypeEnum.java | 130 - .../valueset/NamingSystemStatusEnum.java | 123 - .../dstu2/valueset/NamingSystemTypeEnum.java | 123 - .../model/dstu2/valueset/NoteTypeEnum.java | 123 - .../dstu2/valueset/NutrientModifierEnum.java | 102 - .../valueset/NutritionOrderStatusEnum.java | 142 - .../ObservationInterpretationCodesEnum.java | 102 - .../ObservationRelationshipTypeEnum.java | 151 - .../valueset/ObservationReliabilityEnum.java | 151 - .../dstu2/valueset/ObservationStatusEnum.java | 145 - .../dstu2/valueset/OperationKindEnum.java | 116 - .../valueset/OperationParameterUseEnum.java | 116 - .../valueset/OrderOutcomeStatusEnum.java | 158 - .../dstu2/valueset/OrganizationTypeEnum.java | 156 - .../valueset/ParticipantRequiredEnum.java | 123 - .../dstu2/valueset/ParticipantStatusEnum.java | 144 - .../dstu2/valueset/ParticipantTypeEnum.java | 118 - .../valueset/ParticipationStatusEnum.java | 144 - .../valueset/PatientRelationshipTypeEnum.java | 102 - .../dstu2/valueset/PaymentTypeCodesEnum.java | 117 - .../dstu2/valueset/PractitionerRoleEnum.java | 134 - .../valueset/PractitionerSpecialtyEnum.java | 132 - .../dstu2/valueset/PriorityCodesEnum.java | 117 - .../ProcedureRelationshipTypeEnum.java | 116 - .../ProcedureRequestPriorityEnum.java | 130 - .../valueset/ProcedureRequestStatusEnum.java | 172 - .../valueset/PropertyRepresentationEnum.java | 109 - .../valueset/ProvenanceEntityRoleEnum.java | 109 - .../valueset/QuantityComparatorEnum.java | 130 - .../QuestionnaireAnswersStatusEnum.java | 126 - .../valueset/QuestionnaireStatusEnum.java | 126 - .../dstu2/valueset/ReferralStatusEnum.java | 144 - .../dstu2/valueset/RemittanceOutcomeEnum.java | 116 - .../ResourceDataElementStatusEnum.java | 123 - .../valueset/ResourceProfileStatusEnum.java | 123 - .../dstu2/valueset/ResourceTypeEnum.java | 795 - .../valueset/ResourceVersionPolicyEnum.java | 126 - .../dstu2/valueset/ResponseTypeEnum.java | 123 - .../valueset/RestfulConformanceModeEnum.java | 116 - .../valueset/RestfulSecurityServiceEnum.java | 137 - .../dstu2/valueset/RulesetCodesEnum.java | 132 - .../dstu2/valueset/SearchParamTypeEnum.java | 151 - .../valueset/SecurityEventActionEnum.java | 142 - .../SecurityEventObjectLifecycleEnum.java | 207 - .../valueset/SecurityEventObjectRoleEnum.java | 294 - .../SecurityEventObjectSensitivityEnum.java | 102 - .../valueset/SecurityEventObjectTypeEnum.java | 130 - .../valueset/SecurityEventOutcomeEnum.java | 134 - ...curityEventParticipantNetworkTypeEnum.java | 137 - .../valueset/SecurityEventSourceTypeEnum.java | 174 - .../dstu2/valueset/SlicingRulesEnum.java | 123 - .../model/dstu2/valueset/SlotStatusEnum.java | 130 - .../SpecimenCollectionMethodEnum.java | 167 - .../SpecimenTreatmentProcedureEnum.java | 102 - .../valueset/SubscriptionChannelTypeEnum.java | 137 - .../valueset/SubscriptionStatusEnum.java | 130 - .../dstu2/valueset/SubstanceTypeEnum.java | 102 - .../dstu2/valueset/SupplementTypeEnum.java | 102 - .../valueset/SupplyDispenseStatusEnum.java | 126 - .../dstu2/valueset/SupplyItemTypeEnum.java | 118 - .../dstu2/valueset/SupplyStatusEnum.java | 142 - .../dstu2/valueset/SurfaceCodesEnum.java | 312 - .../SystemRestfulInteractionEnum.java | 117 - .../dstu2/valueset/TextureModifierEnum.java | 102 - .../valueset/TypeRestfulInteractionEnum.java | 147 - .../model/dstu2/valueset/UDICodesEnum.java | 107 - .../model/dstu2/valueset/UnitsOfTimeEnum.java | 137 - .../fhir/model/dstu2/valueset/UseEnum.java | 130 - .../dstu2/valueset/ValueSetStatusEnum.java | 126 - .../model/dstu2/valueset/VisionBaseEnum.java | 130 - .../model/dstu2/valueset/VisionEyesEnum.java | 116 - .../uhn/fhir/tinder/TinderStructuresMojo.java | 21 +- .../ca/uhn/fhir/tinder/ValueSetGenerator.java | 30 +- .../ca/uhn/fhir/tinder/model/ValueSetTm.java | 17 +- .../vs/dstu2/all-valuesets-bundle.xml | 37756 ++++++++++------ .../org.eclipse.wst.common.component | 4 +- src/changes/changes.xml | 8 +- 592 files changed, 24299 insertions(+), 253690 deletions(-) delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AddressDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AgeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AttachmentDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/BoundCodeableConceptDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CodeableConceptDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CodingDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ContactPointDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ContainedDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CountDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/DistanceDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/DurationDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ElementDefinitionDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/HumanNameDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/IdentifierDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/MoneyDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/NarrativeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/PeriodDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/QuantityDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/RangeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/RatioDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ReferenceDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ResourceReferenceDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/SampledDataDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/TimingDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/BaseResource.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Conformance.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/DataElement.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/OperationDefinition.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Organization.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Profile.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/ValueSet.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AddressUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdministrativeGenderEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdmitSourceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCertaintyEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCriticalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AggregationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AlertStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AnimalSpeciesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AnswerFormatEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AppointmentStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/BindingConformanceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanActivityCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanActivityStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanGoalStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CausalityExpectationEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CompositionAttestationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CompositionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConceptMapEquivalenceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConditionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConformanceEventModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConformanceStatementStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConstraintSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContactPointSystemEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContactPointUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractSubtypeCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractTermTypeCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractTypeCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataAbsentReasonEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataElementGranularityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticOrderPriorityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticOrderStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticReportStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentReferenceStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterClassEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterReasonCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterStateEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EnteralFormulaAdditiveTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EnteralFormulaTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EventTimingEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ExcludeFoodModifierEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ExposureTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FHIRDefinedTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FilterOperatorEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FluidConsistencyTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FoodTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/GroupTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/HierarchicalRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IdentifierUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImagingModalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationReasonCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRecommendationStatusCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRouteCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/InstanceAvailabilityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IssueSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IssueTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LinkTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ListModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MaritalStatusCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MediaTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationAdministrationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationDispenseStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationKindEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationPrescriptionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageEventEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageSignificanceCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageTransportEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ModalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NameUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceIdentifierTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NutrientModifierEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NutritionOrderStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationInterpretationCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationReliabilityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OperationKindEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OperationParameterUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OrderOutcomeStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OrganizationTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantRequiredEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PatientRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PractitionerRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PractitionerSpecialtyEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PriorityCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ProcedureRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PropertyRepresentationEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ProvenanceEntityRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuantityComparatorEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QueryOutcomeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuestionnaireAnswersStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuestionnaireStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ReactionSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ReferralStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceDataElementStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceProfileStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceVersionPolicyEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResponseTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/RestfulConformanceModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/RestfulSecurityServiceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SearchParamTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventActionEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectLifecycleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectSensitivityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventOutcomeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventParticipantNetworkTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventSourceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SlicingRulesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SlotStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SpecimenCollectionMethodEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SpecimenTreatmentProcedureEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubscriptionChannelTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubscriptionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubstanceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplementTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyDispenseStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyItemTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SystemRestfulInteractionEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/TextureModifierEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/TypeRestfulInteractionEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/UnitsOfTimeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ValueSetStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AddressDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AgeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AttachmentDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/CodeableConceptDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/CodingDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ContactDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ContainedDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/DurationDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/IdentifierDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/NarrativeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/PeriodDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/QuantityDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/RangeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/RatioDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ResourceReferenceDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/SampledDataDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ScheduleDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AdverseReaction.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Alert.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AllergyIntolerance.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Appointment.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AppointmentResponse.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Availability.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/BaseResource.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Binary.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/CarePlan.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Claim.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Composition.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ConceptMap.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Condition.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Conformance.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Coverage.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Device.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DeviceObservationReport.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DiagnosticOrder.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DiagnosticReport.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DocumentManifest.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DocumentReference.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Encounter.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/FamilyHistory.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GVFMeta.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GVFVariant.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GeneExpression.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GeneticAnalysis.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Group.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ImagingStudy.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Immunization.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ImmunizationRecommendation.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ListResource.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Location.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Media.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Medication.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationAdministration.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationDispense.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationPrescription.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationStatement.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MessageHeader.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Microarray.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Observation.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/OperationOutcome.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Order.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/OrderResponse.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Organization.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Other.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Practitioner.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Procedure.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Profile.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Provenance.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Query.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Questionnaire.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/RelatedPerson.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Remittance.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SecurityEvent.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SequencingAnalysis.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SequencingLab.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Slot.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Specimen.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Substance.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Supply.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/User.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ValueSet.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AddressUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AdministrativeGenderCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AdmitSourceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AggregationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AlertStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AnimalSpeciesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/BindingConformanceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanActivityCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanActivityStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanGoalStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CausalityExpectationEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CompositionAttestationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CompositionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConceptMapEquivalenceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConditionRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConditionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConformanceEventModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConformanceStatementStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConstraintSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ContactSystemEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ContactUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CriticalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DataTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticOrderPriorityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticOrderStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticReportStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentReferenceStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterClassEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterReasonCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterStateEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EventTimingEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ExposureTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ExtensionContextEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/FHIRDefinedTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/FilterOperatorEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/GroupTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/HierarchicalRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IdentifierUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImagingModalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationReasonCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRecommendationStatusCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRouteCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/InstanceAvailabilityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IssueSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IssueTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LinkTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ListModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MaritalStatusCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MediaTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationAdministrationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationDispenseStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationKindEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationPrescriptionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageEventEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageSignificanceCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageTransportEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ModalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/NameUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/NarrativeStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationInterpretationCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationReliabilityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/OrderOutcomeStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/OrganizationTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ParticipantTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PatientRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PractitionerRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PractitionerSpecialtyEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ProcedureRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PropertyRepresentationEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ProvenanceEntityRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuantityCompararatorEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QueryOutcomeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireGroupNameEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireNameEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ReactionSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResourceProfileStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResourceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResponseTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulConformanceModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulOperationSystemEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulOperationTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulSecurityServiceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SearchParamTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventActionEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectLifecycleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectSensitivityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventOutcomeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventParticipantNetworkTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventSourceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SensitivityStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SensitivityTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SlicingRulesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SpecimenCollectionMethodEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SpecimenTreatmentProcedureEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SubstanceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyDispenseStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyItemTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/UnitsOfTimeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ValueSetStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AddressDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AgeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AttachmentDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/BoundCodeableConceptDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CodeableConceptDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CodingDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ContactPointDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ContainedDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CountDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/DistanceDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/DurationDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ElementDefinitionDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/HumanNameDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/IdentifierDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/MoneyDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/NarrativeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/PeriodDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/QuantityDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/RangeDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/RatioDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ReferenceDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ResourceReferenceDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/SampledDataDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/TimingDt.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/BaseResource.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/Organization.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/ValueSet.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AddressUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjudicationCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjudicationErrorCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjustmentReasonCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdministrativeGenderEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdmitSourceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AggregationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AlertStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCertaintyEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCriticalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AnimalSpeciesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AnswerFormatEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AppointmentStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/BindingConformanceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlan2StatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanActivityCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanActivityStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanGoalStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CommunicationRequestStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CommunicationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CompositionAttestationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CompositionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConceptMapEquivalenceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConditionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConditionsCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConformanceEventModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConformanceStatementStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConstraintSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContactPointSystemEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContactPointUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractSignerTypeCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractSubtypeCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractTermTypeCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractTypeCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataAbsentReasonEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataElementGranularityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCalibrationStateEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCalibrationTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricOperationalStateEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceUseRequestPriorityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceUseRequestStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticOrderPriorityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticOrderStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticReportStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentReferenceStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterClassEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterLocationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterReasonCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterStateEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EnteralFormulaAdditiveTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EnteralFormulaTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EpisodeOfCareStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EventTimingEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExceptionCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExcludeFoodModifierEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExtensionContextEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FHIRDefinedTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FilterOperatorEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FluidConsistencyTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FoodTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/GoalStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/GroupTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/HierarchicalRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IdentifierUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IdentityAssuranceLevelEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImagingModalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationReasonCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRecommendationStatusCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRouteCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/InstanceAvailabilityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/InterventionCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IssueSeverityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IssueTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/KOStitleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LinkTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ListModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MaritalStatusCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MeasmntPrincipleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MediaTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationAdministrationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationDispenseStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationKindEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationPrescriptionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageEventEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageSignificanceCategoryEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageTransportEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ModalityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NameUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemIdentifierTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NoteTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NutrientModifierEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NutritionOrderStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationInterpretationCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationReliabilityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OperationKindEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OperationParameterUseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OrderOutcomeStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OrganizationTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantRequiredEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipationStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PatientRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PaymentTypeCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PractitionerRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PractitionerSpecialtyEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PriorityCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRelationshipTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRequestPriorityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRequestStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PropertyRepresentationEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProvenanceEntityRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuantityComparatorEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuestionnaireAnswersStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuestionnaireStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ReferralStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RemittanceOutcomeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceDataElementStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceProfileStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceVersionPolicyEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResponseTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RestfulConformanceModeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RestfulSecurityServiceEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RulesetCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SearchParamTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventActionEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectLifecycleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectRoleEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectSensitivityEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventOutcomeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventParticipantNetworkTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventSourceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SlicingRulesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SlotStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SpecimenCollectionMethodEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SpecimenTreatmentProcedureEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubscriptionChannelTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubscriptionStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubstanceTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplementTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyDispenseStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyItemTypeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SurfaceCodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SystemRestfulInteractionEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/TextureModifierEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/TypeRestfulInteractionEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UDICodesEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UnitsOfTimeEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ValueSetStatusEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/VisionBaseEnum.java delete mode 100644 hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/VisionEyesEnum.java diff --git a/hapi-fhir-android/dependency-reduced-pom.xml b/hapi-fhir-android/dependency-reduced-pom.xml index 7d694482758..2e7de678356 100644 --- a/hapi-fhir-android/dependency-reduced-pom.xml +++ b/hapi-fhir-android/dependency-reduced-pom.xml @@ -3,7 +3,7 @@ hapi-fhir ca.uhn.hapi.fhir - 0.9 + 1.0-SNAPSHOT 4.0.0 hapi-fhir-android @@ -85,27 +85,36 @@ - - maven-assembly-plugin - ${maven_assembly_plugin_version} - - - package - - single - - - true - - ${project.basedir}/src/assembly/android-sources.xml - ${project.basedir}/src/assembly/android-javadoc.xml - - - - - + + + DIST + + + + maven-assembly-plugin + ${maven_assembly_plugin_version} + + + package + + single + + + true + + ${project.basedir}/src/assembly/android-sources.xml + ${project.basedir}/src/assembly/android-javadoc.xml + + + + + + + + + com.phloc diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ResourceMetadataKeyEnum.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ResourceMetadataKeyEnum.java index 99380a5111a..e8e7917b247 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ResourceMetadataKeyEnum.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ResourceMetadataKeyEnum.java @@ -20,7 +20,7 @@ package ca.uhn.fhir.model.api; * #L% */ -import static org.apache.commons.lang3.StringUtils.*; +import static org.apache.commons.lang3.StringUtils.isNotBlank; import java.util.ArrayList; import java.util.Collections; @@ -28,9 +28,9 @@ import java.util.Date; import java.util.List; import java.util.Map; -import ca.uhn.fhir.model.base.composite.BaseCodingDt; import org.apache.commons.lang3.StringUtils; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.primitive.DecimalDt; import ca.uhn.fhir.model.primitive.IdDt; import ca.uhn.fhir.model.primitive.InstantDt; @@ -63,6 +63,196 @@ import ca.uhn.fhir.rest.server.exceptions.InternalErrorException; */ public abstract class ResourceMetadataKeyEnum { + /** + * If present and populated with a date/time (as an instance of {@link InstantDt}), this value is an indication that the resource is in the deleted state. This key is only used in a limited number + * of scenarios, such as POSTing transaction bundles to a server, or returning resource history. + *

+ * Values for this key are of type {@link InstantDt} + *

+ */ + public static final ResourceMetadataKeyEnum DELETED_AT = new ResourceMetadataKeyEnum("DELETED_AT") { + @Override + public InstantDt get(IResource theResource) { + return getInstantFromMetadataOrNullIfNone(theResource.getResourceMetadata(), DELETED_AT); + } + + @Override + public void put(IResource theResource, InstantDt theObject) { + theResource.getResourceMetadata().put(DELETED_AT, theObject); + } + }; + + /** + * Denotes the search score which a given resource should match in a transaction. See the FHIR transaction definition for information about this. Corresponds to the value in + * Bundle.entry.score in a Bundle resource. + *

+ * Note that search URL is only used in FHIR DSTU2 and later. + *

+ *

+ * Values for this key are of type {@link DecimalDt} + *

+ */ + public static final ResourceMetadataKeyEnum ENTRY_SCORE = new ResourceMetadataKeyEnum("ENTRY_SCORE") { + @Override + public DecimalDt get(IResource theResource) { + return getDecimalFromMetadataOrNullIfNone(theResource.getResourceMetadata(), ENTRY_SCORE); + } + + @Override + public void put(IResource theResource, DecimalDt theObject) { + theResource.getResourceMetadata().put(ENTRY_SCORE, theObject); + } + }; + + /** + * If present and populated with a {@link BundleEntrySearchModeEnum}, contains the "bundle entry search mode", which is the value of the status field in the Bundle entry containing this resource. + * The value for this key corresponds to field Bundle.entry.search.mode. This value can be set to provide a status value of "include" for included resources being returned by a + * server, or to "match" to indicate that the resource was returned because it matched the given search criteria. + *

+ * Note that status is only used in FHIR DSTU2 and later. + *

+ *

+ * Values for this key are of type {@link BundleEntrySearchModeEnum} + *

+ */ + public static final ResourceMetadataKeyEnum ENTRY_SEARCH_MODE = new ResourceMetadataKeyEnum("ENTRY_SEARCH_MODE") { + @Override + public BundleEntrySearchModeEnum get(IResource theResource) { + return getEnumFromMetadataOrNullIfNone(theResource.getResourceMetadata(), ENTRY_SEARCH_MODE, BundleEntrySearchModeEnum.class, BundleEntrySearchModeEnum.VALUESET_BINDER); + } + + @Override + public void put(IResource theResource, BundleEntrySearchModeEnum theObject) { + theResource.getResourceMetadata().put(ENTRY_SEARCH_MODE, theObject); + } + }; + + /** + * If present and populated with a {@link BundleEntryTransactionMethodEnum}, contains the "bundle entry transaction operation", which is the value of the status field in the Bundle entry + * containing this resource. The value for this key corresponds to field Bundle.entry.transaction.operation. This value can be set in resources being transmitted to a server to + * provide a status value of "create" or "update" to indicate behaviour the server should observe. It may also be set to similar values (or to "noop") in resources being returned by a server as a + * result of a transaction to indicate to the client what operation was actually performed. + *

+ * Note that status is only used in FHIR DSTU2 and later. + *

+ *

+ * Values for this key are of type {@link BundleEntryTransactionMethodEnum} + *

+ */ + public static final ResourceMetadataKeyEnum ENTRY_TRANSACTION_METHOD = new ResourceMetadataKeyEnum( + "ENTRY_TRANSACTION_OPERATION") { + @Override + public BundleEntryTransactionMethodEnum get(IResource theResource) { + return getEnumFromMetadataOrNullIfNone(theResource.getResourceMetadata(), ENTRY_TRANSACTION_METHOD, BundleEntryTransactionMethodEnum.class, + BundleEntryTransactionMethodEnum.VALUESET_BINDER); + } + + @Override + public void put(IResource theResource, BundleEntryTransactionMethodEnum theObject) { + theResource.getResourceMetadata().put(ENTRY_TRANSACTION_METHOD, theObject); + } + }; + + /** + * If present and populated with a string, provides the "alternate link" (the link element in the bundle entry with rel="alternate"). Server implementations may populate this with a + * complete URL, in which case the URL will be placed as-is in the bundle. They may alternately specify a resource relative URL (e.g. "Patient/1243") in which case the server will convert this to + * an absolute URL at runtime. + *

+ * Values for this key are of type {@link String} + *

+ */ + public static final ResourceMetadataKeyEnum LINK_ALTERNATE = new ResourceMetadataKeyEnum("LINK_ALTERNATE") { + @Override + public String get(IResource theResource) { + return getStringFromMetadataOrNullIfNone(theResource.getResourceMetadata(), LINK_ALTERNATE); + } + + @Override + public void put(IResource theResource, String theObject) { + theResource.getResourceMetadata().put(LINK_ALTERNATE, theObject); + } + }; + + /** + * If present and populated with a string, provides the "search link" (the link element in the bundle entry with rel="search"). Server implementations may populate this with a + * complete URL, in which case the URL will be placed as-is in the bundle. They may alternately specify a resource relative URL (e.g. "Patient?name=tester") in which case the server will convert + * this to an absolute URL at runtime. + *

+ * Values for this key are of type {@link String} + *

+ */ + public static final ResourceMetadataKeyEnum LINK_SEARCH = new ResourceMetadataKeyEnum("LINK_SEARCH") { + @Override + public String get(IResource theResource) { + return getStringFromMetadataOrNullIfNone(theResource.getResourceMetadata(), LINK_SEARCH); + } + + @Override + public void put(IResource theResource, String theObject) { + theResource.getResourceMetadata().put(LINK_SEARCH, theObject); + } + }; + + /** + * The value for this key represents a previous ID used to identify this resource. This key is currently only used internally during transaction method processing. + *

+ * Values for this key are of type {@link IdDt} + *

+ */ + public static final ResourceMetadataKeyEnum PREVIOUS_ID = new ResourceMetadataKeyEnum("PREVIOUS_ID") { + @Override + public IdDt get(IResource theResource) { + return getIdFromMetadataOrNullIfNone(theResource.getResourceMetadata(), PREVIOUS_ID); + } + + @Override + public void put(IResource theResource, IdDt theObject) { + theResource.getResourceMetadata().put(PREVIOUS_ID, theObject); + } + }; + + /** + * The value for this key represents a {@link List} of profile IDs that this resource claims to conform to. + * + *

+ * Values for this key are of type List<IdDt>. Note that the returned list is unmodifiable, so you need to create a new list and call put to change its value. + *

+ */ + public static final ResourceMetadataKeyEnum> PROFILES = new ResourceMetadataKeyEnum>("PROFILES") { + @Override + public List get(IResource theResource) { + return getIdListFromMetadataOrNullIfNone(theResource.getResourceMetadata(), PROFILES); + } + + @Override + public void put(IResource theResource, List theObject) { + theResource.getResourceMetadata().put(PROFILES, theObject); + } + }; + + /** + * The value for this key is the bundle entry Published time. This is defined by FHIR as "Time resource copied into the feed", which is generally best left to the current time. + *

+ * Values for this key are of type {@link InstantDt} + *

+ *

+ * Server Note: In servers, it is generally advisable to leave this value null, in which case the server will substitute the current time automatically. + *

+ * + * @see InstantDt + */ + public static final ResourceMetadataKeyEnum PUBLISHED = new ResourceMetadataKeyEnum("PUBLISHED") { + @Override + public InstantDt get(IResource theResource) { + return getInstantFromMetadataOrNullIfNone(theResource.getResourceMetadata(), PUBLISHED); + } + + @Override + public void put(IResource theResource, InstantDt theObject) { + theResource.getResourceMetadata().put(PUBLISHED, theObject); + } + }; + public static final ResourceMetadataKeyEnum> SECURITY_LABELS = new ResourceMetadataKeyEnum>("SECURITY_LABELS") { @Override public List get(IResource resource) { @@ -92,89 +282,6 @@ public abstract class ResourceMetadataKeyEnum { }; - - /** - * If present and populated with a date/time (as an instance of {@link InstantDt}), this value is an indication that the resource is in the deleted state. This key is only used in a limited number - * of scenarios, such as POSTing transaction bundles to a server, or returning resource history. - *

- * Values for this key are of type {@link InstantDt} - *

- */ - public static final ResourceMetadataKeyEnum DELETED_AT = new ResourceMetadataKeyEnum("DELETED_AT") { - @Override - public InstantDt get(IResource theResource) { - return getInstantFromMetadataOrNullIfNone(theResource.getResourceMetadata(), DELETED_AT); - } - - @Override - public void put(IResource theResource, InstantDt theObject) { - theResource.getResourceMetadata().put(DELETED_AT, theObject); - } - }; - - /** - * The value for this key represents a {@link List} of profile IDs that this - * resource claims to conform to. - * - *

- * Values for this key are of type List<IdDt>. Note that the returned list is - * unmodifiable, so you need to create a new list and call put to - * change its value. - *

- */ - public static final ResourceMetadataKeyEnum> PROFILES = new ResourceMetadataKeyEnum>("PROFILES") { - @Override - public List get(IResource theResource) { - return getIdListFromMetadataOrNullIfNone(theResource.getResourceMetadata(), PROFILES); - } - - @Override - public void put(IResource theResource, List theObject) { - theResource.getResourceMetadata().put(PROFILES, theObject); - } - }; - - /** - * The value for this key represents a previous ID used to identify this resource. This key is currently only used internally during transaction method processing. - *

- * Values for this key are of type {@link IdDt} - *

- */ - public static final ResourceMetadataKeyEnum PREVIOUS_ID = new ResourceMetadataKeyEnum("PREVIOUS_ID") { - @Override - public IdDt get(IResource theResource) { - return getIdFromMetadataOrNullIfNone(theResource.getResourceMetadata(), PREVIOUS_ID); - } - - @Override - public void put(IResource theResource, IdDt theObject) { - theResource.getResourceMetadata().put(PREVIOUS_ID, theObject); - } - }; - - /** - * The value for this key is the bundle entry Published time. This is defined by FHIR as "Time resource copied into the feed", which is generally best left to the current time. - *

- * Values for this key are of type {@link InstantDt} - *

- *

- * Server Note: In servers, it is generally advisable to leave this value null, in which case the server will substitute the current time automatically. - *

- * - * @see InstantDt - */ - public static final ResourceMetadataKeyEnum PUBLISHED = new ResourceMetadataKeyEnum("PUBLISHED") { - @Override - public InstantDt get(IResource theResource) { - return getInstantFromMetadataOrNullIfNone(theResource.getResourceMetadata(), PUBLISHED); - } - - @Override - public void put(IResource theResource, InstantDt theObject) { - theResource.getResourceMetadata().put(PUBLISHED, theObject); - } - }; - /** * The value for this key is the list of tags associated with this resource *

@@ -245,6 +352,24 @@ public abstract class ResourceMetadataKeyEnum { } }; + /** + * The value for this key is the version ID of the resource object. + *

+ * Values for this key are of type {@link String} + *

+ */ + public static final ResourceMetadataKeyEnum VERSION = new ResourceMetadataKeyEnum("VERSION") { + @Override + public String get(IResource theResource) { + return getStringFromMetadataOrNullIfNone(theResource.getResourceMetadata(), VERSION); + } + + @Override + public void put(IResource theResource, String theObject) { + theResource.getResourceMetadata().put(VERSION, theObject); + } + }; + /** * The value for this key is the version ID of the resource object. *

@@ -266,141 +391,6 @@ public abstract class ResourceMetadataKeyEnum { } }; - /** - * The value for this key is the version ID of the resource object. - *

- * Values for this key are of type {@link String} - *

- */ - public static final ResourceMetadataKeyEnum VERSION = new ResourceMetadataKeyEnum("VERSION") { - @Override - public String get(IResource theResource) { - return getStringFromMetadataOrNullIfNone(theResource.getResourceMetadata(), VERSION); - } - - @Override - public void put(IResource theResource, String theObject) { - theResource.getResourceMetadata().put(VERSION, theObject); - } - }; - - /** - * If present and populated with a string, provides the "search link" (the link element in the bundle entry with rel="search"). Server implementations may populate this with a - * complete URL, in which case the URL will be placed as-is in the bundle. They may alternately specify a resource relative URL (e.g. "Patient?name=tester") in which case the server will convert - * this to an absolute URL at runtime. - *

- * Values for this key are of type {@link String} - *

- */ - public static final ResourceMetadataKeyEnum LINK_SEARCH = new ResourceMetadataKeyEnum("LINK_SEARCH") { - @Override - public String get(IResource theResource) { - return getStringFromMetadataOrNullIfNone(theResource.getResourceMetadata(), LINK_SEARCH); - } - - @Override - public void put(IResource theResource, String theObject) { - theResource.getResourceMetadata().put(LINK_SEARCH, theObject); - } - }; - - /** - * If present and populated with a string, provides the "alternate link" (the link element in the bundle entry with rel="alternate"). Server implementations may populate this with a - * complete URL, in which case the URL will be placed as-is in the bundle. They may alternately specify a resource relative URL (e.g. "Patient/1243") in which case the server will convert this to - * an absolute URL at runtime. - *

- * Values for this key are of type {@link String} - *

- */ - public static final ResourceMetadataKeyEnum LINK_ALTERNATE = new ResourceMetadataKeyEnum("LINK_ALTERNATE") { - @Override - public String get(IResource theResource) { - return getStringFromMetadataOrNullIfNone(theResource.getResourceMetadata(), LINK_ALTERNATE); - } - - @Override - public void put(IResource theResource, String theObject) { - theResource.getResourceMetadata().put(LINK_ALTERNATE, theObject); - } - }; - - /** - * If present and populated with a {@link BundleEntrySearchModeEnum}, contains the "bundle entry search mode", - * which is the value of the status field in the Bundle entry containing this resource. The value for this key - * corresponds to field Bundle.entry.search.mode. - * This value can be - * set to provide a status value of "include" for included resources being returned by a server, or to - * "match" to indicate that the resource was returned because it matched the given search criteria. - *

- * Note that status is only used in FHIR DSTU2 and later. - *

- *

- * Values for this key are of type {@link BundleEntrySearchModeEnum} - *

- */ - public static final ResourceMetadataKeyEnum ENTRY_SEARCH_MODE = new ResourceMetadataKeyEnum("ENTRY_SEARCH_MODE") { - @Override - public BundleEntrySearchModeEnum get(IResource theResource) { - return getEnumFromMetadataOrNullIfNone(theResource.getResourceMetadata(), ENTRY_SEARCH_MODE, BundleEntrySearchModeEnum.class, BundleEntrySearchModeEnum.VALUESET_BINDER); - } - - @Override - public void put(IResource theResource, BundleEntrySearchModeEnum theObject) { - theResource.getResourceMetadata().put(ENTRY_SEARCH_MODE, theObject); - } - }; - - /** - * If present and populated with a {@link BundleEntryTransactionMethodEnum}, contains the "bundle entry transaction operation", - * which is the value of the status field in the Bundle entry containing this resource. The value for this key - * corresponds to field Bundle.entry.transaction.operation. - * This value can be - * set in resources being transmitted to a server to provide a status value of "create" or "update" to indicate behaviour the - * server should observe. It may also be set to similar values (or to "noop") in resources being returned by - * a server as a result of a transaction to indicate to the client what operation was actually performed. - *

- * Note that status is only used in FHIR DSTU2 and later. - *

- *

- * Values for this key are of type {@link BundleEntryTransactionMethodEnum} - *

- */ - public static final ResourceMetadataKeyEnum ENTRY_TRANSACTION_METHOD = new ResourceMetadataKeyEnum("ENTRY_TRANSACTION_OPERATION") { - @Override - public BundleEntryTransactionMethodEnum get(IResource theResource) { - return getEnumFromMetadataOrNullIfNone(theResource.getResourceMetadata(), ENTRY_TRANSACTION_METHOD, BundleEntryTransactionMethodEnum.class, BundleEntryTransactionMethodEnum.VALUESET_BINDER); - } - - @Override - public void put(IResource theResource, BundleEntryTransactionMethodEnum theObject) { - theResource.getResourceMetadata().put(ENTRY_TRANSACTION_METHOD, theObject); - } - }; - - /** - * Denotes the search score which a given resource should match in a transaction. See the - * FHIR transaction definition for information about this. Corresponds to - * the value in Bundle.entry.score in a Bundle resource. - *

- * Note that search URL is only used in FHIR DSTU2 and later. - *

- *

- * Values for this key are of type {@link DecimalDt} - *

- */ - public static final ResourceMetadataKeyEnum ENTRY_SCORE = new ResourceMetadataKeyEnum("ENTRY_SCORE") { - @Override - public DecimalDt get(IResource theResource) { - return getDecimalFromMetadataOrNullIfNone(theResource.getResourceMetadata(), ENTRY_SCORE); - } - - @Override - public void put(IResource theResource, DecimalDt theObject) { - theResource.getResourceMetadata().put(ENTRY_SCORE, theObject); - } - }; - - private final String myValue; public ResourceMetadataKeyEnum(String theValue) { @@ -445,14 +435,53 @@ public abstract class ResourceMetadataKeyEnum { return myValue; } + private static DecimalDt getDecimalFromMetadataOrNullIfNone(Map, Object> theResourceMetadata, ResourceMetadataKeyEnum theKey) { + Object retValObj = theResourceMetadata.get(theKey); + if (retValObj == null) { + return null; + } else if (retValObj instanceof DecimalDt) { + if (((DecimalDt) retValObj).isEmpty()) { + return null; + } else { + return (DecimalDt) retValObj; + } + } else if (retValObj instanceof String) { + if (StringUtils.isBlank((String) retValObj)) { + return null; + } + return new DecimalDt((String) retValObj); + } else if (retValObj instanceof Double) { + return new DecimalDt((Double) retValObj); + } + throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + theKey.name() + " - Expected " + + InstantDt.class.getCanonicalName()); + } + + @SuppressWarnings("unchecked") + private static > T getEnumFromMetadataOrNullIfNone(Map, Object> theResourceMetadata, ResourceMetadataKeyEnum theKey, Class theEnumType, + IValueSetEnumBinder theBinder) { + Object retValObj = theResourceMetadata.get(theKey); + if (retValObj == null) { + return null; + } else if (theEnumType.equals(retValObj.getClass())) { + return (T) retValObj; + } else if (retValObj instanceof String) { + return theBinder.fromCodeString((String) retValObj); + } + throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + theKey.name() + " - Expected " + + InstantDt.class.getCanonicalName()); + } + private static IdDt getIdFromMetadataOrNullIfNone(Map, Object> theResourceMetadata, ResourceMetadataKeyEnum theKey) { return toId(theKey, theResourceMetadata.get(theKey)); } private static List getIdListFromMetadataOrNullIfNone(Map, Object> theResourceMetadata, ResourceMetadataKeyEnum theKey) { Object retValObj = theResourceMetadata.get(theKey); - if (retValObj instanceof List) { - List retValList = (List)retValObj; + if (retValObj == null) { + return null; + } else if (retValObj instanceof List) { + List retValList = (List) retValObj; for (Object next : retValList) { if (!(next instanceof IdDt)) { List retVal = new ArrayList(); @@ -470,28 +499,6 @@ public abstract class ResourceMetadataKeyEnum { } } - private static IdDt toId(ResourceMetadataKeyEnum theKey, Object retValObj) { - if (retValObj == null) { - return null; - } else if (retValObj instanceof String) { - if (isNotBlank((String) retValObj)) { - return new IdDt((String) retValObj); - } else { - return null; - } - } else if (retValObj instanceof IdDt) { - if (((IdDt) retValObj).isEmpty()) { - return null; - } else { - return (IdDt) retValObj; - } - } else if (retValObj instanceof Number) { - return new IdDt(((Number) retValObj).toString()); - } - throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + theKey.name() + " - Expected " - + IdDt.class.getCanonicalName()); - } - private static InstantDt getInstantFromMetadataOrNullIfNone(Map, Object> theResourceMetadata, ResourceMetadataKeyEnum theKey) { Object retValObj = theResourceMetadata.get(theKey); if (retValObj == null) { @@ -529,44 +536,6 @@ public abstract class ResourceMetadataKeyEnum { + InstantDt.class.getCanonicalName()); } - - private static DecimalDt getDecimalFromMetadataOrNullIfNone(Map, Object> theResourceMetadata, ResourceMetadataKeyEnum theKey) { - Object retValObj = theResourceMetadata.get(theKey); - if (retValObj == null) { - return null; - } else if (retValObj instanceof DecimalDt) { - if (((DecimalDt) retValObj).isEmpty()) { - return null; - } else { - return (DecimalDt) retValObj; - } - } else if (retValObj instanceof String) { - if (StringUtils.isBlank((String) retValObj)) { - return null; - } - return new DecimalDt((String) retValObj); - } else if (retValObj instanceof Double) { - return new DecimalDt((Double) retValObj); - } - throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + theKey.name() + " - Expected " - + InstantDt.class.getCanonicalName()); - } - - - @SuppressWarnings("unchecked") - private static > T getEnumFromMetadataOrNullIfNone(Map, Object> theResourceMetadata, ResourceMetadataKeyEnum theKey, Class theEnumType, IValueSetEnumBinder theBinder) { - Object retValObj = theResourceMetadata.get(theKey); - if (retValObj == null) { - return null; - } else if (theEnumType.equals(retValObj.getClass())) { - return (T) retValObj; - } else if (retValObj instanceof String) { - return theBinder.fromCodeString((String) retValObj); - } - throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + theKey.name() + " - Expected " - + InstantDt.class.getCanonicalName()); - } - private static String getStringFromMetadataOrNullIfNone(Map, Object> theResourceMetadata, ResourceMetadataKeyEnum theKey) { Object retValObj = theResourceMetadata.get(theKey); if (retValObj == null) { @@ -582,4 +551,26 @@ public abstract class ResourceMetadataKeyEnum { + String.class.getCanonicalName()); } + private static IdDt toId(ResourceMetadataKeyEnum theKey, Object retValObj) { + if (retValObj == null) { + return null; + } else if (retValObj instanceof String) { + if (isNotBlank((String) retValObj)) { + return new IdDt((String) retValObj); + } else { + return null; + } + } else if (retValObj instanceof IdDt) { + if (((IdDt) retValObj).isEmpty()) { + return null; + } else { + return (IdDt) retValObj; + } + } else if (retValObj instanceof Number) { + return new IdDt(((Number) retValObj).toString()); + } + throw new InternalErrorException("Found an object of type '" + retValObj.getClass().getCanonicalName() + "' in resource metadata for key " + theKey.name() + " - Expected " + + IdDt.class.getCanonicalName()); + } + } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/BaseParser.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/BaseParser.java index c93c297e1f1..8cecf507e95 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/BaseParser.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/BaseParser.java @@ -28,6 +28,7 @@ import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.IdentityHashMap; @@ -73,7 +74,7 @@ public abstract class BaseParser implements IParser { Set allIds = new HashSet(); Map existingIdToContainedResource = null; - + if (theTarget instanceof IResource) { List containedResources = ((IResource) theTarget).getContained().getContainedResources(); for (IResource next : containedResources) { @@ -182,7 +183,7 @@ public abstract class BaseParser implements IParser { if (resource == null) { return null; } - + String resourceBaseUrl = null; if (resource.getId() != null && resource.getId().hasBaseUrl()) { if (!resource.getId().getBaseUrl().equals(bundleBaseUrl)) { @@ -192,6 +193,8 @@ public abstract class BaseParser implements IParser { return resourceBaseUrl; } + protected abstract T doParseResource(Class theResourceType, Reader theReader) throws DataFormatException; + @Override public String encodeBundleToString(Bundle theBundle) throws DataFormatException { if (theBundle == null) { @@ -241,8 +244,7 @@ public abstract class BaseParser implements IParser { } /** - * If set to true (default is false), narratives will not be included in the encoded - * values. + * If set to true (default is false), narratives will not be included in the encoded values. */ public boolean getSuppressNarratives() { return mySuppressNarratives; @@ -259,6 +261,54 @@ public abstract class BaseParser implements IParser { return parseBundle(reader); } + public T parseResource(Class theResourceType, Reader theReader) throws DataFormatException { + T retVal = doParseResource(theResourceType, theReader); + + RuntimeResourceDefinition def = myContext.getResourceDefinition(retVal); + if ("Bundle".equals(def.getName())) { + List base = def.getChildByName("base").getAccessor().getValues(retVal); + if (base != null && base.size() > 0) { + IPrimitiveType baseType = (IPrimitiveType) base.get(0); + IResource res = ((IResource) retVal); + res.setId(new IdDt(baseType.getValueAsString(), def.getName(), res.getId().getIdPart(), res.getId().getVersionIdPart())); + } + + BaseRuntimeChildDefinition entryChild = def.getChildByName("entry"); + BaseRuntimeElementCompositeDefinition entryDef = (BaseRuntimeElementCompositeDefinition) entryChild.getChildByName("entry"); + List entries = entryChild.getAccessor().getValues(retVal); + if (entries != null) { + for (IBase nextEntry : entries) { + List entryBase = entryDef.getChildByName("base").getAccessor().getValues(nextEntry); + + if (entryBase == null || entryBase.isEmpty()) { + entryBase = base; + } + + if (entryBase != null && entryBase.size() > 0) { + IPrimitiveType baseType = (IPrimitiveType) entryBase.get(0); + + List entryResources = entryDef.getChildByName("resource").getAccessor().getValues(nextEntry); + if (entryResources != null && entryResources.size() > 0) { + IResource res = (IResource) entryResources.get(0); + RuntimeResourceDefinition resDef = myContext.getResourceDefinition(res); + String versionIdPart = res.getId().getVersionIdPart(); + if (isBlank(versionIdPart)) { + versionIdPart = ResourceMetadataKeyEnum.VERSION.get(res); + } + + res.setId(new IdDt(baseType.getValueAsString(), resDef.getName(), res.getId().getIdPart(), versionIdPart)); + } + + } + + } + } + + } + + return retVal; + } + @SuppressWarnings("cast") @Override public T parseResource(Class theResourceType, String theMessageString) { @@ -271,57 +321,6 @@ public abstract class BaseParser implements IParser { return parseResource(null, theReader); } - protected abstract T doParseResource(Class theResourceType, Reader theReader) throws DataFormatException; - - public T parseResource(Class theResourceType, Reader theReader) throws DataFormatException { - T retVal = doParseResource(theResourceType, theReader); - - RuntimeResourceDefinition def = myContext.getResourceDefinition(retVal); - if ("Bundle".equals(def.getName())) { - List base = def.getChildByName("base").getAccessor().getValues(retVal); - if (base != null && base.size() > 0) { - IPrimitiveType baseType = (IPrimitiveType) base.get(0); - IResource res = ((IResource)retVal); - res.setId(new IdDt(baseType.getValueAsString(), def.getName(), res.getId().getIdPart(), res.getId().getVersionIdPart())); - } - - BaseRuntimeChildDefinition entryChild = def.getChildByName("entry"); - BaseRuntimeElementCompositeDefinition entryDef = (BaseRuntimeElementCompositeDefinition) entryChild.getChildByName("entry"); - List entries = entryChild.getAccessor().getValues(retVal); - if (entries != null) { - for (IBase nextEntry : entries) { - List entryBase = entryDef.getChildByName("base").getAccessor().getValues(nextEntry); - - if (entryBase == null || entryBase.isEmpty()) { - entryBase = base; - } - - if (entryBase != null && entryBase.size() > 0) { - IPrimitiveType baseType = (IPrimitiveType) entryBase.get(0); - - List entryResources = entryDef.getChildByName("resource").getAccessor().getValues(nextEntry); - if (entryResources != null && entryResources.size() > 0) { - IResource res = (IResource) entryResources.get(0); - RuntimeResourceDefinition resDef = myContext.getResourceDefinition(res); - String versionIdPart = res.getId().getVersionIdPart(); - if (isBlank(versionIdPart)) { - versionIdPart = ResourceMetadataKeyEnum.VERSION.get(res); - } - - res.setId(new IdDt(baseType.getValueAsString(), resDef.getName(), res.getId().getIdPart(), versionIdPart)); - } - - } - - - } - } - - } - - return retVal; - } - @Override public IResource parseResource(String theMessageString) throws ConfigurationException, DataFormatException { return parseResource(null, theMessageString); @@ -354,6 +353,14 @@ public abstract class BaseParser implements IParser { throw new DataFormatException(nextChild + " has no child of type " + theType); } + protected static List extractMetadataListNotNull(IResource resource, ResourceMetadataKeyEnum> key) { + List securityLabels = key.get(resource); + if (securityLabels == null) { + securityLabels = Collections.emptyList(); + } + return securityLabels; + } + static class ContainedResources { private long myNextContainedId = 1; @@ -368,8 +375,8 @@ public abstract class BaseParser implements IParser { IdDt newId; if (theResource instanceof IResource && ((IResource) theResource).getId().isLocal()) { newId = ((IResource) theResource).getId(); - } else if (theResource instanceof IAnyResource && ((IAnyResource)theResource).getId() != null && ((IAnyResource)theResource).getId().startsWith("#")) { - newId = new IdDt(((IAnyResource)theResource).getId()); + } else if (theResource instanceof IAnyResource && ((IAnyResource) theResource).getId() != null && ((IAnyResource) theResource).getId().startsWith("#")) { + newId = new IdDt(((IAnyResource) theResource).getId()); } else { // TODO: make this configurable between the two below (and something else?) // newId = new IdDt(UUID.randomUUID().toString()); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java index 8a182324efe..99e5160b0ca 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java @@ -96,6 +96,7 @@ import ca.uhn.fhir.model.base.composite.BaseNarrativeDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; import ca.uhn.fhir.model.primitive.DecimalDt; import ca.uhn.fhir.model.primitive.IdDt; +import ca.uhn.fhir.model.primitive.InstantDt; import ca.uhn.fhir.model.primitive.IntegerDt; import ca.uhn.fhir.model.primitive.StringDt; import ca.uhn.fhir.model.primitive.XhtmlDt; @@ -671,14 +672,30 @@ public class JsonParser extends BaseParser implements IParser { if (myContext.getVersion().getVersion().isNewerThan(FhirVersionEnum.DSTU1) && theResource instanceof IResource) { IResource resource = (IResource) theResource; - List securityLabels = ResourceMetadataKeyEnum.SECURITY_LABELS.get(resource); - if (securityLabels == null) { - securityLabels = Collections.emptyList(); + + InstantDt updated = (InstantDt) resource.getResourceMetadata().get(ResourceMetadataKeyEnum.UPDATED); + IdDt resourceId = resource.getId(); + String versionIdPart = resourceId.getVersionIdPart(); + if (isBlank(versionIdPart)) { + versionIdPart = ResourceMetadataKeyEnum.VERSION.get(resource); } - if (!ElementUtil.isEmpty(resource.getId().getVersionIdPart(), ResourceMetadataKeyEnum.UPDATED.get(resource), securityLabels)) { + List securityLabels = extractMetadataListNotNull(resource, ResourceMetadataKeyEnum.SECURITY_LABELS); + List profiles = extractMetadataListNotNull(resource, ResourceMetadataKeyEnum.PROFILES); + TagList tags = ResourceMetadataKeyEnum.TAG_LIST.get(resource); + if (ElementUtil.isEmpty(versionIdPart, updated, securityLabels, profiles) == false) { theEventWriter.writeStartObject("meta"); writeOptionalTagWithTextNode(theEventWriter, "versionId", resource.getId().getVersionIdPart()); writeOptionalTagWithTextNode(theEventWriter, "lastUpdated", ResourceMetadataKeyEnum.UPDATED.get(resource)); + + if (profiles != null && profiles.isEmpty()==false) { + theEventWriter.writeStartArray("profile"); + for (IdDt profile : profiles) { + if (profile != null && isNotBlank(profile.getValue())) { + theEventWriter.write(profile.getValue()); + } + } + theEventWriter.writeEnd(); + } if (securityLabels.isEmpty()==false) { theEventWriter.writeStartArray("security"); @@ -690,6 +707,19 @@ public class JsonParser extends BaseParser implements IParser { } theEventWriter.writeEnd(); } + + if (tags != null && tags.isEmpty()==false) { + theEventWriter.writeStartArray("tag"); + for (Tag tag : tags) { + theEventWriter.writeStartObject(); + writeOptionalTagWithTextNode(theEventWriter, "system", tag.getScheme()); + writeOptionalTagWithTextNode(theEventWriter, "code", tag.getTerm()); + writeOptionalTagWithTextNode(theEventWriter, "display", tag.getLabel()); + theEventWriter.writeEnd(); + } + theEventWriter.writeEnd(); + } + theEventWriter.writeEnd(); //end meta } } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java index a29d6fac472..f6a7da0becd 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java @@ -1716,6 +1716,23 @@ class ParserState { BaseRuntimeElementCompositeDefinition codinfDef = (BaseRuntimeElementCompositeDefinition) myContext.getElementDefinition(securityLabel.getClass()); push(new SecurityLabelElementStateHapi(getPreResourceState(), codinfDef, securityLabel)); securityLabels.add(securityLabel); + } else if (theLocalPart.equals("profile")) { + @SuppressWarnings("unchecked") + List profiles = (List) myMap.get(ResourceMetadataKeyEnum.PROFILES); + if (profiles == null) { + profiles = new ArrayList(); + myMap.put(ResourceMetadataKeyEnum.PROFILES, profiles); + } + IdDt profile = new IdDt(); + push(new PrimitiveState(getPreResourceState(), profile)); + profiles.add(profile); + } else if (theLocalPart.equals("tag")) { + TagList tagList = (TagList) myMap.get(ResourceMetadataKeyEnum.TAG_LIST); + if (tagList == null) { + tagList = new TagList(); + myMap.put(ResourceMetadataKeyEnum.TAG_LIST, tagList); + } + push(new TagState(tagList)); } else { throw new DataFormatException("Unexpected element '" + theLocalPart + "' found in 'meta' element"); } @@ -2371,11 +2388,14 @@ class ParserState { @Override public void enteringNewElement(String theNamespaceURI, String theLocalPart) throws DataFormatException { - if (Tag.ATTR_TERM.equals(theLocalPart)) { + /* + * We allow for both the DSTU1 and DSTU2 names here + */ + if (Tag.ATTR_TERM.equals(theLocalPart) || "code".equals(theLocalPart)) { mySubState = TERM; - } else if (Tag.ATTR_SCHEME.equals(theLocalPart)) { + } else if (Tag.ATTR_SCHEME.equals(theLocalPart) || "system".equals(theLocalPart)) { mySubState = SCHEME; - } else if (Tag.ATTR_LABEL.equals(theLocalPart)) { + } else if (Tag.ATTR_LABEL.equals(theLocalPart) || "display".equals(theLocalPart)) { mySubState = LABEL; } else { throw new DataFormatException("Unexpected element: " + theLocalPart); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java index 80888fda4a6..06bba9720b0 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java @@ -86,6 +86,7 @@ import ca.uhn.fhir.model.primitive.StringDt; import ca.uhn.fhir.model.primitive.XhtmlDt; import ca.uhn.fhir.narrative.INarrativeGenerator; import ca.uhn.fhir.rest.server.Constants; +import ca.uhn.fhir.util.ElementUtil; import ca.uhn.fhir.util.NonPrettyPrintWriterWrapper; import ca.uhn.fhir.util.PrettyPrintWriterWrapper; import ca.uhn.fhir.util.XmlUtil; @@ -106,8 +107,7 @@ public class XmlParser extends BaseParser implements IParser { private boolean myPrettyPrint; /** - * Do not use this constructor, the recommended way to obtain a new instance of the XML parser is to invoke - * {@link FhirContext#newXmlParser()}. + * Do not use this constructor, the recommended way to obtain a new instance of the XML parser is to invoke {@link FhirContext#newXmlParser()}. */ public XmlParser(FhirContext theContext) { super(theContext); @@ -436,7 +436,8 @@ public class XmlParser extends BaseParser implements IParser { theEventWriter.close(); } - private void encodeChildElementToStreamWriter(IBaseResource theResource, XMLStreamWriter theEventWriter, IBase nextValue, String childName, BaseRuntimeElementDefinition childDef, String theExtensionUrl, boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeChildElementToStreamWriter(IBaseResource theResource, XMLStreamWriter theEventWriter, IBase nextValue, String childName, BaseRuntimeElementDefinition childDef, + String theExtensionUrl, boolean theIncludedResource) throws XMLStreamException, DataFormatException { if (nextValue.isEmpty()) { if (childDef.getChildType() == ChildTypeEnum.CONTAINED_RESOURCES && getContainedResources().isEmpty() == false && theIncludedResource == false) { // We still want to go in.. @@ -480,10 +481,9 @@ public class XmlParser extends BaseParser implements IParser { case CONTAINED_RESOURCES: { BaseContainedDt value = (BaseContainedDt) nextValue; /* - * Disable per #103 for (IResource next : value.getContainedResources()) { if - * (getContainedResources().getResourceId(next) != null) { continue; } - * theEventWriter.writeStartElement("contained"); encodeResourceToXmlStreamWriter(next, theEventWriter, - * true, fixContainedResourceId(next.getId().getValue())); theEventWriter.writeEndElement(); } + * Disable per #103 for (IResource next : value.getContainedResources()) { if (getContainedResources().getResourceId(next) != null) { continue; } + * theEventWriter.writeStartElement("contained"); encodeResourceToXmlStreamWriter(next, theEventWriter, true, fixContainedResourceId(next.getId().getValue())); + * theEventWriter.writeEndElement(); } */ for (IBaseResource next : getContainedResources().getContainedResources()) { IdDt resourceId = getContainedResources().getResourceId(next); @@ -515,7 +515,8 @@ public class XmlParser extends BaseParser implements IParser { } - private void encodeCompositeElementChildrenToStreamWriter(IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, List children, boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeCompositeElementChildrenToStreamWriter(IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, List children, + boolean theIncludedResource) throws XMLStreamException, DataFormatException { for (BaseRuntimeChildDefinition nextChild : children) { if (nextChild.getElementName().equals("extension") || nextChild.getElementName().equals("modifierExtension")) { continue; @@ -596,7 +597,8 @@ public class XmlParser extends BaseParser implements IParser { } } - private void encodeCompositeElementToStreamWriter(IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, BaseRuntimeElementCompositeDefinition theElementDefinition, boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeCompositeElementToStreamWriter(IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, BaseRuntimeElementCompositeDefinition theElementDefinition, + boolean theIncludedResource) throws XMLStreamException, DataFormatException { encodeExtensionsIfPresent(theResource, theEventWriter, theElement, theIncludedResource); encodeCompositeElementChildrenToStreamWriter(theResource, theElement, theEventWriter, theElementDefinition.getExtensions(), theIncludedResource); encodeCompositeElementChildrenToStreamWriter(theResource, theElement, theEventWriter, theElementDefinition.getChildren(), theIncludedResource); @@ -619,9 +621,8 @@ public class XmlParser extends BaseParser implements IParser { } /** - * This is just to work around the fact that casting java.util.List to - * java.util.List> seems to be rejected by the compiler - * some of the time. + * This is just to work around the fact that casting java.util.List to java.util.List> seems to be + * rejected by the compiler some of the time. */ private > List> toBaseExtensionList(final List theList) { List> retVal = new ArrayList>(theList.size()); @@ -644,10 +645,11 @@ public class XmlParser extends BaseParser implements IParser { } } - private void encodeResourceToStreamWriterInDstu2Format(RuntimeResourceDefinition theResDef, IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, BaseRuntimeElementCompositeDefinition resDef, boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeResourceToStreamWriterInDstu2Format(RuntimeResourceDefinition theResDef, IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, + BaseRuntimeElementCompositeDefinition resDef, boolean theIncludedResource) throws XMLStreamException, DataFormatException { /* - * DSTU2 requires extensions to come in a specific spot within the encoded content - This is a bit of a messy - * way to make that happen, but hopefully this won't matter as much once we use the HL7 structures + * DSTU2 requires extensions to come in a specific spot within the encoded content - This is a bit of a messy way to make that happen, but hopefully this won't matter as much once we use the + * HL7 structures */ List preExtensionChildren = new ArrayList(); @@ -743,26 +745,39 @@ public class XmlParser extends BaseParser implements IParser { InstantDt updated = (InstantDt) resource.getResourceMetadata().get(ResourceMetadataKeyEnum.UPDATED); IdDt resourceId = resource.getId(); - List securityLabels = ResourceMetadataKeyEnum.SECURITY_LABELS.get(resource); - if (securityLabels == null) { - securityLabels = Collections.emptyList(); + String versionIdPart = resourceId.getVersionIdPart(); + if (isBlank(versionIdPart)) { + versionIdPart = ResourceMetadataKeyEnum.VERSION.get(resource); } - if ((resourceId != null && isNotBlank(resourceId.getVersionIdPart())) || (updated != null && !updated.isEmpty()) || !securityLabels.isEmpty()) { + List securityLabels = extractMetadataListNotNull(resource, ResourceMetadataKeyEnum.SECURITY_LABELS); + List profiles = extractMetadataListNotNull(resource, ResourceMetadataKeyEnum.PROFILES); + TagList tags = ResourceMetadataKeyEnum.TAG_LIST.get(resource); + if (ElementUtil.isEmpty(versionIdPart, updated, securityLabels, profiles) == false) { theEventWriter.writeStartElement("meta"); - String versionIdPart = resourceId.getVersionIdPart(); - if (isBlank(versionIdPart)) { - versionIdPart = ResourceMetadataKeyEnum.VERSION.get(resource); - } writeOptionalTagWithValue(theEventWriter, "versionId", versionIdPart); if (updated != null) { writeOptionalTagWithValue(theEventWriter, "lastUpdated", updated.getValueAsString()); } + for (IdDt profile : profiles) { + theEventWriter.writeStartElement("profile"); + theEventWriter.writeAttribute("value", profile.getValue()); + theEventWriter.writeEndElement(); + } for (BaseCodingDt securityLabel : securityLabels) { theEventWriter.writeStartElement("security"); BaseRuntimeElementCompositeDefinition def = (BaseRuntimeElementCompositeDefinition) myContext.getElementDefinition(securityLabel.getClass()); encodeCompositeElementChildrenToStreamWriter(resource, securityLabel, theEventWriter, def.getChildren(), theContainedResource); theEventWriter.writeEndElement(); } + if (tags != null) { + for (Tag tag : tags) { + theEventWriter.writeStartElement("tag"); + writeOptionalTagWithValue(theEventWriter, "system", tag.getScheme()); + writeOptionalTagWithValue(theEventWriter, "code", tag.getTerm()); + writeOptionalTagWithValue(theEventWriter, "display", tag.getLabel()); + theEventWriter.writeEndElement(); + } + } theEventWriter.writeEndElement(); } @@ -829,7 +844,8 @@ public class XmlParser extends BaseParser implements IParser { } } - private void encodeUndeclaredExtensions(IBaseResource theResource, XMLStreamWriter theWriter, List> theExtensions, String tagName, boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeUndeclaredExtensions(IBaseResource theResource, XMLStreamWriter theWriter, List> theExtensions, String tagName, boolean theIncludedResource) + throws XMLStreamException, DataFormatException { for (IBaseExtension next : theExtensions) { if (next == null) { continue; diff --git a/hapi-fhir-jpaserver-uhnfhirtest/.settings/org.eclipse.wst.common.component b/hapi-fhir-jpaserver-uhnfhirtest/.settings/org.eclipse.wst.common.component index deee61d6d72..4c8fe67e1fe 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/.settings/org.eclipse.wst.common.component +++ b/hapi-fhir-jpaserver-uhnfhirtest/.settings/org.eclipse.wst.common.component @@ -5,16 +5,16 @@ - + uses - + uses - + uses - + uses diff --git a/hapi-fhir-structures-dstu2/.classpath b/hapi-fhir-structures-dstu2/.classpath index cea50ba942c..33dba1c9ddc 100644 --- a/hapi-fhir-structures-dstu2/.classpath +++ b/hapi-fhir-structures-dstu2/.classpath @@ -35,5 +35,6 @@ + diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java index 77332f11b7f..426b8400c72 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java @@ -19,7 +19,10 @@ import ca.uhn.fhir.context.ConfigurationException; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model.api.ExtensionDt; +import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; +import ca.uhn.fhir.model.api.Tag; +import ca.uhn.fhir.model.api.TagList; import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.dstu2.composite.CodingDt; import ca.uhn.fhir.model.dstu2.composite.HumanNameDt; @@ -50,6 +53,63 @@ public class JsonParserTest { assertEquals("{\"resourceType\":\"Binary\",\"id\":\"11\",\"meta\":{\"versionId\":\"22\"},\"contentType\":\"foo\",\"content\":\"AQIDBA==\"}", val); } + @Test + public void testEncodeAndParseMetaProfileAndTags() { + Patient p = new Patient(); + p.addName().addFamily("FAMILY"); + + List profiles = new ArrayList(); + profiles.add(new IdDt("http://foo/Profile1")); + profiles.add(new IdDt("http://foo/Profile2")); + ResourceMetadataKeyEnum.PROFILES.put(p, profiles); + + TagList tagList = new TagList(); + tagList.addTag("scheme1", "term1", "label1"); + tagList.addTag("scheme2", "term2", "label2"); + ResourceMetadataKeyEnum.TAG_LIST.put(p, tagList); + + String enc = ourCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(p); + ourLog.info(enc); + + //@formatter:off + assertThat(enc, stringContainsInOrder("\"meta\":{", + "\"profile\":[", + "\"http://foo/Profile1\",", + "\"http://foo/Profile2\"", + "],", + "\"tag\":[", + "{", + "\"system\":\"scheme1\",", + "\"code\":\"term1\",", + "\"display\":\"label1\"", + "},", + "{", + "\"system\":\"scheme2\",", + "\"code\":\"term2\",", + "\"display\":\"label2\"", + "}", + "]", + "},")); + //@formatter:on + + Patient parsed = ourCtx.newJsonParser().parseResource(Patient.class, enc); + List gotLabels = ResourceMetadataKeyEnum.PROFILES.get(parsed); + + assertEquals(2,gotLabels.size()); + + IdDt label = (IdDt) gotLabels.get(0); + assertEquals("http://foo/Profile1", label.getValue()); + label = (IdDt) gotLabels.get(1); + assertEquals("http://foo/Profile2", label.getValue()); + + tagList = ResourceMetadataKeyEnum.TAG_LIST.get(parsed); + assertEquals(2, tagList.size()); + + assertEquals(new Tag("scheme1", "term1", "label1"), tagList.get(0)); + assertEquals(new Tag("scheme2", "term2", "label2"), tagList.get(1)); + } + + @Test public void testEncodeAndParseSecurityLabels() { Patient p = new Patient(); @@ -351,7 +411,11 @@ public class JsonParserTest { FhirContext ctx = FhirContext.forDstu2(); Bundle b = ctx.newJsonParser().parseBundle(text); - assertEquals(Patient.class, b.getEntries().get(0).getResource().getClass()); + IResource patient = b.getEntries().get(0).getResource(); + assertEquals(Patient.class, patient.getClass()); + + assertNull(ResourceMetadataKeyEnum.TAG_LIST.get(patient)); + assertNull(ResourceMetadataKeyEnum.PROFILES.get(patient)); } @Test diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java index cdd46ee38a6..5a8ad8fac11 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java @@ -21,6 +21,8 @@ import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model.api.ExtensionDt; import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; +import ca.uhn.fhir.model.api.Tag; +import ca.uhn.fhir.model.api.TagList; import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.dstu2.composite.CodingDt; import ca.uhn.fhir.model.dstu2.composite.DurationDt; @@ -36,6 +38,7 @@ import ca.uhn.fhir.model.dstu2.resource.Patient; import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; import ca.uhn.fhir.model.primitive.DateDt; import ca.uhn.fhir.model.primitive.DateTimeDt; +import ca.uhn.fhir.model.primitive.IdDt; import ca.uhn.fhir.model.primitive.InstantDt; import ca.uhn.fhir.model.primitive.StringDt; @@ -86,7 +89,7 @@ public class XmlParserTest { "", "", "", - "", + "", "", "", "", @@ -116,6 +119,64 @@ public class XmlParserTest { assertEquals("ValueSet2", label.getValueSet().getReference().getValue()); } + @Test + public void testEncodeAndParseMetaProfileAndTags() { + Patient p = new Patient(); + p.addName().addFamily("FAMILY"); + + List profiles = new ArrayList(); + profiles.add(new IdDt("http://foo/Profile1")); + profiles.add(new IdDt("http://foo/Profile2")); + ResourceMetadataKeyEnum.PROFILES.put(p, profiles); + + TagList tagList = new TagList(); + tagList.addTag("scheme1", "term1", "label1"); + tagList.addTag("scheme2", "term2", "label2"); + ResourceMetadataKeyEnum.TAG_LIST.put(p, tagList); + + String enc = ourCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(p); + ourLog.info(enc); + + //@formatter:off + assertThat(enc, stringContainsInOrder("", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "")); + //@formatter:on + + Patient parsed = ourCtx.newXmlParser().parseResource(Patient.class, enc); + List gotLabels = ResourceMetadataKeyEnum.PROFILES.get(parsed); + + assertEquals(2,gotLabels.size()); + + IdDt label = (IdDt) gotLabels.get(0); + assertEquals("http://foo/Profile1", label.getValue()); + label = (IdDt) gotLabels.get(1); + assertEquals("http://foo/Profile2", label.getValue()); + + tagList = ResourceMetadataKeyEnum.TAG_LIST.get(parsed); + assertEquals(2, tagList.size()); + + assertEquals(new Tag("scheme1", "term1", "label1"), tagList.get(0)); + assertEquals(new Tag("scheme2", "term2", "label2"), tagList.get(1)); + } @Test public void testDuration() { diff --git a/hapi-fhir-structures-dstu2/src/test/resources/xml-bundle.xml b/hapi-fhir-structures-dstu2/src/test/resources/xml-bundle.xml index 166ee046452..545fd9b061a 100644 --- a/hapi-fhir-structures-dstu2/src/test/resources/xml-bundle.xml +++ b/hapi-fhir-structures-dstu2/src/test/resources/xml-bundle.xml @@ -1 +1,490 @@ -
John SMITH
Identifier12345
Antonie GRüNLICH
Identifier9.691716008306988
Date of birth06 August 1827
John SMITH
Identifier12345
Antonie GRÜNLICH
Identifier9.8673468352242
Date of birth06 August 1827
Antonie GRÜNLICH
Identifier123321123
Date of birth06 August 1827
Homer J SIMPSON
Identifier7000135
Donald DUCK
IdentifierUHN MRN 7000135
Address10 Raut Street
VICTORIA BC Can
Date of birth01 June 1980
Antonie GRÜNLICH
Identifier0.833055738590065
Date of birth06 August 1827
Antonie GRÜNLICH
Identifier6.069012477670965
Date of birth06 August 1827
\ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ John + SMITH +
+ + + + + + + +
Identifier12345
+
+
+ + + + + + + + +
+
+
+ + + + + + + + + + +
+
+ Antonie + GRüNLICH +
+ + + + + + + + + + + +
Identifier9.691716008306988
Date of birth + 06 August 1827 +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+
+ John + SMITH +
+ + + + + + + +
Identifier12345
+
+
+ + + + + + + + +
+
+
+ + + + + + + + + + +
+
+ Antonie + GRÜNLICH +
+ + + + + + + + + + + +
Identifier9.8673468352242
Date of birth + 06 August 1827 +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+
+ Antonie + GRÜNLICH +
+ + + + + + + + + + + +
Identifier123321123
Date of birth + 06 August 1827 +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+
+ Homer J + SIMPSON +
+ + + + + + + +
Identifier7000135
+
+
+ + + + + + + + + +
+
+
+ + + + + + + + + + +
+
+ Donald + DUCK +
+ + + + + + + + + + + + + + + +
IdentifierUHN MRN 7000135
Address + 10 Raut Street +
+ VICTORIA + BC + Can +
Date of birth + 01 June 1980 +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + +
+
+
+ + + + + + + + + + +
+
+ Antonie + GRÜNLICH +
+ + + + + + + + + + + +
Identifier0.833055738590065
Date of birth + 06 August 1827 +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+
+ Antonie + GRÜNLICH +
+ + + + + + + + + + + +
Identifier6.069012477670965
Date of birth + 06 August 1827 +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+
+
\ No newline at end of file diff --git a/hapi-tinder-plugin/pom.xml b/hapi-tinder-plugin/pom.xml index bb08257ece6..54ca7ac4ee5 100644 --- a/hapi-tinder-plugin/pom.xml +++ b/hapi-tinder-plugin/pom.xml @@ -22,17 +22,22 @@ 1.0-SNAPSHOT
ca.uhn.hapi.fhir hapi-fhir-structures-dstu - 0.8 + 0.9 ca.uhn.hapi.fhir - hapi-fhir-structures-dev - 0.8 + hapi-fhir-structures-dstu2 + 0.9 - --> org.apache.velocity diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java deleted file mode 100644 index 8bdbcf72b7f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java +++ /dev/null @@ -1,125 +0,0 @@ -package ca.uhn.fhir.model.dev; - -/* - * #%L - * HAPI FHIR Structures - DEV (FHIR Latest) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.io.InputStream; - -import org.apache.commons.lang3.StringUtils; -import org.hl7.fhir.instance.model.IBaseResource; -import org.hl7.fhir.instance.model.api.IBaseExtension; - -import ca.uhn.fhir.context.ConfigurationException; -import ca.uhn.fhir.context.FhirContext; -import ca.uhn.fhir.context.FhirVersionEnum; -import ca.uhn.fhir.context.RuntimeResourceDefinition; -import ca.uhn.fhir.model.api.IFhirVersion; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.base.composite.BaseCodingDt; -import ca.uhn.fhir.model.base.composite.BaseContainedDt; -import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.composite.ContainedDt; -import ca.uhn.fhir.model.dev.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dev.resource.Profile; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.rest.server.IResourceProvider; -import ca.uhn.fhir.rest.server.IServerConformanceProvider; -import ca.uhn.fhir.rest.server.IVersionSpecificBundleFactory; -import ca.uhn.fhir.rest.server.RestfulServer; - -public class FhirDev implements IFhirVersion { - - private String myId; - - - @Override - public IResource generateProfile(RuntimeResourceDefinition theRuntimeResourceDefinition, String theServerBase) { - Profile retVal = new Profile(); - - RuntimeResourceDefinition def = theRuntimeResourceDefinition; - - myId = def.getId(); - if (StringUtils.isBlank(myId)) { - myId = theRuntimeResourceDefinition.getName().toLowerCase(); - } - - retVal.setId(new IdDt(myId)); - return retVal; - } - - - @Override - public FhirVersionEnum getVersion() { - return FhirVersionEnum.DEV; - } - - @Override - public InputStream getFhirVersionPropertiesFile() { - InputStream str = FhirDev.class.getResourceAsStream("/ca/uhn/fhir/model/dev/fhirversion.properties"); - if (str == null) { - str = FhirDev.class.getResourceAsStream("ca/uhn/fhir/model/dev/fhirversion.properties"); - } - if (str == null) { - throw new ConfigurationException("Can not find model property file on classpath: " + "/ca/uhn/fhir/model/dev/model.properties"); - } - return str; - } - - @Override - public String getPathToSchemaDefinitions() { - return "ca/uhn/fhir/model/dev/schema"; - } - - - @Override - public Class getResourceReferenceType() { - return ResourceReferenceDt.class; - } - - @Override - public Class getContainedType() { - return ContainedDt.class; - } - - - @Override - public IResourceProvider createServerProfilesProvider(RestfulServer theRestfulServer) { - throw new UnsupportedOperationException(); - } - - - @Override - public IServerConformanceProvider createServerConformanceProvider(RestfulServer theRestfulServer) { - throw new UnsupportedOperationException(); - } - - - @Override - public BaseCodingDt newCodingDt() { - return new CodingDt(); - } - - @Override - public IVersionSpecificBundleFactory newBundleFactory(FhirContext theContext) { - throw new UnsupportedOperationException(); - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AddressDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AddressDt.java deleted file mode 100644 index 6ebabc2179f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AddressDt.java +++ /dev/null @@ -1,607 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.ICompositeDatatype; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.StringDt; - -/** - * HAPI/FHIR AddressDt Datatype - * (Address) - * - *

- * Definition: - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world - *

- * - *

- * Requirements: - * Need to be able to record postal addresses, along with notes about their use - *

- */ -@DatatypeDef(name="AddressDt") -public class AddressDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public AddressDt() { - // nothing - } - - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Address.use", - formalDefinition="The purpose of this address" - ) - private BoundCodeDt myUse; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Address.text", - formalDefinition="A full text representation of the address" - ) - private StringDt myText; - - @Child(name="line", type=StringDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Address.line", - formalDefinition="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information" - ) - private java.util.List myLine; - - @Child(name="city", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Address.city", - formalDefinition="The name of the city, town, village or other community or delivery center." - ) - private StringDt myCity; - - @Child(name="state", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Address.state", - formalDefinition="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." - ) - private StringDt myState; - - @Child(name="postalCode", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Address.postalCode", - formalDefinition="A postal code designating a region defined by the postal service." - ) - private StringDt myPostalCode; - - @Child(name="country", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Address.country", - formalDefinition="Country - a nation as commonly understood or generally accepted" - ) - private StringDt myCountry; - - @Child(name="period", type=PeriodDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Address.period", - formalDefinition="Time period when address was/is in use" - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myLine, myCity, myState, myPostalCode, myCountry, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myText, myLine, myCity, myState, myPostalCode, myCountry, myPeriod); - } - - /** - * Gets the value(s) for use (Address.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this address - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(AddressUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (Address.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this address - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use (Address.use) - * - *

- * Definition: - * The purpose of this address - *

- */ - public AddressDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use (Address.use) - * - *

- * Definition: - * The purpose of this address - *

- */ - public AddressDt setUse(AddressUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for text (Address.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the address - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (Address.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the address - *

- */ - public String getText() { - return getTextElement().getValue(); - } - - /** - * Sets the value(s) for text (Address.text) - * - *

- * Definition: - * A full text representation of the address - *

- */ - public AddressDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - - - /** - * Sets the value for text (Address.text) - * - *

- * Definition: - * A full text representation of the address - *

- */ - public AddressDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for line (Address.line). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public java.util.List getLine() { - if (myLine == null) { - myLine = new java.util.ArrayList(); - } - return myLine; - } - - /** - * Sets the value(s) for line (Address.line) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public AddressDt setLine(java.util.List theValue) { - myLine = theValue; - return this; - } - - - - /** - * Adds and returns a new value for line (Address.line) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public StringDt addLine() { - StringDt newType = new StringDt(); - getLine().add(newType); - return newType; - } - - /** - * Gets the first repetition for line (Address.line), - * creating it if it does not already exist. - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public StringDt getLineFirstRep() { - if (getLine().isEmpty()) { - return addLine(); - } - return getLine().get(0); - } - /** - * Adds a new value for line (Address.line) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AddressDt addLine( String theString) { - if (myLine == null) { - myLine = new java.util.ArrayList(); - } - myLine.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for city (Address.city). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public StringDt getCityElement() { - if (myCity == null) { - myCity = new StringDt(); - } - return myCity; - } - - - /** - * Gets the value(s) for city (Address.city). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public String getCity() { - return getCityElement().getValue(); - } - - /** - * Sets the value(s) for city (Address.city) - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public AddressDt setCity(StringDt theValue) { - myCity = theValue; - return this; - } - - - - /** - * Sets the value for city (Address.city) - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public AddressDt setCity( String theString) { - myCity = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for state (Address.state). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public StringDt getStateElement() { - if (myState == null) { - myState = new StringDt(); - } - return myState; - } - - - /** - * Gets the value(s) for state (Address.state). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public String getState() { - return getStateElement().getValue(); - } - - /** - * Sets the value(s) for state (Address.state) - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public AddressDt setState(StringDt theValue) { - myState = theValue; - return this; - } - - - - /** - * Sets the value for state (Address.state) - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public AddressDt setState( String theString) { - myState = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for postalCode (Address.postalCode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public StringDt getPostalCodeElement() { - if (myPostalCode == null) { - myPostalCode = new StringDt(); - } - return myPostalCode; - } - - - /** - * Gets the value(s) for postalCode (Address.postalCode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public String getPostalCode() { - return getPostalCodeElement().getValue(); - } - - /** - * Sets the value(s) for postalCode (Address.postalCode) - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public AddressDt setPostalCode(StringDt theValue) { - myPostalCode = theValue; - return this; - } - - - - /** - * Sets the value for postalCode (Address.postalCode) - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public AddressDt setPostalCode( String theString) { - myPostalCode = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for country (Address.country). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public StringDt getCountryElement() { - if (myCountry == null) { - myCountry = new StringDt(); - } - return myCountry; - } - - - /** - * Gets the value(s) for country (Address.country). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public String getCountry() { - return getCountryElement().getValue(); - } - - /** - * Sets the value(s) for country (Address.country) - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public AddressDt setCountry(StringDt theValue) { - myCountry = theValue; - return this; - } - - - - /** - * Sets the value for country (Address.country) - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public AddressDt setCountry( String theString) { - myCountry = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for period (Address.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period when address was/is in use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (Address.period) - * - *

- * Definition: - * Time period when address was/is in use - *

- */ - public AddressDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AgeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AgeDt.java deleted file mode 100644 index a1b80979f17..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AgeDt.java +++ /dev/null @@ -1,28 +0,0 @@ -package ca.uhn.fhir.model.dev.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; - -/* - * #%L - * HAPI FHIR Structures - DEV (FHIR Latest) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="AgeDt") -public class AgeDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AttachmentDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AttachmentDt.java deleted file mode 100644 index 5e3d286aa24..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/AttachmentDt.java +++ /dev/null @@ -1,577 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR AttachmentDt Datatype - * (Attachment) - * - *

- * Definition: - * For referring to data content defined in other formats. - *

- * - *

- * Requirements: - * Many models need to include data defined in other specifications that is complex and opaque to the healthcare model. This includes documents, media recordings, structured data, etc. - *

- */ -@DatatypeDef(name="AttachmentDt") -public class AttachmentDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public AttachmentDt() { - // nothing - } - - - @Child(name="contentType", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Attachment.contentType", - formalDefinition="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate" - ) - private CodeDt myContentType; - - @Child(name="language", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Attachment.language", - formalDefinition="The human language of the content. The value can be any valid value according to BCP 47" - ) - private CodeDt myLanguage; - - @Child(name="data", type=Base64BinaryDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Attachment.data", - formalDefinition="The actual data of the attachment - a sequence of bytes. In XML, represented using base64" - ) - private Base64BinaryDt myData; - - @Child(name="url", type=UriDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Attachment.url", - formalDefinition="An alternative location where the data can be accessed" - ) - private UriDt myUrl; - - @Child(name="size", type=IntegerDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Attachment.size", - formalDefinition="The number of bytes of data that make up this attachment." - ) - private IntegerDt mySize; - - @Child(name="hash", type=Base64BinaryDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Attachment.hash", - formalDefinition="The calculated hash of the data using SHA-1. Represented using base64" - ) - private Base64BinaryDt myHash; - - @Child(name="title", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Attachment.title", - formalDefinition="A label or set of text to display in place of the data" - ) - private StringDt myTitle; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle); - } - - /** - * Gets the value(s) for contentType (Attachment.contentType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public CodeDt getContentTypeElement() { - if (myContentType == null) { - myContentType = new CodeDt(); - } - return myContentType; - } - - - /** - * Gets the value(s) for contentType (Attachment.contentType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public String getContentType() { - return getContentTypeElement().getValue(); - } - - /** - * Sets the value(s) for contentType (Attachment.contentType) - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public AttachmentDt setContentType(CodeDt theValue) { - myContentType = theValue; - return this; - } - - - - /** - * Sets the value for contentType (Attachment.contentType) - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public AttachmentDt setContentType( String theCode) { - myContentType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for language (Attachment.language). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public CodeDt getLanguageElement() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - - /** - * Gets the value(s) for language (Attachment.language). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public String getLanguage() { - return getLanguageElement().getValue(); - } - - /** - * Sets the value(s) for language (Attachment.language) - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public AttachmentDt setLanguage(CodeDt theValue) { - myLanguage = theValue; - return this; - } - - - - /** - * Sets the value for language (Attachment.language) - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public AttachmentDt setLanguage( String theCode) { - myLanguage = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for data (Attachment.data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public Base64BinaryDt getDataElement() { - if (myData == null) { - myData = new Base64BinaryDt(); - } - return myData; - } - - - /** - * Gets the value(s) for data (Attachment.data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public byte[] getData() { - return getDataElement().getValue(); - } - - /** - * Sets the value(s) for data (Attachment.data) - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public AttachmentDt setData(Base64BinaryDt theValue) { - myData = theValue; - return this; - } - - - - /** - * Sets the value for data (Attachment.data) - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public AttachmentDt setData( byte[] theBytes) { - myData = new Base64BinaryDt(theBytes); - return this; - } - - - /** - * Gets the value(s) for url (Attachment.url). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (Attachment.url). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public String getUrl() { - return getUrlElement().getValue(); - } - - /** - * Sets the value(s) for url (Attachment.url) - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public AttachmentDt setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - - - /** - * Sets the value for url (Attachment.url) - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public AttachmentDt setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for size (Attachment.size). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public IntegerDt getSizeElement() { - if (mySize == null) { - mySize = new IntegerDt(); - } - return mySize; - } - - - /** - * Gets the value(s) for size (Attachment.size). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public Integer getSize() { - return getSizeElement().getValue(); - } - - /** - * Sets the value(s) for size (Attachment.size) - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public AttachmentDt setSize(IntegerDt theValue) { - mySize = theValue; - return this; - } - - - - /** - * Sets the value for size (Attachment.size) - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public AttachmentDt setSize( int theInteger) { - mySize = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for hash (Attachment.hash). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public Base64BinaryDt getHashElement() { - if (myHash == null) { - myHash = new Base64BinaryDt(); - } - return myHash; - } - - - /** - * Gets the value(s) for hash (Attachment.hash). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public byte[] getHash() { - return getHashElement().getValue(); - } - - /** - * Sets the value(s) for hash (Attachment.hash) - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public AttachmentDt setHash(Base64BinaryDt theValue) { - myHash = theValue; - return this; - } - - - - /** - * Sets the value for hash (Attachment.hash) - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public AttachmentDt setHash( byte[] theBytes) { - myHash = new Base64BinaryDt(theBytes); - return this; - } - - - /** - * Gets the value(s) for title (Attachment.title). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public StringDt getTitleElement() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Gets the value(s) for title (Attachment.title). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public String getTitle() { - return getTitleElement().getValue(); - } - - /** - * Sets the value(s) for title (Attachment.title) - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public AttachmentDt setTitle(StringDt theValue) { - myTitle = theValue; - return this; - } - - - - /** - * Sets the value for title (Attachment.title) - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public AttachmentDt setTitle( String theString) { - myTitle = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/BoundCodeableConceptDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/BoundCodeableConceptDt.java deleted file mode 100644 index 912adabd08b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/BoundCodeableConceptDt.java +++ /dev/null @@ -1,123 +0,0 @@ -package ca.uhn.fhir.model.dev.composite; - -/* - * #%L - * HAPI FHIR Structures - DEV (FHIR Latest) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import static org.apache.commons.lang3.StringUtils.defaultString; - -import java.util.Collection; -import java.util.HashSet; -import java.util.Set; - -import ca.uhn.fhir.model.api.IBoundCodeableConcept; -import ca.uhn.fhir.model.api.IValueSetEnumBinder; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; - -@DatatypeDef(name = "CodeableConcept", isSpecialization = true) -public class BoundCodeableConceptDt> extends CodeableConceptDt implements IBoundCodeableConcept { - - private IValueSetEnumBinder myBinder; - - /** - * Constructor - */ - public BoundCodeableConceptDt(IValueSetEnumBinder theBinder) { - myBinder = theBinder; - } - - /** - * Constructor - */ - public BoundCodeableConceptDt(IValueSetEnumBinder theBinder, T theValue) { - myBinder = theBinder; - setValueAsEnum(theValue); - } - - /** - * Constructor - */ - public BoundCodeableConceptDt(IValueSetEnumBinder theBinder, Collection theValues) { - myBinder = theBinder; - setValueAsEnum(theValues); - } - - /** - * Sets the {@link #getCoding()} to contain a coding with the code and - * system defined by the given enumerated types, AND clearing any existing - * codings first. If theValue is null, existing codings are cleared and no - * codings are added. - * - * @param theValues - * The value to add, or null - */ - public void setValueAsEnum(Collection theValues) { - getCoding().clear(); - if (theValues != null) { - for (T next : theValues) { - getCoding().add(new CodingDt(myBinder.toSystemString(next), myBinder.toCodeString(next))); - } - } - } - - /** - * Sets the {@link #getCoding()} to contain a coding with the code and - * system defined by the given enumerated type, AND clearing any existing - * codings first. If theValue is null, existing codings are cleared and no - * codings are added. - * - * @param theValue - * The value to add, or null - */ - public void setValueAsEnum(T theValue) { - getCoding().clear(); - if (theValue == null) { - return; - } - getCoding().add(new CodingDt(myBinder.toSystemString(theValue), myBinder.toCodeString(theValue))); - } - - /** - * Loops through the {@link #getCoding() codings} in this codeable concept - * and returns the first bound enumerated type that matches. Use - * caution using this method, see the return description for more - * information. - * - * @return Returns the bound enumerated type, or null if none - * are found. Note that a null return value doesn't neccesarily - * imply that this Codeable Concept has no codes, only that it has - * no codes that match the enum. - */ - public Set getValueAsEnum() { - Set retVal = new HashSet(); - for (CodingDt next : getCoding()) { - if (next == null) { - continue; - } - T nextT = myBinder.fromCodeString(defaultString(next.getCodeElement().getValue()), defaultString(next.getSystemElement().getValueAsString())); - if (nextT != null) { - retVal.add(nextT); - } else { - // TODO: throw special exception type? - } - } - return retVal; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CodeableConceptDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CodeableConceptDt.java deleted file mode 100644 index 1428bcdecba..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CodeableConceptDt.java +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR CodeableConceptDt Datatype - * (CodeableConcept) - * - *

- * Definition: - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text - *

- * - *

- * Requirements: - * This is a common pattern in healthcare - a concept that may be defined by one or more codes from formal definitions including LOINC and SNOMED CT, and/or defined by the provision of text that captures a human sense of the concept - *

- */ -@DatatypeDef(name="CodeableConceptDt") -public class CodeableConceptDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public CodeableConceptDt() { - // nothing - } - - /** - * Constructor which creates a CodeableConceptDt with one coding repetition, containing - * the given system and code - */ - public CodeableConceptDt(String theSystem, String theCode) { - addCoding().setSystem(theSystem).setCode(theCode); - } - - @Child(name="coding", type=CodingDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="CodeableConcept.coding", - formalDefinition="A reference to a code defined by a terminology system" - ) - private java.util.List myCoding; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="CodeableConcept.text", - formalDefinition="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user" - ) - private StringDt myText; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCoding, myText); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCoding, myText); - } - - /** - * Gets the value(s) for coding (CodeableConcept.coding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public java.util.List getCoding() { - if (myCoding == null) { - myCoding = new java.util.ArrayList(); - } - return myCoding; - } - - /** - * Sets the value(s) for coding (CodeableConcept.coding) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodeableConceptDt setCoding(java.util.List theValue) { - myCoding = theValue; - return this; - } - - - - /** - * Adds and returns a new value for coding (CodeableConcept.coding) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodingDt addCoding() { - CodingDt newType = new CodingDt(); - getCoding().add(newType); - return newType; - } - - /** - * Gets the first repetition for coding (CodeableConcept.coding), - * creating it if it does not already exist. - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodingDt getCodingFirstRep() { - if (getCoding().isEmpty()) { - return addCoding(); - } - return getCoding().get(0); - } - - /** - * Gets the value(s) for text (CodeableConcept.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (CodeableConcept.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public String getText() { - return getTextElement().getValue(); - } - - /** - * Sets the value(s) for text (CodeableConcept.text) - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public CodeableConceptDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - - - /** - * Sets the value for text (CodeableConcept.text) - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public CodeableConceptDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CodingDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CodingDt.java deleted file mode 100644 index 47926ef29be..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CodingDt.java +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR CodingDt Datatype - * (Coding) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- * - *

- * Requirements: - * References to codes are very common in healthcare models - *

- */ -@DatatypeDef(name="CodingDt") -public class CodingDt - extends BaseCodingDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public CodingDt() { - // nothing - } - - /** - * Creates a new Coding with the given system and code - */ - public CodingDt(String theSystem, String theCode) { - setSystem(theSystem); - setCode(theCode); - } - - /** - * Copy constructor: Creates a new Coding with the system and code copied out of the given coding - */ - public CodingDt(BaseCodingDt theCoding) { - this(theCoding.getSystemElement().getValueAsString(), theCoding.getCodeElement().getValue()); - } - - - @Child(name="system", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Coding.system", - formalDefinition="The identification of the code system that defines the meaning of the symbol in the code." - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Coding.version", - formalDefinition="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged" - ) - private StringDt myVersion; - - @Child(name="code", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Coding.code", - formalDefinition="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Coding.display", - formalDefinition="A representation of the meaning of the code in the system, following the rules of the system." - ) - private StringDt myDisplay; - - @Child(name="primary", type=BooleanDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Coding.primary", - formalDefinition="Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)" - ) - private BooleanDt myPrimary; - - @Child(name="valueSet", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dev.resource.ValueSet.class }) - @Description( - shortDefinition="Coding.valueSet", - formalDefinition="The set of possible coded values this coding was chosen from or constrained by" - ) - private ResourceReferenceDt myValueSet; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet); - } - - /** - * Gets the value(s) for system (Coding.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (Coding.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system (Coding.system) - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public CodingDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system (Coding.system) - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public CodingDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (Coding.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Coding.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version (Coding.version) - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public CodingDt setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version (Coding.version) - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public CodingDt setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (Coding.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Coding.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code (Coding.code) - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodingDt setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code (Coding.code) - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodingDt setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (Coding.display). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Coding.display). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display (Coding.display) - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public CodingDt setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display (Coding.display) - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public CodingDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for primary (Coding.primary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public BooleanDt getPrimaryElement() { - if (myPrimary == null) { - myPrimary = new BooleanDt(); - } - return myPrimary; - } - - - /** - * Gets the value(s) for primary (Coding.primary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public Boolean getPrimary() { - return getPrimaryElement().getValue(); - } - - /** - * Sets the value(s) for primary (Coding.primary) - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public CodingDt setPrimary(BooleanDt theValue) { - myPrimary = theValue; - return this; - } - - - - /** - * Sets the value for primary (Coding.primary) - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public CodingDt setPrimary( boolean theBoolean) { - myPrimary = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for valueSet (Coding.valueSet). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

- */ - public ResourceReferenceDt getValueSet() { - if (myValueSet == null) { - myValueSet = new ResourceReferenceDt(); - } - return myValueSet; - } - - /** - * Sets the value(s) for valueSet (Coding.valueSet) - * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

- */ - public CodingDt setValueSet(ResourceReferenceDt theValue) { - myValueSet = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ContactPointDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ContactPointDt.java deleted file mode 100644 index 6757b46ffea..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ContactPointDt.java +++ /dev/null @@ -1,343 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR ContactPointDt Datatype - * (ContactPoint) - * - *

- * Definition: - * Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc. - *

- * - *

- * Requirements: - * Need to track phone, fax, mobile, sms numbers, email addresses, twitter tags, etc. - *

- */ -@DatatypeDef(name="ContactPointDt") -public class ContactPointDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ContactPointDt() { - // nothing - } - - - @Child(name="system", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="ContactPoint.system", - formalDefinition="Telecommunications form for contact point - what communications system is required to make use of the contact" - ) - private BoundCodeDt mySystem; - - @Child(name="value", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="ContactPoint.value", - formalDefinition="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)." - ) - private StringDt myValue; - - @Child(name="use", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="ContactPoint.use", - formalDefinition="Identifies the purpose for the contact point" - ) - private BoundCodeDt myUse; - - @Child(name="period", type=PeriodDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="ContactPoint.period", - formalDefinition="Time period when the contact point was/is in use" - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myValue, myUse, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myValue, myUse, myPeriod); - } - - /** - * Gets the value(s) for system (ContactPoint.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Telecommunications form for contact point - what communications system is required to make use of the contact - *

- */ - public BoundCodeDt getSystemElement() { - if (mySystem == null) { - mySystem = new BoundCodeDt(ContactPointSystemEnum.VALUESET_BINDER); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (ContactPoint.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Telecommunications form for contact point - what communications system is required to make use of the contact - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system (ContactPoint.system) - * - *

- * Definition: - * Telecommunications form for contact point - what communications system is required to make use of the contact - *

- */ - public ContactPointDt setSystem(BoundCodeDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value(s) for system (ContactPoint.system) - * - *

- * Definition: - * Telecommunications form for contact point - what communications system is required to make use of the contact - *

- */ - public ContactPointDt setSystem(ContactPointSystemEnum theValue) { - getSystemElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for value (ContactPoint.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (ContactPoint.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public String getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value (ContactPoint.value) - * - *

- * Definition: - * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public ContactPointDt setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value (ContactPoint.value) - * - *

- * Definition: - * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public ContactPointDt setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for use (ContactPoint.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for the contact point - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(ContactPointUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (ContactPoint.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for the contact point - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use (ContactPoint.use) - * - *

- * Definition: - * Identifies the purpose for the contact point - *

- */ - public ContactPointDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use (ContactPoint.use) - * - *

- * Definition: - * Identifies the purpose for the contact point - *

- */ - public ContactPointDt setUse(ContactPointUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for period (ContactPoint.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period when the contact point was/is in use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (ContactPoint.period) - * - *

- * Definition: - * Time period when the contact point was/is in use - *

- */ - public ContactPointDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ContainedDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ContainedDt.java deleted file mode 100644 index 992800188b3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ContainedDt.java +++ /dev/null @@ -1,53 +0,0 @@ -package ca.uhn.fhir.model.dev.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.ArrayList; -import java.util.List; - -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.base.composite.BaseContainedDt; - -@DatatypeDef(name = "contained") -public class ContainedDt extends BaseContainedDt { - - @Child(name = "resource", type = IResource.class, order = 0, min = 0, max = Child.MAX_UNLIMITED) - private List myContainedResources; - - public List getContainedResources() { - if (myContainedResources == null) { - myContainedResources = new ArrayList(); - } - return myContainedResources; - } - - public void setContainedResources(List theContainedResources) { - myContainedResources = theContainedResources; - } - - @Override - public boolean isEmpty() { - return myContainedResources == null || myContainedResources.size() == 0; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CountDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CountDt.java deleted file mode 100644 index 5f10f1aceda..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/CountDt.java +++ /dev/null @@ -1,28 +0,0 @@ -package ca.uhn.fhir.model.dev.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; - -/* - * #%L - * HAPI FHIR Structures - DEV (FHIR Latest) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="CountDt") -public class CountDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/DistanceDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/DistanceDt.java deleted file mode 100644 index fa5c50b964c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/DistanceDt.java +++ /dev/null @@ -1,28 +0,0 @@ -package ca.uhn.fhir.model.dev.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; - -/* - * #%L - * HAPI FHIR Structures - DEV (FHIR Latest) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="DistanceDt") -public class DistanceDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/DurationDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/DurationDt.java deleted file mode 100644 index e45aa7bc537..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/DurationDt.java +++ /dev/null @@ -1,28 +0,0 @@ -package ca.uhn.fhir.model.dev.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; - -/* - * #%L - * HAPI FHIR Structures - DEV (FHIR Latest) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="DurationDt") -public class DurationDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ElementDefinitionDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ElementDefinitionDt.java deleted file mode 100644 index 5143739dae2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ElementDefinitionDt.java +++ /dev/null @@ -1,3212 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR ElementDefinitionDt Datatype - * (ElementDefinition) - * - *

- * Definition: - * Captures constraints on each element within the resource, profile, or extension - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="ElementDefinitionDt") -public class ElementDefinitionDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ElementDefinitionDt() { - // nothing - } - - - @Child(name="path", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.path", - formalDefinition="The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension" - ) - private StringDt myPath; - - @Child(name="representation", type=CodeDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.representation", - formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case" - ) - private java.util.List> myRepresentation; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.name", - formalDefinition="The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element" - ) - private StringDt myName; - - @Child(name="slicing", order=3, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.slicing", - formalDefinition="Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)" - ) - private Slicing mySlicing; - - @Child(name="short", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.short", - formalDefinition="A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification)" - ) - private StringDt myShort; - - @Child(name="formal", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.formal", - formalDefinition="The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource" - ) - private StringDt myFormal; - - @Child(name="comments", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.comments", - formalDefinition="Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc." - ) - private StringDt myComments; - - @Child(name="requirements", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.requirements", - formalDefinition="Explains why this element is needed and why it's been constrained as it has" - ) - private StringDt myRequirements; - - @Child(name="synonym", type=StringDt.class, order=8, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.synonym", - formalDefinition="Identifies additional names by which this element might also be known" - ) - private java.util.List mySynonym; - - @Child(name="min", type=IntegerDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.min", - formalDefinition="The minimum number of times this element SHALL appear in the instance" - ) - private IntegerDt myMin; - - @Child(name="max", type=StringDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.max", - formalDefinition="The maximum number of times this element is permitted to appear in the instance" - ) - private StringDt myMax; - - @Child(name="type", order=11, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.type", - formalDefinition="The data type or resource that the value of this element is permitted to be" - ) - private java.util.List myType; - - @Child(name="nameReference", type=StringDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.nameReference", - formalDefinition="Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element" - ) - private StringDt myNameReference; - - @Child(name="defaultValue", type=IDatatype.class, order=13, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.defaultValue[x]", - formalDefinition="The value that should be used if there is no value stated in the instance" - ) - private IDatatype myDefaultValue; - - @Child(name="meaningWhenMissing", type=StringDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.meaningWhenMissing", - formalDefinition="The Implicit meaning that is to be understood when this element is missing" - ) - private StringDt myMeaningWhenMissing; - - @Child(name="fixed", type=IDatatype.class, order=15, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.fixed[x]", - formalDefinition="Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing" - ) - private IDatatype myFixed; - - @Child(name="pattern", type=IDatatype.class, order=16, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.pattern[x]", - formalDefinition="Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.)" - ) - private IDatatype myPattern; - - @Child(name="example", type=IDatatype.class, order=17, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.example[x]", - formalDefinition="An example value for this element" - ) - private IDatatype myExample; - - @Child(name="maxLength", type=IntegerDt.class, order=18, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.maxLength", - formalDefinition="Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element" - ) - private IntegerDt myMaxLength; - - @Child(name="condition", type=IdDt.class, order=19, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.condition", - formalDefinition="A reference to an invariant that may make additional statements about the cardinality or value in the instance" - ) - private java.util.List myCondition; - - @Child(name="constraint", order=20, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.constraint", - formalDefinition="Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance" - ) - private java.util.List myConstraint; - - @Child(name="mustSupport", type=BooleanDt.class, order=21, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.mustSupport", - formalDefinition="If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported" - ) - private BooleanDt myMustSupport; - - @Child(name="isModifier", type=BooleanDt.class, order=22, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.isModifier", - formalDefinition="If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system." - ) - private BooleanDt myIsModifier; - - @Child(name="isSummary", type=BooleanDt.class, order=23, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.isSummary", - formalDefinition="Whether the element should be included if a client requests a search with the parameter _summary=true" - ) - private BooleanDt myIsSummary; - - @Child(name="binding", order=24, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.binding", - formalDefinition="Binds to a value set if this element is coded (code, Coding, CodeableConcept)" - ) - private Binding myBinding; - - @Child(name="mapping", order=25, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.mapping", - formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element" - ) - private java.util.List myMapping; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPath, myRepresentation, myName, mySlicing, myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myDefaultValue, myMeaningWhenMissing, myFixed, myPattern, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myIsSummary, myBinding, myMapping); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPath, myRepresentation, myName, mySlicing, myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myDefaultValue, myMeaningWhenMissing, myFixed, myPattern, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myIsSummary, myBinding, myMapping); - } - - /** - * Gets the value(s) for path (ElementDefinition.path). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension - *

- */ - public StringDt getPathElement() { - if (myPath == null) { - myPath = new StringDt(); - } - return myPath; - } - - - /** - * Gets the value(s) for path (ElementDefinition.path). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension - *

- */ - public String getPath() { - return getPathElement().getValue(); - } - - /** - * Sets the value(s) for path (ElementDefinition.path) - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension - *

- */ - public ElementDefinitionDt setPath(StringDt theValue) { - myPath = theValue; - return this; - } - - - - /** - * Sets the value for path (ElementDefinition.path) - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension - *

- */ - public ElementDefinitionDt setPath( String theString) { - myPath = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for representation (ElementDefinition.representation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public java.util.List> getRepresentation() { - if (myRepresentation == null) { - myRepresentation = new java.util.ArrayList>(); - } - return myRepresentation; - } - - /** - * Sets the value(s) for representation (ElementDefinition.representation) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public ElementDefinitionDt setRepresentation(java.util.List> theValue) { - myRepresentation = theValue; - return this; - } - - - - /** - * Add a value for representation (ElementDefinition.representation) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addType()} method. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt addRepresentation(PropertyRepresentationEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER, theValue); - getRepresentation().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for representation (ElementDefinition.representation), - * creating it if it does not already exist. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt getRepresentationFirstRep() { - if (getRepresentation().size() == 0) { - addRepresentation(); - } - return getRepresentation().get(0); - } - - /** - * Add a value for representation (ElementDefinition.representation) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt addRepresentation() { - BoundCodeDt retVal = new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER); - getRepresentation().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for representation (ElementDefinition.representation) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public ElementDefinitionDt setRepresentation(PropertyRepresentationEnum theValue) { - getRepresentation().clear(); - addRepresentation(theValue); - return this; - } - - - /** - * Gets the value(s) for name (ElementDefinition.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (ElementDefinition.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name (ElementDefinition.name) - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public ElementDefinitionDt setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name (ElementDefinition.name) - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public ElementDefinitionDt setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for slicing (ElementDefinition.slicing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - public Slicing getSlicing() { - if (mySlicing == null) { - mySlicing = new Slicing(); - } - return mySlicing; - } - - /** - * Sets the value(s) for slicing (ElementDefinition.slicing) - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - public ElementDefinitionDt setSlicing(Slicing theValue) { - mySlicing = theValue; - return this; - } - - - - - /** - * Gets the value(s) for short (ElementDefinition.short). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public StringDt getShortElement() { - if (myShort == null) { - myShort = new StringDt(); - } - return myShort; - } - - - /** - * Gets the value(s) for short (ElementDefinition.short). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public String getShort() { - return getShortElement().getValue(); - } - - /** - * Sets the value(s) for short (ElementDefinition.short) - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public ElementDefinitionDt setShort(StringDt theValue) { - myShort = theValue; - return this; - } - - - - /** - * Sets the value for short (ElementDefinition.short) - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public ElementDefinitionDt setShort( String theString) { - myShort = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for formal (ElementDefinition.formal). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public StringDt getFormalElement() { - if (myFormal == null) { - myFormal = new StringDt(); - } - return myFormal; - } - - - /** - * Gets the value(s) for formal (ElementDefinition.formal). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public String getFormal() { - return getFormalElement().getValue(); - } - - /** - * Sets the value(s) for formal (ElementDefinition.formal) - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public ElementDefinitionDt setFormal(StringDt theValue) { - myFormal = theValue; - return this; - } - - - - /** - * Sets the value for formal (ElementDefinition.formal) - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public ElementDefinitionDt setFormal( String theString) { - myFormal = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for comments (ElementDefinition.comments). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (ElementDefinition.comments). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public String getComments() { - return getCommentsElement().getValue(); - } - - /** - * Sets the value(s) for comments (ElementDefinition.comments) - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public ElementDefinitionDt setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - - - /** - * Sets the value for comments (ElementDefinition.comments) - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public ElementDefinitionDt setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for requirements (ElementDefinition.requirements). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public StringDt getRequirementsElement() { - if (myRequirements == null) { - myRequirements = new StringDt(); - } - return myRequirements; - } - - - /** - * Gets the value(s) for requirements (ElementDefinition.requirements). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public String getRequirements() { - return getRequirementsElement().getValue(); - } - - /** - * Sets the value(s) for requirements (ElementDefinition.requirements) - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public ElementDefinitionDt setRequirements(StringDt theValue) { - myRequirements = theValue; - return this; - } - - - - /** - * Sets the value for requirements (ElementDefinition.requirements) - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public ElementDefinitionDt setRequirements( String theString) { - myRequirements = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for synonym (ElementDefinition.synonym). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public java.util.List getSynonym() { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - return mySynonym; - } - - /** - * Sets the value(s) for synonym (ElementDefinition.synonym) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public ElementDefinitionDt setSynonym(java.util.List theValue) { - mySynonym = theValue; - return this; - } - - - - /** - * Adds and returns a new value for synonym (ElementDefinition.synonym) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StringDt addSynonym() { - StringDt newType = new StringDt(); - getSynonym().add(newType); - return newType; - } - - /** - * Gets the first repetition for synonym (ElementDefinition.synonym), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StringDt getSynonymFirstRep() { - if (getSynonym().isEmpty()) { - return addSynonym(); - } - return getSynonym().get(0); - } - /** - * Adds a new value for synonym (ElementDefinition.synonym) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ElementDefinitionDt addSynonym( String theString) { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - mySynonym.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for min (ElementDefinition.min). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public IntegerDt getMinElement() { - if (myMin == null) { - myMin = new IntegerDt(); - } - return myMin; - } - - - /** - * Gets the value(s) for min (ElementDefinition.min). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public Integer getMin() { - return getMinElement().getValue(); - } - - /** - * Sets the value(s) for min (ElementDefinition.min) - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public ElementDefinitionDt setMin(IntegerDt theValue) { - myMin = theValue; - return this; - } - - - - /** - * Sets the value for min (ElementDefinition.min) - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public ElementDefinitionDt setMin( int theInteger) { - myMin = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for max (ElementDefinition.max). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public StringDt getMaxElement() { - if (myMax == null) { - myMax = new StringDt(); - } - return myMax; - } - - - /** - * Gets the value(s) for max (ElementDefinition.max). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public String getMax() { - return getMaxElement().getValue(); - } - - /** - * Sets the value(s) for max (ElementDefinition.max) - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public ElementDefinitionDt setMax(StringDt theValue) { - myMax = theValue; - return this; - } - - - - /** - * Sets the value for max (ElementDefinition.max) - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public ElementDefinitionDt setMax( String theString) { - myMax = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (ElementDefinition.type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public java.util.List getType() { - if (myType == null) { - myType = new java.util.ArrayList(); - } - return myType; - } - - /** - * Sets the value(s) for type (ElementDefinition.type) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public ElementDefinitionDt setType(java.util.List theValue) { - myType = theValue; - return this; - } - - - - /** - * Adds and returns a new value for type (ElementDefinition.type) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public Type addType() { - Type newType = new Type(); - getType().add(newType); - return newType; - } - - /** - * Gets the first repetition for type (ElementDefinition.type), - * creating it if it does not already exist. - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public Type getTypeFirstRep() { - if (getType().isEmpty()) { - return addType(); - } - return getType().get(0); - } - - /** - * Gets the value(s) for nameReference (ElementDefinition.nameReference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public StringDt getNameReferenceElement() { - if (myNameReference == null) { - myNameReference = new StringDt(); - } - return myNameReference; - } - - - /** - * Gets the value(s) for nameReference (ElementDefinition.nameReference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public String getNameReference() { - return getNameReferenceElement().getValue(); - } - - /** - * Sets the value(s) for nameReference (ElementDefinition.nameReference) - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public ElementDefinitionDt setNameReference(StringDt theValue) { - myNameReference = theValue; - return this; - } - - - - /** - * Sets the value for nameReference (ElementDefinition.nameReference) - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public ElementDefinitionDt setNameReference( String theString) { - myNameReference = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for defaultValue[x] (ElementDefinition.defaultValue[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value that should be used if there is no value stated in the instance - *

- */ - public IDatatype getDefaultValue() { - return myDefaultValue; - } - - /** - * Sets the value(s) for defaultValue[x] (ElementDefinition.defaultValue[x]) - * - *

- * Definition: - * The value that should be used if there is no value stated in the instance - *

- */ - public ElementDefinitionDt setDefaultValue(IDatatype theValue) { - myDefaultValue = theValue; - return this; - } - - - - - /** - * Gets the value(s) for meaningWhenMissing (ElementDefinition.meaningWhenMissing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Implicit meaning that is to be understood when this element is missing - *

- */ - public StringDt getMeaningWhenMissingElement() { - if (myMeaningWhenMissing == null) { - myMeaningWhenMissing = new StringDt(); - } - return myMeaningWhenMissing; - } - - - /** - * Gets the value(s) for meaningWhenMissing (ElementDefinition.meaningWhenMissing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Implicit meaning that is to be understood when this element is missing - *

- */ - public String getMeaningWhenMissing() { - return getMeaningWhenMissingElement().getValue(); - } - - /** - * Sets the value(s) for meaningWhenMissing (ElementDefinition.meaningWhenMissing) - * - *

- * Definition: - * The Implicit meaning that is to be understood when this element is missing - *

- */ - public ElementDefinitionDt setMeaningWhenMissing(StringDt theValue) { - myMeaningWhenMissing = theValue; - return this; - } - - - - /** - * Sets the value for meaningWhenMissing (ElementDefinition.meaningWhenMissing) - * - *

- * Definition: - * The Implicit meaning that is to be understood when this element is missing - *

- */ - public ElementDefinitionDt setMeaningWhenMissing( String theString) { - myMeaningWhenMissing = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for fixed[x] (ElementDefinition.fixed[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing - *

- */ - public IDatatype getFixed() { - return myFixed; - } - - /** - * Sets the value(s) for fixed[x] (ElementDefinition.fixed[x]) - * - *

- * Definition: - * Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing - *

- */ - public ElementDefinitionDt setFixed(IDatatype theValue) { - myFixed = theValue; - return this; - } - - - - - /** - * Gets the value(s) for pattern[x] (ElementDefinition.pattern[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.) - *

- */ - public IDatatype getPattern() { - return myPattern; - } - - /** - * Sets the value(s) for pattern[x] (ElementDefinition.pattern[x]) - * - *

- * Definition: - * Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.) - *

- */ - public ElementDefinitionDt setPattern(IDatatype theValue) { - myPattern = theValue; - return this; - } - - - - - /** - * Gets the value(s) for example[x] (ElementDefinition.example[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An example value for this element - *

- */ - public IDatatype getExample() { - return myExample; - } - - /** - * Sets the value(s) for example[x] (ElementDefinition.example[x]) - * - *

- * Definition: - * An example value for this element - *

- */ - public ElementDefinitionDt setExample(IDatatype theValue) { - myExample = theValue; - return this; - } - - - - - /** - * Gets the value(s) for maxLength (ElementDefinition.maxLength). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element - *

- */ - public IntegerDt getMaxLengthElement() { - if (myMaxLength == null) { - myMaxLength = new IntegerDt(); - } - return myMaxLength; - } - - - /** - * Gets the value(s) for maxLength (ElementDefinition.maxLength). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element - *

- */ - public Integer getMaxLength() { - return getMaxLengthElement().getValue(); - } - - /** - * Sets the value(s) for maxLength (ElementDefinition.maxLength) - * - *

- * Definition: - * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element - *

- */ - public ElementDefinitionDt setMaxLength(IntegerDt theValue) { - myMaxLength = theValue; - return this; - } - - - - /** - * Sets the value for maxLength (ElementDefinition.maxLength) - * - *

- * Definition: - * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element - *

- */ - public ElementDefinitionDt setMaxLength( int theInteger) { - myMaxLength = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for condition (ElementDefinition.condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public java.util.List getCondition() { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - return myCondition; - } - - /** - * Sets the value(s) for condition (ElementDefinition.condition) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public ElementDefinitionDt setCondition(java.util.List theValue) { - myCondition = theValue; - return this; - } - - - - /** - * Adds and returns a new value for condition (ElementDefinition.condition) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public IdDt addCondition() { - IdDt newType = new IdDt(); - getCondition().add(newType); - return newType; - } - - /** - * Gets the first repetition for condition (ElementDefinition.condition), - * creating it if it does not already exist. - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public IdDt getConditionFirstRep() { - if (getCondition().isEmpty()) { - return addCondition(); - } - return getCondition().get(0); - } - /** - * Adds a new value for condition (ElementDefinition.condition) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ElementDefinitionDt addCondition( String theId) { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - myCondition.add(new IdDt(theId)); - return this; - } - - - /** - * Gets the value(s) for constraint (ElementDefinition.constraint). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public java.util.List getConstraint() { - if (myConstraint == null) { - myConstraint = new java.util.ArrayList(); - } - return myConstraint; - } - - /** - * Sets the value(s) for constraint (ElementDefinition.constraint) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public ElementDefinitionDt setConstraint(java.util.List theValue) { - myConstraint = theValue; - return this; - } - - - - /** - * Adds and returns a new value for constraint (ElementDefinition.constraint) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public Constraint addConstraint() { - Constraint newType = new Constraint(); - getConstraint().add(newType); - return newType; - } - - /** - * Gets the first repetition for constraint (ElementDefinition.constraint), - * creating it if it does not already exist. - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public Constraint getConstraintFirstRep() { - if (getConstraint().isEmpty()) { - return addConstraint(); - } - return getConstraint().get(0); - } - - /** - * Gets the value(s) for mustSupport (ElementDefinition.mustSupport). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public BooleanDt getMustSupportElement() { - if (myMustSupport == null) { - myMustSupport = new BooleanDt(); - } - return myMustSupport; - } - - - /** - * Gets the value(s) for mustSupport (ElementDefinition.mustSupport). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public Boolean getMustSupport() { - return getMustSupportElement().getValue(); - } - - /** - * Sets the value(s) for mustSupport (ElementDefinition.mustSupport) - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public ElementDefinitionDt setMustSupport(BooleanDt theValue) { - myMustSupport = theValue; - return this; - } - - - - /** - * Sets the value for mustSupport (ElementDefinition.mustSupport) - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public ElementDefinitionDt setMustSupport( boolean theBoolean) { - myMustSupport = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for isModifier (ElementDefinition.isModifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public BooleanDt getIsModifierElement() { - if (myIsModifier == null) { - myIsModifier = new BooleanDt(); - } - return myIsModifier; - } - - - /** - * Gets the value(s) for isModifier (ElementDefinition.isModifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public Boolean getIsModifier() { - return getIsModifierElement().getValue(); - } - - /** - * Sets the value(s) for isModifier (ElementDefinition.isModifier) - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public ElementDefinitionDt setIsModifier(BooleanDt theValue) { - myIsModifier = theValue; - return this; - } - - - - /** - * Sets the value for isModifier (ElementDefinition.isModifier) - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public ElementDefinitionDt setIsModifier( boolean theBoolean) { - myIsModifier = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for isSummary (ElementDefinition.isSummary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the element should be included if a client requests a search with the parameter _summary=true - *

- */ - public BooleanDt getIsSummaryElement() { - if (myIsSummary == null) { - myIsSummary = new BooleanDt(); - } - return myIsSummary; - } - - - /** - * Gets the value(s) for isSummary (ElementDefinition.isSummary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the element should be included if a client requests a search with the parameter _summary=true - *

- */ - public Boolean getIsSummary() { - return getIsSummaryElement().getValue(); - } - - /** - * Sets the value(s) for isSummary (ElementDefinition.isSummary) - * - *

- * Definition: - * Whether the element should be included if a client requests a search with the parameter _summary=true - *

- */ - public ElementDefinitionDt setIsSummary(BooleanDt theValue) { - myIsSummary = theValue; - return this; - } - - - - /** - * Sets the value for isSummary (ElementDefinition.isSummary) - * - *

- * Definition: - * Whether the element should be included if a client requests a search with the parameter _summary=true - *

- */ - public ElementDefinitionDt setIsSummary( boolean theBoolean) { - myIsSummary = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for binding (ElementDefinition.binding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public Binding getBinding() { - if (myBinding == null) { - myBinding = new Binding(); - } - return myBinding; - } - - /** - * Sets the value(s) for binding (ElementDefinition.binding) - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public ElementDefinitionDt setBinding(Binding theValue) { - myBinding = theValue; - return this; - } - - - - - /** - * Gets the value(s) for mapping (ElementDefinition.mapping). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public java.util.List getMapping() { - if (myMapping == null) { - myMapping = new java.util.ArrayList(); - } - return myMapping; - } - - /** - * Sets the value(s) for mapping (ElementDefinition.mapping) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public ElementDefinitionDt setMapping(java.util.List theValue) { - myMapping = theValue; - return this; - } - - - - /** - * Adds and returns a new value for mapping (ElementDefinition.mapping) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public Mapping addMapping() { - Mapping newType = new Mapping(); - getMapping().add(newType); - return newType; - } - - /** - * Gets the first repetition for mapping (ElementDefinition.mapping), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public Mapping getMappingFirstRep() { - if (getMapping().isEmpty()) { - return addMapping(); - } - return getMapping().get(0); - } - - /** - * Block class for child element: ElementDefinition.slicing (ElementDefinition.slicing) - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - @Block() - public static class Slicing - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="discriminator", type=StringDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.slicing.discriminator", - formalDefinition="Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices" - ) - private java.util.List myDiscriminator; - - @Child(name="description", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.slicing.description", - formalDefinition="A humane readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated" - ) - private StringDt myDescription; - - @Child(name="ordered", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.slicing.ordered", - formalDefinition="If the matching elements have to occur in the same order as defined in the profile" - ) - private BooleanDt myOrdered; - - @Child(name="rules", type=CodeDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.slicing.rules", - formalDefinition="Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end" - ) - private BoundCodeDt myRules; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDiscriminator, myDescription, myOrdered, myRules); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDiscriminator, myDescription, myOrdered, myRules); - } - - /** - * Gets the value(s) for discriminator (ElementDefinition.slicing.discriminator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- */ - public java.util.List getDiscriminator() { - if (myDiscriminator == null) { - myDiscriminator = new java.util.ArrayList(); - } - return myDiscriminator; - } - - /** - * Sets the value(s) for discriminator (ElementDefinition.slicing.discriminator) - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- */ - public Slicing setDiscriminator(java.util.List theValue) { - myDiscriminator = theValue; - return this; - } - - - - /** - * Adds and returns a new value for discriminator (ElementDefinition.slicing.discriminator) - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- */ - public StringDt addDiscriminator() { - StringDt newType = new StringDt(); - getDiscriminator().add(newType); - return newType; - } - - /** - * Gets the first repetition for discriminator (ElementDefinition.slicing.discriminator), - * creating it if it does not already exist. - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- */ - public StringDt getDiscriminatorFirstRep() { - if (getDiscriminator().isEmpty()) { - return addDiscriminator(); - } - return getDiscriminator().get(0); - } - /** - * Adds a new value for discriminator (ElementDefinition.slicing.discriminator) - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Slicing addDiscriminator( String theString) { - if (myDiscriminator == null) { - myDiscriminator = new java.util.ArrayList(); - } - myDiscriminator.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for description (ElementDefinition.slicing.description). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A humane readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (ElementDefinition.slicing.description). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A humane readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description (ElementDefinition.slicing.description) - * - *

- * Definition: - * A humane readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated - *

- */ - public Slicing setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description (ElementDefinition.slicing.description) - * - *

- * Definition: - * A humane readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated - *

- */ - public Slicing setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for ordered (ElementDefinition.slicing.ordered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public BooleanDt getOrderedElement() { - if (myOrdered == null) { - myOrdered = new BooleanDt(); - } - return myOrdered; - } - - - /** - * Gets the value(s) for ordered (ElementDefinition.slicing.ordered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public Boolean getOrdered() { - return getOrderedElement().getValue(); - } - - /** - * Sets the value(s) for ordered (ElementDefinition.slicing.ordered) - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public Slicing setOrdered(BooleanDt theValue) { - myOrdered = theValue; - return this; - } - - - - /** - * Sets the value for ordered (ElementDefinition.slicing.ordered) - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public Slicing setOrdered( boolean theBoolean) { - myOrdered = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for rules (ElementDefinition.slicing.rules). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public BoundCodeDt getRulesElement() { - if (myRules == null) { - myRules = new BoundCodeDt(SlicingRulesEnum.VALUESET_BINDER); - } - return myRules; - } - - - /** - * Gets the value(s) for rules (ElementDefinition.slicing.rules). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public String getRules() { - return getRulesElement().getValue(); - } - - /** - * Sets the value(s) for rules (ElementDefinition.slicing.rules) - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public Slicing setRules(BoundCodeDt theValue) { - myRules = theValue; - return this; - } - - - - /** - * Sets the value(s) for rules (ElementDefinition.slicing.rules) - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public Slicing setRules(SlicingRulesEnum theValue) { - getRulesElement().setValueAsEnum(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: ElementDefinition.type (ElementDefinition.type) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - @Block() - public static class Type - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.type.code", - formalDefinition="Name of Data type or Resource that is a(or the) type used for this element" - ) - private BoundCodeDt myCode; - - @Child(name="profile", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.type.profile", - formalDefinition="Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile" - ) - private UriDt myProfile; - - @Child(name="aggregation", type=CodeDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.type.aggregation", - formalDefinition="If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle" - ) - private java.util.List> myAggregation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myProfile, myAggregation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myProfile, myAggregation); - } - - /** - * Gets the value(s) for code (ElementDefinition.type.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of Data type or Resource that is a(or the) type used for this element - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(DataTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (ElementDefinition.type.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of Data type or Resource that is a(or the) type used for this element - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code (ElementDefinition.type.code) - * - *

- * Definition: - * Name of Data type or Resource that is a(or the) type used for this element - *

- */ - public Type setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value(s) for code (ElementDefinition.type.code) - * - *

- * Definition: - * Name of Data type or Resource that is a(or the) type used for this element - *

- */ - public Type setCode(DataTypeEnum theValue) { - getCodeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for profile (ElementDefinition.type.profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public UriDt getProfileElement() { - if (myProfile == null) { - myProfile = new UriDt(); - } - return myProfile; - } - - - /** - * Gets the value(s) for profile (ElementDefinition.type.profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public String getProfile() { - return getProfileElement().getValue(); - } - - /** - * Sets the value(s) for profile (ElementDefinition.type.profile) - * - *

- * Definition: - * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public Type setProfile(UriDt theValue) { - myProfile = theValue; - return this; - } - - - - /** - * Sets the value for profile (ElementDefinition.type.profile) - * - *

- * Definition: - * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public Type setProfile( String theUri) { - myProfile = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for aggregation (ElementDefinition.type.aggregation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public java.util.List> getAggregation() { - if (myAggregation == null) { - myAggregation = new java.util.ArrayList>(); - } - return myAggregation; - } - - /** - * Sets the value(s) for aggregation (ElementDefinition.type.aggregation) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public Type setAggregation(java.util.List> theValue) { - myAggregation = theValue; - return this; - } - - - - /** - * Add a value for aggregation (ElementDefinition.type.aggregation) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addType()} method. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt addAggregation(AggregationModeEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER, theValue); - getAggregation().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for aggregation (ElementDefinition.type.aggregation), - * creating it if it does not already exist. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt getAggregationFirstRep() { - if (getAggregation().size() == 0) { - addAggregation(); - } - return getAggregation().get(0); - } - - /** - * Add a value for aggregation (ElementDefinition.type.aggregation) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt addAggregation() { - BoundCodeDt retVal = new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER); - getAggregation().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for aggregation (ElementDefinition.type.aggregation) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public Type setAggregation(AggregationModeEnum theValue) { - getAggregation().clear(); - addAggregation(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: ElementDefinition.constraint (ElementDefinition.constraint) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - @Block() - public static class Constraint - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="key", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.key", - formalDefinition="Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality" - ) - private IdDt myKey; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.name", - formalDefinition="Used to label the constraint in OCL or in short displays incapable of displaying the full human description" - ) - private StringDt myName; - - @Child(name="severity", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.severity", - formalDefinition="Identifies the impact constraint violation has on the conformance of the instance" - ) - private BoundCodeDt mySeverity; - - @Child(name="human", type=StringDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.human", - formalDefinition="Text that can be used to describe the constraint in messages identifying that the constraint has been violated" - ) - private StringDt myHuman; - - @Child(name="xpath", type=StringDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.xpath", - formalDefinition="An XPath expression of constraint that can be executed to see if this constraint is met" - ) - private StringDt myXpath; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myKey, myName, mySeverity, myHuman, myXpath); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myKey, myName, mySeverity, myHuman, myXpath); - } - - /** - * Gets the value(s) for key (ElementDefinition.constraint.key). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public IdDt getKeyElement() { - if (myKey == null) { - myKey = new IdDt(); - } - return myKey; - } - - - /** - * Gets the value(s) for key (ElementDefinition.constraint.key). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public String getKey() { - return getKeyElement().getValue(); - } - - /** - * Sets the value(s) for key (ElementDefinition.constraint.key) - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public Constraint setKey(IdDt theValue) { - myKey = theValue; - return this; - } - - - - /** - * Sets the value for key (ElementDefinition.constraint.key) - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public Constraint setKey( String theId) { - myKey = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for name (ElementDefinition.constraint.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (ElementDefinition.constraint.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name (ElementDefinition.constraint.name) - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public Constraint setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name (ElementDefinition.constraint.name) - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public Constraint setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for severity (ElementDefinition.constraint.severity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public BoundCodeDt getSeverityElement() { - if (mySeverity == null) { - mySeverity = new BoundCodeDt(ConstraintSeverityEnum.VALUESET_BINDER); - } - return mySeverity; - } - - - /** - * Gets the value(s) for severity (ElementDefinition.constraint.severity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public String getSeverity() { - return getSeverityElement().getValue(); - } - - /** - * Sets the value(s) for severity (ElementDefinition.constraint.severity) - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public Constraint setSeverity(BoundCodeDt theValue) { - mySeverity = theValue; - return this; - } - - - - /** - * Sets the value(s) for severity (ElementDefinition.constraint.severity) - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public Constraint setSeverity(ConstraintSeverityEnum theValue) { - getSeverityElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for human (ElementDefinition.constraint.human). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public StringDt getHumanElement() { - if (myHuman == null) { - myHuman = new StringDt(); - } - return myHuman; - } - - - /** - * Gets the value(s) for human (ElementDefinition.constraint.human). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public String getHuman() { - return getHumanElement().getValue(); - } - - /** - * Sets the value(s) for human (ElementDefinition.constraint.human) - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public Constraint setHuman(StringDt theValue) { - myHuman = theValue; - return this; - } - - - - /** - * Sets the value for human (ElementDefinition.constraint.human) - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public Constraint setHuman( String theString) { - myHuman = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for xpath (ElementDefinition.constraint.xpath). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An XPath expression of constraint that can be executed to see if this constraint is met - *

- */ - public StringDt getXpathElement() { - if (myXpath == null) { - myXpath = new StringDt(); - } - return myXpath; - } - - - /** - * Gets the value(s) for xpath (ElementDefinition.constraint.xpath). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An XPath expression of constraint that can be executed to see if this constraint is met - *

- */ - public String getXpath() { - return getXpathElement().getValue(); - } - - /** - * Sets the value(s) for xpath (ElementDefinition.constraint.xpath) - * - *

- * Definition: - * An XPath expression of constraint that can be executed to see if this constraint is met - *

- */ - public Constraint setXpath(StringDt theValue) { - myXpath = theValue; - return this; - } - - - - /** - * Sets the value for xpath (ElementDefinition.constraint.xpath) - * - *

- * Definition: - * An XPath expression of constraint that can be executed to see if this constraint is met - *

- */ - public Constraint setXpath( String theString) { - myXpath = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: ElementDefinition.binding (ElementDefinition.binding) - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - @Block() - public static class Binding - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.binding.name", - formalDefinition="A descriptive name for this - can be useful for generating implementation artifacts" - ) - private StringDt myName; - - @Child(name="isExtensible", type=BooleanDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.binding.isExtensible", - formalDefinition="If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone" - ) - private BooleanDt myIsExtensible; - - @Child(name="conformance", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.binding.conformance", - formalDefinition="Indicates the degree of conformance expectations associated with this binding" - ) - private BoundCodeDt myConformance; - - @Child(name="description", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.binding.description", - formalDefinition="Describes the intended use of this particular set of codes" - ) - private StringDt myDescription; - - @Child(name="reference", order=4, min=0, max=1, type={ - UriDt.class, ValueSet.class }) - @Description( - shortDefinition="ElementDefinition.binding.reference[x]", - formalDefinition="Points to the value set or external definition that identifies the set of codes to be used" - ) - private IDatatype myReference; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myIsExtensible, myConformance, myDescription, myReference); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myIsExtensible, myConformance, myDescription, myReference); - } - - /** - * Gets the value(s) for name (ElementDefinition.binding.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (ElementDefinition.binding.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name (ElementDefinition.binding.name) - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public Binding setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name (ElementDefinition.binding.name) - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public Binding setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for isExtensible (ElementDefinition.binding.isExtensible). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public BooleanDt getIsExtensibleElement() { - if (myIsExtensible == null) { - myIsExtensible = new BooleanDt(); - } - return myIsExtensible; - } - - - /** - * Gets the value(s) for isExtensible (ElementDefinition.binding.isExtensible). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Boolean getIsExtensible() { - return getIsExtensibleElement().getValue(); - } - - /** - * Sets the value(s) for isExtensible (ElementDefinition.binding.isExtensible) - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Binding setIsExtensible(BooleanDt theValue) { - myIsExtensible = theValue; - return this; - } - - - - /** - * Sets the value for isExtensible (ElementDefinition.binding.isExtensible) - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Binding setIsExtensible( boolean theBoolean) { - myIsExtensible = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for conformance (ElementDefinition.binding.conformance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public BoundCodeDt getConformanceElement() { - if (myConformance == null) { - myConformance = new BoundCodeDt(BindingConformanceEnum.VALUESET_BINDER); - } - return myConformance; - } - - - /** - * Gets the value(s) for conformance (ElementDefinition.binding.conformance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public String getConformance() { - return getConformanceElement().getValue(); - } - - /** - * Sets the value(s) for conformance (ElementDefinition.binding.conformance) - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public Binding setConformance(BoundCodeDt theValue) { - myConformance = theValue; - return this; - } - - - - /** - * Sets the value(s) for conformance (ElementDefinition.binding.conformance) - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public Binding setConformance(BindingConformanceEnum theValue) { - getConformanceElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for description (ElementDefinition.binding.description). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (ElementDefinition.binding.description). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description (ElementDefinition.binding.description) - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public Binding setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description (ElementDefinition.binding.description) - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public Binding setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for reference[x] (ElementDefinition.binding.reference[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Points to the value set or external definition that identifies the set of codes to be used - *

- */ - public IDatatype getReference() { - return myReference; - } - - /** - * Sets the value(s) for reference[x] (ElementDefinition.binding.reference[x]) - * - *

- * Definition: - * Points to the value set or external definition that identifies the set of codes to be used - *

- */ - public Binding setReference(IDatatype theValue) { - myReference = theValue; - return this; - } - - - - - - } - - - /** - * Block class for child element: ElementDefinition.mapping (ElementDefinition.mapping) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - @Block() - public static class Mapping - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identity", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.mapping.identity", - formalDefinition="An internal reference to the definition of a mapping" - ) - private IdDt myIdentity; - - @Child(name="map", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.mapping.map", - formalDefinition="Expresses what part of the target specification corresponds to this element" - ) - private StringDt myMap; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myMap); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myMap); - } - - /** - * Gets the value(s) for identity (ElementDefinition.mapping.identity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public IdDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new IdDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (ElementDefinition.mapping.identity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public String getIdentity() { - return getIdentityElement().getValue(); - } - - /** - * Sets the value(s) for identity (ElementDefinition.mapping.identity) - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public Mapping setIdentity(IdDt theValue) { - myIdentity = theValue; - return this; - } - - - - /** - * Sets the value for identity (ElementDefinition.mapping.identity) - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public Mapping setIdentity( String theId) { - myIdentity = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for map (ElementDefinition.mapping.map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public StringDt getMapElement() { - if (myMap == null) { - myMap = new StringDt(); - } - return myMap; - } - - - /** - * Gets the value(s) for map (ElementDefinition.mapping.map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public String getMap() { - return getMapElement().getValue(); - } - - /** - * Sets the value(s) for map (ElementDefinition.mapping.map) - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public Mapping setMap(StringDt theValue) { - myMap = theValue; - return this; - } - - - - /** - * Sets the value for map (ElementDefinition.mapping.map) - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public Mapping setMap( String theString) { - myMap = new StringDt(theString); - return this; - } - - - - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/HumanNameDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/HumanNameDt.java deleted file mode 100644 index 6e60461a182..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/HumanNameDt.java +++ /dev/null @@ -1,624 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR HumanNameDt Datatype - * (HumanName) - * - *

- * Definition: - * A human's name with the ability to identify parts and usage - *

- * - *

- * Requirements: - * Need to be able to record names, along with notes about their use - *

- */ -@DatatypeDef(name="HumanNameDt") -public class HumanNameDt - extends BaseHumanNameDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public HumanNameDt() { - // nothing - } - - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="HumanName.use", - formalDefinition="Identifies the purpose for this name" - ) - private BoundCodeDt myUse; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="HumanName.text", - formalDefinition="A full text representation of the name" - ) - private StringDt myText; - - @Child(name="family", type=StringDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="HumanName.family", - formalDefinition="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." - ) - private java.util.List myFamily; - - @Child(name="given", type=StringDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="HumanName.given", - formalDefinition="Given name" - ) - private java.util.List myGiven; - - @Child(name="prefix", type=StringDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="HumanName.prefix", - formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name" - ) - private java.util.List myPrefix; - - @Child(name="suffix", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="HumanName.suffix", - formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name" - ) - private java.util.List mySuffix; - - @Child(name="period", type=PeriodDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="HumanName.period", - formalDefinition="Indicates the period of time when this name was valid for the named person." - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod); - } - - /** - * Gets the value(s) for use (HumanName.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(NameUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (HumanName.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use (HumanName.use) - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public HumanNameDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use (HumanName.use) - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public HumanNameDt setUse(NameUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for text (HumanName.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the name - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (HumanName.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the name - *

- */ - public String getText() { - return getTextElement().getValue(); - } - - /** - * Sets the value(s) for text (HumanName.text) - * - *

- * Definition: - * A full text representation of the name - *

- */ - public HumanNameDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - - - /** - * Sets the value for text (HumanName.text) - * - *

- * Definition: - * A full text representation of the name - *

- */ - public HumanNameDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for family (HumanName.family). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public java.util.List getFamily() { - if (myFamily == null) { - myFamily = new java.util.ArrayList(); - } - return myFamily; - } - - /** - * Sets the value(s) for family (HumanName.family) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public HumanNameDt setFamily(java.util.List theValue) { - myFamily = theValue; - return this; - } - - - - /** - * Adds and returns a new value for family (HumanName.family) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public StringDt addFamily() { - StringDt newType = new StringDt(); - getFamily().add(newType); - return newType; - } - - /** - * Gets the first repetition for family (HumanName.family), - * creating it if it does not already exist. - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public StringDt getFamilyFirstRep() { - if (getFamily().isEmpty()) { - return addFamily(); - } - return getFamily().get(0); - } - /** - * Adds a new value for family (HumanName.family) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addFamily( String theString) { - if (myFamily == null) { - myFamily = new java.util.ArrayList(); - } - myFamily.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for given (HumanName.given). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Given name - *

- */ - public java.util.List getGiven() { - if (myGiven == null) { - myGiven = new java.util.ArrayList(); - } - return myGiven; - } - - /** - * Sets the value(s) for given (HumanName.given) - * - *

- * Definition: - * Given name - *

- */ - public HumanNameDt setGiven(java.util.List theValue) { - myGiven = theValue; - return this; - } - - - - /** - * Adds and returns a new value for given (HumanName.given) - * - *

- * Definition: - * Given name - *

- */ - public StringDt addGiven() { - StringDt newType = new StringDt(); - getGiven().add(newType); - return newType; - } - - /** - * Gets the first repetition for given (HumanName.given), - * creating it if it does not already exist. - * - *

- * Definition: - * Given name - *

- */ - public StringDt getGivenFirstRep() { - if (getGiven().isEmpty()) { - return addGiven(); - } - return getGiven().get(0); - } - /** - * Adds a new value for given (HumanName.given) - * - *

- * Definition: - * Given name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addGiven( String theString) { - if (myGiven == null) { - myGiven = new java.util.ArrayList(); - } - myGiven.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for prefix (HumanName.prefix). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public java.util.List getPrefix() { - if (myPrefix == null) { - myPrefix = new java.util.ArrayList(); - } - return myPrefix; - } - - /** - * Sets the value(s) for prefix (HumanName.prefix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public HumanNameDt setPrefix(java.util.List theValue) { - myPrefix = theValue; - return this; - } - - - - /** - * Adds and returns a new value for prefix (HumanName.prefix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public StringDt addPrefix() { - StringDt newType = new StringDt(); - getPrefix().add(newType); - return newType; - } - - /** - * Gets the first repetition for prefix (HumanName.prefix), - * creating it if it does not already exist. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public StringDt getPrefixFirstRep() { - if (getPrefix().isEmpty()) { - return addPrefix(); - } - return getPrefix().get(0); - } - /** - * Adds a new value for prefix (HumanName.prefix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addPrefix( String theString) { - if (myPrefix == null) { - myPrefix = new java.util.ArrayList(); - } - myPrefix.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for suffix (HumanName.suffix). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public java.util.List getSuffix() { - if (mySuffix == null) { - mySuffix = new java.util.ArrayList(); - } - return mySuffix; - } - - /** - * Sets the value(s) for suffix (HumanName.suffix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public HumanNameDt setSuffix(java.util.List theValue) { - mySuffix = theValue; - return this; - } - - - - /** - * Adds and returns a new value for suffix (HumanName.suffix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public StringDt addSuffix() { - StringDt newType = new StringDt(); - getSuffix().add(newType); - return newType; - } - - /** - * Gets the first repetition for suffix (HumanName.suffix), - * creating it if it does not already exist. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public StringDt getSuffixFirstRep() { - if (getSuffix().isEmpty()) { - return addSuffix(); - } - return getSuffix().get(0); - } - /** - * Adds a new value for suffix (HumanName.suffix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addSuffix( String theString) { - if (mySuffix == null) { - mySuffix = new java.util.ArrayList(); - } - mySuffix.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for period (HumanName.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the period of time when this name was valid for the named person. - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (HumanName.period) - * - *

- * Definition: - * Indicates the period of time when this name was valid for the named person. - *

- */ - public HumanNameDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/IdentifierDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/IdentifierDt.java deleted file mode 100644 index ec451fcab68..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/IdentifierDt.java +++ /dev/null @@ -1,479 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR IdentifierDt Datatype - * (Identifier) - * - *

- * Definition: - * A technical identifier - identifies some entity uniquely and unambiguously - *

- * - *

- * Requirements: - * Need to be able to identify things with confidence and be sure that the identification is not subject to misinterpretation - *

- */ -@DatatypeDef(name="IdentifierDt") -public class IdentifierDt - extends BaseIdentifierDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public IdentifierDt() { - // nothing - } - - /** - * Creates a new identifier with the given system and value - */ - @SimpleSetter - public IdentifierDt(@SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theValue") String theValue) { - setSystem(theSystem); - setValue(theValue); - } - - /** - * Creates a new identifier with the given system and value - */ - @SimpleSetter - public IdentifierDt(@SimpleSetter.Parameter(name="theUse") IdentifierUseEnum theUse, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theValue") String theValue, @SimpleSetter.Parameter(name="theLabel") String theLabel) { - setUse(theUse); - setSystem(theSystem); - setValue(theValue); - setLabel(theLabel); - } - - @Override - public String toString() { - return "IdentifierDt[" + getValueAsQueryToken() + "]"; - } - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identifier.use", - formalDefinition="The purpose of this identifier" - ) - private BoundCodeDt myUse; - - @Child(name="label", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Identifier.label", - formalDefinition="A text string for the identifier that can be displayed to a human so they can recognize the identifier" - ) - private StringDt myLabel; - - @Child(name="system", type=UriDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Identifier.system", - formalDefinition="Establishes the namespace in which set of possible id values is unique." - ) - private UriDt mySystem; - - @Child(name="value", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Identifier.value", - formalDefinition="The portion of the identifier typically displayed to the user and which is unique within the context of the system." - ) - private StringDt myValue; - - @Child(name="period", type=PeriodDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Identifier.period", - formalDefinition="Time period during which identifier is/was valid for use" - ) - private PeriodDt myPeriod; - - @Child(name="assigner", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dev.resource.Organization.class }) - @Description( - shortDefinition="Identifier.assigner", - formalDefinition="Organization that issued/manages the identifier" - ) - private ResourceReferenceDt myAssigner; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myLabel, mySystem, myValue, myPeriod, myAssigner); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myLabel, mySystem, myValue, myPeriod, myAssigner); - } - - /** - * Gets the value(s) for use (Identifier.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(IdentifierUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (Identifier.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use (Identifier.use) - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public IdentifierDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use (Identifier.use) - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public IdentifierDt setUse(IdentifierUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for label (Identifier.label). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public StringDt getLabelElement() { - if (myLabel == null) { - myLabel = new StringDt(); - } - return myLabel; - } - - - /** - * Gets the value(s) for label (Identifier.label). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public String getLabel() { - return getLabelElement().getValue(); - } - - /** - * Sets the value(s) for label (Identifier.label) - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public IdentifierDt setLabel(StringDt theValue) { - myLabel = theValue; - return this; - } - - - - /** - * Sets the value for label (Identifier.label) - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public IdentifierDt setLabel( String theString) { - myLabel = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for system (Identifier.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (Identifier.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system (Identifier.system) - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public IdentifierDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system (Identifier.system) - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public IdentifierDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for value (Identifier.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Identifier.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public String getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value (Identifier.value) - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public IdentifierDt setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value (Identifier.value) - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public IdentifierDt setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for period (Identifier.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period during which identifier is/was valid for use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (Identifier.period) - * - *

- * Definition: - * Time period during which identifier is/was valid for use - *

- */ - public IdentifierDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - - /** - * Gets the value(s) for assigner (Identifier.assigner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that issued/manages the identifier - *

- */ - public ResourceReferenceDt getAssigner() { - if (myAssigner == null) { - myAssigner = new ResourceReferenceDt(); - } - return myAssigner; - } - - /** - * Sets the value(s) for assigner (Identifier.assigner) - * - *

- * Definition: - * Organization that issued/manages the identifier - *

- */ - public IdentifierDt setAssigner(ResourceReferenceDt theValue) { - myAssigner = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/MoneyDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/MoneyDt.java deleted file mode 100644 index c3a77830a46..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/MoneyDt.java +++ /dev/null @@ -1,28 +0,0 @@ -package ca.uhn.fhir.model.dev.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; - -/* - * #%L - * HAPI FHIR Structures - DEV (FHIR Latest) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="MoneyDt") -public class MoneyDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/NarrativeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/NarrativeDt.java deleted file mode 100644 index 56d90ba694d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/NarrativeDt.java +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.List; - -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.base.composite.BaseNarrativeDt; -import ca.uhn.fhir.model.dstu.valueset.NarrativeStatusEnum; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.XhtmlDt; - -/** - * HAPI/FHIR Narrative Datatype - * (A human-readable formatted text, including images) - * - *

- * Definition: - * A human-readable formatted text, including images - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="Narrative") -public class NarrativeDt extends BaseNarrativeDt { - - @Child(name="status", type=CodeDt.class, order=0, min=1, max=1) - private BoundCodeDt myStatus; - - @Child(name="div", type=XhtmlDt.class, order=1, min=1, max=1) - private XhtmlDt myDiv; - - public NarrativeDt() { - // nothing - } - - public NarrativeDt(XhtmlDt theDiv, NarrativeStatusEnum theStatus) { - setDiv(theDiv); - setStatus(theStatus); - } - - @Override - public boolean isEmpty() { - return ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myDiv ); - } - - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( theType, myStatus, myDiv ); - } - - /** - * Gets the value(s) for status (generated | extensions | additional). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(NarrativeStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - /** - * Sets the value(s) for status (generated | extensions | additional) - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public void setStatus(BoundCodeDt theValue) { - myStatus = theValue; - } - - /** - * Sets the value(s) for status (generated | extensions | additional) - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public void setStatus(NarrativeStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - } - - - /** - * Gets the value(s) for div (Limited xhtml content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual narrative content, a stripped down version of XHTML - *

- */ - public XhtmlDt getDiv() { - if (myDiv == null) { - myDiv = new XhtmlDt(); - } - return myDiv; - } - - /** - * Sets the value(s) for div (Limited xhtml content) - * - *

- * Definition: - * The actual narrative content, a stripped down version of XHTML - *

- */ - public void setDiv(XhtmlDt theValue) { - myDiv = theValue; - } - - /** - * Sets the value using a textual DIV (or simple text block which will be - * converted to XHTML) - */ - public void setDiv(String theTextDiv) { - myDiv = new XhtmlDt(theTextDiv); - } - - - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/PeriodDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/PeriodDt.java deleted file mode 100644 index 478abfc48f8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/PeriodDt.java +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR PeriodDt Datatype - * (Period) - * - *

- * Definition: - * A time period defined by a start and end date and optionally time. - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="PeriodDt") -public class PeriodDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public PeriodDt() { - // nothing - } - - - @Child(name="start", type=DateTimeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Period.start", - formalDefinition="The start of the period. The boundary is inclusive." - ) - private DateTimeDt myStart; - - @Child(name="end", type=DateTimeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Period.end", - formalDefinition="The end of the period. If the end of the period is missing, it means that the period is ongoing" - ) - private DateTimeDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStart, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStart, myEnd); - } - - /** - * Gets the value(s) for start (Period.start). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public DateTimeDt getStartElement() { - if (myStart == null) { - myStart = new DateTimeDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Period.start). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public Date getStart() { - return getStartElement().getValue(); - } - - /** - * Sets the value(s) for start (Period.start) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStart(DateTimeDt theValue) { - myStart = theValue; - return this; - } - - - - /** - * Sets the value for start (Period.start) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStart( Date theDate, TemporalPrecisionEnum thePrecision) { - myStart = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for start (Period.start) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStartWithSecondsPrecision( Date theDate) { - myStart = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for end (Period.end). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public DateTimeDt getEndElement() { - if (myEnd == null) { - myEnd = new DateTimeDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (Period.end). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public Date getEnd() { - return getEndElement().getValue(); - } - - /** - * Sets the value(s) for end (Period.end) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEnd(DateTimeDt theValue) { - myEnd = theValue; - return this; - } - - - - /** - * Sets the value for end (Period.end) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for end (Period.end) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEndWithSecondsPrecision( Date theDate) { - myEnd = new DateTimeDt(theDate); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/QuantityDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/QuantityDt.java deleted file mode 100644 index c4a27958f87..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/QuantityDt.java +++ /dev/null @@ -1,529 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR QuantityDt Datatype - * (Quantity) - * - *

- * Definition: - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies - *

- * - *

- * Requirements: - * Need to able to capture all sorts of measured values, even if the measured value are not precisely quantified. Values include exact measures such as 3.51g, customary units such as 3 tablets, and currencies such as $100.32USD - *

- */ -@DatatypeDef(name="QuantityDt") -public class QuantityDt - extends BaseQuantityDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public QuantityDt() { - // nothing - } - - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theValue") double theValue) { - setValue(theValue); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theValue") long theValue) { - setValue(theValue); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") double theValue, - @SimpleSetter.Parameter(name = "theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") long theValue, - @SimpleSetter.Parameter(name = "theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") double theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setSystem(theSystem); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") long theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setSystem(theSystem); - setUnits(theUnits); - } - - - @Child(name="value", type=DecimalDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Quantity.value", - formalDefinition="The value of the measured amount. The value includes an implicit precision in the presentation of the value" - ) - private DecimalDt myValue; - - @Child(name="comparator", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Quantity.comparator", - formalDefinition="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value" - ) - private BoundCodeDt myComparator; - - @Child(name="units", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Quantity.units", - formalDefinition="A human-readable form of the units" - ) - private StringDt myUnits; - - @Child(name="system", type=UriDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Quantity.system", - formalDefinition="The identification of the system that provides the coded form of the unit" - ) - private UriDt mySystem; - - @Child(name="code", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Quantity.code", - formalDefinition="A computer processable form of the units in some unit representation system" - ) - private CodeDt myCode; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myValue, myComparator, myUnits, mySystem, myCode); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myValue, myComparator, myUnits, mySystem, myCode); - } - - /** - * Gets the value(s) for value (Quantity.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public DecimalDt getValueElement() { - if (myValue == null) { - myValue = new DecimalDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Quantity.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public BigDecimal getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value (Quantity.value) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue(DecimalDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value (Quantity.value) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( long theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for value (Quantity.value) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( double theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for value (Quantity.value) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( java.math.BigDecimal theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for comparator (Quantity.comparator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public BoundCodeDt getComparatorElement() { - if (myComparator == null) { - myComparator = new BoundCodeDt(QuantityComparatorEnum.VALUESET_BINDER); - } - return myComparator; - } - - - /** - * Gets the value(s) for comparator (Quantity.comparator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public String getComparator() { - return getComparatorElement().getValue(); - } - - /** - * Sets the value(s) for comparator (Quantity.comparator) - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public QuantityDt setComparator(BoundCodeDt theValue) { - myComparator = theValue; - return this; - } - - - - /** - * Sets the value(s) for comparator (Quantity.comparator) - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public QuantityDt setComparator(QuantityComparatorEnum theValue) { - getComparatorElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for units (Quantity.units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public StringDt getUnitsElement() { - if (myUnits == null) { - myUnits = new StringDt(); - } - return myUnits; - } - - - /** - * Gets the value(s) for units (Quantity.units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public String getUnits() { - return getUnitsElement().getValue(); - } - - /** - * Sets the value(s) for units (Quantity.units) - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public QuantityDt setUnits(StringDt theValue) { - myUnits = theValue; - return this; - } - - - - /** - * Sets the value for units (Quantity.units) - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public QuantityDt setUnits( String theString) { - myUnits = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for system (Quantity.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (Quantity.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system (Quantity.system) - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public QuantityDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system (Quantity.system) - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public QuantityDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for code (Quantity.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Quantity.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code (Quantity.code) - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public QuantityDt setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code (Quantity.code) - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public QuantityDt setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/RangeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/RangeDt.java deleted file mode 100644 index 1c9e957e03b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/RangeDt.java +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR RangeDt Datatype - * (Range) - * - *

- * Definition: - * A set of ordered Quantities defined by a low and high limit. - *

- * - *

- * Requirements: - * Need to be able to specify ranges of values - *

- */ -@DatatypeDef(name="RangeDt") -public class RangeDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public RangeDt() { - // nothing - } - - - @Child(name="low", type=QuantityDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Range.low", - formalDefinition="The low limit. The boundary is inclusive." - ) - private QuantityDt myLow; - - @Child(name="high", type=QuantityDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Range.high", - formalDefinition="The high limit. The boundary is inclusive." - ) - private QuantityDt myHigh; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLow, myHigh); - } - - /** - * Gets the value(s) for low (Range.low). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public QuantityDt getLow() { - if (myLow == null) { - myLow = new QuantityDt(); - } - return myLow; - } - - /** - * Sets the value(s) for low (Range.low) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow(QuantityDt theValue) { - myLow = theValue; - return this; - } - - - - - /** - * Gets the value(s) for high (Range.high). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public QuantityDt getHigh() { - if (myHigh == null) { - myHigh = new QuantityDt(); - } - return myHigh; - } - - /** - * Sets the value(s) for high (Range.high) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh(QuantityDt theValue) { - myHigh = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/RatioDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/RatioDt.java deleted file mode 100644 index 670e0fd83ce..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/RatioDt.java +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR RatioDt Datatype - * (Ratio) - * - *

- * Definition: - * A relationship of two Quantity values - expressed as a numerator and a denominator. - *

- * - *

- * Requirements: - * Need to able to capture ratios for some measurements (titers) and some rates (costs) - *

- */ -@DatatypeDef(name="RatioDt") -public class RatioDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public RatioDt() { - // nothing - } - - - @Child(name="numerator", type=QuantityDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Ratio.numerator", - formalDefinition="The value of the numerator" - ) - private QuantityDt myNumerator; - - @Child(name="denominator", type=QuantityDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Ratio.denominator", - formalDefinition="The value of the denominator" - ) - private QuantityDt myDenominator; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumerator, myDenominator); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myNumerator, myDenominator); - } - - /** - * Gets the value(s) for numerator (Ratio.numerator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the numerator - *

- */ - public QuantityDt getNumerator() { - if (myNumerator == null) { - myNumerator = new QuantityDt(); - } - return myNumerator; - } - - /** - * Sets the value(s) for numerator (Ratio.numerator) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator(QuantityDt theValue) { - myNumerator = theValue; - return this; - } - - - - - /** - * Gets the value(s) for denominator (Ratio.denominator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the denominator - *

- */ - public QuantityDt getDenominator() { - if (myDenominator == null) { - myDenominator = new QuantityDt(); - } - return myDenominator; - } - - /** - * Sets the value(s) for denominator (Ratio.denominator) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator(QuantityDt theValue) { - myDenominator = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ReferenceDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ReferenceDt.java deleted file mode 100644 index 0fd96803111..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ReferenceDt.java +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR ReferenceDt Datatype - * (Reference) - * - *

- * Definition: - * A reference from one resource to another - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="ReferenceDt") -public class ReferenceDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ReferenceDt() { - // nothing - } - - - @Child(name="reference", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Reference.reference", - formalDefinition="A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources" - ) - private StringDt myReference; - - @Child(name="display", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Reference.display", - formalDefinition="Plain text narrative that identifies the resource in addition to the resource reference" - ) - private StringDt myDisplay; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReference, myDisplay); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myReference, myDisplay); - } - - /** - * Gets the value(s) for reference (Reference.reference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public StringDt getReferenceElement() { - if (myReference == null) { - myReference = new StringDt(); - } - return myReference; - } - - - /** - * Gets the value(s) for reference (Reference.reference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public String getReference() { - return getReferenceElement().getValue(); - } - - /** - * Sets the value(s) for reference (Reference.reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ReferenceDt setReference(StringDt theValue) { - myReference = theValue; - return this; - } - - - - /** - * Sets the value for reference (Reference.reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ReferenceDt setReference( String theString) { - myReference = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for display (Reference.display). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Reference.display). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display (Reference.display) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ReferenceDt setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display (Reference.display) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ReferenceDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ResourceReferenceDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ResourceReferenceDt.java deleted file mode 100644 index 2403bf64a7e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/ResourceReferenceDt.java +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.List; - -import ca.uhn.fhir.model.api.ICompositeDatatype; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.SimpleSetter; -import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.StringDt; - -/** - * HAPI/FHIR ResourceReferenceDt Datatype - * (A reference from one resource to another) - * - *

- * Definition: - * A reference from one resource to another - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="ResourceReferenceDt") -public class ResourceReferenceDt - extends BaseResourceReferenceDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ResourceReferenceDt() { - // nothing - } - - /** - * Constructor which creates a resource reference containing the actual resource in question. - *

- * When using this in a server: Generally if this is serialized, it will be serialized as a contained - * resource, so this should not be used if the intent is not to actually supply the referenced resource. This is not - * a hard-and-fast rule however, as the server can be configured to not serialized this resource, or to load an ID - * and contain even if this constructor is not used. - *

- * - * @param theResource - * The resource instance - */ - @SimpleSetter() - public ResourceReferenceDt(IResource theResource) { - super(theResource); - } - - /** - * Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute - * URL) - * - * @param theId - * The reference itself - */ - public ResourceReferenceDt(String theId) { - setReference(new IdDt(theId)); - } - - /** - * Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute - * URL) - * - * @param theResourceId - * The reference itself - */ - public ResourceReferenceDt(IdDt theResourceId) { - setReference(theResourceId); - } - - @Child(name="reference", type=IdDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Relative, internal or absolute URL reference", - formalDefinition="A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources" - ) - private IdDt myReference; - - @Child(name="display", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Text alternative for the resource", - formalDefinition="Plain text narrative that identifies the resource in addition to the resource reference" - ) - private StringDt myDisplay; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReference, myDisplay); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myReference, myDisplay); - } - - /** - * Gets the value(s) for reference (Relative, internal or absolute URL reference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public IdDt getReference() { - if (myReference == null) { - myReference = new IdDt(); - } - return myReference; - } - - /** - * Sets the value(s) for reference (Relative, internal or absolute URL reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ResourceReferenceDt setReference(IdDt theValue) { - myReference = theValue; - return this; - } - - /** - * Sets the value for reference (Relative, internal or absolute URL reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ResourceReferenceDt setReference( String theId) { - myReference = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for display (Text alternative for the resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - /** - * Sets the value(s) for display (Text alternative for the resource) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ResourceReferenceDt setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (Text alternative for the resource) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ResourceReferenceDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - @Override - public StringDt getDisplayElement() { - return getDisplay(); - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/SampledDataDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/SampledDataDt.java deleted file mode 100644 index 4f5ffa95b18..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/SampledDataDt.java +++ /dev/null @@ -1,652 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR SampledDataDt Datatype - * (SampledData) - * - *

- * Definition: - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data - *

- * - *

- * Requirements: - * There is a need for a concise way to handle the data produced by devices that sample a physical state at a high frequency - *

- */ -@DatatypeDef(name="SampledDataDt") -public class SampledDataDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public SampledDataDt() { - // nothing - } - - - @Child(name="origin", type=QuantityDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="SampledData.origin", - formalDefinition="The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series" - ) - private QuantityDt myOrigin; - - @Child(name="period", type=DecimalDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="SampledData.period", - formalDefinition="The length of time between sampling times, measured in milliseconds" - ) - private DecimalDt myPeriod; - - @Child(name="factor", type=DecimalDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="SampledData.factor", - formalDefinition="A correction factor that is applied to the sampled data points before they are added to the origin" - ) - private DecimalDt myFactor; - - @Child(name="lowerLimit", type=DecimalDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="SampledData.lowerLimit", - formalDefinition="The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)" - ) - private DecimalDt myLowerLimit; - - @Child(name="upperLimit", type=DecimalDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="SampledData.upperLimit", - formalDefinition="The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)" - ) - private DecimalDt myUpperLimit; - - @Child(name="dimensions", type=IntegerDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="SampledData.dimensions", - formalDefinition="The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once" - ) - private IntegerDt myDimensions; - - @Child(name="data", type=StringDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="SampledData.data", - formalDefinition="A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value" - ) - private StringDt myData; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData); - } - - /** - * Gets the value(s) for origin (SampledData.origin). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public QuantityDt getOrigin() { - if (myOrigin == null) { - myOrigin = new QuantityDt(); - } - return myOrigin; - } - - /** - * Sets the value(s) for origin (SampledData.origin) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin(QuantityDt theValue) { - myOrigin = theValue; - return this; - } - - - - - /** - * Gets the value(s) for period (SampledData.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public DecimalDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new DecimalDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (SampledData.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public BigDecimal getPeriod() { - return getPeriodElement().getValue(); - } - - /** - * Sets the value(s) for period (SampledData.period) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod(DecimalDt theValue) { - myPeriod = theValue; - return this; - } - - - - /** - * Sets the value for period (SampledData.period) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( long theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for period (SampledData.period) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( double theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for period (SampledData.period) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( java.math.BigDecimal theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for factor (SampledData.factor). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public DecimalDt getFactorElement() { - if (myFactor == null) { - myFactor = new DecimalDt(); - } - return myFactor; - } - - - /** - * Gets the value(s) for factor (SampledData.factor). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public BigDecimal getFactor() { - return getFactorElement().getValue(); - } - - /** - * Sets the value(s) for factor (SampledData.factor) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor(DecimalDt theValue) { - myFactor = theValue; - return this; - } - - - - /** - * Sets the value for factor (SampledData.factor) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( long theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for factor (SampledData.factor) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( double theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for factor (SampledData.factor) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( java.math.BigDecimal theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for lowerLimit (SampledData.lowerLimit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public DecimalDt getLowerLimitElement() { - if (myLowerLimit == null) { - myLowerLimit = new DecimalDt(); - } - return myLowerLimit; - } - - - /** - * Gets the value(s) for lowerLimit (SampledData.lowerLimit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public BigDecimal getLowerLimit() { - return getLowerLimitElement().getValue(); - } - - /** - * Sets the value(s) for lowerLimit (SampledData.lowerLimit) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit(DecimalDt theValue) { - myLowerLimit = theValue; - return this; - } - - - - /** - * Sets the value for lowerLimit (SampledData.lowerLimit) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( long theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for lowerLimit (SampledData.lowerLimit) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( double theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for lowerLimit (SampledData.lowerLimit) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( java.math.BigDecimal theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for upperLimit (SampledData.upperLimit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public DecimalDt getUpperLimitElement() { - if (myUpperLimit == null) { - myUpperLimit = new DecimalDt(); - } - return myUpperLimit; - } - - - /** - * Gets the value(s) for upperLimit (SampledData.upperLimit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public BigDecimal getUpperLimit() { - return getUpperLimitElement().getValue(); - } - - /** - * Sets the value(s) for upperLimit (SampledData.upperLimit) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit(DecimalDt theValue) { - myUpperLimit = theValue; - return this; - } - - - - /** - * Sets the value for upperLimit (SampledData.upperLimit) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( long theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for upperLimit (SampledData.upperLimit) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( double theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for upperLimit (SampledData.upperLimit) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( java.math.BigDecimal theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for dimensions (SampledData.dimensions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public IntegerDt getDimensionsElement() { - if (myDimensions == null) { - myDimensions = new IntegerDt(); - } - return myDimensions; - } - - - /** - * Gets the value(s) for dimensions (SampledData.dimensions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public Integer getDimensions() { - return getDimensionsElement().getValue(); - } - - /** - * Sets the value(s) for dimensions (SampledData.dimensions) - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public SampledDataDt setDimensions(IntegerDt theValue) { - myDimensions = theValue; - return this; - } - - - - /** - * Sets the value for dimensions (SampledData.dimensions) - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public SampledDataDt setDimensions( int theInteger) { - myDimensions = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for data (SampledData.data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public StringDt getDataElement() { - if (myData == null) { - myData = new StringDt(); - } - return myData; - } - - - /** - * Gets the value(s) for data (SampledData.data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public String getData() { - return getDataElement().getValue(); - } - - /** - * Sets the value(s) for data (SampledData.data) - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public SampledDataDt setData(StringDt theValue) { - myData = theValue; - return this; - } - - - - /** - * Sets the value for data (SampledData.data) - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public SampledDataDt setData( String theString) { - myData = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/TimingDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/TimingDt.java deleted file mode 100644 index d29855e036e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/composite/TimingDt.java +++ /dev/null @@ -1,683 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.composite; - -import java.net.URI; -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dev.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dev.valueset.NameUseEnum; -import ca.uhn.fhir.model.dev.resource.Organization; -import ca.uhn.fhir.model.dev.composite.PeriodDt; -import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dev.composite.QuantityDt; -import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dev.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR TimingDt Datatype - * (Timing) - * - *

- * Definition: - * Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur. - *

- * - *

- * Requirements: - * Need to able to track proposed timing schedules. There are several different ways to do this: one or more specified times, a simple rules like three times a day, or before/after meals - *

- */ -@DatatypeDef(name="TimingDt") -public class TimingDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public TimingDt() { - // nothing - } - - - @Child(name="event", type=PeriodDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Timing.event", - formalDefinition="Identifies specific time periods when the event should occur" - ) - private java.util.List myEvent; - - @Child(name="repeat", order=1, min=0, max=1) - @Description( - shortDefinition="Timing.repeat", - formalDefinition="Identifies a repeating pattern to the intended time periods." - ) - private Repeat myRepeat; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myRepeat); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEvent, myRepeat); - } - - /** - * Gets the value(s) for event (Timing.event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public java.util.List getEvent() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - /** - * Sets the value(s) for event (Timing.event) - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public TimingDt setEvent(java.util.List theValue) { - myEvent = theValue; - return this; - } - - - - /** - * Adds and returns a new value for event (Timing.event) - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public PeriodDt addEvent() { - PeriodDt newType = new PeriodDt(); - getEvent().add(newType); - return newType; - } - - /** - * Gets the first repetition for event (Timing.event), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public PeriodDt getEventFirstRep() { - if (getEvent().isEmpty()) { - return addEvent(); - } - return getEvent().get(0); - } - - /** - * Gets the value(s) for repeat (Timing.repeat). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - public Repeat getRepeat() { - if (myRepeat == null) { - myRepeat = new Repeat(); - } - return myRepeat; - } - - /** - * Sets the value(s) for repeat (Timing.repeat) - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - public TimingDt setRepeat(Repeat theValue) { - myRepeat = theValue; - return this; - } - - - - - /** - * Block class for child element: Timing.repeat (Timing.repeat) - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - @Block() - public static class Repeat - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="frequency", type=IntegerDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Timing.repeat.frequency", - formalDefinition="Indicates how often the event should occur." - ) - private IntegerDt myFrequency; - - @Child(name="when", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Timing.repeat.when", - formalDefinition="Identifies the occurrence of daily life that determines timing" - ) - private BoundCodeDt myWhen; - - @Child(name="duration", type=DecimalDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Timing.repeat.duration", - formalDefinition="How long each repetition should last" - ) - private DecimalDt myDuration; - - @Child(name="units", type=CodeDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Timing.repeat.units", - formalDefinition="The units of time for the duration" - ) - private BoundCodeDt myUnits; - - @Child(name="count", type=IntegerDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Timing.repeat.count", - formalDefinition="A total count of the desired number of repetitions" - ) - private IntegerDt myCount; - - @Child(name="end", type=DateTimeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Timing.repeat.end", - formalDefinition="When to stop repeating the timing schedule" - ) - private DateTimeDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myFrequency, myWhen, myDuration, myUnits, myCount, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myFrequency, myWhen, myDuration, myUnits, myCount, myEnd); - } - - /** - * Gets the value(s) for frequency (Timing.repeat.frequency). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public IntegerDt getFrequencyElement() { - if (myFrequency == null) { - myFrequency = new IntegerDt(); - } - return myFrequency; - } - - - /** - * Gets the value(s) for frequency (Timing.repeat.frequency). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public Integer getFrequency() { - return getFrequencyElement().getValue(); - } - - /** - * Sets the value(s) for frequency (Timing.repeat.frequency) - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public Repeat setFrequency(IntegerDt theValue) { - myFrequency = theValue; - return this; - } - - - - /** - * Sets the value for frequency (Timing.repeat.frequency) - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public Repeat setFrequency( int theInteger) { - myFrequency = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for when (Timing.repeat.when). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public BoundCodeDt getWhenElement() { - if (myWhen == null) { - myWhen = new BoundCodeDt(EventTimingEnum.VALUESET_BINDER); - } - return myWhen; - } - - - /** - * Gets the value(s) for when (Timing.repeat.when). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public String getWhen() { - return getWhenElement().getValue(); - } - - /** - * Sets the value(s) for when (Timing.repeat.when) - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public Repeat setWhen(BoundCodeDt theValue) { - myWhen = theValue; - return this; - } - - - - /** - * Sets the value(s) for when (Timing.repeat.when) - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public Repeat setWhen(EventTimingEnum theValue) { - getWhenElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for duration (Timing.repeat.duration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How long each repetition should last - *

- */ - public DecimalDt getDurationElement() { - if (myDuration == null) { - myDuration = new DecimalDt(); - } - return myDuration; - } - - - /** - * Gets the value(s) for duration (Timing.repeat.duration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How long each repetition should last - *

- */ - public BigDecimal getDuration() { - return getDurationElement().getValue(); - } - - /** - * Sets the value(s) for duration (Timing.repeat.duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration(DecimalDt theValue) { - myDuration = theValue; - return this; - } - - - - /** - * Sets the value for duration (Timing.repeat.duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( long theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for duration (Timing.repeat.duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( double theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for duration (Timing.repeat.duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( java.math.BigDecimal theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for units (Timing.repeat.units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The units of time for the duration - *

- */ - public BoundCodeDt getUnitsElement() { - if (myUnits == null) { - myUnits = new BoundCodeDt(UnitsOfTimeEnum.VALUESET_BINDER); - } - return myUnits; - } - - - /** - * Gets the value(s) for units (Timing.repeat.units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The units of time for the duration - *

- */ - public String getUnits() { - return getUnitsElement().getValue(); - } - - /** - * Sets the value(s) for units (Timing.repeat.units) - * - *

- * Definition: - * The units of time for the duration - *

- */ - public Repeat setUnits(BoundCodeDt theValue) { - myUnits = theValue; - return this; - } - - - - /** - * Sets the value(s) for units (Timing.repeat.units) - * - *

- * Definition: - * The units of time for the duration - *

- */ - public Repeat setUnits(UnitsOfTimeEnum theValue) { - getUnitsElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for count (Timing.repeat.count). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public IntegerDt getCountElement() { - if (myCount == null) { - myCount = new IntegerDt(); - } - return myCount; - } - - - /** - * Gets the value(s) for count (Timing.repeat.count). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public Integer getCount() { - return getCountElement().getValue(); - } - - /** - * Sets the value(s) for count (Timing.repeat.count) - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public Repeat setCount(IntegerDt theValue) { - myCount = theValue; - return this; - } - - - - /** - * Sets the value for count (Timing.repeat.count) - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public Repeat setCount( int theInteger) { - myCount = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (Timing.repeat.end). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public DateTimeDt getEndElement() { - if (myEnd == null) { - myEnd = new DateTimeDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (Timing.repeat.end). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public Date getEnd() { - return getEndElement().getValue(); - } - - /** - * Sets the value(s) for end (Timing.repeat.end) - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public Repeat setEnd(DateTimeDt theValue) { - myEnd = theValue; - return this; - } - - - - /** - * Sets the value for end (Timing.repeat.end) - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public Repeat setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for end (Timing.repeat.end) - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public Repeat setEndWithSecondsPrecision( Date theDate) { - myEnd = new DateTimeDt(theDate); - return this; - } - - - - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/BaseResource.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/BaseResource.java deleted file mode 100644 index bba6e6c67d3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/BaseResource.java +++ /dev/null @@ -1,164 +0,0 @@ -package ca.uhn.fhir.model.dev.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import org.apache.commons.lang3.Validate; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -import ca.uhn.fhir.model.api.BaseElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.base.resource.ResourceMetadataMap; -import ca.uhn.fhir.model.dev.composite.ContainedDt; -import ca.uhn.fhir.model.dev.composite.NarrativeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.util.ElementUtil; - -public abstract class BaseResource extends BaseElement implements IResource { - - /** - * Search parameter constant for _language - */ - @SearchParamDefinition(name="_language", path="", description="The language of the resource", type="string" ) - public static final String SP_RES_LANGUAGE = "_language"; - - - /** - * Search parameter constant for _id - */ - @SearchParamDefinition(name="_id", path="", description="The ID of the resource", type="string" ) - public static final String SP_RES_ID = "_id"; - - /** - * Fluent Client search parameter constant for _id - *

- * Description: the _id of a resource
- * Type: string
- * Path: Resource._id
- *

- */ - public static final StringClientParam RES_ID = new StringClientParam(BaseResource.SP_RES_ID); - - - @Child(name = "contained", order = 2, min = 0, max = 1) - private ContainedDt myContained; - - private IdDt myId; - - @Child(name = "language", order = 0, min = 0, max = Child.MAX_UNLIMITED) - private CodeDt myLanguage; - - private ResourceMetadataMap myResourceMetadata; - - @Child(name = "text", order = 1, min = 0, max = 1) - private NarrativeDt myText; - - @Override - public ContainedDt getContained() { - if (myContained == null) { - myContained = new ContainedDt(); - } - return myContained; - } - - public IdDt getId() { - if (myId == null) { - myId = new IdDt(); - } - return myId; - } - - @Override - public CodeDt getLanguage() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - @Override - public ResourceMetadataMap getResourceMetadata() { - if (myResourceMetadata == null) { - myResourceMetadata = new ResourceMetadataMap(); - } - return myResourceMetadata; - } - - @Override - public NarrativeDt getText() { - if (myText == null) { - myText = new NarrativeDt(); - } - return myText; - } - - public void setContained(ContainedDt theContained) { - myContained = theContained; - } - - public void setId(IdDt theId) { - myId = theId; - } - - public void setId(String theId) { - if (theId == null) { - myId = null; - } else { - myId = new IdDt(theId); - } - } - - @Override - public void setLanguage(CodeDt theLanguage) { - myLanguage = theLanguage; - } - - @Override - public void setResourceMetadata(ResourceMetadataMap theMap) { - Validate.notNull(theMap, "The Map must not be null"); - myResourceMetadata = theMap; - } - - public void setText(NarrativeDt theText) { - myText = theText; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); - b.append("id", getId().toUnqualified()); - return b.toString(); - } - - /** - * Intended to be called by extending classes {@link #isEmpty()} implementations, returns true if all - * content in this superclass instance is empty per the semantics of {@link #isEmpty()}. - */ - @Override - protected boolean isBaseEmpty() { - return super.isBaseEmpty() && ElementUtil.isEmpty(myLanguage, myText, myId); - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Conformance.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Conformance.java deleted file mode 100644 index 4f2b5e5351f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Conformance.java +++ /dev/null @@ -1,5636 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.resource; - -import java.net.URI; -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt; -import ca.uhn.fhir.model.dev.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.composite.ContactPointDt; -import ca.uhn.fhir.model.dev.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dev.valueset.ResourceVersionPolicyEnum; -import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum; -import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Conformance Resource - * () - * - *

- * Definition: - * A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Conformance - *

- * - */ -@ResourceDef(name="Conformance", profile="http://hl7.org/fhir/profiles/Conformance", id="conformance") -public class Conformance extends BaseResource implements ca.uhn.fhir.model.base.resource.BaseConformance { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the conformance statement
- * Type: token
- * Path: Conformance.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Conformance.identifier", description="The identifier of the conformance statement", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: The identifier of the conformance statement
- * Type: token
- * Path: Conformance.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the conformance statement
- * Type: token
- * Path: Conformance.version
- *

- */ - @SearchParamDefinition(name="version", path="Conformance.version", description="The version identifier of the conformance statement", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the conformance statement
- * Type: token
- * Path: Conformance.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: Name of the conformance statement
- * Type: string
- * Path: Conformance.name
- *

- */ - @SearchParamDefinition(name="name", path="Conformance.name", description="Name of the conformance statement", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: Name of the conformance statement
- * Type: string
- * Path: Conformance.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the conformance statement
- * Type: string
- * Path: Conformance.publisher
- *

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

- * Description: Name of the publisher of the conformance statement
- * Type: string
- * Path: Conformance.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the conformance statement
- * Type: string
- * Path: Conformance.description
- *

- */ - @SearchParamDefinition(name="description", path="Conformance.description", description="Text search in the description of the conformance statement", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the conformance statement
- * Type: string
- * Path: Conformance.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: The current status of the conformance statement
- * Type: token
- * Path: Conformance.status
- *

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

- * Description: The current status of the conformance statement
- * Type: token
- * Path: Conformance.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The conformance statement publication date
- * Type: date
- * Path: Conformance.date
- *

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

- * Description: The conformance statement publication date
- * Type: date
- * Path: Conformance.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for software - *

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

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

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

- */ - public static final StringClientParam SOFTWARE = new StringClientParam(SP_SOFTWARE); - - /** - * Search parameter constant for fhirversion - *

- * Description: The version of FHIR
- * Type: token
- * Path: Conformance.version
- *

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

- * Description: The version of FHIR
- * Type: token
- * Path: Conformance.version
- *

- */ - public static final TokenClientParam FHIRVERSION = new TokenClientParam(SP_FHIRVERSION); - - /** - * Search parameter constant for resource - *

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

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

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

- */ - public static final TokenClientParam RESOURCE = new TokenClientParam(SP_RESOURCE); - - /** - * Search parameter constant for event - *

- * Description: Event code in a conformance statement
- * Type: token
- * Path: Conformance.messaging.event.code
- *

- */ - @SearchParamDefinition(name="event", path="Conformance.messaging.event.code", description="Event code in a conformance statement", type="token" ) - public static final String SP_EVENT = "event"; - - /** - * Fluent Client search parameter constant for event - *

- * Description: Event code in a conformance statement
- * Type: token
- * Path: Conformance.messaging.event.code
- *

- */ - public static final TokenClientParam EVENT = new TokenClientParam(SP_EVENT); - - /** - * Search parameter constant for mode - *

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

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

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

- */ - public static final TokenClientParam MODE = new TokenClientParam(SP_MODE); - - /** - * Search parameter constant for profile - *

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

- */ - @SearchParamDefinition(name="profile", path="Conformance.rest.resource.profile", description="A profile id invoked in a conformance statement", type="reference" ) - public static final String SP_PROFILE = "profile"; - - /** - * Fluent Client search parameter constant for profile - *

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

- */ - public static final ReferenceClientParam PROFILE = new ReferenceClientParam(SP_PROFILE); - - /** - * Search parameter constant for format - *

- * Description:
- * Type: token
- * Path: Conformance.format
- *

- */ - @SearchParamDefinition(name="format", path="Conformance.format", description="", type="token" ) - public static final String SP_FORMAT = "format"; - - /** - * Fluent Client search parameter constant for format - *

- * Description:
- * Type: token
- * Path: Conformance.format
- *

- */ - public static final TokenClientParam FORMAT = new TokenClientParam(SP_FORMAT); - - /** - * Search parameter constant for security - *

- * Description:
- * Type: token
- * Path: Conformance.rest.security
- *

- */ - @SearchParamDefinition(name="security", path="Conformance.rest.security", description="", type="token" ) - public static final String SP_SECURITY = "security"; - - /** - * Fluent Client search parameter constant for security - *

- * Description:
- * Type: token
- * Path: Conformance.rest.security
- *

- */ - public static final TokenClientParam SECURITY = new TokenClientParam(SP_SECURITY); - - /** - * Search parameter constant for supported-profile - *

- * Description:
- * Type: reference
- * Path: Conformance.profile
- *

- */ - @SearchParamDefinition(name="supported-profile", path="Conformance.profile", description="", type="reference" ) - public static final String SP_SUPPORTED_PROFILE = "supported-profile"; - - /** - * Fluent Client search parameter constant for supported-profile - *

- * Description:
- * Type: reference
- * Path: Conformance.profile
- *

- */ - public static final ReferenceClientParam SUPPORTED_PROFILE = new ReferenceClientParam(SP_SUPPORTED_PROFILE); - - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.date". - */ - public static final Include INCLUDE_DATE = new Include("Conformance.date"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.description". - */ - public static final Include INCLUDE_DESCRIPTION = new Include("Conformance.description"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.format". - */ - public static final Include INCLUDE_FORMAT = new Include("Conformance.format"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.identifier". - */ - public static final Include INCLUDE_IDENTIFIER = new Include("Conformance.identifier"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.messaging.event.code". - */ - public static final Include INCLUDE_MESSAGING_EVENT_CODE = new Include("Conformance.messaging.event.code"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.name". - */ - public static final Include INCLUDE_NAME = new Include("Conformance.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.profile". - */ - public static final Include INCLUDE_PROFILE = new Include("Conformance.profile"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.publisher". - */ - public static final Include INCLUDE_PUBLISHER = new Include("Conformance.publisher"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.rest.mode". - */ - public static final Include INCLUDE_REST_MODE = new Include("Conformance.rest.mode"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.rest.resource.profile". - */ - public static final Include INCLUDE_REST_RESOURCE_PROFILE = new Include("Conformance.rest.resource.profile"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.rest.resource.type". - */ - public static final Include INCLUDE_REST_RESOURCE_TYPE = new Include("Conformance.rest.resource.type"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.rest.security". - */ - public static final Include INCLUDE_REST_SECURITY = new Include("Conformance.rest.security"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.software.name". - */ - public static final Include INCLUDE_SOFTWARE_NAME = new Include("Conformance.software.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.status". - */ - public static final Include INCLUDE_STATUS = new Include("Conformance.status"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.version". - */ - public static final Include INCLUDE_VERSION = new Include("Conformance.version"); - - - @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" - ) - private StringDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" - ) - private StringDt myVersion; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language name identifying the conformance statement" - ) - private StringDt myName; - - @Child(name="publisher", type=StringDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Name of Organization publishing this conformance statement" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactPointDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc." - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP" - ) - private StringDt myDescription; - - @Child(name="status", type=CodeDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="ConformanceStatementStatus", - formalDefinition="The status of this conformance statement" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="date", type=DateTimeDt.class, order=8, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The date (and optionally time) when the conformance statement was published" - ) - private DateTimeDt myDate; - - @Child(name="software", order=9, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation." - ) - private Software mySoftware; - - @Child(name="implementation", order=10, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program" - ) - private Implementation myImplementation; - - @Child(name="fhirVersion", type=IdDt.class, order=11, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The version of the FHIR specification on which this conformance statement is based" - ) - private IdDt myFhirVersion; - - @Child(name="acceptUnknown", type=BooleanDt.class, order=12, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="A flag that indicates whether the application accepts unknown elements as part of a resource." - ) - private BooleanDt myAcceptUnknown; - - @Child(name="format", type=CodeDt.class, order=13, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="MimeType", - formalDefinition="A list of the formats supported by this implementation" - ) - private java.util.List myFormat; - - @Child(name="profile", order=14, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dev.resource.Profile.class }) - @Description( - shortDefinition="", - formalDefinition="A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile." - ) - private java.util.List myProfile; - - @Child(name="rest", order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A definition of the restful capabilities of the solution, if any" - ) - private java.util.List myRest; - - @Child(name="messaging", order=16, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A description of the messaging capabilities of the solution" - ) - private java.util.List myMessaging; - - @Child(name="document", order=17, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A document definition" - ) - private java.util.List myDocument; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myStatus, myExperimental, myDate, mySoftware, myImplementation, myFhirVersion, myAcceptUnknown, myFormat, myProfile, myRest, myMessaging, myDocument); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myStatus, myExperimental, myDate, mySoftware, myImplementation, myFhirVersion, myAcceptUnknown, myFormat, myProfile, myRest, myMessaging, myDocument); - } - - /** - * Gets the value(s) for identifier (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public String getIdentifier() { - return getIdentifierElement().getValue(); - } - - /** - * Sets the value(s) for identifier () - * - *

- * Definition: - * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public Conformance setIdentifier(StringDt theValue) { - myIdentifier = theValue; - return this; - } - - - - /** - * Sets the value for identifier () - * - *

- * Definition: - * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public Conformance setIdentifier( String theString) { - myIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public Conformance setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public Conformance setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the conformance statement - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the conformance statement - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A free text natural language name identifying the conformance statement - *

- */ - public Conformance setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * A free text natural language name identifying the conformance statement - *

- */ - public Conformance setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publisher (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of Organization publishing this conformance statement - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of Organization publishing this conformance statement - *

- */ - public String getPublisher() { - return getPublisherElement().getValue(); - } - - /** - * Sets the value(s) for publisher () - * - *

- * Definition: - * Name of Organization publishing this conformance statement - *

- */ - public Conformance setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - - - /** - * Sets the value for publisher () - * - *

- * Definition: - * Name of Organization publishing this conformance statement - *

- */ - public Conformance setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public Conformance setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description () - * - *

- * Definition: - * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP - *

- */ - public Conformance setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description () - * - *

- * Definition: - * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP - *

- */ - public Conformance setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (ConformanceStatementStatus). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this conformance statement - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ConformanceStatementStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (ConformanceStatementStatus). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this conformance statement - *

- */ - public String getStatus() { - return getStatusElement().getValue(); - } - - /** - * Sets the value(s) for status (ConformanceStatementStatus) - * - *

- * Definition: - * The status of this conformance statement - *

- */ - public Conformance setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - - - /** - * Sets the value(s) for status (ConformanceStatementStatus) - * - *

- * Definition: - * The status of this conformance statement - *

- */ - public Conformance setStatus(ConformanceStatementStatusEnum theValue) { - getStatusElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Boolean getExperimental() { - return getExperimentalElement().getValue(); - } - - /** - * Sets the value(s) for experimental () - * - *

- * Definition: - * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Conformance setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - - - /** - * Sets the value for experimental () - * - *

- * Definition: - * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Conformance setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date (and optionally time) when the conformance statement was published - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date (and optionally time) when the conformance statement was published - *

- */ - public Date getDate() { - return getDateElement().getValue(); - } - - /** - * Sets the value(s) for date () - * - *

- * Definition: - * The date (and optionally time) when the conformance statement was published - *

- */ - public Conformance setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - - - /** - * Sets the value for date () - * - *

- * Definition: - * The date (and optionally time) when the conformance statement was published - *

- */ - public Conformance setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date () - * - *

- * Definition: - * The date (and optionally time) when the conformance statement was published - *

- */ - public Conformance setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for software (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation. - *

- */ - public Software getSoftware() { - if (mySoftware == null) { - mySoftware = new Software(); - } - return mySoftware; - } - - /** - * Sets the value(s) for software () - * - *

- * Definition: - * Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation. - *

- */ - public Conformance setSoftware(Software theValue) { - mySoftware = theValue; - return this; - } - - - - - /** - * Gets the value(s) for implementation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program - *

- */ - public Implementation getImplementation() { - if (myImplementation == null) { - myImplementation = new Implementation(); - } - return myImplementation; - } - - /** - * Sets the value(s) for implementation () - * - *

- * Definition: - * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program - *

- */ - public Conformance setImplementation(Implementation theValue) { - myImplementation = theValue; - return this; - } - - - - - /** - * Gets the value(s) for fhirVersion (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the FHIR specification on which this conformance statement is based - *

- */ - public IdDt getFhirVersionElement() { - if (myFhirVersion == null) { - myFhirVersion = new IdDt(); - } - return myFhirVersion; - } - - - /** - * Gets the value(s) for fhirVersion (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the FHIR specification on which this conformance statement is based - *

- */ - public String getFhirVersion() { - return getFhirVersionElement().getValue(); - } - - /** - * Sets the value(s) for fhirVersion () - * - *

- * Definition: - * The version of the FHIR specification on which this conformance statement is based - *

- */ - public Conformance setFhirVersion(IdDt theValue) { - myFhirVersion = theValue; - return this; - } - - - - /** - * Sets the value for fhirVersion () - * - *

- * Definition: - * The version of the FHIR specification on which this conformance statement is based - *

- */ - public Conformance setFhirVersion( String theId) { - myFhirVersion = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for acceptUnknown (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag that indicates whether the application accepts unknown elements as part of a resource. - *

- */ - public BooleanDt getAcceptUnknownElement() { - if (myAcceptUnknown == null) { - myAcceptUnknown = new BooleanDt(); - } - return myAcceptUnknown; - } - - - /** - * Gets the value(s) for acceptUnknown (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag that indicates whether the application accepts unknown elements as part of a resource. - *

- */ - public Boolean getAcceptUnknown() { - return getAcceptUnknownElement().getValue(); - } - - /** - * Sets the value(s) for acceptUnknown () - * - *

- * Definition: - * A flag that indicates whether the application accepts unknown elements as part of a resource. - *

- */ - public Conformance setAcceptUnknown(BooleanDt theValue) { - myAcceptUnknown = theValue; - return this; - } - - - - /** - * Sets the value for acceptUnknown () - * - *

- * Definition: - * A flag that indicates whether the application accepts unknown elements as part of a resource. - *

- */ - public Conformance setAcceptUnknown( boolean theBoolean) { - myAcceptUnknown = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for format (MimeType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public java.util.List getFormat() { - if (myFormat == null) { - myFormat = new java.util.ArrayList(); - } - return myFormat; - } - - /** - * Sets the value(s) for format (MimeType) - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public Conformance setFormat(java.util.List theValue) { - myFormat = theValue; - return this; - } - - - - /** - * Adds and returns a new value for format (MimeType) - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public CodeDt addFormat() { - CodeDt newType = new CodeDt(); - getFormat().add(newType); - return newType; - } - - /** - * Gets the first repetition for format (MimeType), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public CodeDt getFormatFirstRep() { - if (getFormat().isEmpty()) { - return addFormat(); - } - return getFormat().get(0); - } - /** - * Adds a new value for format (MimeType) - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Conformance addFormat( String theCode) { - if (myFormat == null) { - myFormat = new java.util.ArrayList(); - } - myFormat.add(new CodeDt(theCode)); - return this; - } - - - /** - * Gets the value(s) for profile (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. - *

- */ - public java.util.List getProfile() { - if (myProfile == null) { - myProfile = new java.util.ArrayList(); - } - return myProfile; - } - - /** - * Sets the value(s) for profile () - * - *

- * Definition: - * A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. - *

- */ - public Conformance setProfile(java.util.List theValue) { - myProfile = theValue; - return this; - } - - - - /** - * Adds and returns a new value for profile () - * - *

- * Definition: - * A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. - *

- */ - public ResourceReferenceDt addProfile() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getProfile().add(newType); - return newType; - } - - /** - * Gets the value(s) for rest (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public java.util.List getRest() { - if (myRest == null) { - myRest = new java.util.ArrayList(); - } - return myRest; - } - - /** - * Sets the value(s) for rest () - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public Conformance setRest(java.util.List theValue) { - myRest = theValue; - return this; - } - - - - /** - * Adds and returns a new value for rest () - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public Rest addRest() { - Rest newType = new Rest(); - getRest().add(newType); - return newType; - } - - /** - * Gets the first repetition for rest (), - * creating it if it does not already exist. - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public Rest getRestFirstRep() { - if (getRest().isEmpty()) { - return addRest(); - } - return getRest().get(0); - } - - /** - * Gets the value(s) for messaging (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public java.util.List getMessaging() { - if (myMessaging == null) { - myMessaging = new java.util.ArrayList(); - } - return myMessaging; - } - - /** - * Sets the value(s) for messaging () - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public Conformance setMessaging(java.util.List theValue) { - myMessaging = theValue; - return this; - } - - - - /** - * Adds and returns a new value for messaging () - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public Messaging addMessaging() { - Messaging newType = new Messaging(); - getMessaging().add(newType); - return newType; - } - - /** - * Gets the first repetition for messaging (), - * creating it if it does not already exist. - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public Messaging getMessagingFirstRep() { - if (getMessaging().isEmpty()) { - return addMessaging(); - } - return getMessaging().get(0); - } - - /** - * Gets the value(s) for document (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A document definition - *

- */ - public java.util.List getDocument() { - if (myDocument == null) { - myDocument = new java.util.ArrayList(); - } - return myDocument; - } - - /** - * Sets the value(s) for document () - * - *

- * Definition: - * A document definition - *

- */ - public Conformance setDocument(java.util.List theValue) { - myDocument = theValue; - return this; - } - - - - /** - * Adds and returns a new value for document () - * - *

- * Definition: - * A document definition - *

- */ - public Document addDocument() { - Document newType = new Document(); - getDocument().add(newType); - return newType; - } - - /** - * Gets the first repetition for document (), - * creating it if it does not already exist. - * - *

- * Definition: - * A document definition - *

- */ - public Document getDocumentFirstRep() { - if (getDocument().isEmpty()) { - return addDocument(); - } - return getDocument().get(0); - } - - /** - * Block class for child element: Conformance.software () - * - *

- * Definition: - * Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation. - *

- */ - @Block() - public static class Software - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Name software is known by" - ) - private StringDt myName; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The version identifier for the software covered by this statement" - ) - private StringDt myVersion; - - @Child(name="releaseDate", type=DateTimeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Date this version of the software released" - ) - private DateTimeDt myReleaseDate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myVersion, myReleaseDate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myVersion, myReleaseDate); - } - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name software is known by - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name software is known by - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * Name software is known by - *

- */ - public Software setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * Name software is known by - *

- */ - public Software setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version identifier for the software covered by this statement - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version identifier for the software covered by this statement - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The version identifier for the software covered by this statement - *

- */ - public Software setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The version identifier for the software covered by this statement - *

- */ - public Software setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for releaseDate (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date this version of the software released - *

- */ - public DateTimeDt getReleaseDateElement() { - if (myReleaseDate == null) { - myReleaseDate = new DateTimeDt(); - } - return myReleaseDate; - } - - - /** - * Gets the value(s) for releaseDate (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date this version of the software released - *

- */ - public Date getReleaseDate() { - return getReleaseDateElement().getValue(); - } - - /** - * Sets the value(s) for releaseDate () - * - *

- * Definition: - * Date this version of the software released - *

- */ - public Software setReleaseDate(DateTimeDt theValue) { - myReleaseDate = theValue; - return this; - } - - - - /** - * Sets the value for releaseDate () - * - *

- * Definition: - * Date this version of the software released - *

- */ - public Software setReleaseDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myReleaseDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for releaseDate () - * - *

- * Definition: - * Date this version of the software released - *

- */ - public Software setReleaseDateWithSecondsPrecision( Date theDate) { - myReleaseDate = new DateTimeDt(theDate); - return this; - } - - - - } - - - /** - * Block class for child element: Conformance.implementation () - * - *

- * Definition: - * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program - *

- */ - @Block() - public static class Implementation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="description", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Information about the specific installation that this conformance statement relates to" - ) - private StringDt myDescription; - - @Child(name="url", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces." - ) - private UriDt myUrl; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDescription, myUrl); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDescription, myUrl); - } - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the specific installation that this conformance statement relates to - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the specific installation that this conformance statement relates to - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description () - * - *

- * Definition: - * Information about the specific installation that this conformance statement relates to - *

- */ - public Implementation setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description () - * - *

- * Definition: - * Information about the specific installation that this conformance statement relates to - *

- */ - public Implementation setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for url (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. - *

- */ - public String getUrl() { - return getUrlElement().getValue(); - } - - /** - * Sets the value(s) for url () - * - *

- * Definition: - * A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. - *

- */ - public Implementation setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - - - /** - * Sets the value for url () - * - *

- * Definition: - * A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. - *

- */ - public Implementation setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - - } - - - /** - * Block class for child element: Conformance.rest () - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - @Block() - public static class Rest - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="mode", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="RestfulConformanceMode", - formalDefinition="Identifies whether this portion of the statement is describing ability to initiate or receive restful operations" - ) - private BoundCodeDt myMode; - - @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Information about the system's restful capabilities that apply across all applications, such as security" - ) - private StringDt myDocumentation; - - @Child(name="security", order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Information about security of implementation" - ) - private RestSecurity mySecurity; - - @Child(name="resource", order=3, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A specification of the restful capabilities of the solution for a specific resource type" - ) - private java.util.List myResource; - - @Child(name="interaction", order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A specification of restful operations supported by the system" - ) - private java.util.List myInteraction; - - @Child(name="operation", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Definition of an operation or a named query and with its parameters and their meaning and type" - ) - private java.util.List myOperation; - - @Child(name="documentMailbox", type=UriDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose" - ) - private java.util.List myDocumentMailbox; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myDocumentation, mySecurity, myResource, myInteraction, myOperation, myDocumentMailbox); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myDocumentation, mySecurity, myResource, myInteraction, myOperation, myDocumentMailbox); - } - - /** - * Gets the value(s) for mode (RestfulConformanceMode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations - *

- */ - public BoundCodeDt getModeElement() { - if (myMode == null) { - myMode = new BoundCodeDt(RestfulConformanceModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (RestfulConformanceMode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations - *

- */ - public String getMode() { - return getModeElement().getValue(); - } - - /** - * Sets the value(s) for mode (RestfulConformanceMode) - * - *

- * Definition: - * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations - *

- */ - public Rest setMode(BoundCodeDt theValue) { - myMode = theValue; - return this; - } - - - - /** - * Sets the value(s) for mode (RestfulConformanceMode) - * - *

- * Definition: - * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations - *

- */ - public Rest setMode(RestfulConformanceModeEnum theValue) { - getModeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the system's restful capabilities that apply across all applications, such as security - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the system's restful capabilities that apply across all applications, such as security - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * Information about the system's restful capabilities that apply across all applications, such as security - *

- */ - public Rest setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * Information about the system's restful capabilities that apply across all applications, such as security - *

- */ - public Rest setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for security (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about security of implementation - *

- */ - public RestSecurity getSecurity() { - if (mySecurity == null) { - mySecurity = new RestSecurity(); - } - return mySecurity; - } - - /** - * Sets the value(s) for security () - * - *

- * Definition: - * Information about security of implementation - *

- */ - public Rest setSecurity(RestSecurity theValue) { - mySecurity = theValue; - return this; - } - - - - - /** - * Gets the value(s) for resource (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public java.util.List getResource() { - if (myResource == null) { - myResource = new java.util.ArrayList(); - } - return myResource; - } - - /** - * Sets the value(s) for resource () - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public Rest setResource(java.util.List theValue) { - myResource = theValue; - return this; - } - - - - /** - * Adds and returns a new value for resource () - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public RestResource addResource() { - RestResource newType = new RestResource(); - getResource().add(newType); - return newType; - } - - /** - * Gets the first repetition for resource (), - * creating it if it does not already exist. - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public RestResource getResourceFirstRep() { - if (getResource().isEmpty()) { - return addResource(); - } - return getResource().get(0); - } - - /** - * Gets the value(s) for interaction (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public java.util.List getInteraction() { - if (myInteraction == null) { - myInteraction = new java.util.ArrayList(); - } - return myInteraction; - } - - /** - * Sets the value(s) for interaction () - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public Rest setInteraction(java.util.List theValue) { - myInteraction = theValue; - return this; - } - - - - /** - * Adds and returns a new value for interaction () - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public RestInteraction addInteraction() { - RestInteraction newType = new RestInteraction(); - getInteraction().add(newType); - return newType; - } - - /** - * Gets the first repetition for interaction (), - * creating it if it does not already exist. - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public RestInteraction getInteractionFirstRep() { - if (getInteraction().isEmpty()) { - return addInteraction(); - } - return getInteraction().get(0); - } - - /** - * Gets the value(s) for operation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of an operation or a named query and with its parameters and their meaning and type - *

- */ - public java.util.List getOperation() { - if (myOperation == null) { - myOperation = new java.util.ArrayList(); - } - return myOperation; - } - - /** - * Sets the value(s) for operation () - * - *

- * Definition: - * Definition of an operation or a named query and with its parameters and their meaning and type - *

- */ - public Rest setOperation(java.util.List theValue) { - myOperation = theValue; - return this; - } - - - - /** - * Adds and returns a new value for operation () - * - *

- * Definition: - * Definition of an operation or a named query and with its parameters and their meaning and type - *

- */ - public RestOperation addOperation() { - RestOperation newType = new RestOperation(); - getOperation().add(newType); - return newType; - } - - /** - * Gets the first repetition for operation (), - * creating it if it does not already exist. - * - *

- * Definition: - * Definition of an operation or a named query and with its parameters and their meaning and type - *

- */ - public RestOperation getOperationFirstRep() { - if (getOperation().isEmpty()) { - return addOperation(); - } - return getOperation().get(0); - } - - /** - * Gets the value(s) for documentMailbox (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public java.util.List getDocumentMailbox() { - if (myDocumentMailbox == null) { - myDocumentMailbox = new java.util.ArrayList(); - } - return myDocumentMailbox; - } - - /** - * Sets the value(s) for documentMailbox () - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public Rest setDocumentMailbox(java.util.List theValue) { - myDocumentMailbox = theValue; - return this; - } - - - - /** - * Adds and returns a new value for documentMailbox () - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public UriDt addDocumentMailbox() { - UriDt newType = new UriDt(); - getDocumentMailbox().add(newType); - return newType; - } - - /** - * Gets the first repetition for documentMailbox (), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public UriDt getDocumentMailboxFirstRep() { - if (getDocumentMailbox().isEmpty()) { - return addDocumentMailbox(); - } - return getDocumentMailbox().get(0); - } - /** - * Adds a new value for documentMailbox () - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Rest addDocumentMailbox( String theUri) { - if (myDocumentMailbox == null) { - myDocumentMailbox = new java.util.ArrayList(); - } - myDocumentMailbox.add(new UriDt(theUri)); - return this; - } - - - - } - - /** - * Block class for child element: Conformance.rest.security () - * - *

- * Definition: - * Information about security of implementation - *

- */ - @Block() - public static class RestSecurity - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="cors", type=BooleanDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Server adds CORS headers when responding to requests - this enables javascript applications to use the server" - ) - private BooleanDt myCors; - - @Child(name="service", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="RestfulSecurityService", - formalDefinition="Types of security services are supported/required by the system" - ) - private java.util.List> myService; - - @Child(name="description", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="General description of how security works" - ) - private StringDt myDescription; - - @Child(name="certificate", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Certificates associated with security profiles" - ) - private java.util.List myCertificate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCors, myService, myDescription, myCertificate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCors, myService, myDescription, myCertificate); - } - - /** - * Gets the value(s) for cors (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Server adds CORS headers when responding to requests - this enables javascript applications to use the server - *

- */ - public BooleanDt getCorsElement() { - if (myCors == null) { - myCors = new BooleanDt(); - } - return myCors; - } - - - /** - * Gets the value(s) for cors (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Server adds CORS headers when responding to requests - this enables javascript applications to use the server - *

- */ - public Boolean getCors() { - return getCorsElement().getValue(); - } - - /** - * Sets the value(s) for cors () - * - *

- * Definition: - * Server adds CORS headers when responding to requests - this enables javascript applications to use the server - *

- */ - public RestSecurity setCors(BooleanDt theValue) { - myCors = theValue; - return this; - } - - - - /** - * Sets the value for cors () - * - *

- * Definition: - * Server adds CORS headers when responding to requests - this enables javascript applications to use the server - *

- */ - public RestSecurity setCors( boolean theBoolean) { - myCors = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for service (RestfulSecurityService). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public java.util.List> getService() { - if (myService == null) { - myService = new java.util.ArrayList>(); - } - return myService; - } - - /** - * Sets the value(s) for service (RestfulSecurityService) - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public RestSecurity setService(java.util.List> theValue) { - myService = theValue; - return this; - } - - - - /** - * Add a value for service (RestfulSecurityService) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addService()} method. - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public BoundCodeableConceptDt addService(RestfulSecurityServiceEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(RestfulSecurityServiceEnum.VALUESET_BINDER, theValue); - getService().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for service (RestfulSecurityService), - * creating it if it does not already exist. - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public BoundCodeableConceptDt getServiceFirstRep() { - if (getService().size() == 0) { - addService(); - } - return getService().get(0); - } - - /** - * Add a value for service (RestfulSecurityService) - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public BoundCodeableConceptDt addService() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(RestfulSecurityServiceEnum.VALUESET_BINDER); - getService().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for service (RestfulSecurityService) - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public RestSecurity setService(RestfulSecurityServiceEnum theValue) { - getService().clear(); - addService(theValue); - return this; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * General description of how security works - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * General description of how security works - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description () - * - *

- * Definition: - * General description of how security works - *

- */ - public RestSecurity setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description () - * - *

- * Definition: - * General description of how security works - *

- */ - public RestSecurity setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for certificate (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public java.util.List getCertificate() { - if (myCertificate == null) { - myCertificate = new java.util.ArrayList(); - } - return myCertificate; - } - - /** - * Sets the value(s) for certificate () - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public RestSecurity setCertificate(java.util.List theValue) { - myCertificate = theValue; - return this; - } - - - - /** - * Adds and returns a new value for certificate () - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public RestSecurityCertificate addCertificate() { - RestSecurityCertificate newType = new RestSecurityCertificate(); - getCertificate().add(newType); - return newType; - } - - /** - * Gets the first repetition for certificate (), - * creating it if it does not already exist. - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public RestSecurityCertificate getCertificateFirstRep() { - if (getCertificate().isEmpty()) { - return addCertificate(); - } - return getCertificate().get(0); - } - - - } - - /** - * Block class for child element: Conformance.rest.security.certificate () - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - @Block() - public static class RestSecurityCertificate - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="MimeType", - formalDefinition="Mime type for certificate" - ) - private CodeDt myType; - - @Child(name="blob", type=Base64BinaryDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Actual certificate" - ) - private Base64BinaryDt myBlob; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myBlob); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myBlob); - } - - /** - * Gets the value(s) for type (MimeType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Mime type for certificate - *

- */ - public CodeDt getTypeElement() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (MimeType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Mime type for certificate - *

- */ - public String getType() { - return getTypeElement().getValue(); - } - - /** - * Sets the value(s) for type (MimeType) - * - *

- * Definition: - * Mime type for certificate - *

- */ - public RestSecurityCertificate setType(CodeDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value for type (MimeType) - * - *

- * Definition: - * Mime type for certificate - *

- */ - public RestSecurityCertificate setType( String theCode) { - myType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for blob (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Actual certificate - *

- */ - public Base64BinaryDt getBlobElement() { - if (myBlob == null) { - myBlob = new Base64BinaryDt(); - } - return myBlob; - } - - - /** - * Gets the value(s) for blob (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Actual certificate - *

- */ - public byte[] getBlob() { - return getBlobElement().getValue(); - } - - /** - * Sets the value(s) for blob () - * - *

- * Definition: - * Actual certificate - *

- */ - public RestSecurityCertificate setBlob(Base64BinaryDt theValue) { - myBlob = theValue; - return this; - } - - - - /** - * Sets the value for blob () - * - *

- * Definition: - * Actual certificate - *

- */ - public RestSecurityCertificate setBlob( byte[] theBytes) { - myBlob = new Base64BinaryDt(theBytes); - return this; - } - - - - } - - - - /** - * Block class for child element: Conformance.rest.resource () - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - @Block() - public static class RestResource - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ResourceType", - formalDefinition="A type of resource exposed via the restful interface" - ) - private BoundCodeDt myType; - - @Child(name="profile", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dev.resource.Profile.class }) - @Description( - shortDefinition="", - formalDefinition="A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations" - ) - private ResourceReferenceDt myProfile; - - @Child(name="interaction", order=2, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Identifies a restful operation supported by the solution" - ) - private java.util.List myInteraction; - - @Child(name="versioning", type=CodeDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="ResourceVersionPolicy", - formalDefinition="Thi field is set to true to specify that the system does not support (server) or use (client) versioning for this resource type. If this is not set to true, the server must at least correctly track and populate the versionId meta-property on resources" - ) - private BoundCodeDt myVersioning; - - @Child(name="readHistory", type=BooleanDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A flag for whether the server is able to return past versions as part of the vRead operation" - ) - private BooleanDt myReadHistory; - - @Child(name="updateCreate", type=BooleanDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server" - ) - private BooleanDt myUpdateCreate; - - @Child(name="searchInclude", type=StringDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A list of _include values supported by the server" - ) - private java.util.List mySearchInclude; - - @Child(name="searchParam", order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Additional search parameters for implementations to support and/or make use of" - ) - private java.util.List mySearchParam; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myProfile, myInteraction, myVersioning, myReadHistory, myUpdateCreate, mySearchInclude, mySearchParam); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myProfile, myInteraction, myVersioning, myReadHistory, myUpdateCreate, mySearchInclude, mySearchParam); - } - - /** - * Gets the value(s) for type (ResourceType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A type of resource exposed via the restful interface - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (ResourceType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A type of resource exposed via the restful interface - *

- */ - public String getType() { - return getTypeElement().getValue(); - } - - /** - * Sets the value(s) for type (ResourceType) - * - *

- * Definition: - * A type of resource exposed via the restful interface - *

- */ - public RestResource setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value(s) for type (ResourceType) - * - *

- * Definition: - * A type of resource exposed via the restful interface - *

- */ - public RestResource setType(ResourceTypeEnum theValue) { - getTypeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for profile (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations - *

- */ - public ResourceReferenceDt getProfile() { - if (myProfile == null) { - myProfile = new ResourceReferenceDt(); - } - return myProfile; - } - - /** - * Sets the value(s) for profile () - * - *

- * Definition: - * A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations - *

- */ - public RestResource setProfile(ResourceReferenceDt theValue) { - myProfile = theValue; - return this; - } - - - - - /** - * Gets the value(s) for interaction (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public java.util.List getInteraction() { - if (myInteraction == null) { - myInteraction = new java.util.ArrayList(); - } - return myInteraction; - } - - /** - * Sets the value(s) for interaction () - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public RestResource setInteraction(java.util.List theValue) { - myInteraction = theValue; - return this; - } - - - - /** - * Adds and returns a new value for interaction () - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public RestResourceInteraction addInteraction() { - RestResourceInteraction newType = new RestResourceInteraction(); - getInteraction().add(newType); - return newType; - } - - /** - * Gets the first repetition for interaction (), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public RestResourceInteraction getInteractionFirstRep() { - if (getInteraction().isEmpty()) { - return addInteraction(); - } - return getInteraction().get(0); - } - - /** - * Gets the value(s) for versioning (ResourceVersionPolicy). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Thi field is set to true to specify that the system does not support (server) or use (client) versioning for this resource type. If this is not set to true, the server must at least correctly track and populate the versionId meta-property on resources - *

- */ - public BoundCodeDt getVersioningElement() { - if (myVersioning == null) { - myVersioning = new BoundCodeDt(ResourceVersionPolicyEnum.VALUESET_BINDER); - } - return myVersioning; - } - - - /** - * Gets the value(s) for versioning (ResourceVersionPolicy). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Thi field is set to true to specify that the system does not support (server) or use (client) versioning for this resource type. If this is not set to true, the server must at least correctly track and populate the versionId meta-property on resources - *

- */ - public String getVersioning() { - return getVersioningElement().getValue(); - } - - /** - * Sets the value(s) for versioning (ResourceVersionPolicy) - * - *

- * Definition: - * Thi field is set to true to specify that the system does not support (server) or use (client) versioning for this resource type. If this is not set to true, the server must at least correctly track and populate the versionId meta-property on resources - *

- */ - public RestResource setVersioning(BoundCodeDt theValue) { - myVersioning = theValue; - return this; - } - - - - /** - * Sets the value(s) for versioning (ResourceVersionPolicy) - * - *

- * Definition: - * Thi field is set to true to specify that the system does not support (server) or use (client) versioning for this resource type. If this is not set to true, the server must at least correctly track and populate the versionId meta-property on resources - *

- */ - public RestResource setVersioning(ResourceVersionPolicyEnum theValue) { - getVersioningElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for readHistory (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag for whether the server is able to return past versions as part of the vRead operation - *

- */ - public BooleanDt getReadHistoryElement() { - if (myReadHistory == null) { - myReadHistory = new BooleanDt(); - } - return myReadHistory; - } - - - /** - * Gets the value(s) for readHistory (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag for whether the server is able to return past versions as part of the vRead operation - *

- */ - public Boolean getReadHistory() { - return getReadHistoryElement().getValue(); - } - - /** - * Sets the value(s) for readHistory () - * - *

- * Definition: - * A flag for whether the server is able to return past versions as part of the vRead operation - *

- */ - public RestResource setReadHistory(BooleanDt theValue) { - myReadHistory = theValue; - return this; - } - - - - /** - * Sets the value for readHistory () - * - *

- * Definition: - * A flag for whether the server is able to return past versions as part of the vRead operation - *

- */ - public RestResource setReadHistory( boolean theBoolean) { - myReadHistory = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for updateCreate (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server - *

- */ - public BooleanDt getUpdateCreateElement() { - if (myUpdateCreate == null) { - myUpdateCreate = new BooleanDt(); - } - return myUpdateCreate; - } - - - /** - * Gets the value(s) for updateCreate (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server - *

- */ - public Boolean getUpdateCreate() { - return getUpdateCreateElement().getValue(); - } - - /** - * Sets the value(s) for updateCreate () - * - *

- * Definition: - * A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server - *

- */ - public RestResource setUpdateCreate(BooleanDt theValue) { - myUpdateCreate = theValue; - return this; - } - - - - /** - * Sets the value for updateCreate () - * - *

- * Definition: - * A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server - *

- */ - public RestResource setUpdateCreate( boolean theBoolean) { - myUpdateCreate = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for searchInclude (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public java.util.List getSearchInclude() { - if (mySearchInclude == null) { - mySearchInclude = new java.util.ArrayList(); - } - return mySearchInclude; - } - - /** - * Sets the value(s) for searchInclude () - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public RestResource setSearchInclude(java.util.List theValue) { - mySearchInclude = theValue; - return this; - } - - - - /** - * Adds and returns a new value for searchInclude () - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public StringDt addSearchInclude() { - StringDt newType = new StringDt(); - getSearchInclude().add(newType); - return newType; - } - - /** - * Gets the first repetition for searchInclude (), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public StringDt getSearchIncludeFirstRep() { - if (getSearchInclude().isEmpty()) { - return addSearchInclude(); - } - return getSearchInclude().get(0); - } - /** - * Adds a new value for searchInclude () - * - *

- * Definition: - * A list of _include values supported by the server - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public RestResource addSearchInclude( String theString) { - if (mySearchInclude == null) { - mySearchInclude = new java.util.ArrayList(); - } - mySearchInclude.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for searchParam (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public java.util.List getSearchParam() { - if (mySearchParam == null) { - mySearchParam = new java.util.ArrayList(); - } - return mySearchParam; - } - - /** - * Sets the value(s) for searchParam () - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public RestResource setSearchParam(java.util.List theValue) { - mySearchParam = theValue; - return this; - } - - - - /** - * Adds and returns a new value for searchParam () - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public RestResourceSearchParam addSearchParam() { - RestResourceSearchParam newType = new RestResourceSearchParam(); - getSearchParam().add(newType); - return newType; - } - - /** - * Gets the first repetition for searchParam (), - * creating it if it does not already exist. - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public RestResourceSearchParam getSearchParamFirstRep() { - if (getSearchParam().isEmpty()) { - return addSearchParam(); - } - return getSearchParam().get(0); - } - - - } - - /** - * Block class for child element: Conformance.rest.resource.interaction () - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - @Block() - public static class RestResourceInteraction - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="TypeRestfulInteraction", - formalDefinition="Coded identifier of the operation, supported by the system resource" - ) - private BoundCodeDt myCode; - - @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'" - ) - private StringDt myDocumentation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDocumentation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDocumentation); - } - - /** - * Gets the value(s) for code (TypeRestfulInteraction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coded identifier of the operation, supported by the system resource - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(TypeRestfulInteractionEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (TypeRestfulInteraction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coded identifier of the operation, supported by the system resource - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code (TypeRestfulInteraction) - * - *

- * Definition: - * Coded identifier of the operation, supported by the system resource - *

- */ - public RestResourceInteraction setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value(s) for code (TypeRestfulInteraction) - * - *

- * Definition: - * Coded identifier of the operation, supported by the system resource - *

- */ - public RestResourceInteraction setCode(TypeRestfulInteractionEnum theValue) { - getCodeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' - *

- */ - public RestResourceInteraction setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' - *

- */ - public RestResourceInteraction setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Conformance.rest.resource.searchParam () - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - @Block() - public static class RestResourceSearchParam - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The name of the search parameter used in the interface" - ) - private StringDt myName; - - @Child(name="definition", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter" - ) - private UriDt myDefinition; - - @Child(name="type", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="SearchParamType", - formalDefinition="The type of value a search parameter refers to, and how the content is interpreted" - ) - private BoundCodeDt myType; - - @Child(name="documentation", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms." - ) - private StringDt myDocumentation; - - @Child(name="target", type=CodeDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ResourceType", - formalDefinition="Types of resource (if a resource is referenced)" - ) - private java.util.List> myTarget; - - @Child(name="chain", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myChain; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDefinition, myType, myDocumentation, myTarget, myChain); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myDefinition, myType, myDocumentation, myTarget, myChain); - } - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the search parameter used in the interface - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the search parameter used in the interface - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * The name of the search parameter used in the interface - *

- */ - public RestResourceSearchParam setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * The name of the search parameter used in the interface - *

- */ - public RestResourceSearchParam setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter - *

- */ - public UriDt getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new UriDt(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter - *

- */ - public String getDefinition() { - return getDefinitionElement().getValue(); - } - - /** - * Sets the value(s) for definition () - * - *

- * Definition: - * A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter - *

- */ - public RestResourceSearchParam setDefinition(UriDt theValue) { - myDefinition = theValue; - return this; - } - - - - /** - * Sets the value for definition () - * - *

- * Definition: - * A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter - *

- */ - public RestResourceSearchParam setDefinition( String theUri) { - myDefinition = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for type (SearchParamType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(SearchParamTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (SearchParamType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public String getType() { - return getTypeElement().getValue(); - } - - /** - * Sets the value(s) for type (SearchParamType) - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public RestResourceSearchParam setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value(s) for type (SearchParamType) - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public RestResourceSearchParam setType(SearchParamTypeEnum theValue) { - getTypeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. - *

- */ - public RestResourceSearchParam setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. - *

- */ - public RestResourceSearchParam setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for target (ResourceType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public java.util.List> getTarget() { - if (myTarget == null) { - myTarget = new java.util.ArrayList>(); - } - return myTarget; - } - - /** - * Sets the value(s) for target (ResourceType) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public RestResourceSearchParam setTarget(java.util.List> theValue) { - myTarget = theValue; - return this; - } - - - - /** - * Add a value for target (ResourceType) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addTarget()} method. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt addTarget(ResourceTypeEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER, theValue); - getTarget().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for target (ResourceType), - * creating it if it does not already exist. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt getTargetFirstRep() { - if (getTarget().size() == 0) { - addTarget(); - } - return getTarget().get(0); - } - - /** - * Add a value for target (ResourceType) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt addTarget() { - BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - getTarget().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for target (ResourceType) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public RestResourceSearchParam setTarget(ResourceTypeEnum theValue) { - getTarget().clear(); - addTarget(theValue); - return this; - } - - - /** - * Gets the value(s) for chain (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getChain() { - if (myChain == null) { - myChain = new java.util.ArrayList(); - } - return myChain; - } - - /** - * Sets the value(s) for chain () - * - *

- * Definition: - * - *

- */ - public RestResourceSearchParam setChain(java.util.List theValue) { - myChain = theValue; - return this; - } - - - - /** - * Adds and returns a new value for chain () - * - *

- * Definition: - * - *

- */ - public StringDt addChain() { - StringDt newType = new StringDt(); - getChain().add(newType); - return newType; - } - - /** - * Gets the first repetition for chain (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public StringDt getChainFirstRep() { - if (getChain().isEmpty()) { - return addChain(); - } - return getChain().get(0); - } - /** - * Adds a new value for chain () - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public RestResourceSearchParam addChain( String theString) { - if (myChain == null) { - myChain = new java.util.ArrayList(); - } - myChain.add(new StringDt(theString)); - return this; - } - - - - } - - - - /** - * Block class for child element: Conformance.rest.interaction () - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - @Block() - public static class RestInteraction - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="SystemRestfulInteraction", - formalDefinition="A coded identifier of the operation, supported by the system" - ) - private BoundCodeDt myCode; - - @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented" - ) - private StringDt myDocumentation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDocumentation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDocumentation); - } - - /** - * Gets the value(s) for code (SystemRestfulInteraction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded identifier of the operation, supported by the system - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(SystemRestfulInteractionEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (SystemRestfulInteraction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded identifier of the operation, supported by the system - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code (SystemRestfulInteraction) - * - *

- * Definition: - * A coded identifier of the operation, supported by the system - *

- */ - public RestInteraction setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value(s) for code (SystemRestfulInteraction) - * - *

- * Definition: - * A coded identifier of the operation, supported by the system - *

- */ - public RestInteraction setCode(SystemRestfulInteractionEnum theValue) { - getCodeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented - *

- */ - public RestInteraction setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented - *

- */ - public RestInteraction setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Conformance.rest.operation () - * - *

- * Definition: - * Definition of an operation or a named query and with its parameters and their meaning and type - *

- */ - @Block() - public static class RestOperation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The name of a query, which is used in the _query parameter when the query is called" - ) - private StringDt myName; - - @Child(name="definition", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dev.resource.OperationDefinition.class }) - @Description( - shortDefinition="", - formalDefinition="Where the formal definition can be found" - ) - private ResourceReferenceDt myDefinition; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDefinition); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myDefinition); - } - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of a query, which is used in the _query parameter when the query is called - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of a query, which is used in the _query parameter when the query is called - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * The name of a query, which is used in the _query parameter when the query is called - *

- */ - public RestOperation setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * The name of a query, which is used in the _query parameter when the query is called - *

- */ - public RestOperation setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Where the formal definition can be found - *

- */ - public ResourceReferenceDt getDefinition() { - if (myDefinition == null) { - myDefinition = new ResourceReferenceDt(); - } - return myDefinition; - } - - /** - * Sets the value(s) for definition () - * - *

- * Definition: - * Where the formal definition can be found - *

- */ - public RestOperation setDefinition(ResourceReferenceDt theValue) { - myDefinition = theValue; - return this; - } - - - - - - } - - - - /** - * Block class for child element: Conformance.messaging () - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - @Block() - public static class Messaging - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="endpoint", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="An address to which messages and/or replies are to be sent." - ) - private UriDt myEndpoint; - - @Child(name="reliableCache", type=IntegerDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender)" - ) - private IntegerDt myReliableCache; - - @Child(name="documentation", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner." - ) - private StringDt myDocumentation; - - @Child(name="event", order=3, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A description of the solution's support for an event at this end point." - ) - private java.util.List myEvent; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEndpoint, myReliableCache, myDocumentation, myEvent); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEndpoint, myReliableCache, myDocumentation, myEvent); - } - - /** - * Gets the value(s) for endpoint (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An address to which messages and/or replies are to be sent. - *

- */ - public UriDt getEndpointElement() { - if (myEndpoint == null) { - myEndpoint = new UriDt(); - } - return myEndpoint; - } - - - /** - * Gets the value(s) for endpoint (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An address to which messages and/or replies are to be sent. - *

- */ - public String getEndpoint() { - return getEndpointElement().getValue(); - } - - /** - * Sets the value(s) for endpoint () - * - *

- * Definition: - * An address to which messages and/or replies are to be sent. - *

- */ - public Messaging setEndpoint(UriDt theValue) { - myEndpoint = theValue; - return this; - } - - - - /** - * Sets the value for endpoint () - * - *

- * Definition: - * An address to which messages and/or replies are to be sent. - *

- */ - public Messaging setEndpoint( String theUri) { - myEndpoint = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for reliableCache (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender) - *

- */ - public IntegerDt getReliableCacheElement() { - if (myReliableCache == null) { - myReliableCache = new IntegerDt(); - } - return myReliableCache; - } - - - /** - * Gets the value(s) for reliableCache (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender) - *

- */ - public Integer getReliableCache() { - return getReliableCacheElement().getValue(); - } - - /** - * Sets the value(s) for reliableCache () - * - *

- * Definition: - * Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender) - *

- */ - public Messaging setReliableCache(IntegerDt theValue) { - myReliableCache = theValue; - return this; - } - - - - /** - * Sets the value for reliableCache () - * - *

- * Definition: - * Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender) - *

- */ - public Messaging setReliableCache( int theInteger) { - myReliableCache = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. - *

- */ - public Messaging setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. - *

- */ - public Messaging setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for event (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public java.util.List getEvent() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - /** - * Sets the value(s) for event () - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public Messaging setEvent(java.util.List theValue) { - myEvent = theValue; - return this; - } - - - - /** - * Adds and returns a new value for event () - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public MessagingEvent addEvent() { - MessagingEvent newType = new MessagingEvent(); - getEvent().add(newType); - return newType; - } - - /** - * Gets the first repetition for event (), - * creating it if it does not already exist. - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public MessagingEvent getEventFirstRep() { - if (getEvent().isEmpty()) { - return addEvent(); - } - return getEvent().get(0); - } - - - } - - /** - * Block class for child element: Conformance.messaging.event () - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - @Block() - public static class MessagingEvent - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodingDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="MessageEvent", - formalDefinition="A coded identifier of a supported messaging event" - ) - private CodingDt myCode; - - @Child(name="category", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="MessageSignificanceCategory", - formalDefinition="The impact of the content of the message" - ) - private BoundCodeDt myCategory; - - @Child(name="mode", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="ConformanceEventMode", - formalDefinition="The mode of this event declaration - whether application is sender or receiver" - ) - private BoundCodeDt myMode; - - @Child(name="protocol", type=CodingDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="MessageTransport", - formalDefinition="A list of the messaging transport protocol(s) identifiers, supported by this endpoint" - ) - private java.util.List myProtocol; - - @Child(name="focus", type=CodeDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="ResourceType", - formalDefinition="A resource associated with the event. This is the resource that defines the event." - ) - private BoundCodeDt myFocus; - - @Child(name="request", order=5, min=1, max=1, type={ - ca.uhn.fhir.model.dev.resource.Profile.class }) - @Description( - shortDefinition="", - formalDefinition="Information about the request for this event" - ) - private ResourceReferenceDt myRequest; - - @Child(name="response", order=6, min=1, max=1, type={ - ca.uhn.fhir.model.dev.resource.Profile.class }) - @Description( - shortDefinition="", - formalDefinition="Information about the response for this event" - ) - private ResourceReferenceDt myResponse; - - @Child(name="documentation", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Guidance on how this event is handled, such as internal system trigger points, business rules, etc." - ) - private StringDt myDocumentation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myCategory, myMode, myProtocol, myFocus, myRequest, myResponse, myDocumentation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myCategory, myMode, myProtocol, myFocus, myRequest, myResponse, myDocumentation); - } - - /** - * Gets the value(s) for code (MessageEvent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded identifier of a supported messaging event - *

- */ - public CodingDt getCode() { - if (myCode == null) { - myCode = new CodingDt(); - } - return myCode; - } - - /** - * Sets the value(s) for code (MessageEvent) - * - *

- * Definition: - * A coded identifier of a supported messaging event - *

- */ - public MessagingEvent setCode(CodingDt theValue) { - myCode = theValue; - return this; - } - - - - - /** - * Gets the value(s) for category (MessageSignificanceCategory). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The impact of the content of the message - *

- */ - public BoundCodeDt getCategoryElement() { - if (myCategory == null) { - myCategory = new BoundCodeDt(MessageSignificanceCategoryEnum.VALUESET_BINDER); - } - return myCategory; - } - - - /** - * Gets the value(s) for category (MessageSignificanceCategory). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The impact of the content of the message - *

- */ - public String getCategory() { - return getCategoryElement().getValue(); - } - - /** - * Sets the value(s) for category (MessageSignificanceCategory) - * - *

- * Definition: - * The impact of the content of the message - *

- */ - public MessagingEvent setCategory(BoundCodeDt theValue) { - myCategory = theValue; - return this; - } - - - - /** - * Sets the value(s) for category (MessageSignificanceCategory) - * - *

- * Definition: - * The impact of the content of the message - *

- */ - public MessagingEvent setCategory(MessageSignificanceCategoryEnum theValue) { - getCategoryElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for mode (ConformanceEventMode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mode of this event declaration - whether application is sender or receiver - *

- */ - public BoundCodeDt getModeElement() { - if (myMode == null) { - myMode = new BoundCodeDt(ConformanceEventModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (ConformanceEventMode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mode of this event declaration - whether application is sender or receiver - *

- */ - public String getMode() { - return getModeElement().getValue(); - } - - /** - * Sets the value(s) for mode (ConformanceEventMode) - * - *

- * Definition: - * The mode of this event declaration - whether application is sender or receiver - *

- */ - public MessagingEvent setMode(BoundCodeDt theValue) { - myMode = theValue; - return this; - } - - - - /** - * Sets the value(s) for mode (ConformanceEventMode) - * - *

- * Definition: - * The mode of this event declaration - whether application is sender or receiver - *

- */ - public MessagingEvent setMode(ConformanceEventModeEnum theValue) { - getModeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for protocol (MessageTransport). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public java.util.List getProtocol() { - if (myProtocol == null) { - myProtocol = new java.util.ArrayList(); - } - return myProtocol; - } - - /** - * Sets the value(s) for protocol (MessageTransport) - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public MessagingEvent setProtocol(java.util.List theValue) { - myProtocol = theValue; - return this; - } - - - - /** - * Adds and returns a new value for protocol (MessageTransport) - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public CodingDt addProtocol() { - CodingDt newType = new CodingDt(); - getProtocol().add(newType); - return newType; - } - - /** - * Gets the first repetition for protocol (MessageTransport), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public CodingDt getProtocolFirstRep() { - if (getProtocol().isEmpty()) { - return addProtocol(); - } - return getProtocol().get(0); - } - - /** - * Gets the value(s) for focus (ResourceType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A resource associated with the event. This is the resource that defines the event. - *

- */ - public BoundCodeDt getFocusElement() { - if (myFocus == null) { - myFocus = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - } - return myFocus; - } - - - /** - * Gets the value(s) for focus (ResourceType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A resource associated with the event. This is the resource that defines the event. - *

- */ - public String getFocus() { - return getFocusElement().getValue(); - } - - /** - * Sets the value(s) for focus (ResourceType) - * - *

- * Definition: - * A resource associated with the event. This is the resource that defines the event. - *

- */ - public MessagingEvent setFocus(BoundCodeDt theValue) { - myFocus = theValue; - return this; - } - - - - /** - * Sets the value(s) for focus (ResourceType) - * - *

- * Definition: - * A resource associated with the event. This is the resource that defines the event. - *

- */ - public MessagingEvent setFocus(ResourceTypeEnum theValue) { - getFocusElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for request (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the request for this event - *

- */ - public ResourceReferenceDt getRequest() { - if (myRequest == null) { - myRequest = new ResourceReferenceDt(); - } - return myRequest; - } - - /** - * Sets the value(s) for request () - * - *

- * Definition: - * Information about the request for this event - *

- */ - public MessagingEvent setRequest(ResourceReferenceDt theValue) { - myRequest = theValue; - return this; - } - - - - - /** - * Gets the value(s) for response (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the response for this event - *

- */ - public ResourceReferenceDt getResponse() { - if (myResponse == null) { - myResponse = new ResourceReferenceDt(); - } - return myResponse; - } - - /** - * Sets the value(s) for response () - * - *

- * Definition: - * Information about the response for this event - *

- */ - public MessagingEvent setResponse(ResourceReferenceDt theValue) { - myResponse = theValue; - return this; - } - - - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. - *

- */ - public MessagingEvent setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. - *

- */ - public MessagingEvent setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - - } - - - - /** - * Block class for child element: Conformance.document () - * - *

- * Definition: - * A document definition - *

- */ - @Block() - public static class Document - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="mode", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="DocumentMode", - formalDefinition="Mode of this document declaration - whether application is producer or consumer" - ) - private BoundCodeDt myMode; - - @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc." - ) - private StringDt myDocumentation; - - @Child(name="profile", order=2, min=1, max=1, type={ - ca.uhn.fhir.model.dev.resource.Profile.class }) - @Description( - shortDefinition="", - formalDefinition="A constraint on a resource used in the document" - ) - private ResourceReferenceDt myProfile; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myDocumentation, myProfile); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myDocumentation, myProfile); - } - - /** - * Gets the value(s) for mode (DocumentMode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Mode of this document declaration - whether application is producer or consumer - *

- */ - public BoundCodeDt getModeElement() { - if (myMode == null) { - myMode = new BoundCodeDt(DocumentModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (DocumentMode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Mode of this document declaration - whether application is producer or consumer - *

- */ - public String getMode() { - return getModeElement().getValue(); - } - - /** - * Sets the value(s) for mode (DocumentMode) - * - *

- * Definition: - * Mode of this document declaration - whether application is producer or consumer - *

- */ - public Document setMode(BoundCodeDt theValue) { - myMode = theValue; - return this; - } - - - - /** - * Sets the value(s) for mode (DocumentMode) - * - *

- * Definition: - * Mode of this document declaration - whether application is producer or consumer - *

- */ - public Document setMode(DocumentModeEnum theValue) { - getModeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. - *

- */ - public Document setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. - *

- */ - public Document setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for profile (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A constraint on a resource used in the document - *

- */ - public ResourceReferenceDt getProfile() { - if (myProfile == null) { - myProfile = new ResourceReferenceDt(); - } - return myProfile; - } - - /** - * Sets the value(s) for profile () - * - *

- * Definition: - * A constraint on a resource used in the document - *

- */ - public Document setProfile(ResourceReferenceDt theValue) { - myProfile = theValue; - return this; - } - - - - - - } - - - - - @Override - public String getResourceName() { - return "Conformance"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DEV; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/DataElement.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/DataElement.java deleted file mode 100644 index 39565dd25f8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/DataElement.java +++ /dev/null @@ -1,2401 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.resource; - -import java.net.URI; -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IDatatype; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dev.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.composite.ContactPointDt; -import ca.uhn.fhir.model.dev.composite.IdentifierDt; -import ca.uhn.fhir.model.dev.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dev.valueset.DataElementGranularityEnum; -import ca.uhn.fhir.model.dev.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dev.valueset.ResourceDataElementStatusEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR DataElement Resource - * () - * - *

- * Definition: - * The formal description of a single piece of information that can be gathered and reported. - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/DataElement - *

- * - */ -@ResourceDef(name="DataElement", profile="http://hl7.org/fhir/profiles/DataElement", id="dataelement") -public class DataElement - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the data element
- * Type: token
- * Path: DataElement.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="DataElement.identifier", description="The identifier of the data element", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: The identifier of the data element
- * Type: token
- * Path: DataElement.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the data element
- * Type: string
- * Path: DataElement.version
- *

- */ - @SearchParamDefinition(name="version", path="DataElement.version", description="The version identifier of the data element", type="string" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the data element
- * Type: string
- * Path: DataElement.version
- *

- */ - public static final StringClientParam VERSION = new StringClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: Name of the data element
- * Type: string
- * Path: DataElement.name
- *

- */ - @SearchParamDefinition(name="name", path="DataElement.name", description="Name of the data element", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: Name of the data element
- * Type: string
- * Path: DataElement.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the data element
- * Type: string
- * Path: DataElement.publisher
- *

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

- * Description: Name of the publisher of the data element
- * Type: string
- * Path: DataElement.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the data element
- * Type: string
- * Path: DataElement.definition
- *

- */ - @SearchParamDefinition(name="description", path="DataElement.definition", description="Text search in the description of the data element", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the data element
- * Type: string
- * Path: DataElement.definition
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: The current status of the data element
- * Type: token
- * Path: DataElement.status
- *

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

- * Description: The current status of the data element
- * Type: token
- * Path: DataElement.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The data element publication date
- * Type: date
- * Path: DataElement.date
- *

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

- * Description: The data element publication date
- * Type: date
- * Path: DataElement.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for code - *

- * Description: A code for the data element (server may choose to do subsumption)
- * Type: token
- * Path: DataElement.code
- *

- */ - @SearchParamDefinition(name="code", path="DataElement.code", description="A code for the data element (server may choose to do subsumption)", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description: A code for the data element (server may choose to do subsumption)
- * Type: token
- * Path: DataElement.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for category - *

- * Description: A category assigned to the data element (server may choose to do subsumption)
- * Type: token
- * Path: DataElement.category
- *

- */ - @SearchParamDefinition(name="category", path="DataElement.category", description="A category assigned to the data element (server may choose to do subsumption)", type="token" ) - public static final String SP_CATEGORY = "category"; - - /** - * Fluent Client search parameter constant for category - *

- * Description: A category assigned to the data element (server may choose to do subsumption)
- * Type: token
- * Path: DataElement.category
- *

- */ - public static final TokenClientParam CATEGORY = new TokenClientParam(SP_CATEGORY); - - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.category". - */ - public static final Include INCLUDE_CATEGORY = new Include("DataElement.category"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.code". - */ - public static final Include INCLUDE_CODE = new Include("DataElement.code"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.date". - */ - public static final Include INCLUDE_DATE = new Include("DataElement.date"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.definition". - */ - public static final Include INCLUDE_DEFINITION = new Include("DataElement.definition"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.identifier". - */ - public static final Include INCLUDE_IDENTIFIER = new Include("DataElement.identifier"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.name". - */ - public static final Include INCLUDE_NAME = new Include("DataElement.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.publisher". - */ - public static final Include INCLUDE_PUBLISHER = new Include("DataElement.publisher"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.status". - */ - public static final Include INCLUDE_STATUS = new Include("DataElement.status"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DataElement.version". - */ - public static final Include INCLUDE_VERSION = new Include("DataElement.version"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The identifier that is used to identify this data element when it is referenced in a Profile, Questionnaire or an instance" - ) - private IdentifierDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The identifier that is used to identify this version of the data element when it is referenced in a Profile, Questionnaire or instance. This is an arbitrary value managed by the definition author manually." - ) - private StringDt myVersion; - - @Child(name="publisher", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Details of the individual or organization who accepts responsibility for publishing the data element" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactPointDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Contact details to assist a user in finding and communicating with the publisher" - ) - private java.util.List myTelecom; - - @Child(name="status", type=CodeDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="ResourceDataElementStatus", - formalDefinition="The status of the data element" - ) - private BoundCodeDt myStatus; - - @Child(name="date", type=DateTimeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The date that the status for this business version of the data element became effective. (I.e. Date the draft was created, date element became active or date element became retired)" - ) - private DateTimeDt myDate; - - @Child(name="name", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used." - ) - private StringDt myName; - - @Child(name="category", type=CodeableConceptDt.class, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of data element definitions." - ) - private java.util.List myCategory; - - @Child(name="granularity", type=CodeDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="DataElementGranularity", - formalDefinition="Identifies how precise the data element is in its definition" - ) - private BoundCodeDt myGranularity; - - @Child(name="code", type=CodingDt.class, order=9, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A code that provides the meaning for a data element according to a particular terminology" - ) - private java.util.List myCode; - - @Child(name="question", type=StringDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey)" - ) - private StringDt myQuestion; - - @Child(name="label", type=StringDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form." - ) - private StringDt myLabel; - - @Child(name="definition", type=StringDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Provides a complete explanation of the meaning of the data element for human readability" - ) - private StringDt myDefinition; - - @Child(name="comments", type=StringDt.class, order=13, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc." - ) - private StringDt myComments; - - @Child(name="requirements", type=StringDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Explains why this element is needed and why it's been constrained as it has" - ) - private StringDt myRequirements; - - @Child(name="synonym", type=StringDt.class, order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Identifies additional names by which this element might also be known" - ) - private java.util.List mySynonym; - - @Child(name="type", type=CodeDt.class, order=16, min=0, max=1) - @Description( - shortDefinition="DataType", - formalDefinition="The FHIR data type that is the type for data that corresponds to this data element" - ) - private BoundCodeDt myType; - - @Child(name="example", type=IDatatype.class, order=17, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A sample value for this element demonstrating the type of information that would typically be captured." - ) - private IDatatype myExample; - - @Child(name="maxLength", type=IntegerDt.class, order=18, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Indicates the shortest length that SHALL be supported by conformant instances without truncation" - ) - private IntegerDt myMaxLength; - - @Child(name="units", order=19, min=0, max=1, type={ - CodeableConceptDt.class, ValueSet.class }) - @Description( - shortDefinition="Units", - formalDefinition="Identifies the units of measure in which the data element should be captured or expressed." - ) - private IDatatype myUnits; - - @Child(name="binding", order=20, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Binds to a value set if this element is coded (code, Coding, CodeableConcept)" - ) - private Binding myBinding; - - @Child(name="mapping", order=21, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element" - ) - private java.util.List myMapping; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myPublisher, myTelecom, myStatus, myDate, myName, myCategory, myGranularity, myCode, myQuestion, myLabel, myDefinition, myComments, myRequirements, mySynonym, myType, myExample, myMaxLength, myUnits, myBinding, myMapping); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myPublisher, myTelecom, myStatus, myDate, myName, myCategory, myGranularity, myCode, myQuestion, myLabel, myDefinition, myComments, myRequirements, mySynonym, myType, myExample, myMaxLength, myUnits, myBinding, myMapping); - } - - /** - * Gets the value(s) for identifier (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this data element when it is referenced in a Profile, Questionnaire or an instance - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - /** - * Sets the value(s) for identifier () - * - *

- * Definition: - * The identifier that is used to identify this data element when it is referenced in a Profile, Questionnaire or an instance - *

- */ - public DataElement setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the data element when it is referenced in a Profile, Questionnaire or instance. This is an arbitrary value managed by the definition author manually. - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the data element when it is referenced in a Profile, Questionnaire or instance. This is an arbitrary value managed by the definition author manually. - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The identifier that is used to identify this version of the data element when it is referenced in a Profile, Questionnaire or instance. This is an arbitrary value managed by the definition author manually. - *

- */ - public DataElement setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The identifier that is used to identify this version of the data element when it is referenced in a Profile, Questionnaire or instance. This is an arbitrary value managed by the definition author manually. - *

- */ - public DataElement setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publisher (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the data element - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the data element - *

- */ - public String getPublisher() { - return getPublisherElement().getValue(); - } - - /** - * Sets the value(s) for publisher () - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the data element - *

- */ - public DataElement setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - - - /** - * Sets the value for publisher () - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the data element - *

- */ - public DataElement setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public DataElement setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for status (ResourceDataElementStatus). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the data element - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ResourceDataElementStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (ResourceDataElementStatus). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the data element - *

- */ - public String getStatus() { - return getStatusElement().getValue(); - } - - /** - * Sets the value(s) for status (ResourceDataElementStatus) - * - *

- * Definition: - * The status of the data element - *

- */ - public DataElement setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - - - /** - * Sets the value(s) for status (ResourceDataElementStatus) - * - *

- * Definition: - * The status of the data element - *

- */ - public DataElement setStatus(ResourceDataElementStatusEnum theValue) { - getStatusElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for date (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the status for this business version of the data element became effective. (I.e. Date the draft was created, date element became active or date element became retired) - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the status for this business version of the data element became effective. (I.e. Date the draft was created, date element became active or date element became retired) - *

- */ - public Date getDate() { - return getDateElement().getValue(); - } - - /** - * Sets the value(s) for date () - * - *

- * Definition: - * The date that the status for this business version of the data element became effective. (I.e. Date the draft was created, date element became active or date element became retired) - *

- */ - public DataElement setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - - - /** - * Sets the value for date () - * - *

- * Definition: - * The date that the status for this business version of the data element became effective. (I.e. Date the draft was created, date element became active or date element became retired) - *

- */ - public DataElement setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date () - * - *

- * Definition: - * The date that the status for this business version of the data element became effective. (I.e. Date the draft was created, date element became active or date element became retired) - *

- */ - public DataElement setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used. - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used. - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used. - *

- */ - public DataElement setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used. - *

- */ - public DataElement setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for category (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of data element definitions. - *

- */ - public java.util.List getCategory() { - if (myCategory == null) { - myCategory = new java.util.ArrayList(); - } - return myCategory; - } - - /** - * Sets the value(s) for category () - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of data element definitions. - *

- */ - public DataElement setCategory(java.util.List theValue) { - myCategory = theValue; - return this; - } - - - - /** - * Adds and returns a new value for category () - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of data element definitions. - *

- */ - public CodeableConceptDt addCategory() { - CodeableConceptDt newType = new CodeableConceptDt(); - getCategory().add(newType); - return newType; - } - - /** - * Gets the first repetition for category (), - * creating it if it does not already exist. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of data element definitions. - *

- */ - public CodeableConceptDt getCategoryFirstRep() { - if (getCategory().isEmpty()) { - return addCategory(); - } - return getCategory().get(0); - } - - /** - * Gets the value(s) for granularity (DataElementGranularity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies how precise the data element is in its definition - *

- */ - public BoundCodeDt getGranularityElement() { - if (myGranularity == null) { - myGranularity = new BoundCodeDt(DataElementGranularityEnum.VALUESET_BINDER); - } - return myGranularity; - } - - - /** - * Gets the value(s) for granularity (DataElementGranularity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies how precise the data element is in its definition - *

- */ - public String getGranularity() { - return getGranularityElement().getValue(); - } - - /** - * Sets the value(s) for granularity (DataElementGranularity) - * - *

- * Definition: - * Identifies how precise the data element is in its definition - *

- */ - public DataElement setGranularity(BoundCodeDt theValue) { - myGranularity = theValue; - return this; - } - - - - /** - * Sets the value(s) for granularity (DataElementGranularity) - * - *

- * Definition: - * Identifies how precise the data element is in its definition - *

- */ - public DataElement setGranularity(DataElementGranularityEnum theValue) { - getGranularityElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that provides the meaning for a data element according to a particular terminology - *

- */ - public java.util.List getCode() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - /** - * Sets the value(s) for code () - * - *

- * Definition: - * A code that provides the meaning for a data element according to a particular terminology - *

- */ - public DataElement setCode(java.util.List theValue) { - myCode = theValue; - return this; - } - - - - /** - * Adds and returns a new value for code () - * - *

- * Definition: - * A code that provides the meaning for a data element according to a particular terminology - *

- */ - public CodingDt addCode() { - CodingDt newType = new CodingDt(); - getCode().add(newType); - return newType; - } - - /** - * Gets the first repetition for code (), - * creating it if it does not already exist. - * - *

- * Definition: - * A code that provides the meaning for a data element according to a particular terminology - *

- */ - public CodingDt getCodeFirstRep() { - if (getCode().isEmpty()) { - return addCode(); - } - return getCode().get(0); - } - - /** - * Gets the value(s) for question (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey) - *

- */ - public StringDt getQuestionElement() { - if (myQuestion == null) { - myQuestion = new StringDt(); - } - return myQuestion; - } - - - /** - * Gets the value(s) for question (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey) - *

- */ - public String getQuestion() { - return getQuestionElement().getValue(); - } - - /** - * Sets the value(s) for question () - * - *

- * Definition: - * The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey) - *

- */ - public DataElement setQuestion(StringDt theValue) { - myQuestion = theValue; - return this; - } - - - - /** - * Sets the value for question () - * - *

- * Definition: - * The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey) - *

- */ - public DataElement setQuestion( String theString) { - myQuestion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for label (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form. - *

- */ - public StringDt getLabelElement() { - if (myLabel == null) { - myLabel = new StringDt(); - } - return myLabel; - } - - - /** - * Gets the value(s) for label (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form. - *

- */ - public String getLabel() { - return getLabelElement().getValue(); - } - - /** - * Sets the value(s) for label () - * - *

- * Definition: - * The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form. - *

- */ - public DataElement setLabel(StringDt theValue) { - myLabel = theValue; - return this; - } - - - - /** - * Sets the value for label () - * - *

- * Definition: - * The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form. - *

- */ - public DataElement setLabel( String theString) { - myLabel = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Provides a complete explanation of the meaning of the data element for human readability - *

- */ - public StringDt getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new StringDt(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Provides a complete explanation of the meaning of the data element for human readability - *

- */ - public String getDefinition() { - return getDefinitionElement().getValue(); - } - - /** - * Sets the value(s) for definition () - * - *

- * Definition: - * Provides a complete explanation of the meaning of the data element for human readability - *

- */ - public DataElement setDefinition(StringDt theValue) { - myDefinition = theValue; - return this; - } - - - - /** - * Sets the value for definition () - * - *

- * Definition: - * Provides a complete explanation of the meaning of the data element for human readability - *

- */ - public DataElement setDefinition( String theString) { - myDefinition = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for comments (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public String getComments() { - return getCommentsElement().getValue(); - } - - /** - * Sets the value(s) for comments () - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public DataElement setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - - - /** - * Sets the value for comments () - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public DataElement setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for requirements (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public StringDt getRequirementsElement() { - if (myRequirements == null) { - myRequirements = new StringDt(); - } - return myRequirements; - } - - - /** - * Gets the value(s) for requirements (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public String getRequirements() { - return getRequirementsElement().getValue(); - } - - /** - * Sets the value(s) for requirements () - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public DataElement setRequirements(StringDt theValue) { - myRequirements = theValue; - return this; - } - - - - /** - * Sets the value for requirements () - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public DataElement setRequirements( String theString) { - myRequirements = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for synonym (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public java.util.List getSynonym() { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - return mySynonym; - } - - /** - * Sets the value(s) for synonym () - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public DataElement setSynonym(java.util.List theValue) { - mySynonym = theValue; - return this; - } - - - - /** - * Adds and returns a new value for synonym () - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StringDt addSynonym() { - StringDt newType = new StringDt(); - getSynonym().add(newType); - return newType; - } - - /** - * Gets the first repetition for synonym (), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StringDt getSynonymFirstRep() { - if (getSynonym().isEmpty()) { - return addSynonym(); - } - return getSynonym().get(0); - } - /** - * Adds a new value for synonym () - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public DataElement addSynonym( String theString) { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - mySynonym.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for type (DataType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The FHIR data type that is the type for data that corresponds to this data element - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(DataTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (DataType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The FHIR data type that is the type for data that corresponds to this data element - *

- */ - public String getType() { - return getTypeElement().getValue(); - } - - /** - * Sets the value(s) for type (DataType) - * - *

- * Definition: - * The FHIR data type that is the type for data that corresponds to this data element - *

- */ - public DataElement setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value(s) for type (DataType) - * - *

- * Definition: - * The FHIR data type that is the type for data that corresponds to this data element - *

- */ - public DataElement setType(DataTypeEnum theValue) { - getTypeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for example[x] (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A sample value for this element demonstrating the type of information that would typically be captured. - *

- */ - public IDatatype getExample() { - return myExample; - } - - /** - * Sets the value(s) for example[x] () - * - *

- * Definition: - * A sample value for this element demonstrating the type of information that would typically be captured. - *

- */ - public DataElement setExample(IDatatype theValue) { - myExample = theValue; - return this; - } - - - - - /** - * Gets the value(s) for maxLength (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the shortest length that SHALL be supported by conformant instances without truncation - *

- */ - public IntegerDt getMaxLengthElement() { - if (myMaxLength == null) { - myMaxLength = new IntegerDt(); - } - return myMaxLength; - } - - - /** - * Gets the value(s) for maxLength (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the shortest length that SHALL be supported by conformant instances without truncation - *

- */ - public Integer getMaxLength() { - return getMaxLengthElement().getValue(); - } - - /** - * Sets the value(s) for maxLength () - * - *

- * Definition: - * Indicates the shortest length that SHALL be supported by conformant instances without truncation - *

- */ - public DataElement setMaxLength(IntegerDt theValue) { - myMaxLength = theValue; - return this; - } - - - - /** - * Sets the value for maxLength () - * - *

- * Definition: - * Indicates the shortest length that SHALL be supported by conformant instances without truncation - *

- */ - public DataElement setMaxLength( int theInteger) { - myMaxLength = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for units[x] (Units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the units of measure in which the data element should be captured or expressed. - *

- */ - public IDatatype getUnits() { - return myUnits; - } - - /** - * Sets the value(s) for units[x] (Units) - * - *

- * Definition: - * Identifies the units of measure in which the data element should be captured or expressed. - *

- */ - public DataElement setUnits(IDatatype theValue) { - myUnits = theValue; - return this; - } - - - - - /** - * Gets the value(s) for binding (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public Binding getBinding() { - if (myBinding == null) { - myBinding = new Binding(); - } - return myBinding; - } - - /** - * Sets the value(s) for binding () - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public DataElement setBinding(Binding theValue) { - myBinding = theValue; - return this; - } - - - - - /** - * Gets the value(s) for mapping (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public java.util.List getMapping() { - if (myMapping == null) { - myMapping = new java.util.ArrayList(); - } - return myMapping; - } - - /** - * Sets the value(s) for mapping () - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public DataElement setMapping(java.util.List theValue) { - myMapping = theValue; - return this; - } - - - - /** - * Adds and returns a new value for mapping () - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public Mapping addMapping() { - Mapping newType = new Mapping(); - getMapping().add(newType); - return newType; - } - - /** - * Gets the first repetition for mapping (), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public Mapping getMappingFirstRep() { - if (getMapping().isEmpty()) { - return addMapping(); - } - return getMapping().get(0); - } - - /** - * Block class for child element: DataElement.binding () - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - @Block() - public static class Binding - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="isExtensible", type=BooleanDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone" - ) - private BooleanDt myIsExtensible; - - @Child(name="conformance", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="BindingConformance", - formalDefinition="Indicates the degree of conformance expectations associated with this binding" - ) - private BoundCodeDt myConformance; - - @Child(name="description", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Describes the intended use of this particular set of codes" - ) - private StringDt myDescription; - - @Child(name="valueSet", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dev.resource.ValueSet.class }) - @Description( - shortDefinition="", - formalDefinition="Points to the value set that identifies the set of codes to be used" - ) - private ResourceReferenceDt myValueSet; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIsExtensible, myConformance, myDescription, myValueSet); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIsExtensible, myConformance, myDescription, myValueSet); - } - - /** - * Gets the value(s) for isExtensible (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public BooleanDt getIsExtensibleElement() { - if (myIsExtensible == null) { - myIsExtensible = new BooleanDt(); - } - return myIsExtensible; - } - - - /** - * Gets the value(s) for isExtensible (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Boolean getIsExtensible() { - return getIsExtensibleElement().getValue(); - } - - /** - * Sets the value(s) for isExtensible () - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Binding setIsExtensible(BooleanDt theValue) { - myIsExtensible = theValue; - return this; - } - - - - /** - * Sets the value for isExtensible () - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Binding setIsExtensible( boolean theBoolean) { - myIsExtensible = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for conformance (BindingConformance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public BoundCodeDt getConformanceElement() { - if (myConformance == null) { - myConformance = new BoundCodeDt(BindingConformanceEnum.VALUESET_BINDER); - } - return myConformance; - } - - - /** - * Gets the value(s) for conformance (BindingConformance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public String getConformance() { - return getConformanceElement().getValue(); - } - - /** - * Sets the value(s) for conformance (BindingConformance) - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public Binding setConformance(BoundCodeDt theValue) { - myConformance = theValue; - return this; - } - - - - /** - * Sets the value(s) for conformance (BindingConformance) - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public Binding setConformance(BindingConformanceEnum theValue) { - getConformanceElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description () - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public Binding setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description () - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public Binding setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for valueSet (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Points to the value set that identifies the set of codes to be used - *

- */ - public ResourceReferenceDt getValueSet() { - if (myValueSet == null) { - myValueSet = new ResourceReferenceDt(); - } - return myValueSet; - } - - /** - * Sets the value(s) for valueSet () - * - *

- * Definition: - * Points to the value set that identifies the set of codes to be used - *

- */ - public Binding setValueSet(ResourceReferenceDt theValue) { - myValueSet = theValue; - return this; - } - - - - - - } - - - /** - * Block class for child element: DataElement.mapping () - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - @Block() - public static class Mapping - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="uri", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A URI that identifies the specification that this mapping is expressed to" - ) - private UriDt myUri; - - @Child(name="definitional", type=BooleanDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="If true, indicates that the official meaning of the data element is exactly equivalent to the mapped element." - ) - private BooleanDt myDefinitional; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A name for the specification that is being mapped to" - ) - private StringDt myName; - - @Child(name="comments", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage" - ) - private StringDt myComments; - - @Child(name="map", type=StringDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Expresses what part of the target specification corresponds to this element" - ) - private StringDt myMap; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUri, myDefinitional, myName, myComments, myMap); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUri, myDefinitional, myName, myComments, myMap); - } - - /** - * Gets the value(s) for uri (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public UriDt getUriElement() { - if (myUri == null) { - myUri = new UriDt(); - } - return myUri; - } - - - /** - * Gets the value(s) for uri (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public String getUri() { - return getUriElement().getValue(); - } - - /** - * Sets the value(s) for uri () - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public Mapping setUri(UriDt theValue) { - myUri = theValue; - return this; - } - - - - /** - * Sets the value for uri () - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public Mapping setUri( String theUri) { - myUri = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for definitional (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates that the official meaning of the data element is exactly equivalent to the mapped element. - *

- */ - public BooleanDt getDefinitionalElement() { - if (myDefinitional == null) { - myDefinitional = new BooleanDt(); - } - return myDefinitional; - } - - - /** - * Gets the value(s) for definitional (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates that the official meaning of the data element is exactly equivalent to the mapped element. - *

- */ - public Boolean getDefinitional() { - return getDefinitionalElement().getValue(); - } - - /** - * Sets the value(s) for definitional () - * - *

- * Definition: - * If true, indicates that the official meaning of the data element is exactly equivalent to the mapped element. - *

- */ - public Mapping setDefinitional(BooleanDt theValue) { - myDefinitional = theValue; - return this; - } - - - - /** - * Sets the value for definitional () - * - *

- * Definition: - * If true, indicates that the official meaning of the data element is exactly equivalent to the mapped element. - *

- */ - public Mapping setDefinitional( boolean theBoolean) { - myDefinitional = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public Mapping setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public Mapping setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for comments (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public String getComments() { - return getCommentsElement().getValue(); - } - - /** - * Sets the value(s) for comments () - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public Mapping setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - - - /** - * Sets the value for comments () - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public Mapping setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for map (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public StringDt getMapElement() { - if (myMap == null) { - myMap = new StringDt(); - } - return myMap; - } - - - /** - * Gets the value(s) for map (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public String getMap() { - return getMapElement().getValue(); - } - - /** - * Sets the value(s) for map () - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public Mapping setMap(StringDt theValue) { - myMap = theValue; - return this; - } - - - - /** - * Sets the value for map () - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public Mapping setMap( String theString) { - myMap = new StringDt(theString); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "DataElement"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DEV; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/OperationDefinition.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/OperationDefinition.java deleted file mode 100644 index 2753d248cfe..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/OperationDefinition.java +++ /dev/null @@ -1,2679 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.resource; - -import java.net.URI; -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.composite.ContactPointDt; -import ca.uhn.fhir.model.dev.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dev.valueset.OperationKindEnum; -import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum; -import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR OperationDefinition Resource - * (infrastructure) - * - *

- * Definition: - * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction) - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/OperationDefinition - *

- * - */ -@ResourceDef(name="OperationDefinition", profile="http://hl7.org/fhir/profiles/OperationDefinition", id="operationdefinition") -public class OperationDefinition - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: OperationDefinition.identifier
- *

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

- * Description:
- * Type: token
- * Path: OperationDefinition.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description:
- * Type: token
- * Path: OperationDefinition.version
- *

- */ - @SearchParamDefinition(name="version", path="OperationDefinition.version", description="", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description:
- * Type: token
- * Path: OperationDefinition.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for title - *

- * Description:
- * Type: string
- * Path: OperationDefinition.title
- *

- */ - @SearchParamDefinition(name="title", path="OperationDefinition.title", description="", type="string" ) - public static final String SP_TITLE = "title"; - - /** - * Fluent Client search parameter constant for title - *

- * Description:
- * Type: string
- * Path: OperationDefinition.title
- *

- */ - public static final StringClientParam TITLE = new StringClientParam(SP_TITLE); - - /** - * Search parameter constant for publisher - *

- * Description:
- * Type: string
- * Path: OperationDefinition.publisher
- *

- */ - @SearchParamDefinition(name="publisher", path="OperationDefinition.publisher", description="", type="string" ) - public static final String SP_PUBLISHER = "publisher"; - - /** - * Fluent Client search parameter constant for publisher - *

- * Description:
- * Type: string
- * Path: OperationDefinition.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for code - *

- * Description:
- * Type: token
- * Path: OperationDefinition.code
- *

- */ - @SearchParamDefinition(name="code", path="OperationDefinition.code", description="", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description:
- * Type: token
- * Path: OperationDefinition.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for status - *

- * Description:
- * Type: token
- * Path: OperationDefinition.status
- *

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

- * Description:
- * Type: token
- * Path: OperationDefinition.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: OperationDefinition.date
- *

- */ - @SearchParamDefinition(name="date", path="OperationDefinition.date", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: OperationDefinition.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for kind - *

- * Description:
- * Type: token
- * Path: OperationDefinition.kind
- *

- */ - @SearchParamDefinition(name="kind", path="OperationDefinition.kind", description="", type="token" ) - public static final String SP_KIND = "kind"; - - /** - * Fluent Client search parameter constant for kind - *

- * Description:
- * Type: token
- * Path: OperationDefinition.kind
- *

- */ - public static final TokenClientParam KIND = new TokenClientParam(SP_KIND); - - /** - * Search parameter constant for name - *

- * Description:
- * Type: token
- * Path: OperationDefinition.name
- *

- */ - @SearchParamDefinition(name="name", path="OperationDefinition.name", description="", type="token" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description:
- * Type: token
- * Path: OperationDefinition.name
- *

- */ - public static final TokenClientParam NAME = new TokenClientParam(SP_NAME); - - /** - * Search parameter constant for base - *

- * Description:
- * Type: reference
- * Path: OperationDefinition.base
- *

- */ - @SearchParamDefinition(name="base", path="OperationDefinition.base", description="", type="reference" ) - public static final String SP_BASE = "base"; - - /** - * Fluent Client search parameter constant for base - *

- * Description:
- * Type: reference
- * Path: OperationDefinition.base
- *

- */ - public static final ReferenceClientParam BASE = new ReferenceClientParam(SP_BASE); - - /** - * Search parameter constant for system - *

- * Description:
- * Type: token
- * Path: OperationDefinition.system
- *

- */ - @SearchParamDefinition(name="system", path="OperationDefinition.system", description="", type="token" ) - public static final String SP_SYSTEM = "system"; - - /** - * Fluent Client search parameter constant for system - *

- * Description:
- * Type: token
- * Path: OperationDefinition.system
- *

- */ - public static final TokenClientParam SYSTEM = new TokenClientParam(SP_SYSTEM); - - /** - * Search parameter constant for type - *

- * Description:
- * Type: token
- * Path: OperationDefinition.type
- *

- */ - @SearchParamDefinition(name="type", path="OperationDefinition.type", description="", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description:
- * Type: token
- * Path: OperationDefinition.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for instance - *

- * Description:
- * Type: token
- * Path: OperationDefinition.instance
- *

- */ - @SearchParamDefinition(name="instance", path="OperationDefinition.instance", description="", type="token" ) - public static final String SP_INSTANCE = "instance"; - - /** - * Fluent Client search parameter constant for instance - *

- * Description:
- * Type: token
- * Path: OperationDefinition.instance
- *

- */ - public static final TokenClientParam INSTANCE = new TokenClientParam(SP_INSTANCE); - - /** - * Search parameter constant for profile - *

- * Description:
- * Type: reference
- * Path: OperationDefinition.parameter.profile
- *

- */ - @SearchParamDefinition(name="profile", path="OperationDefinition.parameter.profile", description="", type="reference" ) - public static final String SP_PROFILE = "profile"; - - /** - * Fluent Client search parameter constant for profile - *

- * Description:
- * Type: reference
- * Path: OperationDefinition.parameter.profile
- *

- */ - public static final ReferenceClientParam PROFILE = new ReferenceClientParam(SP_PROFILE); - - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.base". - */ - public static final Include INCLUDE_BASE = new Include("OperationDefinition.base"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.code". - */ - public static final Include INCLUDE_CODE = new Include("OperationDefinition.code"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.date". - */ - public static final Include INCLUDE_DATE = new Include("OperationDefinition.date"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.identifier". - */ - public static final Include INCLUDE_IDENTIFIER = new Include("OperationDefinition.identifier"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.instance". - */ - public static final Include INCLUDE_INSTANCE = new Include("OperationDefinition.instance"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.kind". - */ - public static final Include INCLUDE_KIND = new Include("OperationDefinition.kind"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.name". - */ - public static final Include INCLUDE_NAME = new Include("OperationDefinition.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.parameter.profile". - */ - public static final Include INCLUDE_PARAMETER_PROFILE = new Include("OperationDefinition.parameter.profile"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.publisher". - */ - public static final Include INCLUDE_PUBLISHER = new Include("OperationDefinition.publisher"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.status". - */ - public static final Include INCLUDE_STATUS = new Include("OperationDefinition.status"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.system". - */ - public static final Include INCLUDE_SYSTEM = new Include("OperationDefinition.system"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.title". - */ - public static final Include INCLUDE_TITLE = new Include("OperationDefinition.title"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.type". - */ - public static final Include INCLUDE_TYPE = new Include("OperationDefinition.type"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition.version". - */ - public static final Include INCLUDE_VERSION = new Include("OperationDefinition.version"); - - - @Child(name="identifier", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="id", - formalDefinition="The identifier that is used to identify this operation definition when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" - ) - private UriDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="id.version", - formalDefinition="The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" - ) - private StringDt myVersion; - - @Child(name="title", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language name identifying the Profile" - ) - private StringDt myTitle; - - @Child(name="publisher", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="who.witness", - formalDefinition="Details of the individual or organization who accepts responsibility for publishing the profile" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactPointDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Contact details to assist a user in finding and communicating with the publisher" - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language description of the profile and its use" - ) - private StringDt myDescription; - - @Child(name="code", type=CodingDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates." - ) - private java.util.List myCode; - - @Child(name="status", type=CodeDt.class, order=7, min=1, max=1) - @Description( - shortDefinition="status", - formalDefinition="The status of the profile" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="date", type=DateTimeDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="when.recorded", - formalDefinition="The date that this version of the profile was published" - ) - private DateTimeDt myDate; - - @Child(name="kind", type=CodeDt.class, order=10, min=1, max=1) - @Description( - shortDefinition="class", - formalDefinition="Whether this is operation or named query" - ) - private BoundCodeDt myKind; - - @Child(name="name", type=CodeDt.class, order=11, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The name used to invoke the operation" - ) - private CodeDt myName; - - @Child(name="notes", type=StringDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Additional information about how to use this operation or named query" - ) - private StringDt myNotes; - - @Child(name="base", order=13, min=0, max=1, type={ - ca.uhn.fhir.model.dev.resource.OperationDefinition.class }) - @Description( - shortDefinition="", - formalDefinition="Indicates that this operation definition is a constraining profile on the base" - ) - private ResourceReferenceDt myBase; - - @Child(name="system", type=BooleanDt.class, order=14, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context)" - ) - private BooleanDt mySystem; - - @Child(name="type", type=CodeDt.class, order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context)" - ) - private java.util.List> myType; - - @Child(name="instance", type=BooleanDt.class, order=16, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Indicates whether this operation can be invoked on a particular instance of one of the given types" - ) - private BooleanDt myInstance; - - @Child(name="parameter", order=17, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="The parameters for the operation/query" - ) - private java.util.List myParameter; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myTitle, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myKind, myName, myNotes, myBase, mySystem, myType, myInstance, myParameter); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myTitle, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myKind, myName, myNotes, myBase, mySystem, myType, myInstance, myParameter); - } - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this operation definition when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public UriDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new UriDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this operation definition when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public String getIdentifier() { - return getIdentifierElement().getValue(); - } - - /** - * Sets the value(s) for identifier (id) - * - *

- * Definition: - * The identifier that is used to identify this operation definition when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public OperationDefinition setIdentifier(UriDt theValue) { - myIdentifier = theValue; - return this; - } - - - - /** - * Sets the value for identifier (id) - * - *

- * Definition: - * The identifier that is used to identify this operation definition when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public OperationDefinition setIdentifier( String theUri) { - myIdentifier = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (id.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (id.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version (id.version) - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public OperationDefinition setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version (id.version) - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public OperationDefinition setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for title (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public StringDt getTitleElement() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Gets the value(s) for title (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public String getTitle() { - return getTitleElement().getValue(); - } - - /** - * Sets the value(s) for title () - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public OperationDefinition setTitle(StringDt theValue) { - myTitle = theValue; - return this; - } - - - - /** - * Sets the value for title () - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public OperationDefinition setTitle( String theString) { - myTitle = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publisher (who.witness). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (who.witness). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public String getPublisher() { - return getPublisherElement().getValue(); - } - - /** - * Sets the value(s) for publisher (who.witness) - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public OperationDefinition setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - - - /** - * Sets the value for publisher (who.witness) - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public OperationDefinition setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public OperationDefinition setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description () - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public OperationDefinition setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description () - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public OperationDefinition setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public java.util.List getCode() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - /** - * Sets the value(s) for code () - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public OperationDefinition setCode(java.util.List theValue) { - myCode = theValue; - return this; - } - - - - /** - * Adds and returns a new value for code () - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public CodingDt addCode() { - CodingDt newType = new CodingDt(); - getCode().add(newType); - return newType; - } - - /** - * Gets the first repetition for code (), - * creating it if it does not already exist. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public CodingDt getCodeFirstRep() { - if (getCode().isEmpty()) { - return addCode(); - } - return getCode().get(0); - } - - /** - * Gets the value(s) for status (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the profile - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ResourceProfileStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the profile - *

- */ - public String getStatus() { - return getStatusElement().getValue(); - } - - /** - * Sets the value(s) for status (status) - * - *

- * Definition: - * The status of the profile - *

- */ - public OperationDefinition setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - - - /** - * Sets the value(s) for status (status) - * - *

- * Definition: - * The status of the profile - *

- */ - public OperationDefinition setStatus(ResourceProfileStatusEnum theValue) { - getStatusElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Boolean getExperimental() { - return getExperimentalElement().getValue(); - } - - /** - * Sets the value(s) for experimental () - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public OperationDefinition setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - - - /** - * Sets the value for experimental () - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public OperationDefinition setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (when.recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (when.recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public Date getDate() { - return getDateElement().getValue(); - } - - /** - * Sets the value(s) for date (when.recorded) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public OperationDefinition setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - - - /** - * Sets the value for date (when.recorded) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public OperationDefinition setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (when.recorded) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public OperationDefinition setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for kind (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is operation or named query - *

- */ - public BoundCodeDt getKindElement() { - if (myKind == null) { - myKind = new BoundCodeDt(OperationKindEnum.VALUESET_BINDER); - } - return myKind; - } - - - /** - * Gets the value(s) for kind (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is operation or named query - *

- */ - public String getKind() { - return getKindElement().getValue(); - } - - /** - * Sets the value(s) for kind (class) - * - *

- * Definition: - * Whether this is operation or named query - *

- */ - public OperationDefinition setKind(BoundCodeDt theValue) { - myKind = theValue; - return this; - } - - - - /** - * Sets the value(s) for kind (class) - * - *

- * Definition: - * Whether this is operation or named query - *

- */ - public OperationDefinition setKind(OperationKindEnum theValue) { - getKindElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name used to invoke the operation - *

- */ - public CodeDt getNameElement() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name used to invoke the operation - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * The name used to invoke the operation - *

- */ - public OperationDefinition setName(CodeDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * The name used to invoke the operation - *

- */ - public OperationDefinition setName( String theCode) { - myName = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for notes (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional information about how to use this operation or named query - *

- */ - public StringDt getNotesElement() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Gets the value(s) for notes (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional information about how to use this operation or named query - *

- */ - public String getNotes() { - return getNotesElement().getValue(); - } - - /** - * Sets the value(s) for notes () - * - *

- * Definition: - * Additional information about how to use this operation or named query - *

- */ - public OperationDefinition setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - - - /** - * Sets the value for notes () - * - *

- * Definition: - * Additional information about how to use this operation or named query - *

- */ - public OperationDefinition setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for base (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that this operation definition is a constraining profile on the base - *

- */ - public ResourceReferenceDt getBase() { - if (myBase == null) { - myBase = new ResourceReferenceDt(); - } - return myBase; - } - - /** - * Sets the value(s) for base () - * - *

- * Definition: - * Indicates that this operation definition is a constraining profile on the base - *

- */ - public OperationDefinition setBase(ResourceReferenceDt theValue) { - myBase = theValue; - return this; - } - - - - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context) - *

- */ - public BooleanDt getSystemElement() { - if (mySystem == null) { - mySystem = new BooleanDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context) - *

- */ - public Boolean getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system () - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context) - *

- */ - public OperationDefinition setSystem(BooleanDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system () - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context) - *

- */ - public OperationDefinition setSystem( boolean theBoolean) { - mySystem = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for type (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context) - *

- */ - public java.util.List> getType() { - if (myType == null) { - myType = new java.util.ArrayList>(); - } - return myType; - } - - /** - * Sets the value(s) for type () - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context) - *

- */ - public OperationDefinition setType(java.util.List> theValue) { - myType = theValue; - return this; - } - - - - /** - * Add a value for type () using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addType()} method. - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context) - *

- */ - public BoundCodeDt addType(ResourceTypeEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER, theValue); - getType().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for type (), - * creating it if it does not already exist. - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context) - *

- */ - public BoundCodeDt getTypeFirstRep() { - if (getType().size() == 0) { - addType(); - } - return getType().get(0); - } - - /** - * Add a value for type () - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context) - *

- */ - public BoundCodeDt addType() { - BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - getType().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for type () - * - *

- * Definition: - * Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context) - *

- */ - public OperationDefinition setType(ResourceTypeEnum theValue) { - getType().clear(); - addType(theValue); - return this; - } - - - /** - * Gets the value(s) for instance (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether this operation can be invoked on a particular instance of one of the given types - *

- */ - public BooleanDt getInstanceElement() { - if (myInstance == null) { - myInstance = new BooleanDt(); - } - return myInstance; - } - - - /** - * Gets the value(s) for instance (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether this operation can be invoked on a particular instance of one of the given types - *

- */ - public Boolean getInstance() { - return getInstanceElement().getValue(); - } - - /** - * Sets the value(s) for instance () - * - *

- * Definition: - * Indicates whether this operation can be invoked on a particular instance of one of the given types - *

- */ - public OperationDefinition setInstance(BooleanDt theValue) { - myInstance = theValue; - return this; - } - - - - /** - * Sets the value for instance () - * - *

- * Definition: - * Indicates whether this operation can be invoked on a particular instance of one of the given types - *

- */ - public OperationDefinition setInstance( boolean theBoolean) { - myInstance = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for parameter (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The parameters for the operation/query - *

- */ - public java.util.List getParameter() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - /** - * Sets the value(s) for parameter () - * - *

- * Definition: - * The parameters for the operation/query - *

- */ - public OperationDefinition setParameter(java.util.List theValue) { - myParameter = theValue; - return this; - } - - - - /** - * Adds and returns a new value for parameter () - * - *

- * Definition: - * The parameters for the operation/query - *

- */ - public Parameter addParameter() { - Parameter newType = new Parameter(); - getParameter().add(newType); - return newType; - } - - /** - * Gets the first repetition for parameter (), - * creating it if it does not already exist. - * - *

- * Definition: - * The parameters for the operation/query - *

- */ - public Parameter getParameterFirstRep() { - if (getParameter().isEmpty()) { - return addParameter(); - } - return getParameter().get(0); - } - - /** - * Block class for child element: OperationDefinition.parameter () - * - *

- * Definition: - * The parameters for the operation/query - *

- */ - @Block() - public static class Parameter - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The name of used to identify the parameter" - ) - private CodeDt myName; - - @Child(name="use", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Whether this is an input or an output parameter" - ) - private BoundCodeDt myUse; - - @Child(name="min", type=IntegerDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The minimum number of times this parameter SHALL appear in the request or response" - ) - private IntegerDt myMin; - - @Child(name="max", type=StringDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The maximum number of times this element is permitted to appear in the request or response" - ) - private StringDt myMax; - - @Child(name="documentation", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Describes the meaning or use of this parameter" - ) - private StringDt myDocumentation; - - @Child(name="type", type=CodeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The type for this parameter" - ) - private CodeDt myType; - - @Child(name="profile", order=6, min=0, max=1, type={ - ca.uhn.fhir.model.dev.resource.Profile.class }) - @Description( - shortDefinition="", - formalDefinition="A profile the specifies the rules that this parameter must conform to" - ) - private ResourceReferenceDt myProfile; - - @Child(name="part", order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="The parts of a Tuple Parameter" - ) - private java.util.List myPart; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myUse, myMin, myMax, myDocumentation, myType, myProfile, myPart); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myUse, myMin, myMax, myDocumentation, myType, myProfile, myPart); - } - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of used to identify the parameter - *

- */ - public CodeDt getNameElement() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of used to identify the parameter - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * The name of used to identify the parameter - *

- */ - public Parameter setName(CodeDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * The name of used to identify the parameter - *

- */ - public Parameter setName( String theCode) { - myName = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for use (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is an input or an output parameter - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(OperationParameterUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is an input or an output parameter - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use () - * - *

- * Definition: - * Whether this is an input or an output parameter - *

- */ - public Parameter setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use () - * - *

- * Definition: - * Whether this is an input or an output parameter - *

- */ - public Parameter setUse(OperationParameterUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for min (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this parameter SHALL appear in the request or response - *

- */ - public IntegerDt getMinElement() { - if (myMin == null) { - myMin = new IntegerDt(); - } - return myMin; - } - - - /** - * Gets the value(s) for min (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this parameter SHALL appear in the request or response - *

- */ - public Integer getMin() { - return getMinElement().getValue(); - } - - /** - * Sets the value(s) for min () - * - *

- * Definition: - * The minimum number of times this parameter SHALL appear in the request or response - *

- */ - public Parameter setMin(IntegerDt theValue) { - myMin = theValue; - return this; - } - - - - /** - * Sets the value for min () - * - *

- * Definition: - * The minimum number of times this parameter SHALL appear in the request or response - *

- */ - public Parameter setMin( int theInteger) { - myMin = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for max (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the request or response - *

- */ - public StringDt getMaxElement() { - if (myMax == null) { - myMax = new StringDt(); - } - return myMax; - } - - - /** - * Gets the value(s) for max (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the request or response - *

- */ - public String getMax() { - return getMaxElement().getValue(); - } - - /** - * Sets the value(s) for max () - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the request or response - *

- */ - public Parameter setMax(StringDt theValue) { - myMax = theValue; - return this; - } - - - - /** - * Sets the value for max () - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the request or response - *

- */ - public Parameter setMax( String theString) { - myMax = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the meaning or use of this parameter - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the meaning or use of this parameter - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * Describes the meaning or use of this parameter - *

- */ - public Parameter setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * Describes the meaning or use of this parameter - *

- */ - public Parameter setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type for this parameter - *

- */ - public CodeDt getTypeElement() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type for this parameter - *

- */ - public String getType() { - return getTypeElement().getValue(); - } - - /** - * Sets the value(s) for type () - * - *

- * Definition: - * The type for this parameter - *

- */ - public Parameter setType(CodeDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value for type () - * - *

- * Definition: - * The type for this parameter - *

- */ - public Parameter setType( String theCode) { - myType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for profile (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A profile the specifies the rules that this parameter must conform to - *

- */ - public ResourceReferenceDt getProfile() { - if (myProfile == null) { - myProfile = new ResourceReferenceDt(); - } - return myProfile; - } - - /** - * Sets the value(s) for profile () - * - *

- * Definition: - * A profile the specifies the rules that this parameter must conform to - *

- */ - public Parameter setProfile(ResourceReferenceDt theValue) { - myProfile = theValue; - return this; - } - - - - - /** - * Gets the value(s) for part (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The parts of a Tuple Parameter - *

- */ - public java.util.List getPart() { - if (myPart == null) { - myPart = new java.util.ArrayList(); - } - return myPart; - } - - /** - * Sets the value(s) for part () - * - *

- * Definition: - * The parts of a Tuple Parameter - *

- */ - public Parameter setPart(java.util.List theValue) { - myPart = theValue; - return this; - } - - - - /** - * Adds and returns a new value for part () - * - *

- * Definition: - * The parts of a Tuple Parameter - *

- */ - public ParameterPart addPart() { - ParameterPart newType = new ParameterPart(); - getPart().add(newType); - return newType; - } - - /** - * Gets the first repetition for part (), - * creating it if it does not already exist. - * - *

- * Definition: - * The parts of a Tuple Parameter - *

- */ - public ParameterPart getPartFirstRep() { - if (getPart().isEmpty()) { - return addPart(); - } - return getPart().get(0); - } - - - } - - /** - * Block class for child element: OperationDefinition.parameter.part () - * - *

- * Definition: - * The parts of a Tuple Parameter - *

- */ - @Block() - public static class ParameterPart - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The name of used to identify the parameter" - ) - private CodeDt myName; - - @Child(name="min", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The minimum number of times this parameter SHALL appear in the request or response" - ) - private IntegerDt myMin; - - @Child(name="max", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The maximum number of times this element is permitted to appear in the request or response" - ) - private StringDt myMax; - - @Child(name="documentation", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Describes the meaning or use of this parameter" - ) - private StringDt myDocumentation; - - @Child(name="type", type=CodeDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The type for this parameter" - ) - private CodeDt myType; - - @Child(name="profile", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dev.resource.Profile.class }) - @Description( - shortDefinition="", - formalDefinition="A profile the specifies the rules that this parameter must conform to" - ) - private ResourceReferenceDt myProfile; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myMin, myMax, myDocumentation, myType, myProfile); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myMin, myMax, myDocumentation, myType, myProfile); - } - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of used to identify the parameter - *

- */ - public CodeDt getNameElement() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of used to identify the parameter - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * The name of used to identify the parameter - *

- */ - public ParameterPart setName(CodeDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * The name of used to identify the parameter - *

- */ - public ParameterPart setName( String theCode) { - myName = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for min (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this parameter SHALL appear in the request or response - *

- */ - public IntegerDt getMinElement() { - if (myMin == null) { - myMin = new IntegerDt(); - } - return myMin; - } - - - /** - * Gets the value(s) for min (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this parameter SHALL appear in the request or response - *

- */ - public Integer getMin() { - return getMinElement().getValue(); - } - - /** - * Sets the value(s) for min () - * - *

- * Definition: - * The minimum number of times this parameter SHALL appear in the request or response - *

- */ - public ParameterPart setMin(IntegerDt theValue) { - myMin = theValue; - return this; - } - - - - /** - * Sets the value for min () - * - *

- * Definition: - * The minimum number of times this parameter SHALL appear in the request or response - *

- */ - public ParameterPart setMin( int theInteger) { - myMin = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for max (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the request or response - *

- */ - public StringDt getMaxElement() { - if (myMax == null) { - myMax = new StringDt(); - } - return myMax; - } - - - /** - * Gets the value(s) for max (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the request or response - *

- */ - public String getMax() { - return getMaxElement().getValue(); - } - - /** - * Sets the value(s) for max () - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the request or response - *

- */ - public ParameterPart setMax(StringDt theValue) { - myMax = theValue; - return this; - } - - - - /** - * Sets the value for max () - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the request or response - *

- */ - public ParameterPart setMax( String theString) { - myMax = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the meaning or use of this parameter - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the meaning or use of this parameter - *

- */ - public String getDocumentation() { - return getDocumentationElement().getValue(); - } - - /** - * Sets the value(s) for documentation () - * - *

- * Definition: - * Describes the meaning or use of this parameter - *

- */ - public ParameterPart setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - - - /** - * Sets the value for documentation () - * - *

- * Definition: - * Describes the meaning or use of this parameter - *

- */ - public ParameterPart setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type for this parameter - *

- */ - public CodeDt getTypeElement() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type for this parameter - *

- */ - public String getType() { - return getTypeElement().getValue(); - } - - /** - * Sets the value(s) for type () - * - *

- * Definition: - * The type for this parameter - *

- */ - public ParameterPart setType(CodeDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value for type () - * - *

- * Definition: - * The type for this parameter - *

- */ - public ParameterPart setType( String theCode) { - myType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for profile (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A profile the specifies the rules that this parameter must conform to - *

- */ - public ResourceReferenceDt getProfile() { - if (myProfile == null) { - myProfile = new ResourceReferenceDt(); - } - return myProfile; - } - - /** - * Sets the value(s) for profile () - * - *

- * Definition: - * A profile the specifies the rules that this parameter must conform to - *

- */ - public ParameterPart setProfile(ResourceReferenceDt theValue) { - myProfile = theValue; - return this; - } - - - - - - } - - - - - - @Override - public String getResourceName() { - return "OperationDefinition"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DEV; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Organization.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Organization.java deleted file mode 100644 index 34acac1ec63..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Organization.java +++ /dev/null @@ -1,1103 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.resource; - -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dev.composite.AddressDt; -import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt; -import ca.uhn.fhir.model.dev.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dev.composite.ContactPointDt; -import ca.uhn.fhir.model.dev.composite.HumanNameDt; -import ca.uhn.fhir.model.dev.composite.IdentifierDt; -import ca.uhn.fhir.model.dev.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum; -import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Organization Resource - * (administration) - * - *

- * Definition: - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Organization - *

- * - */ -@ResourceDef(name="Organization", profile="http://hl7.org/fhir/profiles/Organization", id="organization") -public class Organization - extends BaseResource implements IResource { - - /** - * Search parameter constant for name - *

- * Description: A portion of the organization's name
- * Type: string
- * Path: Organization.name
- *

- */ - @SearchParamDefinition(name="name", path="Organization.name", description="A portion of the organization's name", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: A portion of the organization's name
- * Type: string
- * Path: Organization.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for phonetic - *

- * Description: A portion of the organization's name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - @SearchParamDefinition(name="phonetic", path="", description="A portion of the organization's name using some kind of phonetic matching algorithm", type="string" ) - public static final String SP_PHONETIC = "phonetic"; - - /** - * Fluent Client search parameter constant for phonetic - *

- * Description: A portion of the organization's name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - public static final StringClientParam PHONETIC = new StringClientParam(SP_PHONETIC); - - /** - * Search parameter constant for type - *

- * Description: A code for the type of organization
- * Type: token
- * Path: Organization.type
- *

- */ - @SearchParamDefinition(name="type", path="Organization.type", description="A code for the type of organization", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: A code for the type of organization
- * Type: token
- * Path: Organization.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for identifier - *

- * Description: Any identifier for the organization (not the accreditation issuer's identifier)
- * Type: token
- * Path: Organization.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Organization.identifier", description="Any identifier for the organization (not the accreditation issuer's identifier)", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Any identifier for the organization (not the accreditation issuer's identifier)
- * Type: token
- * Path: Organization.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for partof - *

- * Description: Search all organizations that are part of the given organization
- * Type: reference
- * Path: Organization.partOf
- *

- */ - @SearchParamDefinition(name="partof", path="Organization.partOf", description="Search all organizations that are part of the given organization", type="reference" ) - public static final String SP_PARTOF = "partof"; - - /** - * Fluent Client search parameter constant for partof - *

- * Description: Search all organizations that are part of the given organization
- * Type: reference
- * Path: Organization.partOf
- *

- */ - public static final ReferenceClientParam PARTOF = new ReferenceClientParam(SP_PARTOF); - - /** - * Search parameter constant for active - *

- * Description: Whether the organization's record is active
- * Type: token
- * Path: Organization.active
- *

- */ - @SearchParamDefinition(name="active", path="Organization.active", description="Whether the organization's record is active", type="token" ) - public static final String SP_ACTIVE = "active"; - - /** - * Fluent Client search parameter constant for active - *

- * Description: Whether the organization's record is active
- * Type: token
- * Path: Organization.active
- *

- */ - public static final TokenClientParam ACTIVE = new TokenClientParam(SP_ACTIVE); - - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "". - */ - public static final Include INCLUDE_ = new Include(""); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.active". - */ - public static final Include INCLUDE_ACTIVE = new Include("Organization.active"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.identifier". - */ - public static final Include INCLUDE_IDENTIFIER = new Include("Organization.identifier"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.name". - */ - public static final Include INCLUDE_NAME = new Include("Organization.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.partOf". - */ - public static final Include INCLUDE_PARTOF = new Include("Organization.partOf"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.type". - */ - public static final Include INCLUDE_TYPE = new Include("Organization.type"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="id", - formalDefinition="Identifier for the organization that is used to identify the organization across multiple disparate systems" - ) - private java.util.List myIdentifier; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A name associated with the organization" - ) - private StringDt myName; - - @Child(name="type", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="The kind of organization that this is" - ) - private BoundCodeableConceptDt myType; - - @Child(name="telecom", type=ContactPointDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A contact detail for the organization" - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="An address for the organization" - ) - private java.util.List myAddress; - - @Child(name="partOf", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dev.resource.Organization.class }) - @Description( - shortDefinition="", - formalDefinition="The organization of which this organization forms a part" - ) - private ResourceReferenceDt myPartOf; - - @Child(name="contact", order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myContact; - - @Child(name="location", order=7, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dev.resource.Organization.class }) - @Description( - shortDefinition="where", - formalDefinition="Location(s) the organization uses to provide services" - ) - private java.util.List myLocation; - - @Child(name="active", type=BooleanDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="status", - formalDefinition="Whether the organization's record is still in active use" - ) - private BooleanDt myActive; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myType, myTelecom, myAddress, myPartOf, myContact, myLocation, myActive); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myType, myTelecom, myAddress, myPartOf, myContact, myLocation, myActive); - } - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - /** - * Sets the value(s) for identifier (id) - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public Organization setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - - - /** - * Adds and returns a new value for identifier (id) - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (id), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the organization - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the organization - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A name associated with the organization - *

- */ - public Organization setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * A name associated with the organization - *

- */ - public Organization setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public BoundCodeableConceptDt getType() { - if (myType == null) { - myType = new BoundCodeableConceptDt(OrganizationTypeEnum.VALUESET_BINDER); - } - return myType; - } - - /** - * Sets the value(s) for type (class) - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public Organization setType(BoundCodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value(s) for type (class) - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public Organization setType(OrganizationTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public Organization setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for address (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An address for the organization - *

- */ - public java.util.List getAddress() { - if (myAddress == null) { - myAddress = new java.util.ArrayList(); - } - return myAddress; - } - - /** - * Sets the value(s) for address () - * - *

- * Definition: - * An address for the organization - *

- */ - public Organization setAddress(java.util.List theValue) { - myAddress = theValue; - return this; - } - - - - /** - * Adds and returns a new value for address () - * - *

- * Definition: - * An address for the organization - *

- */ - public AddressDt addAddress() { - AddressDt newType = new AddressDt(); - getAddress().add(newType); - return newType; - } - - /** - * Gets the first repetition for address (), - * creating it if it does not already exist. - * - *

- * Definition: - * An address for the organization - *

- */ - public AddressDt getAddressFirstRep() { - if (getAddress().isEmpty()) { - return addAddress(); - } - return getAddress().get(0); - } - - /** - * Gets the value(s) for partOf (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The organization of which this organization forms a part - *

- */ - public ResourceReferenceDt getPartOf() { - if (myPartOf == null) { - myPartOf = new ResourceReferenceDt(); - } - return myPartOf; - } - - /** - * Sets the value(s) for partOf () - * - *

- * Definition: - * The organization of which this organization forms a part - *

- */ - public Organization setPartOf(ResourceReferenceDt theValue) { - myPartOf = theValue; - return this; - } - - - - - /** - * Gets the value(s) for contact (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContact() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - /** - * Sets the value(s) for contact () - * - *

- * Definition: - * - *

- */ - public Organization setContact(java.util.List theValue) { - myContact = theValue; - return this; - } - - - - /** - * Adds and returns a new value for contact () - * - *

- * Definition: - * - *

- */ - public Contact addContact() { - Contact newType = new Contact(); - getContact().add(newType); - return newType; - } - - /** - * Gets the first repetition for contact (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public Contact getContactFirstRep() { - if (getContact().isEmpty()) { - return addContact(); - } - return getContact().get(0); - } - - /** - * Gets the value(s) for location (where). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public java.util.List getLocation() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - /** - * Sets the value(s) for location (where) - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public Organization setLocation(java.util.List theValue) { - myLocation = theValue; - return this; - } - - - - /** - * Adds and returns a new value for location (where) - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public ResourceReferenceDt addLocation() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getLocation().add(newType); - return newType; - } - - /** - * Gets the value(s) for active (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public BooleanDt getActiveElement() { - if (myActive == null) { - myActive = new BooleanDt(); - } - return myActive; - } - - - /** - * Gets the value(s) for active (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public Boolean getActive() { - return getActiveElement().getValue(); - } - - /** - * Sets the value(s) for active (status) - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public Organization setActive(BooleanDt theValue) { - myActive = theValue; - return this; - } - - - - /** - * Sets the value for active (status) - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public Organization setActive( boolean theBoolean) { - myActive = new BooleanDt(theBoolean); - return this; - } - - - /** - * Block class for child element: Organization.contact () - * - *

- * Definition: - * - *

- */ - @Block() - public static class Contact - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="purpose", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Indicates a purpose for which the contact can be reached" - ) - private CodeableConceptDt myPurpose; - - @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A name associated with the contact" - ) - private HumanNameDt myName; - - @Child(name="telecom", type=ContactPointDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the party may be contacted." - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Visiting or postal addresses for the contact" - ) - private AddressDt myAddress; - - @Child(name="gender", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." - ) - private BoundCodeDt myGender; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPurpose, myName, myTelecom, myAddress, myGender); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPurpose, myName, myTelecom, myAddress, myGender); - } - - /** - * Gets the value(s) for purpose (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates a purpose for which the contact can be reached - *

- */ - public CodeableConceptDt getPurpose() { - if (myPurpose == null) { - myPurpose = new CodeableConceptDt(); - } - return myPurpose; - } - - /** - * Sets the value(s) for purpose () - * - *

- * Definition: - * Indicates a purpose for which the contact can be reached - *

- */ - public Contact setPurpose(CodeableConceptDt theValue) { - myPurpose = theValue; - return this; - } - - - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the contact - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A name associated with the contact - *

- */ - public Contact setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public Contact setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for address (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Visiting or postal addresses for the contact - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - /** - * Sets the value(s) for address () - * - *

- * Definition: - * Visiting or postal addresses for the contact - *

- */ - public Contact setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - - - /** - * Gets the value(s) for gender (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeDt getGenderElement() { - if (myGender == null) { - myGender = new BoundCodeDt(AdministrativeGenderEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Gets the value(s) for gender (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public String getGender() { - return getGenderElement().getValue(); - } - - /** - * Sets the value(s) for gender () - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Contact setGender(BoundCodeDt theValue) { - myGender = theValue; - return this; - } - - - - /** - * Sets the value(s) for gender () - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Contact setGender(AdministrativeGenderEnum theValue) { - getGenderElement().setValueAsEnum(theValue); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Organization"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DEV; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Profile.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Profile.java deleted file mode 100644 index 85d742090eb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/Profile.java +++ /dev/null @@ -1,1978 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.resource; - -import java.net.URI; -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.composite.ContactPointDt; -import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt; -import ca.uhn.fhir.model.dev.composite.IdentifierDt; -import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Profile Resource - * (infrastructure) - * - *

- * Definition: - * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Profile - *

- * - */ -@ResourceDef(name="Profile", profile="http://hl7.org/fhir/profiles/Profile", id="profile") -public class Profile - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the profile
- * Type: token
- * Path: Profile.identifier
- *

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

- * Description: The identifier of the profile
- * Type: token
- * Path: Profile.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the profile
- * Type: token
- * Path: Profile.version
- *

- */ - @SearchParamDefinition(name="version", path="Profile.version", description="The version identifier of the profile", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the profile
- * Type: token
- * Path: Profile.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: Name of the profile
- * Type: string
- * Path: Profile.name
- *

- */ - @SearchParamDefinition(name="name", path="Profile.name", description="Name of the profile", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: Name of the profile
- * Type: string
- * Path: Profile.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the profile
- * Type: string
- * Path: Profile.publisher
- *

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

- * Description: Name of the publisher of the profile
- * Type: string
- * Path: Profile.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the profile
- * Type: string
- * Path: Profile.description
- *

- */ - @SearchParamDefinition(name="description", path="Profile.description", description="Text search in the description of the profile", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the profile
- * Type: string
- * Path: Profile.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: The current status of the profile
- * Type: token
- * Path: Profile.status
- *

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

- * Description: The current status of the profile
- * Type: token
- * Path: Profile.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The profile publication date
- * Type: date
- * Path: Profile.date
- *

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

- * Description: The profile publication date
- * Type: date
- * Path: Profile.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for code - *

- * Description: A code for the profile
- * Type: token
- * Path: Profile.code
- *

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

- * Description: A code for the profile
- * Type: token
- * Path: Profile.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for valueset - *

- * Description: A vocabulary binding code
- * Type: reference
- * Path: Profile.snapshot.element.binding.reference[x]
- *

- */ - @SearchParamDefinition(name="valueset", path="Profile.snapshot.element.binding.reference[x]", description="A vocabulary binding code", type="reference" ) - public static final String SP_VALUESET = "valueset"; - - /** - * Fluent Client search parameter constant for valueset - *

- * Description: A vocabulary binding code
- * Type: reference
- * Path: Profile.snapshot.element.binding.reference[x]
- *

- */ - public static final ReferenceClientParam VALUESET = new ReferenceClientParam(SP_VALUESET); - - /** - * Search parameter constant for type - *

- * Description: Type of resource that is constrained in the profile
- * Type: token
- * Path: Profile.type
- *

- */ - @SearchParamDefinition(name="type", path="Profile.type", description="Type of resource that is constrained in the profile", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: Type of resource that is constrained in the profile
- * Type: token
- * Path: Profile.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for url - *

- * Description:
- * Type: token
- * Path: Profile.url
- *

- */ - @SearchParamDefinition(name="url", path="Profile.url", description="", type="token" ) - public static final String SP_URL = "url"; - - /** - * Fluent Client search parameter constant for url - *

- * Description:
- * Type: token
- * Path: Profile.url
- *

- */ - public static final TokenClientParam URL = new TokenClientParam(SP_URL); - - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.code". - */ - public static final Include INCLUDE_CODE = new Include("Profile.code"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.date". - */ - public static final Include INCLUDE_DATE = new Include("Profile.date"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.description". - */ - public static final Include INCLUDE_DESCRIPTION = new Include("Profile.description"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.identifier". - */ - public static final Include INCLUDE_IDENTIFIER = new Include("Profile.identifier"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.name". - */ - public static final Include INCLUDE_NAME = new Include("Profile.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.publisher". - */ - public static final Include INCLUDE_PUBLISHER = new Include("Profile.publisher"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.snapshot.element.binding.reference[x]". - */ - public static final Include INCLUDE_SNAPSHOT_ELEMENT_BINDING_REFERENCE = new Include("Profile.snapshot.element.binding.reference[x]"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.status". - */ - public static final Include INCLUDE_STATUS = new Include("Profile.status"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.type". - */ - public static final Include INCLUDE_TYPE = new Include("Profile.type"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.url". - */ - public static final Include INCLUDE_URL = new Include("Profile.url"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.version". - */ - public static final Include INCLUDE_VERSION = new Include("Profile.version"); - - - @Child(name="url", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="id", - formalDefinition="The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems" - ) - private UriDt myUrl; - - @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="id", - formalDefinition="Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI)" - ) - private java.util.List myIdentifier; - - @Child(name="version", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="id.version", - formalDefinition="The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually" - ) - private StringDt myVersion; - - @Child(name="name", type=StringDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language name identifying the Profile" - ) - private StringDt myName; - - @Child(name="publisher", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="who.witness", - formalDefinition="Details of the individual or organization who accepts responsibility for publishing the profile" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactPointDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Contact details to assist a user in finding and communicating with the publisher" - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language description of the profile and its use" - ) - private StringDt myDescription; - - @Child(name="code", type=CodingDt.class, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="class", - formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates." - ) - private java.util.List myCode; - - @Child(name="status", type=CodeDt.class, order=8, min=1, max=1) - @Description( - shortDefinition="status", - formalDefinition="The status of the profile" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="date", type=DateTimeDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="when.recorded", - formalDefinition="The date that this version of the profile was published" - ) - private DateTimeDt myDate; - - @Child(name="requirements", type=StringDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="why", - formalDefinition="The Scope and Usage that this profile was created to meet" - ) - private StringDt myRequirements; - - @Child(name="fhirVersion", type=IdDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version" - ) - private IdDt myFhirVersion; - - @Child(name="mapping", order=13, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="An external specification that the content is mapped to" - ) - private java.util.List myMapping; - - @Child(name="type", type=CodeDt.class, order=14, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The Resource or Data type being described" - ) - private BoundCodeDt myType; - - @Child(name="base", type=UriDt.class, order=15, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The structure that is the base on which this set of constraints is derived from." - ) - private UriDt myBase; - - @Child(name="snapshot", order=16, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base profile" - ) - private Snapshot mySnapshot; - - @Child(name="differential", type=Snapshot.class, order=17, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A differential view is expressed relative to the base profile - a statement of differences that it applies" - ) - private Snapshot myDifferential; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUrl, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myRequirements, myFhirVersion, myMapping, myType, myBase, mySnapshot, myDifferential); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUrl, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myRequirements, myFhirVersion, myMapping, myType, myBase, mySnapshot, myDifferential); - } - - /** - * Gets the value(s) for url (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems - *

- */ - public String getUrl() { - return getUrlElement().getValue(); - } - - /** - * Sets the value(s) for url (id) - * - *

- * Definition: - * The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems - *

- */ - public Profile setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - - - /** - * Sets the value for url (id) - * - *

- * Definition: - * The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems - *

- */ - public Profile setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - /** - * Sets the value(s) for identifier (id) - * - *

- * Definition: - * Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) - *

- */ - public Profile setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - - - /** - * Adds and returns a new value for identifier (id) - * - *

- * Definition: - * Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (id), - * creating it if it does not already exist. - * - *

- * Definition: - * Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - - /** - * Gets the value(s) for version (id.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (id.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version (id.version) - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually - *

- */ - public Profile setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version (id.version) - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually - *

- */ - public Profile setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public Profile setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public Profile setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publisher (who.witness). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (who.witness). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public String getPublisher() { - return getPublisherElement().getValue(); - } - - /** - * Sets the value(s) for publisher (who.witness) - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public Profile setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - - - /** - * Sets the value for publisher (who.witness) - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public Profile setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public Profile setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description () - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public Profile setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description () - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public Profile setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public java.util.List getCode() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - /** - * Sets the value(s) for code (class) - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public Profile setCode(java.util.List theValue) { - myCode = theValue; - return this; - } - - - - /** - * Adds and returns a new value for code (class) - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public CodingDt addCode() { - CodingDt newType = new CodingDt(); - getCode().add(newType); - return newType; - } - - /** - * Gets the first repetition for code (class), - * creating it if it does not already exist. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public CodingDt getCodeFirstRep() { - if (getCode().isEmpty()) { - return addCode(); - } - return getCode().get(0); - } - - /** - * Gets the value(s) for status (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the profile - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ResourceProfileStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the profile - *

- */ - public String getStatus() { - return getStatusElement().getValue(); - } - - /** - * Sets the value(s) for status (status) - * - *

- * Definition: - * The status of the profile - *

- */ - public Profile setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - - - /** - * Sets the value(s) for status (status) - * - *

- * Definition: - * The status of the profile - *

- */ - public Profile setStatus(ResourceProfileStatusEnum theValue) { - getStatusElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Boolean getExperimental() { - return getExperimentalElement().getValue(); - } - - /** - * Sets the value(s) for experimental (class) - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Profile setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - - - /** - * Sets the value for experimental (class) - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Profile setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (when.recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (when.recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public Date getDate() { - return getDateElement().getValue(); - } - - /** - * Sets the value(s) for date (when.recorded) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public Profile setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - - - /** - * Sets the value for date (when.recorded) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public Profile setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (when.recorded) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public Profile setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for requirements (why). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Scope and Usage that this profile was created to meet - *

- */ - public StringDt getRequirementsElement() { - if (myRequirements == null) { - myRequirements = new StringDt(); - } - return myRequirements; - } - - - /** - * Gets the value(s) for requirements (why). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Scope and Usage that this profile was created to meet - *

- */ - public String getRequirements() { - return getRequirementsElement().getValue(); - } - - /** - * Sets the value(s) for requirements (why) - * - *

- * Definition: - * The Scope and Usage that this profile was created to meet - *

- */ - public Profile setRequirements(StringDt theValue) { - myRequirements = theValue; - return this; - } - - - - /** - * Sets the value for requirements (why) - * - *

- * Definition: - * The Scope and Usage that this profile was created to meet - *

- */ - public Profile setRequirements( String theString) { - myRequirements = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for fhirVersion (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version - *

- */ - public IdDt getFhirVersionElement() { - if (myFhirVersion == null) { - myFhirVersion = new IdDt(); - } - return myFhirVersion; - } - - - /** - * Gets the value(s) for fhirVersion (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version - *

- */ - public String getFhirVersion() { - return getFhirVersionElement().getValue(); - } - - /** - * Sets the value(s) for fhirVersion () - * - *

- * Definition: - * The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version - *

- */ - public Profile setFhirVersion(IdDt theValue) { - myFhirVersion = theValue; - return this; - } - - - - /** - * Sets the value for fhirVersion () - * - *

- * Definition: - * The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is $version$ for this version - *

- */ - public Profile setFhirVersion( String theId) { - myFhirVersion = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for mapping (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public java.util.List getMapping() { - if (myMapping == null) { - myMapping = new java.util.ArrayList(); - } - return myMapping; - } - - /** - * Sets the value(s) for mapping () - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public Profile setMapping(java.util.List theValue) { - myMapping = theValue; - return this; - } - - - - /** - * Adds and returns a new value for mapping () - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public Mapping addMapping() { - Mapping newType = new Mapping(); - getMapping().add(newType); - return newType; - } - - /** - * Gets the first repetition for mapping (), - * creating it if it does not already exist. - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public Mapping getMappingFirstRep() { - if (getMapping().isEmpty()) { - return addMapping(); - } - return getMapping().get(0); - } - - /** - * Gets the value(s) for type (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Resource or Data type being described - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(FHIRDefinedTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Resource or Data type being described - *

- */ - public String getType() { - return getTypeElement().getValue(); - } - - /** - * Sets the value(s) for type () - * - *

- * Definition: - * The Resource or Data type being described - *

- */ - public Profile setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value(s) for type () - * - *

- * Definition: - * The Resource or Data type being described - *

- */ - public Profile setType(FHIRDefinedTypeEnum theValue) { - getTypeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for base (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The structure that is the base on which this set of constraints is derived from. - *

- */ - public UriDt getBaseElement() { - if (myBase == null) { - myBase = new UriDt(); - } - return myBase; - } - - - /** - * Gets the value(s) for base (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The structure that is the base on which this set of constraints is derived from. - *

- */ - public String getBase() { - return getBaseElement().getValue(); - } - - /** - * Sets the value(s) for base () - * - *

- * Definition: - * The structure that is the base on which this set of constraints is derived from. - *

- */ - public Profile setBase(UriDt theValue) { - myBase = theValue; - return this; - } - - - - /** - * Sets the value for base () - * - *

- * Definition: - * The structure that is the base on which this set of constraints is derived from. - *

- */ - public Profile setBase( String theUri) { - myBase = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for snapshot (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base profile - *

- */ - public Snapshot getSnapshot() { - if (mySnapshot == null) { - mySnapshot = new Snapshot(); - } - return mySnapshot; - } - - /** - * Sets the value(s) for snapshot () - * - *

- * Definition: - * A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base profile - *

- */ - public Profile setSnapshot(Snapshot theValue) { - mySnapshot = theValue; - return this; - } - - - - - /** - * Gets the value(s) for differential (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A differential view is expressed relative to the base profile - a statement of differences that it applies - *

- */ - public Snapshot getDifferential() { - if (myDifferential == null) { - myDifferential = new Snapshot(); - } - return myDifferential; - } - - /** - * Sets the value(s) for differential () - * - *

- * Definition: - * A differential view is expressed relative to the base profile - a statement of differences that it applies - *

- */ - public Profile setDifferential(Snapshot theValue) { - myDifferential = theValue; - return this; - } - - - - - /** - * Block class for child element: Profile.mapping () - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - @Block() - public static class Mapping - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identity", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="An Internal id that is used to identify this mapping set when specific mappings are made" - ) - private IdDt myIdentity; - - @Child(name="uri", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A URI that identifies the specification that this mapping is expressed to" - ) - private UriDt myUri; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A name for the specification that is being mapped to" - ) - private StringDt myName; - - @Child(name="comments", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage" - ) - private StringDt myComments; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myUri, myName, myComments); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myUri, myName, myComments); - } - - /** - * Gets the value(s) for identity (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An Internal id that is used to identify this mapping set when specific mappings are made - *

- */ - public IdDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new IdDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An Internal id that is used to identify this mapping set when specific mappings are made - *

- */ - public String getIdentity() { - return getIdentityElement().getValue(); - } - - /** - * Sets the value(s) for identity () - * - *

- * Definition: - * An Internal id that is used to identify this mapping set when specific mappings are made - *

- */ - public Mapping setIdentity(IdDt theValue) { - myIdentity = theValue; - return this; - } - - - - /** - * Sets the value for identity () - * - *

- * Definition: - * An Internal id that is used to identify this mapping set when specific mappings are made - *

- */ - public Mapping setIdentity( String theId) { - myIdentity = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for uri (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public UriDt getUriElement() { - if (myUri == null) { - myUri = new UriDt(); - } - return myUri; - } - - - /** - * Gets the value(s) for uri (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public String getUri() { - return getUriElement().getValue(); - } - - /** - * Sets the value(s) for uri () - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public Mapping setUri(UriDt theValue) { - myUri = theValue; - return this; - } - - - - /** - * Sets the value for uri () - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public Mapping setUri( String theUri) { - myUri = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public Mapping setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public Mapping setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for comments (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public String getComments() { - return getCommentsElement().getValue(); - } - - /** - * Sets the value(s) for comments () - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public Mapping setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - - - /** - * Sets the value for comments () - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public Mapping setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Profile.snapshot () - * - *

- * Definition: - * A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base profile - *

- */ - @Block() - public static class Snapshot - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="element", type=ElementDefinitionDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Captures constraints on each element within the resource" - ) - private java.util.List myElement; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myElement); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myElement); - } - - /** - * Gets the value(s) for element (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public java.util.List getElement() { - if (myElement == null) { - myElement = new java.util.ArrayList(); - } - return myElement; - } - - /** - * Sets the value(s) for element () - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public Snapshot setElement(java.util.List theValue) { - myElement = theValue; - return this; - } - - - - /** - * Adds and returns a new value for element () - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public ElementDefinitionDt addElement() { - ElementDefinitionDt newType = new ElementDefinitionDt(); - getElement().add(newType); - return newType; - } - - /** - * Gets the first repetition for element (), - * creating it if it does not already exist. - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public ElementDefinitionDt getElementFirstRep() { - if (getElement().isEmpty()) { - return addElement(); - } - return getElement().get(0); - } - - - } - - - - - @Override - public String getResourceName() { - return "Profile"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DEV; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/ValueSet.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/ValueSet.java deleted file mode 100644 index a0ed0e25f78..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/resource/ValueSet.java +++ /dev/null @@ -1,4077 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dev.resource; - -import java.net.URI; -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dev.composite.CodingDt; -import ca.uhn.fhir.model.dev.composite.ContactPointDt; -import ca.uhn.fhir.model.dev.composite.IdentifierDt; -import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR ValueSet Resource - * (infrastructure) - * - *

- * Definition: - * A value set specifies a set of codes drawn from one or more code systems - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/ValueSet - *

- * - */ -@ResourceDef(name="ValueSet", profile="http://hl7.org/fhir/profiles/ValueSet", id="valueset") -public class ValueSet - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the value set
- * Type: token
- * Path: ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="ValueSet.identifier", description="The identifier of the value set", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: The identifier of the value set
- * Type: token
- * Path: ValueSet.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the value set
- * Type: token
- * Path: ValueSet.version
- *

- */ - @SearchParamDefinition(name="version", path="ValueSet.version", description="The version identifier of the value set", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the value set
- * Type: token
- * Path: ValueSet.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: The name of the value set
- * Type: string
- * Path: ValueSet.name
- *

- */ - @SearchParamDefinition(name="name", path="ValueSet.name", description="The name of the value set", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: The name of the value set
- * Type: string
- * Path: ValueSet.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the value set
- * Type: string
- * Path: ValueSet.publisher
- *

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

- * Description: Name of the publisher of the value set
- * Type: string
- * Path: ValueSet.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the value set
- * Type: string
- * Path: ValueSet.description
- *

- */ - @SearchParamDefinition(name="description", path="ValueSet.description", description="Text search in the description of the value set", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the value set
- * Type: string
- * Path: ValueSet.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: The status of the value set
- * Type: token
- * Path: ValueSet.status
- *

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

- * Description: The status of the value set
- * Type: token
- * Path: ValueSet.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The value set publication date
- * Type: date
- * Path: ValueSet.date
- *

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

- * Description: The value set publication date
- * Type: date
- * Path: ValueSet.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for system - *

- * Description: The system for any codes defined by this value set
- * Type: token
- * Path: ValueSet.define.system
- *

- */ - @SearchParamDefinition(name="system", path="ValueSet.define.system", description="The system for any codes defined by this value set", type="token" ) - public static final String SP_SYSTEM = "system"; - - /** - * Fluent Client search parameter constant for system - *

- * Description: The system for any codes defined by this value set
- * Type: token
- * Path: ValueSet.define.system
- *

- */ - public static final TokenClientParam SYSTEM = new TokenClientParam(SP_SYSTEM); - - /** - * Search parameter constant for code - *

- * Description: A code defined in the value set
- * Type: token
- * Path: ValueSet.define.concept.code
- *

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

- * Description: A code defined in the value set
- * Type: token
- * Path: ValueSet.define.concept.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for reference - *

- * Description: A code system included or excluded in the value set or an imported value set
- * Type: token
- * Path: ValueSet.compose.include.system
- *

- */ - @SearchParamDefinition(name="reference", path="ValueSet.compose.include.system", description="A code system included or excluded in the value set or an imported value set", type="token" ) - public static final String SP_REFERENCE = "reference"; - - /** - * Fluent Client search parameter constant for reference - *

- * Description: A code system included or excluded in the value set or an imported value set
- * Type: token
- * Path: ValueSet.compose.include.system
- *

- */ - public static final TokenClientParam REFERENCE = new TokenClientParam(SP_REFERENCE); - - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.compose.include.system". - */ - public static final Include INCLUDE_COMPOSE_INCLUDE_SYSTEM = new Include("ValueSet.compose.include.system"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.date". - */ - public static final Include INCLUDE_DATE = new Include("ValueSet.date"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.define.concept.code". - */ - public static final Include INCLUDE_DEFINE_CONCEPT_CODE = new Include("ValueSet.define.concept.code"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.define.system". - */ - public static final Include INCLUDE_DEFINE_SYSTEM = new Include("ValueSet.define.system"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.description". - */ - public static final Include INCLUDE_DESCRIPTION = new Include("ValueSet.description"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.identifier". - */ - public static final Include INCLUDE_IDENTIFIER = new Include("ValueSet.identifier"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.name". - */ - public static final Include INCLUDE_NAME = new Include("ValueSet.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.publisher". - */ - public static final Include INCLUDE_PUBLISHER = new Include("ValueSet.publisher"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.status". - */ - public static final Include INCLUDE_STATUS = new Include("ValueSet.status"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.version". - */ - public static final Include INCLUDE_VERSION = new Include("ValueSet.version"); - - - @Child(name="identifier", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="id", - formalDefinition="The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" - ) - private UriDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="id.version", - formalDefinition="The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" - ) - private StringDt myVersion; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language name describing the value set" - ) - private StringDt myName; - - @Child(name="purpose", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="why", - formalDefinition="This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set." - ) - private StringDt myPurpose; - - @Child(name="immutable", type=BooleanDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change" - ) - private BooleanDt myImmutable; - - @Child(name="publisher", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="who.witness", - formalDefinition="The name of the individual or organization that published the value set" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactPointDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Contacts of the publisher to assist a user in finding and communicating with the publisher" - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set" - ) - private StringDt myDescription; - - @Child(name="copyright", type=StringDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set" - ) - private StringDt myCopyright; - - @Child(name="status", type=CodeDt.class, order=9, min=1, max=1) - @Description( - shortDefinition="status", - formalDefinition="The status of the value set" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="extensible", type=BooleanDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="Whether this is intended to be used with an extensible binding or not" - ) - private BooleanDt myExtensible; - - @Child(name="date", type=DateTimeDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="when.recorded", - formalDefinition="The date that the value set status was last changed" - ) - private DateTimeDt myDate; - - @Child(name="stableDate", type=DateDt.class, order=13, min=0, max=1) - @Description( - shortDefinition="when.init", - formalDefinition="If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date." - ) - private DateDt myStableDate; - - @Child(name="define", order=14, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private Define myDefine; - - @Child(name="compose", order=15, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private Compose myCompose; - - @Child(name="expansion", order=16, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed" - ) - private Expansion myExpansion; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPurpose, myImmutable, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myStableDate, myDefine, myCompose, myExpansion); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPurpose, myImmutable, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myStableDate, myDefine, myCompose, myExpansion); - } - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public UriDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new UriDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public String getIdentifier() { - return getIdentifierElement().getValue(); - } - - /** - * Sets the value(s) for identifier (id) - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public ValueSet setIdentifier(UriDt theValue) { - myIdentifier = theValue; - return this; - } - - - - /** - * Sets the value for identifier (id) - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public ValueSet setIdentifier( String theUri) { - myIdentifier = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (id.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (id.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version (id.version) - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public ValueSet setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version (id.version) - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public ValueSet setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public ValueSet setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public ValueSet setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for purpose (why). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set. - *

- */ - public StringDt getPurposeElement() { - if (myPurpose == null) { - myPurpose = new StringDt(); - } - return myPurpose; - } - - - /** - * Gets the value(s) for purpose (why). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set. - *

- */ - public String getPurpose() { - return getPurposeElement().getValue(); - } - - /** - * Sets the value(s) for purpose (why) - * - *

- * Definition: - * This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set. - *

- */ - public ValueSet setPurpose(StringDt theValue) { - myPurpose = theValue; - return this; - } - - - - /** - * Sets the value for purpose (why) - * - *

- * Definition: - * This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set. - *

- */ - public ValueSet setPurpose( String theString) { - myPurpose = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for immutable (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change - *

- */ - public BooleanDt getImmutableElement() { - if (myImmutable == null) { - myImmutable = new BooleanDt(); - } - return myImmutable; - } - - - /** - * Gets the value(s) for immutable (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change - *

- */ - public Boolean getImmutable() { - return getImmutableElement().getValue(); - } - - /** - * Sets the value(s) for immutable (class) - * - *

- * Definition: - * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change - *

- */ - public ValueSet setImmutable(BooleanDt theValue) { - myImmutable = theValue; - return this; - } - - - - /** - * Sets the value for immutable (class) - * - *

- * Definition: - * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change - *

- */ - public ValueSet setImmutable( boolean theBoolean) { - myImmutable = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for publisher (who.witness). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (who.witness). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public String getPublisher() { - return getPublisherElement().getValue(); - } - - /** - * Sets the value(s) for publisher (who.witness) - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public ValueSet setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - - - /** - * Sets the value for publisher (who.witness) - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public ValueSet setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ValueSet setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description () - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set - *

- */ - public ValueSet setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description () - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set - *

- */ - public ValueSet setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for copyright (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set - *

- */ - public StringDt getCopyrightElement() { - if (myCopyright == null) { - myCopyright = new StringDt(); - } - return myCopyright; - } - - - /** - * Gets the value(s) for copyright (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set - *

- */ - public String getCopyright() { - return getCopyrightElement().getValue(); - } - - /** - * Sets the value(s) for copyright () - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set - *

- */ - public ValueSet setCopyright(StringDt theValue) { - myCopyright = theValue; - return this; - } - - - - /** - * Sets the value for copyright () - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set - *

- */ - public ValueSet setCopyright( String theString) { - myCopyright = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the value set - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ValueSetStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the value set - *

- */ - public String getStatus() { - return getStatusElement().getValue(); - } - - /** - * Sets the value(s) for status (status) - * - *

- * Definition: - * The status of the value set - *

- */ - public ValueSet setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - - - /** - * Sets the value(s) for status (status) - * - *

- * Definition: - * The status of the value set - *

- */ - public ValueSet setStatus(ValueSetStatusEnum theValue) { - getStatusElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Boolean getExperimental() { - return getExperimentalElement().getValue(); - } - - /** - * Sets the value(s) for experimental (class) - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public ValueSet setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - - - /** - * Sets the value for experimental (class) - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public ValueSet setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for extensible (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public BooleanDt getExtensibleElement() { - if (myExtensible == null) { - myExtensible = new BooleanDt(); - } - return myExtensible; - } - - - /** - * Gets the value(s) for extensible (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public Boolean getExtensible() { - return getExtensibleElement().getValue(); - } - - /** - * Sets the value(s) for extensible (class) - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public ValueSet setExtensible(BooleanDt theValue) { - myExtensible = theValue; - return this; - } - - - - /** - * Sets the value for extensible (class) - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public ValueSet setExtensible( boolean theBoolean) { - myExtensible = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (when.recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (when.recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public Date getDate() { - return getDateElement().getValue(); - } - - /** - * Sets the value(s) for date (when.recorded) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - - - /** - * Sets the value for date (when.recorded) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (when.recorded) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for stableDate (when.init). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public DateDt getStableDateElement() { - if (myStableDate == null) { - myStableDate = new DateDt(); - } - return myStableDate; - } - - - /** - * Gets the value(s) for stableDate (when.init). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public Date getStableDate() { - return getStableDateElement().getValue(); - } - - /** - * Sets the value(s) for stableDate (when.init) - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public ValueSet setStableDate(DateDt theValue) { - myStableDate = theValue; - return this; - } - - - - /** - * Sets the value for stableDate (when.init) - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public ValueSet setStableDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myStableDate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for stableDate (when.init) - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public ValueSet setStableDateWithDayPrecision( Date theDate) { - myStableDate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for define (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Define getDefine() { - if (myDefine == null) { - myDefine = new Define(); - } - return myDefine; - } - - /** - * Sets the value(s) for define () - * - *

- * Definition: - * - *

- */ - public ValueSet setDefine(Define theValue) { - myDefine = theValue; - return this; - } - - - - - /** - * Gets the value(s) for compose (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Compose getCompose() { - if (myCompose == null) { - myCompose = new Compose(); - } - return myCompose; - } - - /** - * Sets the value(s) for compose () - * - *

- * Definition: - * - *

- */ - public ValueSet setCompose(Compose theValue) { - myCompose = theValue; - return this; - } - - - - - /** - * Gets the value(s) for expansion (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed - *

- */ - public Expansion getExpansion() { - if (myExpansion == null) { - myExpansion = new Expansion(); - } - return myExpansion; - } - - /** - * Sets the value(s) for expansion () - * - *

- * Definition: - * A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed - *

- */ - public ValueSet setExpansion(Expansion theValue) { - myExpansion = theValue; - return this; - } - - - - - /** - * Block class for child element: ValueSet.define () - * - *

- * Definition: - * - *

- */ - @Block() - public static class Define - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked" - ) - private StringDt myVersion; - - @Child(name="caseSensitive", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="If code comparison is case sensitive when codes within this system are compared to each other" - ) - private BooleanDt myCaseSensitive; - - @Child(name="concept", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myConcept; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCaseSensitive, myConcept); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCaseSensitive, myConcept); - } - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system () - * - *

- * Definition: - * - *

- */ - public Define setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system () - * - *

- * Definition: - * - *

- */ - public Define setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public Define setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public Define setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for caseSensitive (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public BooleanDt getCaseSensitiveElement() { - if (myCaseSensitive == null) { - myCaseSensitive = new BooleanDt(); - } - return myCaseSensitive; - } - - - /** - * Gets the value(s) for caseSensitive (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public Boolean getCaseSensitive() { - return getCaseSensitiveElement().getValue(); - } - - /** - * Sets the value(s) for caseSensitive () - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public Define setCaseSensitive(BooleanDt theValue) { - myCaseSensitive = theValue; - return this; - } - - - - /** - * Sets the value for caseSensitive () - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public Define setCaseSensitive( boolean theBoolean) { - myCaseSensitive = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for concept (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - /** - * Sets the value(s) for concept () - * - *

- * Definition: - * - *

- */ - public Define setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - - - /** - * Adds and returns a new value for concept () - * - *

- * Definition: - * - *

- */ - public DefineConcept addConcept() { - DefineConcept newType = new DefineConcept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public DefineConcept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.define.concept () - * - *

- * Definition: - * - *

- */ - @Block() - public static class DefineConcept - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private CodeDt myCode; - - @Child(name="abstract", type=BooleanDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="If this code is not for use as a real concept" - ) - private BooleanDt myAbstract; - - @Child(name="display", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private StringDt myDisplay; - - @Child(name="definition", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept" - ) - private StringDt myDefinition; - - @Child(name="designation", order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc" - ) - private java.util.List myDesignation; - - @Child(name="concept", type=DefineConcept.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myConcept; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myAbstract, myDisplay, myDefinition, myDesignation, myConcept); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myAbstract, myDisplay, myDefinition, myDesignation, myConcept); - } - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code () - * - *

- * Definition: - * - *

- */ - public DefineConcept setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code () - * - *

- * Definition: - * - *

- */ - public DefineConcept setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for abstract (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public BooleanDt getAbstractElement() { - if (myAbstract == null) { - myAbstract = new BooleanDt(); - } - return myAbstract; - } - - - /** - * Gets the value(s) for abstract (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public Boolean getAbstract() { - return getAbstractElement().getValue(); - } - - /** - * Sets the value(s) for abstract () - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public DefineConcept setAbstract(BooleanDt theValue) { - myAbstract = theValue; - return this; - } - - - - /** - * Sets the value for abstract () - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public DefineConcept setAbstract( boolean theBoolean) { - myAbstract = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display () - * - *

- * Definition: - * - *

- */ - public DefineConcept setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display () - * - *

- * Definition: - * - *

- */ - public DefineConcept setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public StringDt getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new StringDt(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public String getDefinition() { - return getDefinitionElement().getValue(); - } - - /** - * Sets the value(s) for definition () - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public DefineConcept setDefinition(StringDt theValue) { - myDefinition = theValue; - return this; - } - - - - /** - * Sets the value for definition () - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public DefineConcept setDefinition( String theString) { - myDefinition = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for designation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public java.util.List getDesignation() { - if (myDesignation == null) { - myDesignation = new java.util.ArrayList(); - } - return myDesignation; - } - - /** - * Sets the value(s) for designation () - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConcept setDesignation(java.util.List theValue) { - myDesignation = theValue; - return this; - } - - - - /** - * Adds and returns a new value for designation () - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConceptDesignation addDesignation() { - DefineConceptDesignation newType = new DefineConceptDesignation(); - getDesignation().add(newType); - return newType; - } - - /** - * Gets the first repetition for designation (), - * creating it if it does not already exist. - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConceptDesignation getDesignationFirstRep() { - if (getDesignation().isEmpty()) { - return addDesignation(); - } - return getDesignation().get(0); - } - - /** - * Gets the value(s) for concept (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - /** - * Sets the value(s) for concept () - * - *

- * Definition: - * - *

- */ - public DefineConcept setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - - - /** - * Adds and returns a new value for concept () - * - *

- * Definition: - * - *

- */ - public DefineConcept addConcept() { - DefineConcept newType = new DefineConcept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public DefineConcept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.define.concept.designation () - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - @Block() - public static class DefineConceptDesignation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="language", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The language this designation is defined for" - ) - private CodeDt myLanguage; - - @Child(name="use", type=CodingDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A code that details how this designation would be used" - ) - private CodingDt myUse; - - @Child(name="value", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The text value for this designation" - ) - private StringDt myValue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLanguage, myUse, myValue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLanguage, myUse, myValue); - } - - /** - * Gets the value(s) for language (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The language this designation is defined for - *

- */ - public CodeDt getLanguageElement() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - - /** - * Gets the value(s) for language (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The language this designation is defined for - *

- */ - public String getLanguage() { - return getLanguageElement().getValue(); - } - - /** - * Sets the value(s) for language () - * - *

- * Definition: - * The language this designation is defined for - *

- */ - public DefineConceptDesignation setLanguage(CodeDt theValue) { - myLanguage = theValue; - return this; - } - - - - /** - * Sets the value for language () - * - *

- * Definition: - * The language this designation is defined for - *

- */ - public DefineConceptDesignation setLanguage( String theCode) { - myLanguage = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for use (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that details how this designation would be used - *

- */ - public CodingDt getUse() { - if (myUse == null) { - myUse = new CodingDt(); - } - return myUse; - } - - /** - * Sets the value(s) for use () - * - *

- * Definition: - * A code that details how this designation would be used - *

- */ - public DefineConceptDesignation setUse(CodingDt theValue) { - myUse = theValue; - return this; - } - - - - - /** - * Gets the value(s) for value (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text value for this designation - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text value for this designation - *

- */ - public String getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value () - * - *

- * Definition: - * The text value for this designation - *

- */ - public DefineConceptDesignation setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value () - * - *

- * Definition: - * The text value for this designation - *

- */ - public DefineConceptDesignation setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - - } - - - - - /** - * Block class for child element: ValueSet.compose () - * - *

- * Definition: - * - *

- */ - @Block() - public static class Compose - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="import", type=UriDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Includes the contents of the referenced value set as a part of the contents of this value set" - ) - private java.util.List myImport; - - @Child(name="include", order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Include one or more codes from a code system" - ) - private java.util.List myInclude; - - @Child(name="exclude", type=ComposeInclude.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Exclude one or more codes from the value set" - ) - private java.util.List myExclude; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myImport, myInclude, myExclude); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myImport, myInclude, myExclude); - } - - /** - * Gets the value(s) for import (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public java.util.List getImport() { - if (myImport == null) { - myImport = new java.util.ArrayList(); - } - return myImport; - } - - /** - * Sets the value(s) for import () - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public Compose setImport(java.util.List theValue) { - myImport = theValue; - return this; - } - - - - /** - * Adds and returns a new value for import () - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public UriDt addImport() { - UriDt newType = new UriDt(); - getImport().add(newType); - return newType; - } - - /** - * Gets the first repetition for import (), - * creating it if it does not already exist. - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public UriDt getImportFirstRep() { - if (getImport().isEmpty()) { - return addImport(); - } - return getImport().get(0); - } - /** - * Adds a new value for import () - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Compose addImport( String theUri) { - if (myImport == null) { - myImport = new java.util.ArrayList(); - } - myImport.add(new UriDt(theUri)); - return this; - } - - - /** - * Gets the value(s) for include (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public java.util.List getInclude() { - if (myInclude == null) { - myInclude = new java.util.ArrayList(); - } - return myInclude; - } - - /** - * Sets the value(s) for include () - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public Compose setInclude(java.util.List theValue) { - myInclude = theValue; - return this; - } - - - - /** - * Adds and returns a new value for include () - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public ComposeInclude addInclude() { - ComposeInclude newType = new ComposeInclude(); - getInclude().add(newType); - return newType; - } - - /** - * Gets the first repetition for include (), - * creating it if it does not already exist. - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public ComposeInclude getIncludeFirstRep() { - if (getInclude().isEmpty()) { - return addInclude(); - } - return getInclude().get(0); - } - - /** - * Gets the value(s) for exclude (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public java.util.List getExclude() { - if (myExclude == null) { - myExclude = new java.util.ArrayList(); - } - return myExclude; - } - - /** - * Sets the value(s) for exclude () - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public Compose setExclude(java.util.List theValue) { - myExclude = theValue; - return this; - } - - - - /** - * Adds and returns a new value for exclude () - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public ComposeInclude addExclude() { - ComposeInclude newType = new ComposeInclude(); - getExclude().add(newType); - return newType; - } - - /** - * Gets the first repetition for exclude (), - * creating it if it does not already exist. - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public ComposeInclude getExcludeFirstRep() { - if (getExclude().isEmpty()) { - return addExclude(); - } - return getExclude().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.compose.include () - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - @Block() - public static class ComposeInclude - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The code system from which the selected codes come from" - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The version of the code system that the codes are selected from" - ) - private StringDt myVersion; - - @Child(name="concept", order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Specifies a concept to be included or excluded." - ) - private java.util.List myConcept; - - @Child(name="filter", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true." - ) - private java.util.List myFilter; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myConcept, myFilter); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myConcept, myFilter); - } - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system () - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public ComposeInclude setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system () - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public ComposeInclude setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public ComposeInclude setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public ComposeInclude setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for concept (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - /** - * Sets the value(s) for concept () - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - public ComposeInclude setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - - - /** - * Adds and returns a new value for concept () - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - public ComposeIncludeConcept addConcept() { - ComposeIncludeConcept newType = new ComposeIncludeConcept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (), - * creating it if it does not already exist. - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - public ComposeIncludeConcept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - /** - * Gets the value(s) for filter (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public java.util.List getFilter() { - if (myFilter == null) { - myFilter = new java.util.ArrayList(); - } - return myFilter; - } - - /** - * Sets the value(s) for filter () - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeInclude setFilter(java.util.List theValue) { - myFilter = theValue; - return this; - } - - - - /** - * Adds and returns a new value for filter () - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeIncludeFilter addFilter() { - ComposeIncludeFilter newType = new ComposeIncludeFilter(); - getFilter().add(newType); - return newType; - } - - /** - * Gets the first repetition for filter (), - * creating it if it does not already exist. - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeIncludeFilter getFilterFirstRep() { - if (getFilter().isEmpty()) { - return addFilter(); - } - return getFilter().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.compose.include.concept () - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - @Block() - public static class ComposeIncludeConcept - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Specifies a code for the concept to be included or excluded" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system" - ) - private StringDt myDisplay; - - @Child(name="designation", type=DefineConceptDesignation.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc" - ) - private java.util.List myDesignation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDisplay, myDesignation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDisplay, myDesignation); - } - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a code for the concept to be included or excluded - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a code for the concept to be included or excluded - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code () - * - *

- * Definition: - * Specifies a code for the concept to be included or excluded - *

- */ - public ComposeIncludeConcept setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code () - * - *

- * Definition: - * Specifies a code for the concept to be included or excluded - *

- */ - public ComposeIncludeConcept setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display () - * - *

- * Definition: - * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system - *

- */ - public ComposeIncludeConcept setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display () - * - *

- * Definition: - * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system - *

- */ - public ComposeIncludeConcept setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for designation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public java.util.List getDesignation() { - if (myDesignation == null) { - myDesignation = new java.util.ArrayList(); - } - return myDesignation; - } - - /** - * Sets the value(s) for designation () - * - *

- * Definition: - * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public ComposeIncludeConcept setDesignation(java.util.List theValue) { - myDesignation = theValue; - return this; - } - - - - /** - * Adds and returns a new value for designation () - * - *

- * Definition: - * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConceptDesignation addDesignation() { - DefineConceptDesignation newType = new DefineConceptDesignation(); - getDesignation().add(newType); - return newType; - } - - /** - * Gets the first repetition for designation (), - * creating it if it does not already exist. - * - *

- * Definition: - * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConceptDesignation getDesignationFirstRep() { - if (getDesignation().isEmpty()) { - return addDesignation(); - } - return getDesignation().get(0); - } - - - } - - - /** - * Block class for child element: ValueSet.compose.include.filter () - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - @Block() - public static class ComposeIncludeFilter - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="property", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="A code that identifies a property defined in the code system" - ) - private CodeDt myProperty; - - @Child(name="op", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The kind of operation to perform as a part of the filter criteria" - ) - private BoundCodeDt myOp; - - @Child(name="value", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value" - ) - private CodeDt myValue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myProperty, myOp, myValue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myProperty, myOp, myValue); - } - - /** - * Gets the value(s) for property (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public CodeDt getPropertyElement() { - if (myProperty == null) { - myProperty = new CodeDt(); - } - return myProperty; - } - - - /** - * Gets the value(s) for property (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public String getProperty() { - return getPropertyElement().getValue(); - } - - /** - * Sets the value(s) for property () - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public ComposeIncludeFilter setProperty(CodeDt theValue) { - myProperty = theValue; - return this; - } - - - - /** - * Sets the value for property () - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public ComposeIncludeFilter setProperty( String theCode) { - myProperty = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for op (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public BoundCodeDt getOpElement() { - if (myOp == null) { - myOp = new BoundCodeDt(FilterOperatorEnum.VALUESET_BINDER); - } - return myOp; - } - - - /** - * Gets the value(s) for op (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public String getOp() { - return getOpElement().getValue(); - } - - /** - * Sets the value(s) for op () - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public ComposeIncludeFilter setOp(BoundCodeDt theValue) { - myOp = theValue; - return this; - } - - - - /** - * Sets the value(s) for op () - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public ComposeIncludeFilter setOp(FilterOperatorEnum theValue) { - getOpElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for value (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public CodeDt getValueElement() { - if (myValue == null) { - myValue = new CodeDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public String getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value () - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public ComposeIncludeFilter setValue(CodeDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value () - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public ComposeIncludeFilter setValue( String theCode) { - myValue = new CodeDt(theCode); - return this; - } - - - - } - - - - - /** - * Block class for child element: ValueSet.expansion () - * - *

- * Definition: - * A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed - *

- */ - @Block() - public static class Expansion - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so" - ) - private IdentifierDt myIdentifier; - - @Child(name="timestamp", type=DateTimeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The time at which the expansion was produced by the expanding system." - ) - private DateTimeDt myTimestamp; - - @Child(name="contains", order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="The codes that are contained in the value set expansion" - ) - private java.util.List myContains; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myTimestamp, myContains); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myTimestamp, myContains); - } - - /** - * Gets the value(s) for identifier (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - /** - * Sets the value(s) for identifier () - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public Expansion setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - - - - /** - * Gets the value(s) for timestamp (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public DateTimeDt getTimestampElement() { - if (myTimestamp == null) { - myTimestamp = new DateTimeDt(); - } - return myTimestamp; - } - - - /** - * Gets the value(s) for timestamp (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public Date getTimestamp() { - return getTimestampElement().getValue(); - } - - /** - * Sets the value(s) for timestamp () - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public Expansion setTimestamp(DateTimeDt theValue) { - myTimestamp = theValue; - return this; - } - - - - /** - * Sets the value for timestamp () - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public Expansion setTimestamp( Date theDate, TemporalPrecisionEnum thePrecision) { - myTimestamp = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for timestamp () - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public Expansion setTimestampWithSecondsPrecision( Date theDate) { - myTimestamp = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for contains (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - public java.util.List getContains() { - if (myContains == null) { - myContains = new java.util.ArrayList(); - } - return myContains; - } - - /** - * Sets the value(s) for contains () - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - public Expansion setContains(java.util.List theValue) { - myContains = theValue; - return this; - } - - - - /** - * Adds and returns a new value for contains () - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - public ExpansionContains addContains() { - ExpansionContains newType = new ExpansionContains(); - getContains().add(newType); - return newType; - } - - /** - * Gets the first repetition for contains (), - * creating it if it does not already exist. - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - public ExpansionContains getContainsFirstRep() { - if (getContains().isEmpty()) { - return addContains(); - } - return getContains().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.expansion.contains () - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - @Block() - public static class ExpansionContains - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The system in which the code for this item in the expansion is defined" - ) - private UriDt mySystem; - - @Child(name="abstract", type=BooleanDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value" - ) - private BooleanDt myAbstract; - - @Child(name="version", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence" - ) - private StringDt myVersion; - - @Child(name="code", type=CodeDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private StringDt myDisplay; - - @Child(name="contains", type=ExpansionContains.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myContains; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myAbstract, myVersion, myCode, myDisplay, myContains); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myAbstract, myVersion, myCode, myDisplay, myContains); - } - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The system in which the code for this item in the expansion is defined - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The system in which the code for this item in the expansion is defined - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system () - * - *

- * Definition: - * The system in which the code for this item in the expansion is defined - *

- */ - public ExpansionContains setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system () - * - *

- * Definition: - * The system in which the code for this item in the expansion is defined - *

- */ - public ExpansionContains setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for abstract (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value - *

- */ - public BooleanDt getAbstractElement() { - if (myAbstract == null) { - myAbstract = new BooleanDt(); - } - return myAbstract; - } - - - /** - * Gets the value(s) for abstract (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value - *

- */ - public Boolean getAbstract() { - return getAbstractElement().getValue(); - } - - /** - * Sets the value(s) for abstract () - * - *

- * Definition: - * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value - *

- */ - public ExpansionContains setAbstract(BooleanDt theValue) { - myAbstract = theValue; - return this; - } - - - - /** - * Sets the value for abstract () - * - *

- * Definition: - * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value - *

- */ - public ExpansionContains setAbstract( boolean theBoolean) { - myAbstract = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence - *

- */ - public ExpansionContains setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence - *

- */ - public ExpansionContains setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for contains (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContains() { - if (myContains == null) { - myContains = new java.util.ArrayList(); - } - return myContains; - } - - /** - * Sets the value(s) for contains () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setContains(java.util.List theValue) { - myContains = theValue; - return this; - } - - - - /** - * Adds and returns a new value for contains () - * - *

- * Definition: - * - *

- */ - public ExpansionContains addContains() { - ExpansionContains newType = new ExpansionContains(); - getContains().add(newType); - return newType; - } - - /** - * Gets the first repetition for contains (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExpansionContains getContainsFirstRep() { - if (getContains().isEmpty()) { - return addContains(); - } - return getContains().get(0); - } - - - } - - - - - - @Override - public String getResourceName() { - return "ValueSet"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DEV; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AddressUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AddressUseEnum.java deleted file mode 100644 index ecfc2afaa34..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AddressUseEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AddressUseEnum { - - /** - * Code Value: home - * - * A communication address at a home. - */ - HOME("home", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: work - * - * An office address. First choice for business related contacts during business hours. - */ - WORK("work", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: temp - * - * A temporary address. The period can provide more detailed information. - */ - TEMP("temp", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: old - * - * This address is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/address-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/address-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/address-use"; - - /** - * Name for this Value Set: - * AddressUse - */ - public static final String VALUESET_NAME = "AddressUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AddressUseEnum next : AddressUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AddressUseEnum forCode(String theCode) { - AddressUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AddressUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AddressUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AddressUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AddressUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AddressUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdministrativeGenderEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdministrativeGenderEnum.java deleted file mode 100644 index 70f6d1184ba..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdministrativeGenderEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdministrativeGenderEnum { - - /** - * Code Value: male - * - * Male - */ - MALE("male", "http://hl7.org/fhir/administrative-gender"), - - /** - * Code Value: female - * - * Female - */ - FEMALE("female", "http://hl7.org/fhir/administrative-gender"), - - /** - * Code Value: other - * - * Other - */ - OTHER("other", "http://hl7.org/fhir/administrative-gender"), - - /** - * Code Value: unknown - * - * Unknown - */ - UNKNOWN("unknown", "http://hl7.org/fhir/administrative-gender"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/administrative-gender - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/administrative-gender"; - - /** - * Name for this Value Set: - * AdministrativeGender - */ - public static final String VALUESET_NAME = "AdministrativeGender"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdministrativeGenderEnum next : AdministrativeGenderEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdministrativeGenderEnum forCode(String theCode) { - AdministrativeGenderEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdministrativeGenderEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdministrativeGenderEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdministrativeGenderEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdministrativeGenderEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdministrativeGenderEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdmitSourceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdmitSourceEnum.java deleted file mode 100644 index 9fcff6f6910..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdmitSourceEnum.java +++ /dev/null @@ -1,162 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdmitSourceEnum { - - /** - * Display: Transferred from other hospital
- * Code Value: hosp-trans - */ - TRANSFERRED_FROM_OTHER_HOSPITAL("hosp-trans", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From accident/emergency department
- * Code Value: emd - */ - FROM_ACCIDENT_EMERGENCY_DEPARTMENT("emd", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From outpatient department
- * Code Value: outp - */ - FROM_OUTPATIENT_DEPARTMENT("outp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Born in hospital
- * Code Value: born - */ - BORN_IN_HOSPITAL("born", "http://hl7.org/fhir/admit-source"), - - /** - * Display: General Practitioner referral
- * Code Value: gp - */ - GENERAL_PRACTITIONER_REFERRAL("gp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Medical Practitioner/physician referral
- * Code Value: mp - */ - MEDICAL_PRACTITIONER_PHYSICIAN_REFERRAL("mp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From nursing home
- * Code Value: nursing - */ - FROM_NURSING_HOME("nursing", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From psychiatric hospital
- * Code Value: psych - */ - FROM_PSYCHIATRIC_HOSPITAL("psych", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From rehabilitation facility
- * Code Value: rehab - */ - FROM_REHABILITATION_FACILITY("rehab", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Other
- * Code Value: other - */ - OTHER("other", "http://hl7.org/fhir/admit-source"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-admit-source - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-admit-source"; - - /** - * Name for this Value Set: - * AdmitSource - */ - public static final String VALUESET_NAME = "AdmitSource"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdmitSourceEnum next : AdmitSourceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdmitSourceEnum forCode(String theCode) { - AdmitSourceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdmitSourceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdmitSourceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdmitSourceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdmitSourceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdmitSourceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCategoryEnum.java deleted file mode 100644 index 974d5ed7013..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCategoryEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdverseReactionRiskCategoryEnum { - - /** - * Display: Food
- * Code Value: food - * - * Any substance consumed to provide nutritional support for the body. - */ - FOOD("food", "http://hl7.org/fhir/reaction-risk-category"), - - /** - * Display: Medication
- * Code Value: medication - * - * Substances administered to achieve a physiological effect. - */ - MEDICATION("medication", "http://hl7.org/fhir/reaction-risk-category"), - - /** - * Display: Environment
- * Code Value: environment - * - * Substances that are encountered in the environment. - */ - ENVIRONMENT("environment", "http://hl7.org/fhir/reaction-risk-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reaction-risk-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reaction-risk-category"; - - /** - * Name for this Value Set: - * AdverseReactionRiskCategory - */ - public static final String VALUESET_NAME = "AdverseReactionRiskCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdverseReactionRiskCategoryEnum next : AdverseReactionRiskCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdverseReactionRiskCategoryEnum forCode(String theCode) { - AdverseReactionRiskCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdverseReactionRiskCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdverseReactionRiskCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdverseReactionRiskCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdverseReactionRiskCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdverseReactionRiskCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCertaintyEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCertaintyEnum.java deleted file mode 100644 index 59037013999..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCertaintyEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdverseReactionRiskCertaintyEnum { - - /** - * Display: Unlikely
- * Code Value: unlikely - * - * There is a low level of clinical certainty that the reaction was caused by the identified Substance. - */ - UNLIKELY("unlikely", "http://hl7.org/fhir/reaction-risk-certainty"), - - /** - * Display: Likely
- * Code Value: likely - * - * There is a high level of clinical certainty that the reaction was caused by the identified Substance. - */ - LIKELY("likely", "http://hl7.org/fhir/reaction-risk-certainty"), - - /** - * Display: Confirmed
- * Code Value: confirmed - * - * There is a very high level of clinical certainty that the reaction was due to the identified Substance, which may include clinical evidence by testing or rechallenge. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/reaction-risk-certainty"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reaction-risk-certainty - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reaction-risk-certainty"; - - /** - * Name for this Value Set: - * AdverseReactionRiskCertainty - */ - public static final String VALUESET_NAME = "AdverseReactionRiskCertainty"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdverseReactionRiskCertaintyEnum next : AdverseReactionRiskCertaintyEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdverseReactionRiskCertaintyEnum forCode(String theCode) { - AdverseReactionRiskCertaintyEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdverseReactionRiskCertaintyEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdverseReactionRiskCertaintyEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdverseReactionRiskCertaintyEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdverseReactionRiskCertaintyEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdverseReactionRiskCertaintyEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCriticalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCriticalityEnum.java deleted file mode 100644 index 53b3ae9ca52..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskCriticalityEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdverseReactionRiskCriticalityEnum { - - /** - * Display: Low Risk
- * Code Value: low - * - * The potential clinical impact of a future reaction is estimated as low risk. Future exposure to the Substance is considered a relative contra-indication. - */ - LOW_RISK("low", "http://hl7.org/fhir/reaction-risk-criticality"), - - /** - * Display: High Risk
- * Code Value: high - * - * The potential clinical impact of a future reaction is estimated as high risk. Future exposure to the Substance may be considered an absolute contra-indication. - */ - HIGH_RISK("high", "http://hl7.org/fhir/reaction-risk-criticality"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reaction-risk-criticality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reaction-risk-criticality"; - - /** - * Name for this Value Set: - * AdverseReactionRiskCriticality - */ - public static final String VALUESET_NAME = "AdverseReactionRiskCriticality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdverseReactionRiskCriticalityEnum next : AdverseReactionRiskCriticalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdverseReactionRiskCriticalityEnum forCode(String theCode) { - AdverseReactionRiskCriticalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdverseReactionRiskCriticalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdverseReactionRiskCriticalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdverseReactionRiskCriticalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdverseReactionRiskCriticalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdverseReactionRiskCriticalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskSeverityEnum.java deleted file mode 100644 index 2a703077fea..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskSeverityEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdverseReactionRiskSeverityEnum { - - /** - * Display: Mild
- * Code Value: mild - * - * Causes mild physiological effects. - */ - MILD("mild", "http://hl7.org/fhir/reaction-risk-severity"), - - /** - * Display: Moderate
- * Code Value: moderate - * - * Causes moderate physiological effects. - */ - MODERATE("moderate", "http://hl7.org/fhir/reaction-risk-severity"), - - /** - * Display: Severe
- * Code Value: severe - * - * Causes severe physiological effects. - */ - SEVERE("severe", "http://hl7.org/fhir/reaction-risk-severity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reaction-risk-severity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reaction-risk-severity"; - - /** - * Name for this Value Set: - * AdverseReactionRiskSeverity - */ - public static final String VALUESET_NAME = "AdverseReactionRiskSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdverseReactionRiskSeverityEnum next : AdverseReactionRiskSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdverseReactionRiskSeverityEnum forCode(String theCode) { - AdverseReactionRiskSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdverseReactionRiskSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdverseReactionRiskSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdverseReactionRiskSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdverseReactionRiskSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdverseReactionRiskSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskStatusEnum.java deleted file mode 100644 index 9da6e924a26..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskStatusEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdverseReactionRiskStatusEnum { - - /** - * Display: Unconfirmed
- * Code Value: unconfirmed - * - * A low level of certainty about the propensity for a reaction to the identified Substance. - */ - UNCONFIRMED("unconfirmed", "http://hl7.org/fhir/reaction-risk-status"), - - /** - * Display: Confirmed
- * Code Value: confirmed - * - * A high level of certainty about the propensity for a reaction to the identified Substance, which may include clinical evidence by testing or rechallenge. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/reaction-risk-status"), - - /** - * Display: Resolved
- * Code Value: resolved - * - * A reaction to the identified Substance has been clinically reassessed by testing or rechallenge and considered to be resolved. - */ - RESOLVED("resolved", "http://hl7.org/fhir/reaction-risk-status"), - - /** - * Display: Refuted
- * Code Value: refuted - * - * A propensity for a reaction to the identified Substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted. - */ - REFUTED("refuted", "http://hl7.org/fhir/reaction-risk-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reaction-risk-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reaction-risk-status"; - - /** - * Name for this Value Set: - * AdverseReactionRiskStatus - */ - public static final String VALUESET_NAME = "AdverseReactionRiskStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdverseReactionRiskStatusEnum next : AdverseReactionRiskStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdverseReactionRiskStatusEnum forCode(String theCode) { - AdverseReactionRiskStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdverseReactionRiskStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdverseReactionRiskStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdverseReactionRiskStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdverseReactionRiskStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdverseReactionRiskStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskTypeEnum.java deleted file mode 100644 index 50f6252747b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AdverseReactionRiskTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdverseReactionRiskTypeEnum { - - /** - * Display: Immune Mediated
- * Code Value: immune - * - * Immune mediated reaction, including allergic reactions and hypersensitivities. - */ - IMMUNE_MEDIATED("immune", "http://hl7.org/fhir/reaction-risk-type"), - - /** - * Display: Non-immune mediated
- * Code Value: non-immune - * - * A non-immune mediated reaction, which can include pseudoallergic reactions, side effects, intolerances, drug toxicities (eg to Gentamicin), drug-drug interactions, food-drug interactions, and drug-disease interactions. - */ - NON_IMMUNE_MEDIATED("non-immune", "http://hl7.org/fhir/reaction-risk-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reaction-risk-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reaction-risk-type"; - - /** - * Name for this Value Set: - * AdverseReactionRiskType - */ - public static final String VALUESET_NAME = "AdverseReactionRiskType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdverseReactionRiskTypeEnum next : AdverseReactionRiskTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdverseReactionRiskTypeEnum forCode(String theCode) { - AdverseReactionRiskTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdverseReactionRiskTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdverseReactionRiskTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdverseReactionRiskTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdverseReactionRiskTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdverseReactionRiskTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AggregationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AggregationModeEnum.java deleted file mode 100644 index f4df28c5577..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AggregationModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AggregationModeEnum { - - /** - * Code Value: contained - * - * The reference is a local reference to a contained resource. - */ - CONTAINED("contained", "http://hl7.org/fhir/resource-aggregation-mode"), - - /** - * Code Value: referenced - * - * The reference to a resource that has to be resolved externally to the resource that includes the reference. - */ - REFERENCED("referenced", "http://hl7.org/fhir/resource-aggregation-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-aggregation-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-aggregation-mode"; - - /** - * Name for this Value Set: - * AggregationMode - */ - public static final String VALUESET_NAME = "AggregationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AggregationModeEnum next : AggregationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AggregationModeEnum forCode(String theCode) { - AggregationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AggregationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AggregationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AggregationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AggregationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AggregationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AlertStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AlertStatusEnum.java deleted file mode 100644 index 1b4ba1e808c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AlertStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AlertStatusEnum { - - /** - * Code Value: active - * - * A current alert that should be displayed to a user. A system may use the category to determine which roles should view the alert. - */ - ACTIVE("active", "http://hl7.org/fhir/alert-status"), - - /** - * Code Value: inactive - * - * The alert does not need to be displayed any more. - */ - INACTIVE("inactive", "http://hl7.org/fhir/alert-status"), - - /** - * Code Value: entered in error - * - * The alert was added in error, and should no longer be displayed. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/alert-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/alert-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/alert-status"; - - /** - * Name for this Value Set: - * AlertStatus - */ - public static final String VALUESET_NAME = "AlertStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AlertStatusEnum next : AlertStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AlertStatusEnum forCode(String theCode) { - AlertStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AlertStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AlertStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AlertStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AlertStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AlertStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AnimalSpeciesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AnimalSpeciesEnum.java deleted file mode 100644 index 17953e2d083..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AnimalSpeciesEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AnimalSpeciesEnum { - - /** - * Display: Dog
- * Code Value: canislf - * - * Canis lupus familiaris - */ - DOG("canislf", "http://hl7.org/fhir/animal-species"), - - /** - * Display: Sheep
- * Code Value: ovisa - * - * Ovis aries - */ - SHEEP("ovisa", "http://hl7.org/fhir/animal-species"), - - /** - * Display: Domestic Canary
- * Code Value: serinuscd - * - * Serinus canaria domestica - */ - DOMESTIC_CANARY("serinuscd", "http://hl7.org/fhir/animal-species"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/animal-species - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/animal-species"; - - /** - * Name for this Value Set: - * AnimalSpecies - */ - public static final String VALUESET_NAME = "AnimalSpecies"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AnimalSpeciesEnum next : AnimalSpeciesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AnimalSpeciesEnum forCode(String theCode) { - AnimalSpeciesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AnimalSpeciesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AnimalSpeciesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AnimalSpeciesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AnimalSpeciesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AnimalSpeciesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AnswerFormatEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AnswerFormatEnum.java deleted file mode 100644 index 114baeff4fc..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AnswerFormatEnum.java +++ /dev/null @@ -1,200 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AnswerFormatEnum { - - /** - * Code Value: boolean - * - * Answer is a yes/no answer. - */ - BOOLEAN("boolean", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: decimal - * - * Answer is a floating point number. - */ - DECIMAL("decimal", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: integer - * - * Answer is an integer. - */ - INTEGER("integer", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: date - * - * Answer is a date. - */ - DATE("date", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: dateTime - * - * Answer is a date and time. - */ - DATETIME("dateTime", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: instant - * - * Answer is a system timestamp. - */ - INSTANT("instant", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: time - * - * Answer is a time independent of date. - */ - TIME("time", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: string - * - * Answer is a short (few words to short sentence) free-text entry. - */ - STRING("string", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: text - * - * Answer is a long (potentially multi-paragram) free-text entry. - */ - TEXT("text", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: choice - * - * Answer is a choice from a list of options. - */ - CHOICE("choice", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: open-choice - * - * Answer is a choice from a list of options or a free-text entry. - */ - OPEN_CHOICE("open-choice", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: attachment - * - * Answer is binary content such as a image, PDF, etc. - */ - ATTACHMENT("attachment", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: reference - * - * Answer is a reference to another resource (practitioner, organization, etc.). - */ - REFERENCE("reference", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: quantity - * - * Answer is a combination of a numeric value and unit. - */ - QUANTITY("quantity", "http://hl7.org/fhir/answer-format"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/answer-format - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/answer-format"; - - /** - * Name for this Value Set: - * AnswerFormat - */ - public static final String VALUESET_NAME = "AnswerFormat"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AnswerFormatEnum next : AnswerFormatEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AnswerFormatEnum forCode(String theCode) { - AnswerFormatEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AnswerFormatEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AnswerFormatEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AnswerFormatEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AnswerFormatEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AnswerFormatEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AppointmentStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AppointmentStatusEnum.java deleted file mode 100644 index e805e078092..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/AppointmentStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AppointmentStatusEnum { - - /** - * Code Value: busy - * - * The participant(s) will be unavailable during this appointment. - */ - BUSY("busy", "http://hl7.org/fhir/appointmentstatus"), - - /** - * Code Value: free - * - * The participant(s) will still be available during this appointment. - */ - FREE("free", "http://hl7.org/fhir/appointmentstatus"), - - /** - * Code Value: tentative - * - * This appointment has not been confirmed, and may become available. - */ - TENTATIVE("tentative", "http://hl7.org/fhir/appointmentstatus"), - - /** - * Code Value: outofoffice - * - * The participant(s) will not be at the usual location. - */ - OUTOFOFFICE("outofoffice", "http://hl7.org/fhir/appointmentstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/appointmentstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/appointmentstatus"; - - /** - * Name for this Value Set: - * AppointmentStatus - */ - public static final String VALUESET_NAME = "AppointmentStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AppointmentStatusEnum next : AppointmentStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AppointmentStatusEnum forCode(String theCode) { - AppointmentStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AppointmentStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AppointmentStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AppointmentStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AppointmentStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AppointmentStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/BindingConformanceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/BindingConformanceEnum.java deleted file mode 100644 index abc05007a1c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/BindingConformanceEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum BindingConformanceEnum { - - /** - * Code Value: required - * - * Only codes in the specified set are allowed. If the binding is extensible, other codes may be used for concepts not covered by the bound set of codes. - */ - REQUIRED("required", "http://hl7.org/fhir/binding-conformance"), - - /** - * Code Value: preferred - * - * For greater interoperability, implementers are strongly encouraged to use the bound set of codes, however alternate codes may be used in derived profiles and implementations if necessary without being considered non-conformant. - */ - PREFERRED("preferred", "http://hl7.org/fhir/binding-conformance"), - - /** - * Code Value: example - * - * The codes in the set are an example to illustrate the meaning of the field. There is no particular preference for its use nor any assertion that the provided values are sufficient to meet implementation needs. - */ - EXAMPLE("example", "http://hl7.org/fhir/binding-conformance"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/binding-conformance - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/binding-conformance"; - - /** - * Name for this Value Set: - * BindingConformance - */ - public static final String VALUESET_NAME = "BindingConformance"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (BindingConformanceEnum next : BindingConformanceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public BindingConformanceEnum forCode(String theCode) { - BindingConformanceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(BindingConformanceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(BindingConformanceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public BindingConformanceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public BindingConformanceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - BindingConformanceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanActivityCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanActivityCategoryEnum.java deleted file mode 100644 index d125f27d410..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanActivityCategoryEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanActivityCategoryEnum { - - /** - * Code Value: diet - * - * Plan for the patient to consume food of a specified nature. - */ - DIET("diet", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: drug - * - * Plan for the patient to consume/receive a drug, vaccine or other product. - */ - DRUG("drug", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: encounter - * - * Plan to meet or communicate with the patient (in-patient, out-patient, phone call, etc.). - */ - ENCOUNTER("encounter", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: observation - * - * Plan to capture information about a patient (vitals, labs, diagnostic images, etc.). - */ - OBSERVATION("observation", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: procedure - * - * Plan to modify the patient in some way (surgery, physiotherapy, education, counseling, etc.). - */ - PROCEDURE("procedure", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: supply - * - * Plan to provide something to the patient (medication, medical supply, etc.). - */ - SUPPLY("supply", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: other - * - * Some other form of action. - */ - OTHER("other", "http://hl7.org/fhir/care-plan-activity-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-activity-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-activity-category"; - - /** - * Name for this Value Set: - * CarePlanActivityCategory - */ - public static final String VALUESET_NAME = "CarePlanActivityCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanActivityCategoryEnum next : CarePlanActivityCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanActivityCategoryEnum forCode(String theCode) { - CarePlanActivityCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanActivityCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanActivityCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanActivityCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanActivityCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanActivityCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanActivityStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanActivityStatusEnum.java deleted file mode 100644 index 280b788a59c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanActivityStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanActivityStatusEnum { - - /** - * Code Value: not started - * - * Activity is planned but no action has yet been taken. - */ - NOT_STARTED("not started", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: scheduled - * - * Appointment or other booking has occurred but activity has not yet begun. - */ - SCHEDULED("scheduled", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: in progress - * - * Activity has been started but is not yet complete. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: on hold - * - * Activity was started but has temporarily ceased with an expectation of resumption at a future time. - */ - ON_HOLD("on hold", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: completed - * - * The activities have been completed (more or less) as planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: cancelled - * - * The activities have been ended prior to completion (perhaps even before they were started). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/care-plan-activity-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-activity-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-activity-status"; - - /** - * Name for this Value Set: - * CarePlanActivityStatus - */ - public static final String VALUESET_NAME = "CarePlanActivityStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanActivityStatusEnum next : CarePlanActivityStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanActivityStatusEnum forCode(String theCode) { - CarePlanActivityStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanActivityStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanActivityStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanActivityStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanActivityStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanActivityStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanGoalStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanGoalStatusEnum.java deleted file mode 100644 index ff846f06ff5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanGoalStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanGoalStatusEnum { - - /** - * Code Value: in progress - * - * The goal is being sought but has not yet been reached. (Also applies if goal was reached in the past but there has been regression and goal is being sought again). - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: achieved - * - * The goal has been met and no further action is needed. - */ - ACHIEVED("achieved", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: sustaining - * - * The goal has been met, but ongoing activity is needed to sustain the goal objective. - */ - SUSTAINING("sustaining", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: cancelled - * - * The goal is no longer being sought. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/care-plan-goal-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-goal-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-goal-status"; - - /** - * Name for this Value Set: - * CarePlanGoalStatus - */ - public static final String VALUESET_NAME = "CarePlanGoalStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanGoalStatusEnum next : CarePlanGoalStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanGoalStatusEnum forCode(String theCode) { - CarePlanGoalStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanGoalStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanGoalStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanGoalStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanGoalStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanGoalStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanStatusEnum.java deleted file mode 100644 index e14e42a5512..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CarePlanStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanStatusEnum { - - /** - * Code Value: planned - * - * The plan is in development or awaiting use but is not yet intended to be acted upon. - */ - PLANNED("planned", "http://hl7.org/fhir/care-plan-status"), - - /** - * Code Value: active - * - * The plan is intended to be followed and used as part of patient care. - */ - ACTIVE("active", "http://hl7.org/fhir/care-plan-status"), - - /** - * Code Value: completed - * - * The plan is no longer in use and is not expected to be followed or used in patient care. - */ - COMPLETED("completed", "http://hl7.org/fhir/care-plan-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-status"; - - /** - * Name for this Value Set: - * CarePlanStatus - */ - public static final String VALUESET_NAME = "CarePlanStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanStatusEnum next : CarePlanStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanStatusEnum forCode(String theCode) { - CarePlanStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CausalityExpectationEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CausalityExpectationEnum.java deleted file mode 100644 index 2a64c054d59..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CausalityExpectationEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CausalityExpectationEnum { - - /** - * Code Value: likely - * - * Likely that this specific exposure caused the reaction. - */ - LIKELY("likely", "http://hl7.org/fhir/causalityExpectation"), - - /** - * Code Value: unlikely - * - * Unlikely that this specific exposure caused the reaction - the exposure is being linked to for information purposes. - */ - UNLIKELY("unlikely", "http://hl7.org/fhir/causalityExpectation"), - - /** - * Code Value: confirmed - * - * It has been confirmed that this exposure was one of the causes of the reaction. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/causalityExpectation"), - - /** - * Code Value: unknown - * - * It is unknown whether this exposure had anything to do with the reaction. - */ - UNKNOWN("unknown", "http://hl7.org/fhir/causalityExpectation"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/causalityExpectation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/causalityExpectation"; - - /** - * Name for this Value Set: - * CausalityExpectation - */ - public static final String VALUESET_NAME = "CausalityExpectation"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CausalityExpectationEnum next : CausalityExpectationEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CausalityExpectationEnum forCode(String theCode) { - CausalityExpectationEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CausalityExpectationEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CausalityExpectationEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CausalityExpectationEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CausalityExpectationEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CausalityExpectationEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CompositionAttestationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CompositionAttestationModeEnum.java deleted file mode 100644 index af02dad6477..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CompositionAttestationModeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CompositionAttestationModeEnum { - - /** - * Code Value: personal - * - * The person authenticated the content in their personal capacity. - */ - PERSONAL("personal", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: professional - * - * The person authenticated the content in their professional capacity. - */ - PROFESSIONAL("professional", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: legal - * - * The person authenticated the content and accepted legal responsibility for its content. - */ - LEGAL("legal", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: official - * - * The organization authenticated the content as consistent with their policies and procedures. - */ - OFFICIAL("official", "http://hl7.org/fhir/composition-attestation-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/composition-attestation-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/composition-attestation-mode"; - - /** - * Name for this Value Set: - * CompositionAttestationMode - */ - public static final String VALUESET_NAME = "CompositionAttestationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CompositionAttestationModeEnum next : CompositionAttestationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CompositionAttestationModeEnum forCode(String theCode) { - CompositionAttestationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CompositionAttestationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CompositionAttestationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CompositionAttestationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CompositionAttestationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CompositionAttestationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CompositionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CompositionStatusEnum.java deleted file mode 100644 index 16ccb23f544..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/CompositionStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CompositionStatusEnum { - - /** - * Code Value: preliminary - * - * This is a preliminary composition or document (also known as initial or interim). The content may be incomplete or unverified. - */ - PRELIMINARY("preliminary", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: final - * - * The composition or document is complete and verified by an appropriate person, and no further work is planned. - */ - FINAL("final", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: appended - * - * The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. The modifications added new information to the composition or document, but did not revise existing content. - */ - APPENDED("appended", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: amended - * - * The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. - */ - AMENDED("amended", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: entered in error - * - * The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/composition-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/composition-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/composition-status"; - - /** - * Name for this Value Set: - * CompositionStatus - */ - public static final String VALUESET_NAME = "CompositionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CompositionStatusEnum next : CompositionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CompositionStatusEnum forCode(String theCode) { - CompositionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CompositionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CompositionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CompositionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CompositionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CompositionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConceptMapEquivalenceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConceptMapEquivalenceEnum.java deleted file mode 100644 index 3f2ef411704..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConceptMapEquivalenceEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConceptMapEquivalenceEnum { - - /** - * Code Value: equal - * - * The definitions of the concepts are exactly the same (i.e. only grammatical differences) and structural implications of meaning are identifical or irrelevant (i.e. intensionally identical). - */ - EQUAL("equal", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: equivalent - * - * The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical). - */ - EQUIVALENT("equivalent", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: wider - * - * The target mapping is wider in meaning than the source concept. - */ - WIDER("wider", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: narrower - * - * The target mapping is narrower in meaning that the source concept. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally. - */ - NARROWER("narrower", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: inexact - * - * The target mapping overlaps with the source concept, but both source and target cover additional meaning. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally. - */ - INEXACT("inexact", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: unmatched - * - * There is no match for this concept in the destination concept system. - */ - UNMATCHED("unmatched", "http://hl7.org/fhir/concept-equivalence"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/concept-equivalence - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/concept-equivalence"; - - /** - * Name for this Value Set: - * ConceptMapEquivalence - */ - public static final String VALUESET_NAME = "ConceptMapEquivalence"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConceptMapEquivalenceEnum next : ConceptMapEquivalenceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConceptMapEquivalenceEnum forCode(String theCode) { - ConceptMapEquivalenceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConceptMapEquivalenceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConceptMapEquivalenceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConceptMapEquivalenceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConceptMapEquivalenceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConceptMapEquivalenceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConditionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConditionStatusEnum.java deleted file mode 100644 index b8cc3b3cfcb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConditionStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConditionStatusEnum { - - /** - * Code Value: provisional - * - * This is a tentative diagnosis - still a candidate that is under consideration. - */ - PROVISIONAL("provisional", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: working - * - * The patient is being treated on the basis that this is the condition, but it is still not confirmed. - */ - WORKING("working", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: confirmed - * - * There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: refuted - * - * This condition has been ruled out by diagnostic and clinical evidence. - */ - REFUTED("refuted", "http://hl7.org/fhir/condition-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/condition-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/condition-status"; - - /** - * Name for this Value Set: - * ConditionStatus - */ - public static final String VALUESET_NAME = "ConditionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConditionStatusEnum next : ConditionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConditionStatusEnum forCode(String theCode) { - ConditionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConditionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConditionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConditionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConditionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConditionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConformanceEventModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConformanceEventModeEnum.java deleted file mode 100644 index 1f79c4474cd..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConformanceEventModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConformanceEventModeEnum { - - /** - * Code Value: sender - * - * The application sends requests and receives responses. - */ - SENDER("sender", "http://hl7.org/fhir/message-conformance-event-mode"), - - /** - * Code Value: receiver - * - * The application receives requests and sends responses. - */ - RECEIVER("receiver", "http://hl7.org/fhir/message-conformance-event-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-conformance-event-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-conformance-event-mode"; - - /** - * Name for this Value Set: - * ConformanceEventMode - */ - public static final String VALUESET_NAME = "ConformanceEventMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConformanceEventModeEnum next : ConformanceEventModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConformanceEventModeEnum forCode(String theCode) { - ConformanceEventModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConformanceEventModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConformanceEventModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConformanceEventModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConformanceEventModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConformanceEventModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConformanceStatementStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConformanceStatementStatusEnum.java deleted file mode 100644 index 88e888bf33f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConformanceStatementStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConformanceStatementStatusEnum { - - /** - * Code Value: draft - * - * This conformance statement is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/conformance-statement-status"), - - /** - * Code Value: active - * - * This conformance statement is ready for use in production systems. - */ - ACTIVE("active", "http://hl7.org/fhir/conformance-statement-status"), - - /** - * Code Value: retired - * - * This conformance statement has been withdrawn or superceded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/conformance-statement-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/conformance-statement-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/conformance-statement-status"; - - /** - * Name for this Value Set: - * ConformanceStatementStatus - */ - public static final String VALUESET_NAME = "ConformanceStatementStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConformanceStatementStatusEnum next : ConformanceStatementStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConformanceStatementStatusEnum forCode(String theCode) { - ConformanceStatementStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConformanceStatementStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConformanceStatementStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConformanceStatementStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConformanceStatementStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConformanceStatementStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConstraintSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConstraintSeverityEnum.java deleted file mode 100644 index 14a090ec8e7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ConstraintSeverityEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConstraintSeverityEnum { - - /** - * Code Value: error - * - * If the constraint is violated, the resource is not conformant. - */ - ERROR("error", "http://hl7.org/fhir/constraint-severity"), - - /** - * Code Value: warning - * - * If the constraint is violated, the resource is conformant, but it is not necessarily following best practice. - */ - WARNING("warning", "http://hl7.org/fhir/constraint-severity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/constraint-severity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/constraint-severity"; - - /** - * Name for this Value Set: - * ConstraintSeverity - */ - public static final String VALUESET_NAME = "ConstraintSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConstraintSeverityEnum next : ConstraintSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConstraintSeverityEnum forCode(String theCode) { - ConstraintSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConstraintSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConstraintSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConstraintSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConstraintSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConstraintSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContactPointSystemEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContactPointSystemEnum.java deleted file mode 100644 index d42efd8818f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContactPointSystemEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContactPointSystemEnum { - - /** - * Code Value: phone - * - * The value is a telephone number used for voice calls. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required. - */ - PHONE("phone", "http://hl7.org/fhir/contact-point-system"), - - /** - * Code Value: fax - * - * The value is a fax machine. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required. - */ - FAX("fax", "http://hl7.org/fhir/contact-point-system"), - - /** - * Code Value: email - * - * The value is an email address. - */ - EMAIL("email", "http://hl7.org/fhir/contact-point-system"), - - /** - * Code Value: url - * - * The value is a url. This is intended for various personal contacts including blogs, Twitter, Facebook, etc. Do not use for email addresses. - */ - URL("url", "http://hl7.org/fhir/contact-point-system"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contact-point-system - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contact-point-system"; - - /** - * Name for this Value Set: - * ContactPointSystem - */ - public static final String VALUESET_NAME = "ContactPointSystem"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContactPointSystemEnum next : ContactPointSystemEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContactPointSystemEnum forCode(String theCode) { - ContactPointSystemEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContactPointSystemEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContactPointSystemEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContactPointSystemEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContactPointSystemEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContactPointSystemEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContactPointUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContactPointUseEnum.java deleted file mode 100644 index 1b5e12cdc06..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContactPointUseEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContactPointUseEnum { - - /** - * Code Value: home - * - * A communication contact point at a home; attempted contacts for business purposes might intrude privacy and chances are one will contact family or other household members instead of the person one wishes to call. Typically used with urgent cases, or if no other contacts are available. - */ - HOME("home", "http://hl7.org/fhir/contact-point-use"), - - /** - * Code Value: work - * - * An office contact point. First choice for business related contacts during business hours. - */ - WORK("work", "http://hl7.org/fhir/contact-point-use"), - - /** - * Code Value: temp - * - * A temporary contact point. The period can provide more detailed information. - */ - TEMP("temp", "http://hl7.org/fhir/contact-point-use"), - - /** - * Code Value: old - * - * This contact point is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/contact-point-use"), - - /** - * Code Value: mobile - * - * A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business. - */ - MOBILE("mobile", "http://hl7.org/fhir/contact-point-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contact-point-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contact-point-use"; - - /** - * Name for this Value Set: - * ContactPointUse - */ - public static final String VALUESET_NAME = "ContactPointUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContactPointUseEnum next : ContactPointUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContactPointUseEnum forCode(String theCode) { - ContactPointUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContactPointUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContactPointUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContactPointUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContactPointUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContactPointUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractSubtypeCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractSubtypeCodesEnum.java deleted file mode 100644 index 9d83fc9ba98..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractSubtypeCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContractSubtypeCodesEnum { - - /** - * Code Value: disclosure-CA - */ - DISCLOSURE_CA("disclosure-CA", "http://www.hl7.org/fhir/contractsubtypecodes"), - - /** - * Code Value: disclosure-US - */ - DISCLOSURE_US("disclosure-US", "http://www.hl7.org/fhir/contractsubtypecodes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contract-subtype - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contract-subtype"; - - /** - * Name for this Value Set: - * Contract Subtype Codes - */ - public static final String VALUESET_NAME = "Contract Subtype Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContractSubtypeCodesEnum next : ContractSubtypeCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContractSubtypeCodesEnum forCode(String theCode) { - ContractSubtypeCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContractSubtypeCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContractSubtypeCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContractSubtypeCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContractSubtypeCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContractSubtypeCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractTermTypeCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractTermTypeCodesEnum.java deleted file mode 100644 index 89306e57d35..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractTermTypeCodesEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContractTermTypeCodesEnum { - - /** - * Code Value: OralHealth-Basic - */ - ORALHEALTH_BASIC("OralHealth-Basic", "http://www.hl7.org/fhir/contracttermsubtypecodes"), - - /** - * Code Value: OralHealth-Major - */ - ORALHEALTH_MAJOR("OralHealth-Major", "http://www.hl7.org/fhir/contracttermsubtypecodes"), - - /** - * Code Value: OralHealth-Orthodontic - */ - ORALHEALTH_ORTHODONTIC("OralHealth-Orthodontic", "http://www.hl7.org/fhir/contracttermsubtypecodes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contract-term-subtype - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contract-term-subtype"; - - /** - * Name for this Value Set: - * Contract Term Type Codes - */ - public static final String VALUESET_NAME = "Contract Term Type Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContractTermTypeCodesEnum next : ContractTermTypeCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContractTermTypeCodesEnum forCode(String theCode) { - ContractTermTypeCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContractTermTypeCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContractTermTypeCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContractTermTypeCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContractTermTypeCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContractTermTypeCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractTypeCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractTypeCodesEnum.java deleted file mode 100644 index 0f6d0324b6d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ContractTypeCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContractTypeCodesEnum { - - /** - * Code Value: privacy - */ - PRIVACY("privacy", "http://www.hl7.org/fhir/contracttypecodes"), - - /** - * Code Value: disclosure - */ - DISCLOSURE("disclosure", "http://www.hl7.org/fhir/contracttypecodes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contract-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contract-type"; - - /** - * Name for this Value Set: - * Contract Type Codes - */ - public static final String VALUESET_NAME = "Contract Type Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContractTypeCodesEnum next : ContractTypeCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContractTypeCodesEnum forCode(String theCode) { - ContractTypeCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContractTypeCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContractTypeCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContractTypeCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContractTypeCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContractTypeCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataAbsentReasonEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataAbsentReasonEnum.java deleted file mode 100644 index 3d78f1add02..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataAbsentReasonEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DataAbsentReasonEnum { - - /** - * Code Value: unknown - * - * The value is not known - */ - UNKNOWN("unknown", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: asked - * - * The source human does not know the value - */ - ASKED("asked", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: temp - * - * There is reason to expect (from the workflow) that the value may become known - */ - TEMP("temp", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: notasked - * - * The workflow didn't lead to this value being known - */ - NOTASKED("notasked", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: masked - * - * The information is not available due to security, privacy or related reasons - */ - MASKED("masked", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: unsupported - * - * The source system wasn't capable of supporting this element - */ - UNSUPPORTED("unsupported", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: astext - * - * The content of the data is represented in the resource narrative - */ - ASTEXT("astext", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: error - * - * Some system or workflow process error means that the information is not available - */ - ERROR("error", "http://hl7.org/fhir/data-absent-reason"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/data-absent-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/data-absent-reason"; - - /** - * Name for this Value Set: - * DataAbsentReason - */ - public static final String VALUESET_NAME = "DataAbsentReason"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DataAbsentReasonEnum next : DataAbsentReasonEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DataAbsentReasonEnum forCode(String theCode) { - DataAbsentReasonEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DataAbsentReasonEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DataAbsentReasonEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DataAbsentReasonEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DataAbsentReasonEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DataAbsentReasonEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataElementGranularityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataElementGranularityEnum.java deleted file mode 100644 index 1b57c937982..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataElementGranularityEnum.java +++ /dev/null @@ -1,109 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DataElementGranularityEnum { - - /** - * Code Value: comparable - * - * The data element is sufficiently well-constrained that multiple pieces of data captured according to the constraints of the data element will be comparable (though in some cases, a degree of automated conversion/normalization may be required). - */ - COMPARABLE("comparable", "http://hl7.org/fhir/dataelement-granularity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/dataelement-granularity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/dataelement-granularity"; - - /** - * Name for this Value Set: - * DataElementGranularity - */ - public static final String VALUESET_NAME = "DataElementGranularity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DataElementGranularityEnum next : DataElementGranularityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DataElementGranularityEnum forCode(String theCode) { - DataElementGranularityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DataElementGranularityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DataElementGranularityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DataElementGranularityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DataElementGranularityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DataElementGranularityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataTypeEnum.java deleted file mode 100644 index e56d5443f09..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DataTypeEnum.java +++ /dev/null @@ -1,347 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DataTypeEnum { - - /** - * Code Value: Address - * - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world. - */ - ADDRESS("Address", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Age - * - * A duration (length of time) with a UCUM code - */ - AGE("Age", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Attachment - * - * For referring to data content defined in other formats. - */ - ATTACHMENT("Attachment", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: CodeableConcept - * - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. - */ - CODEABLECONCEPT("CodeableConcept", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Coding - * - * A reference to a code defined by a terminology system. - */ - CODING("Coding", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: ContactPoint - * - * Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc. - */ - CONTACTPOINT("ContactPoint", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Count - * - * A count of a discrete element (no unit) - */ - COUNT("Count", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Distance - * - * A measure of distance - */ - DISTANCE("Distance", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Duration - * - * A length of time - */ - DURATION("Duration", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Extension - * - * Optional Extensions Element - found in all resources. - */ - EXTENSION("Extension", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: HumanName - * - * A human's name with the ability to identify parts and usage. - */ - HUMANNAME("HumanName", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Identifier - * - * A technical identifier - identifies some entity uniquely and unambiguously. - */ - IDENTIFIER("Identifier", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Money - * - * An amount of money. With regard to precision, see [[X]] - */ - MONEY("Money", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Narrative - * - * A human-readable formatted text, including images. - */ - NARRATIVE("Narrative", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Period - * - * A time period defined by a start and end date and optionally time. - */ - PERIOD("Period", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Quantity - * - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. - */ - QUANTITY("Quantity", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Range - * - * A set of ordered Quantities defined by a low and high limit. - */ - RANGE("Range", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Ratio - * - * A relationship of two Quantity values - expressed as a numerator and a denominator. - */ - RATIO("Ratio", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Reference - * - * A reference from one resource to another. - */ - REFERENCE("Reference", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: SampledData - * - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. - */ - SAMPLEDDATA("SampledData", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Timing - * - * Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur. - */ - TIMING("Timing", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: base64Binary - * - * A stream of bytes - */ - BASE64BINARY("base64Binary", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: boolean - * - * Value of "true" or "false" - */ - BOOLEAN("boolean", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: code - * - * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents - */ - CODE("code", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: date - * - * A date, or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. - */ - DATE("date", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: dateTime - * - * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds may be provided but may also be ignored. Dates SHALL be valid dates. - */ - DATETIME("dateTime", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: decimal - * - * A rational number with implicit precision - */ - DECIMAL("decimal", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: id - * - * Any combination of lowercase letters, numerals, "-" and ".", with a length limit of 36 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Systems SHALL send ids as lower-case but SHOULD interpret them case-insensitively. - */ - ID("id", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: instant - * - * An instant in time - known at least to the second - */ - INSTANT("instant", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: integer - * - * A whole number - */ - INTEGER("integer", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: oid - * - * An oid represented as a URI - */ - OID("oid", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: string - * - * A sequence of Unicode characters - */ - STRING("string", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: time - * - * A time during the day, with no date specified - */ - TIME("time", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: uri - * - * String of characters used to identify a name or a resource - */ - URI("uri", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: uuid - * - * A UUID, represented as a URI - */ - UUID("uuid", "http://hl7.org/fhir/data-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/data-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/data-types"; - - /** - * Name for this Value Set: - * DataType - */ - public static final String VALUESET_NAME = "DataType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DataTypeEnum next : DataTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DataTypeEnum forCode(String theCode) { - DataTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DataTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DataTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DataTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DataTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DataTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticOrderPriorityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticOrderPriorityEnum.java deleted file mode 100644 index 540dbe6d7e4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticOrderPriorityEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticOrderPriorityEnum { - - /** - * Display: Routine
- * Code Value: routine - * - * The order has a normal priority. - */ - ROUTINE("routine", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: Urgent
- * Code Value: urgent - * - * The order should be urgently. - */ - URGENT("urgent", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: Stat
- * Code Value: stat - * - * The order is time-critical. - */ - STAT("stat", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: ASAP
- * Code Value: asap - * - * The order should be acted on as soon as possible. - */ - ASAP("asap", "http://hl7.org/fhir/diagnostic-order-priority"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-order-priority - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-order-priority"; - - /** - * Name for this Value Set: - * DiagnosticOrderPriority - */ - public static final String VALUESET_NAME = "DiagnosticOrderPriority"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticOrderPriorityEnum next : DiagnosticOrderPriorityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticOrderPriorityEnum forCode(String theCode) { - DiagnosticOrderPriorityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticOrderPriorityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticOrderPriorityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticOrderPriorityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticOrderPriorityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticOrderPriorityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticOrderStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticOrderStatusEnum.java deleted file mode 100644 index 9e19f70c759..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticOrderStatusEnum.java +++ /dev/null @@ -1,165 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticOrderStatusEnum { - - /** - * Code Value: requested - * - * The request has been placed. - */ - REQUESTED("requested", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: received - * - * The receiving system has received the order, but not yet decided whether it will be performed. - */ - RECEIVED("received", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: accepted - * - * The receiving system has accepted the order, but work has not yet commenced. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: in progress - * - * The work to fulfill the order is happening. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: review - * - * The work is complete, and the outcomes are being reviewed for approval. - */ - REVIEW("review", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: completed - * - * The work has been complete, the report(s) released, and no further work is planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: suspended - * - * The request has been held by originating system/user request. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: rejected - * - * The receiving system has declined to fulfill the request. - */ - REJECTED("rejected", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: failed - * - * The diagnostic investigation was attempted, but due to some procedural error, it could not be completed. - */ - FAILED("failed", "http://hl7.org/fhir/diagnostic-order-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-order-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-order-status"; - - /** - * Name for this Value Set: - * DiagnosticOrderStatus - */ - public static final String VALUESET_NAME = "DiagnosticOrderStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticOrderStatusEnum next : DiagnosticOrderStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticOrderStatusEnum forCode(String theCode) { - DiagnosticOrderStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticOrderStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticOrderStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticOrderStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticOrderStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticOrderStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticReportStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticReportStatusEnum.java deleted file mode 100644 index 6a07fe6376d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DiagnosticReportStatusEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticReportStatusEnum { - - /** - * Code Value: registered - * - * The existence of the report is registered, but there is nothing yet available. - */ - REGISTERED("registered", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: partial - * - * This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified. - */ - PARTIAL("partial", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: final - * - * The report is complete and verified by an authorized person. - */ - FINAL("final", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: corrected - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person. - */ - CORRECTED("corrected", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: amended - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person, and data has been changed. - */ - AMENDED("amended", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: appended - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed. - */ - APPENDED("appended", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: cancelled - * - * The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: entered in error - * - * The report has been withdrawn following previous Final release. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/diagnostic-report-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-report-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-report-status"; - - /** - * Name for this Value Set: - * DiagnosticReportStatus - */ - public static final String VALUESET_NAME = "DiagnosticReportStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticReportStatusEnum next : DiagnosticReportStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticReportStatusEnum forCode(String theCode) { - DiagnosticReportStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticReportStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticReportStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticReportStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticReportStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticReportStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentModeEnum.java deleted file mode 100644 index 34921cb55eb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentModeEnum { - - /** - * Code Value: producer - * - * The application produces documents of the specified type. - */ - PRODUCER("producer", "http://hl7.org/fhir/document-mode"), - - /** - * Code Value: consumer - * - * The application consumes documents of the specified type. - */ - CONSUMER("consumer", "http://hl7.org/fhir/document-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-mode"; - - /** - * Name for this Value Set: - * DocumentMode - */ - public static final String VALUESET_NAME = "DocumentMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentModeEnum next : DocumentModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentModeEnum forCode(String theCode) { - DocumentModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentReferenceStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentReferenceStatusEnum.java deleted file mode 100644 index 1d808de3b79..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentReferenceStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentReferenceStatusEnum { - - /** - * Code Value: current - * - * This is the current reference for this document. - */ - CURRENT("current", "http://hl7.org/fhir/document-reference-status"), - - /** - * Code Value: superceded - * - * This reference has been superseded by another reference. - */ - SUPERCEDED("superceded", "http://hl7.org/fhir/document-reference-status"), - - /** - * Code Value: entered in error - * - * This reference was created in error. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/document-reference-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-reference-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-reference-status"; - - /** - * Name for this Value Set: - * DocumentReferenceStatus - */ - public static final String VALUESET_NAME = "DocumentReferenceStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentReferenceStatusEnum next : DocumentReferenceStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentReferenceStatusEnum forCode(String theCode) { - DocumentReferenceStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentReferenceStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentReferenceStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentReferenceStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentReferenceStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentReferenceStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentRelationshipTypeEnum.java deleted file mode 100644 index d37e52cac75..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/DocumentRelationshipTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentRelationshipTypeEnum { - - /** - * Code Value: replaces - * - * This document logically replaces or supercedes the target document. - */ - REPLACES("replaces", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: transforms - * - * This document was generated by transforming the target document (e.g. format or language conversion). - */ - TRANSFORMS("transforms", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: signs - * - * This document is a signature of the target document. - */ - SIGNS("signs", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: appends - * - * This document adds additional information to the target document. - */ - APPENDS("appends", "http://hl7.org/fhir/document-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-relationship-type"; - - /** - * Name for this Value Set: - * DocumentRelationshipType - */ - public static final String VALUESET_NAME = "DocumentRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentRelationshipTypeEnum next : DocumentRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentRelationshipTypeEnum forCode(String theCode) { - DocumentRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterClassEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterClassEnum.java deleted file mode 100644 index 49270e7e90b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterClassEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterClassEnum { - - /** - * Code Value: inpatient - * - * An encounter during which the patient is hospitalized and stays overnight. - */ - INPATIENT("inpatient", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: outpatient - * - * An encounter during which the patient is not hospitalized overnight. - */ - OUTPATIENT("outpatient", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: ambulatory - * - * An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit. - */ - AMBULATORY("ambulatory", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: emergency - * - * An encounter where the patient needs urgent care. - */ - EMERGENCY("emergency", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: home - * - * An encounter where the practitioner visits the patient at his/her home. - */ - HOME("home", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: field - * - * An encounter taking place outside the regular environment for giving care. - */ - FIELD("field", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: daytime - * - * An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight. - */ - DAYTIME("daytime", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: virtual - * - * An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact. - */ - VIRTUAL("virtual", "http://hl7.org/fhir/encounter-class"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-class - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-class"; - - /** - * Name for this Value Set: - * EncounterClass - */ - public static final String VALUESET_NAME = "EncounterClass"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterClassEnum next : EncounterClassEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterClassEnum forCode(String theCode) { - EncounterClassEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterClassEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterClassEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterClassEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterClassEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterClassEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterReasonCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterReasonCodesEnum.java deleted file mode 100644 index a6616dbf45c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterReasonCodesEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterReasonCodesEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-reason"; - - /** - * Name for this Value Set: - * Encounter Reason Codes - */ - public static final String VALUESET_NAME = "Encounter Reason Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterReasonCodesEnum next : EncounterReasonCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterReasonCodesEnum forCode(String theCode) { - EncounterReasonCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterReasonCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterReasonCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterReasonCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterReasonCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterReasonCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterStateEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterStateEnum.java deleted file mode 100644 index 5df73e54174..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterStateEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterStateEnum { - - /** - * Code Value: planned - * - * The Encounter has not yet started. - */ - PLANNED("planned", "http://hl7.org/fhir/encounter-state"), - - /** - * Code Value: in progress - * - * The Encounter has begun and the patient is present / the practitioner and the patient are meeting. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/encounter-state"), - - /** - * Code Value: onleave - * - * The Encounter has begun, but the patient is temporarily on leave. - */ - ONLEAVE("onleave", "http://hl7.org/fhir/encounter-state"), - - /** - * Code Value: finished - * - * The Encounter has ended. - */ - FINISHED("finished", "http://hl7.org/fhir/encounter-state"), - - /** - * Code Value: cancelled - * - * The Encounter has ended before it has begun. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/encounter-state"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-state - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-state"; - - /** - * Name for this Value Set: - * EncounterState - */ - public static final String VALUESET_NAME = "EncounterState"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterStateEnum next : EncounterStateEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterStateEnum forCode(String theCode) { - EncounterStateEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterStateEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterStateEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterStateEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterStateEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterStateEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterTypeEnum.java deleted file mode 100644 index 1bc9db6f27a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EncounterTypeEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterTypeEnum { - - /** - * Display: Annual diabetes mellitus screening
- * Code Value: ADMS - */ - ANNUAL_DIABETES_MELLITUS_SCREENING("ADMS", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Bone drilling/bone marrow punction in clinic
- * Code Value: BD/BM-clin - */ - BONE_DRILLING_BONE_MARROW_PUNCTION_IN_CLINIC("BD/BM-clin", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Infant colon screening - 60 minutes
- * Code Value: CCS60 - */ - INFANT_COLON_SCREENING___60_MINUTES("CCS60", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Outpatient Kenacort injection
- * Code Value: OKI - */ - OUTPATIENT_KENACORT_INJECTION("OKI", "http://hl7.org/fhir/encounter-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-type"; - - /** - * Name for this Value Set: - * EncounterType - */ - public static final String VALUESET_NAME = "EncounterType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterTypeEnum next : EncounterTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterTypeEnum forCode(String theCode) { - EncounterTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EnteralFormulaAdditiveTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EnteralFormulaAdditiveTypeEnum.java deleted file mode 100644 index afd3c3b0853..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EnteralFormulaAdditiveTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EnteralFormulaAdditiveTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/entformula-additive - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/entformula-additive"; - - /** - * Name for this Value Set: - * EnteralFormulaAdditiveType - */ - public static final String VALUESET_NAME = "EnteralFormulaAdditiveType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EnteralFormulaAdditiveTypeEnum next : EnteralFormulaAdditiveTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EnteralFormulaAdditiveTypeEnum forCode(String theCode) { - EnteralFormulaAdditiveTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EnteralFormulaAdditiveTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EnteralFormulaAdditiveTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EnteralFormulaAdditiveTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EnteralFormulaAdditiveTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EnteralFormulaAdditiveTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EnteralFormulaTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EnteralFormulaTypeEnum.java deleted file mode 100644 index eb32fe272b9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EnteralFormulaTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EnteralFormulaTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/entformula-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/entformula-type"; - - /** - * Name for this Value Set: - * EnteralFormulaType - */ - public static final String VALUESET_NAME = "EnteralFormulaType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EnteralFormulaTypeEnum next : EnteralFormulaTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EnteralFormulaTypeEnum forCode(String theCode) { - EnteralFormulaTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EnteralFormulaTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EnteralFormulaTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EnteralFormulaTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EnteralFormulaTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EnteralFormulaTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EventTimingEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EventTimingEnum.java deleted file mode 100644 index 62917542860..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/EventTimingEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EventTimingEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/event-timing - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/event-timing"; - - /** - * Name for this Value Set: - * EventTiming - */ - public static final String VALUESET_NAME = "EventTiming"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EventTimingEnum next : EventTimingEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EventTimingEnum forCode(String theCode) { - EventTimingEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EventTimingEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EventTimingEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EventTimingEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EventTimingEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EventTimingEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ExcludeFoodModifierEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ExcludeFoodModifierEnum.java deleted file mode 100644 index 26fe750cf0f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ExcludeFoodModifierEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ExcludeFoodModifierEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/exclude-food-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/exclude-food-type"; - - /** - * Name for this Value Set: - * ExcludeFoodModifier - */ - public static final String VALUESET_NAME = "ExcludeFoodModifier"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ExcludeFoodModifierEnum next : ExcludeFoodModifierEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ExcludeFoodModifierEnum forCode(String theCode) { - ExcludeFoodModifierEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ExcludeFoodModifierEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ExcludeFoodModifierEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ExcludeFoodModifierEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ExcludeFoodModifierEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ExcludeFoodModifierEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ExposureTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ExposureTypeEnum.java deleted file mode 100644 index d4540096174..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ExposureTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ExposureTypeEnum { - - /** - * Code Value: drugadmin - * - * Drug Administration. - */ - DRUGADMIN("drugadmin", "http://hl7.org/fhir/exposureType"), - - /** - * Code Value: immuniz - * - * Immunization. - */ - IMMUNIZ("immuniz", "http://hl7.org/fhir/exposureType"), - - /** - * Code Value: coincidental - * - * In the same area as the substance. - */ - COINCIDENTAL("coincidental", "http://hl7.org/fhir/exposureType"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/exposureType - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/exposureType"; - - /** - * Name for this Value Set: - * ExposureType - */ - public static final String VALUESET_NAME = "ExposureType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ExposureTypeEnum next : ExposureTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ExposureTypeEnum forCode(String theCode) { - ExposureTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ExposureTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ExposureTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ExposureTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ExposureTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ExposureTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FHIRDefinedTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FHIRDefinedTypeEnum.java deleted file mode 100644 index 43091587503..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FHIRDefinedTypeEnum.java +++ /dev/null @@ -1,823 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FHIRDefinedTypeEnum { - - /** - * Code Value: Address - * - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world. - */ - ADDRESS("Address", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Age - * - * A duration (length of time) with a UCUM code - */ - AGE("Age", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Attachment - * - * For referring to data content defined in other formats. - */ - ATTACHMENT("Attachment", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: CodeableConcept - * - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. - */ - CODEABLECONCEPT("CodeableConcept", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Coding - * - * A reference to a code defined by a terminology system. - */ - CODING("Coding", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ContactPoint - * - * Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc. - */ - CONTACTPOINT("ContactPoint", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Count - * - * A count of a discrete element (no unit) - */ - COUNT("Count", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Distance - * - * A measure of distance - */ - DISTANCE("Distance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Duration - * - * A length of time - */ - DURATION("Duration", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Extension - * - * Optional Extensions Element - found in all resources. - */ - EXTENSION("Extension", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: HumanName - * - * A human's name with the ability to identify parts and usage. - */ - HUMANNAME("HumanName", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Identifier - * - * A technical identifier - identifies some entity uniquely and unambiguously. - */ - IDENTIFIER("Identifier", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Money - * - * An amount of money. With regard to precision, see [[X]] - */ - MONEY("Money", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Narrative - * - * A human-readable formatted text, including images. - */ - NARRATIVE("Narrative", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Period - * - * A time period defined by a start and end date and optionally time. - */ - PERIOD("Period", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Quantity - * - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. - */ - QUANTITY("Quantity", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Range - * - * A set of ordered Quantities defined by a low and high limit. - */ - RANGE("Range", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Ratio - * - * A relationship of two Quantity values - expressed as a numerator and a denominator. - */ - RATIO("Ratio", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Reference - * - * A reference from one resource to another. - */ - REFERENCE("Reference", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: SampledData - * - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. - */ - SAMPLEDDATA("SampledData", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Timing - * - * Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur. - */ - TIMING("Timing", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: base64Binary - * - * A stream of bytes - */ - BASE64BINARY("base64Binary", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: boolean - * - * Value of "true" or "false" - */ - BOOLEAN("boolean", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: code - * - * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents - */ - CODE("code", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: date - * - * A date, or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. - */ - DATE("date", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: dateTime - * - * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds may be provided but may also be ignored. Dates SHALL be valid dates. - */ - DATETIME("dateTime", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: decimal - * - * A rational number with implicit precision - */ - DECIMAL("decimal", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: id - * - * Any combination of lowercase letters, numerals, "-" and ".", with a length limit of 36 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Systems SHALL send ids as lower-case but SHOULD interpret them case-insensitively. - */ - ID("id", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: instant - * - * An instant in time - known at least to the second - */ - INSTANT("instant", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: integer - * - * A whole number - */ - INTEGER("integer", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: oid - * - * An oid represented as a URI - */ - OID("oid", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: string - * - * A sequence of Unicode characters - */ - STRING("string", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: time - * - * A time during the day, with no date specified - */ - TIME("time", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: uri - * - * String of characters used to identify a name or a resource - */ - URI("uri", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: uuid - * - * A UUID, represented as a URI - */ - UUID("uuid", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: AdverseReaction - * - * Records an unexpected reaction suspected to be related to the exposure of the reaction subject to a substance. - */ - ADVERSEREACTION("AdverseReaction", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: AdverseReactionRisk - * - * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance. - */ - ADVERSEREACTIONRISK("AdverseReactionRisk", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Alert - * - * Prospective warnings of potential issues when providing care to the patient. - */ - ALERT("Alert", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: AllergyIntolerance - * - * Indicates the patient has a susceptibility to an adverse reaction upon exposure to a specified substance. - */ - ALLERGYINTOLERANCE("AllergyIntolerance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Appointment - * - * A scheduled healthcare event for a patient and/or practitioner(s) where a service may take place at a specific date/time. - */ - APPOINTMENT("Appointment", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: AppointmentResponse - * - * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. - */ - APPOINTMENTRESPONSE("AppointmentResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Availability - * - * (informative) A container for slot(s) of time that may be available for booking appointments. - */ - AVAILABILITY("Availability", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Basic - * - * Basic is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest. - */ - BASIC("Basic", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: CarePlan - * - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - */ - CAREPLAN("CarePlan", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ClaimResponse - * - * This resource provides the adjudication details from the processing of a Claim resource. - */ - CLAIMRESPONSE("ClaimResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Composition - * - * A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. - */ - COMPOSITION("Composition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ConceptMap - * - * A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models. - */ - CONCEPTMAP("ConceptMap", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Condition - * - * Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary. - */ - CONDITION("Condition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Conformance - * - * A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation. - */ - CONFORMANCE("Conformance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Contract - * - * A formal agreement between parties regarding the conduct of business, exchange of information or other matters. - */ - CONTRACT("Contract", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Contraindication - * - * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient. E.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc. - */ - CONTRAINDICATION("Contraindication", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Coverage - * - * Financial instrument which may be used to pay for or reimburse for health care products and services. - */ - COVERAGE("Coverage", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DataElement - * - * The formal description of a single piece of information that can be gathered and reported. - */ - DATAELEMENT("DataElement", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Device - * - * This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. - */ - DEVICE("Device", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DeviceObservationReport - * - * Describes the data produced by a device at a point in time. - */ - DEVICEOBSERVATIONREPORT("DeviceObservationReport", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DiagnosticOrder - * - * A request for a diagnostic investigation service to be performed. - */ - DIAGNOSTICORDER("DiagnosticOrder", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DiagnosticReport - * - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports. - */ - DIAGNOSTICREPORT("DiagnosticReport", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DocumentManifest - * - * A manifest that defines a set of documents. - */ - DOCUMENTMANIFEST("DocumentManifest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DocumentReference - * - * A reference to a document. - */ - DOCUMENTREFERENCE("DocumentReference", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Encounter - * - * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. - */ - ENCOUNTER("Encounter", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: FamilyHistory - * - * Significant health events and conditions for people related to the subject relevant in the context of care for the subject. - */ - FAMILYHISTORY("FamilyHistory", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Group - * - * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization. - */ - GROUP("Group", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: HealthcareService - * - * (informative) The details of a Healthcare Service available at a location. - */ - HEALTHCARESERVICE("HealthcareService", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ImagingStudy - * - * Manifest of a set of images produced in study. The set of images may include every image in the study, or it may be an incomplete sample, such as a list of key images. - */ - IMAGINGSTUDY("ImagingStudy", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Immunization - * - * Immunization event information. - */ - IMMUNIZATION("Immunization", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ImmunizationRecommendation - * - * A patient's point-of-time immunization status and recommendation with optional supporting justification. - */ - IMMUNIZATIONRECOMMENDATION("ImmunizationRecommendation", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: List - * - * A set of information summarized from a list of other resources. - */ - LIST("List", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Location - * - * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated. - */ - LOCATION("Location", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Media - * - * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference. - */ - MEDIA("Media", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Medication - * - * Primarily used for identification and definition of Medication, but also covers ingredients and packaging. - */ - MEDICATION("Medication", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationAdministration - * - * Describes the event of a patient being given a dose of a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. - */ - MEDICATIONADMINISTRATION("MedicationAdministration", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationDispense - * - * Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication. - */ - MEDICATIONDISPENSE("MedicationDispense", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationPrescription - * - * An order for both supply of the medication and the instructions for administration of the medicine to a patient. - */ - MEDICATIONPRESCRIPTION("MedicationPrescription", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationStatement - * - * A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician. - */ - MEDICATIONSTATEMENT("MedicationStatement", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MessageHeader - * - * The header for a message exchange that is either requesting or responding to an action. The Reference(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. - */ - MESSAGEHEADER("MessageHeader", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Namespace - * - * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types. - */ - NAMESPACE("Namespace", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: NutritionOrder - * - * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. - */ - NUTRITIONORDER("NutritionOrder", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Observation - * - * Measurements and simple assertions made about a patient, device or other subject. - */ - OBSERVATION("Observation", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OperationDefinition - * - * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). - */ - OPERATIONDEFINITION("OperationDefinition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OperationOutcome - * - * A collection of error, warning or information messages that result from a system action. - */ - OPERATIONOUTCOME("OperationOutcome", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OralHealthClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - ORALHEALTHCLAIM("OralHealthClaim", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Order - * - * A request to perform an action. - */ - ORDER("Order", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OrderResponse - * - * A response to an order. - */ - ORDERRESPONSE("OrderResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Organization - * - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc. - */ - ORGANIZATION("Organization", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Other - * - * Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest. - */ - OTHER("Other", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Patient - * - * Demographics and other administrative information about a person or animal receiving care or other health-related services. - */ - PATIENT("Patient", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Practitioner - * - * A person who is directly or indirectly involved in the provisioning of healthcare. - */ - PRACTITIONER("Practitioner", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Procedure - * - * An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy. - */ - PROCEDURE("Procedure", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Profile - * - * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions. - */ - PROFILE("Profile", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Provenance - * - * Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance. - */ - PROVENANCE("Provenance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Query - * - * A description of a query with a set of parameters. - */ - QUERY("Query", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Questionnaire - * - * A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIRE("Questionnaire", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: QuestionnaireAnswers - * - * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIREANSWERS("QuestionnaireAnswers", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ReferralRequest - * - * Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organisation. - */ - REFERRALREQUEST("ReferralRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: RelatedPerson - * - * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. - */ - RELATEDPERSON("RelatedPerson", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: RiskAssessment - * - * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. - */ - RISKASSESSMENT("RiskAssessment", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: SecurityEvent - * - * A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage. - */ - SECURITYEVENT("SecurityEvent", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Slot - * - * (informative) A slot of time on a schedule that may be available for booking appointments. - */ - SLOT("Slot", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Specimen - * - * Sample for analysis. - */ - SPECIMEN("Specimen", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Subscription - * - * Todo. - */ - SUBSCRIPTION("Subscription", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Substance - * - * A homogeneous material with a definite composition. - */ - SUBSTANCE("Substance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Supply - * - * A supply - a request for something, and provision of what is supplied. - */ - SUPPLY("Supply", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ValueSet - * - * A value set specifies a set of codes drawn from one or more code systems. - */ - VALUESET("ValueSet", "http://hl7.org/fhir/defined-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/defined-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/defined-types"; - - /** - * Name for this Value Set: - * FHIRDefinedType - */ - public static final String VALUESET_NAME = "FHIRDefinedType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FHIRDefinedTypeEnum next : FHIRDefinedTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FHIRDefinedTypeEnum forCode(String theCode) { - FHIRDefinedTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FHIRDefinedTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FHIRDefinedTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FHIRDefinedTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FHIRDefinedTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FHIRDefinedTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FilterOperatorEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FilterOperatorEnum.java deleted file mode 100644 index 3c8d1cbd168..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FilterOperatorEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FilterOperatorEnum { - - /** - * Code Value: = - * - * The specified property of the code equals the provided value. - */ - EQUALS("=", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: is-a - * - * The specified property of the code has an is-a relationship with the provided value. - */ - IS_A("is-a", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: is-not-a - * - * The specified property of the code does not have an is-a relationship with the provided value. - */ - IS_NOT_A("is-not-a", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: regex - * - * The specified property of the code matches the regex specified in the provided value. - */ - REGEX("regex", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: in - * - * The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list). - */ - IN("in", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: not in - * - * The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list). - */ - NOT_IN("not in", "http://hl7.org/fhir/filter-operator"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/filter-operator - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/filter-operator"; - - /** - * Name for this Value Set: - * FilterOperator - */ - public static final String VALUESET_NAME = "FilterOperator"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FilterOperatorEnum next : FilterOperatorEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FilterOperatorEnum forCode(String theCode) { - FilterOperatorEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FilterOperatorEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FilterOperatorEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FilterOperatorEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FilterOperatorEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FilterOperatorEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FluidConsistencyTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FluidConsistencyTypeEnum.java deleted file mode 100644 index 4cd96f829f1..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FluidConsistencyTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FluidConsistencyTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/consistency-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/consistency-type"; - - /** - * Name for this Value Set: - * FluidConsistencyType - */ - public static final String VALUESET_NAME = "FluidConsistencyType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FluidConsistencyTypeEnum next : FluidConsistencyTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FluidConsistencyTypeEnum forCode(String theCode) { - FluidConsistencyTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FluidConsistencyTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FluidConsistencyTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FluidConsistencyTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FluidConsistencyTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FluidConsistencyTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FoodTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FoodTypeEnum.java deleted file mode 100644 index f9299901a26..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/FoodTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FoodTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/food-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/food-type"; - - /** - * Name for this Value Set: - * FoodType - */ - public static final String VALUESET_NAME = "FoodType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FoodTypeEnum next : FoodTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FoodTypeEnum forCode(String theCode) { - FoodTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FoodTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FoodTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FoodTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FoodTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FoodTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/GroupTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/GroupTypeEnum.java deleted file mode 100644 index c696c2a3170..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/GroupTypeEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum GroupTypeEnum { - - /** - * Code Value: person - * - * Group contains "person" Patient resources. - */ - PERSON("person", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: animal - * - * Group contains "animal" Patient resources. - */ - ANIMAL("animal", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: practitioner - * - * Group contains healthcare practitioner resources. - */ - PRACTITIONER("practitioner", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: device - * - * Group contains Device resources. - */ - DEVICE("device", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: medication - * - * Group contains Medication resources. - */ - MEDICATION("medication", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: substance - * - * Group contains Substance resources. - */ - SUBSTANCE("substance", "http://hl7.org/fhir/group-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/group-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/group-type"; - - /** - * Name for this Value Set: - * GroupType - */ - public static final String VALUESET_NAME = "GroupType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (GroupTypeEnum next : GroupTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public GroupTypeEnum forCode(String theCode) { - GroupTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(GroupTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(GroupTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public GroupTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public GroupTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - GroupTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/HierarchicalRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/HierarchicalRelationshipTypeEnum.java deleted file mode 100644 index f08a7bca027..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/HierarchicalRelationshipTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum HierarchicalRelationshipTypeEnum { - - /** - * Display: Parent
- * Code Value: parent - * - * The target resource is the parent of the focal specimen resource. - */ - PARENT("parent", "http://hl7.org/fhir/hierarchical-relationship-type"), - - /** - * Display: Child
- * Code Value: child - * - * The target resource is the child of the focal specimen resource. - */ - CHILD("child", "http://hl7.org/fhir/hierarchical-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/hierarchical-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/hierarchical-relationship-type"; - - /** - * Name for this Value Set: - * HierarchicalRelationshipType - */ - public static final String VALUESET_NAME = "HierarchicalRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (HierarchicalRelationshipTypeEnum next : HierarchicalRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public HierarchicalRelationshipTypeEnum forCode(String theCode) { - HierarchicalRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(HierarchicalRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(HierarchicalRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public HierarchicalRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public HierarchicalRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - HierarchicalRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IdentifierUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IdentifierUseEnum.java deleted file mode 100644 index 63d95f50dd0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IdentifierUseEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IdentifierUseEnum { - - /** - * Code Value: usual - * - * the identifier recommended for display and use in real-world interactions. - */ - USUAL("usual", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: official - * - * the identifier considered to be most trusted for the identification of this item. - */ - OFFICIAL("official", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: temp - * - * A temporary identifier. - */ - TEMP("temp", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: secondary - * - * An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context. - */ - SECONDARY("secondary", "http://hl7.org/fhir/identifier-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/identifier-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/identifier-use"; - - /** - * Name for this Value Set: - * IdentifierUse - */ - public static final String VALUESET_NAME = "IdentifierUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IdentifierUseEnum next : IdentifierUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IdentifierUseEnum forCode(String theCode) { - IdentifierUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IdentifierUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IdentifierUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IdentifierUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IdentifierUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IdentifierUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImagingModalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImagingModalityEnum.java deleted file mode 100644 index cf9ca1f2033..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImagingModalityEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImagingModalityEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/imaging-modality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/imaging-modality"; - - /** - * Name for this Value Set: - * ImagingModality - */ - public static final String VALUESET_NAME = "ImagingModality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImagingModalityEnum next : ImagingModalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImagingModalityEnum forCode(String theCode) { - ImagingModalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImagingModalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImagingModalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImagingModalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImagingModalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImagingModalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationReasonCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationReasonCodesEnum.java deleted file mode 100644 index bc3d8b33f89..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationReasonCodesEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationReasonCodesEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-reason"; - - /** - * Name for this Value Set: - * Immunization Reason Codes - */ - public static final String VALUESET_NAME = "Immunization Reason Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationReasonCodesEnum next : ImmunizationReasonCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationReasonCodesEnum forCode(String theCode) { - ImmunizationReasonCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationReasonCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationReasonCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationReasonCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationReasonCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationReasonCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java deleted file mode 100644 index e3cfc572494..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRecommendationDateCriterionCodesEnum { - - /** - * Display: due
- * Code Value: due - * - * Date the next dose is considered due - */ - DUE("due", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - /** - * Display: overdue
- * Code Value: overdue - * - * Date the next dose is considered overdue - */ - OVERDUE("overdue", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - /** - * Display: latest
- * Code Value: latest - * - * The latest date the next dose is to be given - */ - LATEST("latest", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-recommendation-date-criterion - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-recommendation-date-criterion"; - - /** - * Name for this Value Set: - * Immunization Recommendation Date Criterion Codes - */ - public static final String VALUESET_NAME = "Immunization Recommendation Date Criterion Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRecommendationDateCriterionCodesEnum next : ImmunizationRecommendationDateCriterionCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRecommendationDateCriterionCodesEnum forCode(String theCode) { - ImmunizationRecommendationDateCriterionCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRecommendationDateCriterionCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRecommendationDateCriterionCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRecommendationDateCriterionCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRecommendationDateCriterionCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRecommendationDateCriterionCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRecommendationStatusCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRecommendationStatusCodesEnum.java deleted file mode 100644 index d30d7097524..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRecommendationStatusCodesEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRecommendationStatusCodesEnum { - - /** - * Display: due
- * Code Value: due - * - * The patient is due for their next vaccination - */ - DUE("due", "http://hl7.org/fhir/immunization-recommendation-status"), - - /** - * Display: overdue
- * Code Value: overdue - * - * The patient is considered overdue for their next vaccination - */ - OVERDUE("overdue", "http://hl7.org/fhir/immunization-recommendation-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-recommendation-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-recommendation-status"; - - /** - * Name for this Value Set: - * Immunization Recommendation Status Codes - */ - public static final String VALUESET_NAME = "Immunization Recommendation Status Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRecommendationStatusCodesEnum next : ImmunizationRecommendationStatusCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRecommendationStatusCodesEnum forCode(String theCode) { - ImmunizationRecommendationStatusCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRecommendationStatusCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRecommendationStatusCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRecommendationStatusCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRecommendationStatusCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRecommendationStatusCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRouteCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRouteCodesEnum.java deleted file mode 100644 index 539a5e0d2c0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ImmunizationRouteCodesEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRouteCodesEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-route - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-route"; - - /** - * Name for this Value Set: - * Immunization Route Codes - */ - public static final String VALUESET_NAME = "Immunization Route Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRouteCodesEnum next : ImmunizationRouteCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRouteCodesEnum forCode(String theCode) { - ImmunizationRouteCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRouteCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRouteCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRouteCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRouteCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRouteCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/InstanceAvailabilityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/InstanceAvailabilityEnum.java deleted file mode 100644 index 9dce745f7e8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/InstanceAvailabilityEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum InstanceAvailabilityEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/instance-availability - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/instance-availability"; - - /** - * Name for this Value Set: - * InstanceAvailability - */ - public static final String VALUESET_NAME = "InstanceAvailability"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (InstanceAvailabilityEnum next : InstanceAvailabilityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public InstanceAvailabilityEnum forCode(String theCode) { - InstanceAvailabilityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(InstanceAvailabilityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(InstanceAvailabilityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public InstanceAvailabilityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public InstanceAvailabilityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - InstanceAvailabilityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IssueSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IssueSeverityEnum.java deleted file mode 100644 index 82324512a96..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IssueSeverityEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IssueSeverityEnum { - - /** - * Code Value: fatal - * - * The issue caused the action to fail, and no further checking could be performed. - */ - FATAL("fatal", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: error - * - * The issue is sufficiently important to cause the action to fail. - */ - ERROR("error", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: warning - * - * The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired. - */ - WARNING("warning", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: information - * - * The issue has no relation to the degree of success of the action. - */ - INFORMATION("information", "http://hl7.org/fhir/issue-severity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/issue-severity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/issue-severity"; - - /** - * Name for this Value Set: - * IssueSeverity - */ - public static final String VALUESET_NAME = "IssueSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IssueSeverityEnum next : IssueSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IssueSeverityEnum forCode(String theCode) { - IssueSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IssueSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IssueSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IssueSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IssueSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IssueSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IssueTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IssueTypeEnum.java deleted file mode 100644 index f0632c84365..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/IssueTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IssueTypeEnum { - - /** - * Code Value: invalid - * - * Content invalid against Specification or Profile. - */ - INVALID("invalid", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: security - * - * authorization/permissions issue. - */ - SECURITY("security", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: processing - * - * processing issues. - */ - PROCESSING("processing", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: transient - * - * transient processing issues. - */ - TRANSIENT("transient", "http://hl7.org/fhir/issue-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/issue-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/issue-type"; - - /** - * Name for this Value Set: - * IssueType - */ - public static final String VALUESET_NAME = "IssueType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IssueTypeEnum next : IssueTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IssueTypeEnum forCode(String theCode) { - IssueTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IssueTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IssueTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IssueTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IssueTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IssueTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LinkTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LinkTypeEnum.java deleted file mode 100644 index 462ec9f4f72..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LinkTypeEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LinkTypeEnum { - - /** - * Display: replace
- * Code Value: replace - * - * The patient resource containing this link must no longer be used. The link points forward to another patient resource that must be used in lieu of the patient resource that contains the link. - */ - REPLACE("replace", "http://hl7.org/fhir/link-type"), - - /** - * Display: refer
- * Code Value: refer - * - * The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information. - */ - REFER("refer", "http://hl7.org/fhir/link-type"), - - /** - * Display: see also
- * Code Value: seealso - * - * The patient resource containing this link is in use and valid, but points to another patient resource that is known to contain data about the same person. Data in this resource might overlap or contradict information found in the other patient resource. This link does not indicate any relative importance of the resources concerned, and both should be regarded as equally valid. - */ - SEE_ALSO("seealso", "http://hl7.org/fhir/link-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/link-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/link-type"; - - /** - * Name for this Value Set: - * LinkType - */ - public static final String VALUESET_NAME = "LinkType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LinkTypeEnum next : LinkTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LinkTypeEnum forCode(String theCode) { - LinkTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LinkTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LinkTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LinkTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LinkTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LinkTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ListModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ListModeEnum.java deleted file mode 100644 index 0576e65761d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ListModeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ListModeEnum { - - /** - * Code Value: working - * - * This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes. - */ - WORKING("working", "http://hl7.org/fhir/list-mode"), - - /** - * Code Value: snapshot - * - * This list was prepared as a snapshot. It should not be assumed to be current. - */ - SNAPSHOT("snapshot", "http://hl7.org/fhir/list-mode"), - - /** - * Code Value: changes - * - * The list is prepared as a statement of changes that have been made or recommended. - */ - CHANGES("changes", "http://hl7.org/fhir/list-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/list-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/list-mode"; - - /** - * Name for this Value Set: - * ListMode - */ - public static final String VALUESET_NAME = "ListMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ListModeEnum next : ListModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ListModeEnum forCode(String theCode) { - ListModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ListModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ListModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ListModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ListModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ListModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationModeEnum.java deleted file mode 100644 index 73d8140a7a6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationModeEnum { - - /** - * Code Value: instance - * - * The Location resource represents a specific instance of a Location. - */ - INSTANCE("instance", "http://hl7.org/fhir/location-mode"), - - /** - * Code Value: kind - * - * The Location represents a class of Locations. - */ - KIND("kind", "http://hl7.org/fhir/location-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-mode"; - - /** - * Name for this Value Set: - * LocationMode - */ - public static final String VALUESET_NAME = "LocationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationModeEnum next : LocationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationModeEnum forCode(String theCode) { - LocationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationStatusEnum.java deleted file mode 100644 index ae7b47f0d34..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationStatusEnum { - - /** - * Code Value: active - * - * The location is operational. - */ - ACTIVE("active", "http://hl7.org/fhir/location-status"), - - /** - * Code Value: suspended - * - * The location is temporarily closed. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/location-status"), - - /** - * Code Value: inactive - * - * The location is no longer used. - */ - INACTIVE("inactive", "http://hl7.org/fhir/location-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-status"; - - /** - * Name for this Value Set: - * LocationStatus - */ - public static final String VALUESET_NAME = "LocationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationStatusEnum next : LocationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationStatusEnum forCode(String theCode) { - LocationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationTypeEnum.java deleted file mode 100644 index 78cbcce6772..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/LocationTypeEnum.java +++ /dev/null @@ -1,150 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationTypeEnum { - - /** - * Display: Building
- * Code Value: bu - */ - BUILDING("bu", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Wing
- * Code Value: wi - */ - WING("wi", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Corridor
- * Code Value: co - */ - CORRIDOR("co", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Room
- * Code Value: ro - */ - ROOM("ro", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Vehicle
- * Code Value: ve - */ - VEHICLE("ve", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: House
- * Code Value: ho - */ - HOUSE("ho", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Cabinet
- * Code Value: ca - */ - CABINET("ca", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Road
- * Code Value: rd - */ - ROAD("rd", "http://hl7.org/fhir/location-physical-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-physical-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-physical-type"; - - /** - * Name for this Value Set: - * LocationType - */ - public static final String VALUESET_NAME = "LocationType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationTypeEnum next : LocationTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationTypeEnum forCode(String theCode) { - LocationTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MaritalStatusCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MaritalStatusCodesEnum.java deleted file mode 100644 index d5a7d752add..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MaritalStatusCodesEnum.java +++ /dev/null @@ -1,110 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MaritalStatusCodesEnum { - - /** - * Display: unmarried
- * Code Value: U - * - * The person is not presently married. The marital history is not known or stated - */ - UNMARRIED("U", "http://hl7.org/fhir/marital-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/marital-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/marital-status"; - - /** - * Name for this Value Set: - * Marital Status Codes - */ - public static final String VALUESET_NAME = "Marital Status Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MaritalStatusCodesEnum next : MaritalStatusCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MaritalStatusCodesEnum forCode(String theCode) { - MaritalStatusCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MaritalStatusCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MaritalStatusCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MaritalStatusCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MaritalStatusCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MaritalStatusCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MediaTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MediaTypeEnum.java deleted file mode 100644 index 9da6a7db392..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MediaTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MediaTypeEnum { - - /** - * Code Value: photo - * - * The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents. - */ - PHOTO("photo", "http://hl7.org/fhir/media-type"), - - /** - * Code Value: video - * - * The media consists of a series of frames that capture a moving image. - */ - VIDEO("video", "http://hl7.org/fhir/media-type"), - - /** - * Code Value: audio - * - * The media consists of a sound recording. - */ - AUDIO("audio", "http://hl7.org/fhir/media-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/media-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/media-type"; - - /** - * Name for this Value Set: - * MediaType - */ - public static final String VALUESET_NAME = "MediaType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MediaTypeEnum next : MediaTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MediaTypeEnum forCode(String theCode) { - MediaTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MediaTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MediaTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MediaTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MediaTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MediaTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationAdministrationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationAdministrationStatusEnum.java deleted file mode 100644 index 154deea5c58..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationAdministrationStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationAdministrationStatusEnum { - - /** - * Code Value: in progress - * - * The administration has started but has not yet completed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: on hold - * - * Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the administration have occurred. - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: entered in error - * - * The administration was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: stopped - * - * Actions implied by the administration have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-admin-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-admin-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-admin-status"; - - /** - * Name for this Value Set: - * MedicationAdministrationStatus - */ - public static final String VALUESET_NAME = "MedicationAdministrationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationAdministrationStatusEnum next : MedicationAdministrationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationAdministrationStatusEnum forCode(String theCode) { - MedicationAdministrationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationAdministrationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationAdministrationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationAdministrationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationAdministrationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationAdministrationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationDispenseStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationDispenseStatusEnum.java deleted file mode 100644 index e3855a669eb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationDispenseStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationDispenseStatusEnum { - - /** - * Code Value: in progress - * - * The dispense has started but has not yet completed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: on hold - * - * Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the dispense have occurred. - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: entered in error - * - * The dispense was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: stopped - * - * Actions implied by the dispense have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-dispense-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-dispense-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-dispense-status"; - - /** - * Name for this Value Set: - * MedicationDispenseStatus - */ - public static final String VALUESET_NAME = "MedicationDispenseStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationDispenseStatusEnum next : MedicationDispenseStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationDispenseStatusEnum forCode(String theCode) { - MedicationDispenseStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationDispenseStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationDispenseStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationDispenseStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationDispenseStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationDispenseStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationKindEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationKindEnum.java deleted file mode 100644 index 4a3dbaae5e8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationKindEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationKindEnum { - - /** - * Code Value: product - * - * The medication is a product. - */ - PRODUCT("product", "http://hl7.org/fhir/medication-kind"), - - /** - * Code Value: package - * - * The medication is a package - a contained group of one of more products. - */ - PACKAGE("package", "http://hl7.org/fhir/medication-kind"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-kind - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-kind"; - - /** - * Name for this Value Set: - * MedicationKind - */ - public static final String VALUESET_NAME = "MedicationKind"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationKindEnum next : MedicationKindEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationKindEnum forCode(String theCode) { - MedicationKindEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationKindEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationKindEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationKindEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationKindEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationKindEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationPrescriptionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationPrescriptionStatusEnum.java deleted file mode 100644 index f4614b2a367..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MedicationPrescriptionStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationPrescriptionStatusEnum { - - /** - * Code Value: active - * - * The prescription is 'actionable', but not all actions that are implied by it have occurred yet. - */ - ACTIVE("active", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: on hold - * - * Actions implied by the prescription have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the prescription have occurred (this will rarely be made explicit). - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: entered in error - * - * The prescription was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: stopped - * - * Actions implied by the prescription have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: superceded - * - * The prescription was replaced by a newer one, which encompasses all the information in the previous one. - */ - SUPERCEDED("superceded", "http://hl7.org/fhir/medication-prescription-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-prescription-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-prescription-status"; - - /** - * Name for this Value Set: - * MedicationPrescriptionStatus - */ - public static final String VALUESET_NAME = "MedicationPrescriptionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationPrescriptionStatusEnum next : MedicationPrescriptionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationPrescriptionStatusEnum forCode(String theCode) { - MedicationPrescriptionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationPrescriptionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationPrescriptionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationPrescriptionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationPrescriptionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationPrescriptionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageEventEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageEventEnum.java deleted file mode 100644 index 757c1b5b0a8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageEventEnum.java +++ /dev/null @@ -1,200 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageEventEnum { - - /** - * Code Value: MedicationAdministration-Complete - * - * Change the status of a Medication Administration to show that it is complete. - */ - MEDICATIONADMINISTRATION_COMPLETE("MedicationAdministration-Complete", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Nullification - * - * Someone wishes to record that the record of administration of a medication is in error and should be ignored. - */ - MEDICATIONADMINISTRATION_NULLIFICATION("MedicationAdministration-Nullification", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Recording - * - * Indicates that a medication has been recorded against the patient's record. - */ - MEDICATIONADMINISTRATION_RECORDING("MedicationAdministration-Recording", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Update - * - * Update a Medication Administration record. - */ - MEDICATIONADMINISTRATION_UPDATE("MedicationAdministration-Update", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: admin-notify - * - * Notification that a patient or other administrative resource as been created or updated. - */ - ADMIN_NOTIFY("admin-notify", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: conceptmap-translate - * - * Translate a code from one value set to another, based on the existing value set and concept maps resources, and/or other additional knowledge available to the server. The coded value is carried as an extension in the message header. The outcome is an operationOutcome with hints, warnings, or errors, or the translated code in an extension. - */ - CONCEPTMAP_TRANSLATE("conceptmap-translate", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: diagnosticreport-provide - * - * Provide a diagnostic report, or update a previously provided diagnostic report. - */ - DIAGNOSTICREPORT_PROVIDE("diagnosticreport-provide", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: observation-provide - * - * Provide a simple observation or update a previously provided simple observation. - */ - OBSERVATION_PROVIDE("observation-provide", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: patient-link - * - * Notification that two patient records actually identify the same patient. - */ - PATIENT_LINK("patient-link", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: patient-unlink - * - * Notification that previous advice that two patient records concern the same patient is now considered incorrect. - */ - PATIENT_UNLINK("patient-unlink", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: query - * - * Request to perform a query according to the attached query resource. - */ - QUERY("query", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: query-response - * - * Response with the result of processing the query. - */ - QUERY_RESPONSE("query-response", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: valueset-expand - * - * The definition of a value set is used to create a simple collection of codes suitable for use for data entry or validation. An expanded value set will be returned, or an error message. - */ - VALUESET_EXPAND("valueset-expand", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: valueset-validate - * - * Validate that a coded value is in the set of codes allowed by a value set. The coded value is carried as an extension in the message header. The outcome is an OperationOutcome with hints, warnings, or errors. - */ - VALUESET_VALIDATE("valueset-validate", "http://hl7.org/fhir/message-events"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-events - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-events"; - - /** - * Name for this Value Set: - * MessageEvent - */ - public static final String VALUESET_NAME = "MessageEvent"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageEventEnum next : MessageEventEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageEventEnum forCode(String theCode) { - MessageEventEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageEventEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageEventEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageEventEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageEventEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageEventEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageSignificanceCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageSignificanceCategoryEnum.java deleted file mode 100644 index 3c8c0e9218c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageSignificanceCategoryEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageSignificanceCategoryEnum { - - /** - * Code Value: Consequence - * - * The message represents/requests a change that should not be processed more than once. E.g. Making a booking for an appointment. - */ - CONSEQUENCE("Consequence", "http://hl7.org/fhir/message-significance-category"), - - /** - * Code Value: Currency - * - * The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful. - */ - CURRENCY("Currency", "http://hl7.org/fhir/message-significance-category"), - - /** - * Code Value: Notification - * - * The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications. - */ - NOTIFICATION("Notification", "http://hl7.org/fhir/message-significance-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-significance-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-significance-category"; - - /** - * Name for this Value Set: - * MessageSignificanceCategory - */ - public static final String VALUESET_NAME = "MessageSignificanceCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageSignificanceCategoryEnum next : MessageSignificanceCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageSignificanceCategoryEnum forCode(String theCode) { - MessageSignificanceCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageSignificanceCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageSignificanceCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageSignificanceCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageSignificanceCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageSignificanceCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageTransportEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageTransportEnum.java deleted file mode 100644 index 0c8d5c56603..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/MessageTransportEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageTransportEnum { - - /** - * Code Value: http - * - * The application sends or receives messages using HTTP POST (may be over http or https). - */ - HTTP("http", "http://hl7.org/fhir/message-transport"), - - /** - * Code Value: ftp - * - * The application sends or receives messages using File Transfer Protocol. - */ - FTP("ftp", "http://hl7.org/fhir/message-transport"), - - /** - * Code Value: mllp - * - * The application sends or receivers messages using HL7's Minimal Lower Level Protocol. - */ - MLLP("mllp", "http://hl7.org/fhir/message-transport"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-transport - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-transport"; - - /** - * Name for this Value Set: - * MessageTransport - */ - public static final String VALUESET_NAME = "MessageTransport"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageTransportEnum next : MessageTransportEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageTransportEnum forCode(String theCode) { - MessageTransportEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageTransportEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageTransportEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageTransportEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageTransportEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageTransportEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ModalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ModalityEnum.java deleted file mode 100644 index 6d18d8b7b8a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ModalityEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ModalityEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/modality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/modality"; - - /** - * Name for this Value Set: - * Modality - */ - public static final String VALUESET_NAME = "Modality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ModalityEnum next : ModalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ModalityEnum forCode(String theCode) { - ModalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ModalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ModalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ModalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ModalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ModalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NameUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NameUseEnum.java deleted file mode 100644 index 31355d5570c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NameUseEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NameUseEnum { - - /** - * Code Value: usual - * - * Known as/conventional/the one you normally use. - */ - USUAL("usual", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: official - * - * The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called "legal name". - */ - OFFICIAL("official", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: temp - * - * A temporary name. Name.period can provide more detailed information. This may also be used for temporary names assigned at birth or in emergency situations. - */ - TEMP("temp", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: nickname - * - * A name that is used to address the person in an informal manner, but is not part of their formal or usual name. - */ - NICKNAME("nickname", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: anonymous - * - * Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons). - */ - ANONYMOUS("anonymous", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: old - * - * This name is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: maiden - * - * A name used prior to marriage. Marriage naming customs vary greatly around the world. This name use is for use by applications that collect and store "maiden" names. Though the concept of maiden name is often gender specific, the use of this term is not gender specific. The use of this term does not imply any particular history for a person's name, nor should the maiden name be determined algorithmically. - */ - MAIDEN("maiden", "http://hl7.org/fhir/name-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/name-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/name-use"; - - /** - * Name for this Value Set: - * NameUse - */ - public static final String VALUESET_NAME = "NameUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NameUseEnum next : NameUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NameUseEnum forCode(String theCode) { - NameUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NameUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NameUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NameUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NameUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NameUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceIdentifierTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceIdentifierTypeEnum.java deleted file mode 100644 index 32b2fdd33c9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceIdentifierTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NamespaceIdentifierTypeEnum { - - /** - * Code Value: oid - * - * An ISO object identifier. E.g. 1.2.3.4.5. - */ - OID("oid", "http://hl7.org/fhir/namespace-identifier-type"), - - /** - * Code Value: uuid - * - * A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11. - */ - UUID("uuid", "http://hl7.org/fhir/namespace-identifier-type"), - - /** - * Code Value: uri - * - * A uniform resource identifier (ideally a URL - uniform resource locator). E.g. http://unitsofmeasure.org. - */ - URI("uri", "http://hl7.org/fhir/namespace-identifier-type"), - - /** - * Code Value: other - * - * Some other type of unique identifier. E.g HL7-assigned reserved string such as LN for LOINC. - */ - OTHER("other", "http://hl7.org/fhir/namespace-identifier-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/namespace-identifier-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/namespace-identifier-type"; - - /** - * Name for this Value Set: - * NamespaceIdentifierType - */ - public static final String VALUESET_NAME = "NamespaceIdentifierType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NamespaceIdentifierTypeEnum next : NamespaceIdentifierTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NamespaceIdentifierTypeEnum forCode(String theCode) { - NamespaceIdentifierTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NamespaceIdentifierTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NamespaceIdentifierTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NamespaceIdentifierTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NamespaceIdentifierTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NamespaceIdentifierTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceStatusEnum.java deleted file mode 100644 index f20427db95f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NamespaceStatusEnum { - - /** - * Code Value: proposed - * - * System has been submitted but not yet approved. - */ - PROPOSED("proposed", "http://hl7.org/fhir/namespace-status"), - - /** - * Code Value: active - * - * System is valid for use. - */ - ACTIVE("active", "http://hl7.org/fhir/namespace-status"), - - /** - * Code Value: retired - * - * System should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/namespace-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/namespace-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/namespace-status"; - - /** - * Name for this Value Set: - * NamespaceStatus - */ - public static final String VALUESET_NAME = "NamespaceStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NamespaceStatusEnum next : NamespaceStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NamespaceStatusEnum forCode(String theCode) { - NamespaceStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NamespaceStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NamespaceStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NamespaceStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NamespaceStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NamespaceStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceTypeEnum.java deleted file mode 100644 index ff5fd87ce9d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NamespaceTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NamespaceTypeEnum { - - /** - * Code Value: codesystem - * - * The namespace is used to define concepts and symbols to represent those concepts. E.g. UCUM, LOINC, NDC code, local lab codes, etc. - */ - CODESYSTEM("codesystem", "http://hl7.org/fhir/namespace-type"), - - /** - * Code Value: identifier - * - * The namespace is used to manage identifiers (e.g. license numbers, order numbers, etc.). - */ - IDENTIFIER("identifier", "http://hl7.org/fhir/namespace-type"), - - /** - * Code Value: root - * - * The namespace is used as the root for other identifiers and namespaces. - */ - ROOT("root", "http://hl7.org/fhir/namespace-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/namespace-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/namespace-type"; - - /** - * Name for this Value Set: - * NamespaceType - */ - public static final String VALUESET_NAME = "NamespaceType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NamespaceTypeEnum next : NamespaceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NamespaceTypeEnum forCode(String theCode) { - NamespaceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NamespaceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NamespaceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NamespaceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NamespaceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NamespaceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NutrientModifierEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NutrientModifierEnum.java deleted file mode 100644 index 397c953106b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NutrientModifierEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NutrientModifierEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/nutrient-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/nutrient-code"; - - /** - * Name for this Value Set: - * NutrientModifier - */ - public static final String VALUESET_NAME = "NutrientModifier"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NutrientModifierEnum next : NutrientModifierEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NutrientModifierEnum forCode(String theCode) { - NutrientModifierEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NutrientModifierEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NutrientModifierEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NutrientModifierEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NutrientModifierEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NutrientModifierEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NutritionOrderStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NutritionOrderStatusEnum.java deleted file mode 100644 index c70f08355b3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/NutritionOrderStatusEnum.java +++ /dev/null @@ -1,142 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NutritionOrderStatusEnum { - - /** - * Display: Requested
- * Code Value: requested - * - * TODO. - */ - REQUESTED("requested", "http://hl7.org/fhir/nutrition-order-status"), - - /** - * Display: Active
- * Code Value: active - * - * TODO. - */ - ACTIVE("active", "http://hl7.org/fhir/nutrition-order-status"), - - /** - * Display: Inactive
- * Code Value: inactive - * - * TODO. - */ - INACTIVE("inactive", "http://hl7.org/fhir/nutrition-order-status"), - - /** - * Display: Held
- * Code Value: held - * - * TODO. - */ - HELD("held", "http://hl7.org/fhir/nutrition-order-status"), - - /** - * Display: Cancelled
- * Code Value: cancelled - * - * TODO. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/nutrition-order-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/nutrition-order-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/nutrition-order-status"; - - /** - * Name for this Value Set: - * NutritionOrderStatus - */ - public static final String VALUESET_NAME = "NutritionOrderStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NutritionOrderStatusEnum next : NutritionOrderStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NutritionOrderStatusEnum forCode(String theCode) { - NutritionOrderStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NutritionOrderStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NutritionOrderStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NutritionOrderStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NutritionOrderStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NutritionOrderStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationInterpretationCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationInterpretationCodesEnum.java deleted file mode 100644 index 807db24c581..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationInterpretationCodesEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationInterpretationCodesEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-interpretation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-interpretation"; - - /** - * Name for this Value Set: - * Observation Interpretation Codes - */ - public static final String VALUESET_NAME = "Observation Interpretation Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationInterpretationCodesEnum next : ObservationInterpretationCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationInterpretationCodesEnum forCode(String theCode) { - ObservationInterpretationCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationInterpretationCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationInterpretationCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationInterpretationCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationInterpretationCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationInterpretationCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationRelationshipTypeEnum.java deleted file mode 100644 index 8a579c15077..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationRelationshipTypeEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationRelationshipTypeEnum { - - /** - * Code Value: has-component - * - * The target observation is a component of this observation (e.g. Systolic and Diastolic Blood Pressure). - */ - HAS_COMPONENT("has-component", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: has-member - * - * This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group. - */ - HAS_MEMBER("has-member", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: derived-from - * - * The target observation is part of the information from which this observation value is derived (e.g. calculated anion gap, Apgar score). - */ - DERIVED_FROM("derived-from", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: sequel-to - * - * This observation follows the target observation (e.g. timed tests such as Glucose Tolerance Test). - */ - SEQUEL_TO("sequel-to", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: replaces - * - * This observation replaces a previous observation (i.e. a revised value). The target observation is now obsolete. - */ - REPLACES("replaces", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: qualified-by - * - * The value of the target observation qualifies (refines) the semantics of the source observation (e.g. a lipaemia measure target from a plasma measure). - */ - QUALIFIED_BY("qualified-by", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: interfered-by - * - * The value of the target observation interferes (degardes quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure which has no value). - */ - INTERFERED_BY("interfered-by", "http://hl7.org/fhir/observation-relationshiptypes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-relationshiptypes - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-relationshiptypes"; - - /** - * Name for this Value Set: - * ObservationRelationshipType - */ - public static final String VALUESET_NAME = "ObservationRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationRelationshipTypeEnum next : ObservationRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationRelationshipTypeEnum forCode(String theCode) { - ObservationRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationReliabilityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationReliabilityEnum.java deleted file mode 100644 index d41670e258b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationReliabilityEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationReliabilityEnum { - - /** - * Code Value: ok - * - * The result has no reliability concerns. - */ - OK("ok", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: ongoing - * - * An early estimate of value; measurement is still occurring. - */ - ONGOING("ongoing", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: early - * - * An early estimate of value; processing is still occurring. - */ - EARLY("early", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: questionable - * - * The observation value should be treated with care. - */ - QUESTIONABLE("questionable", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: calibrating - * - * The result has been generated while calibration is occurring. - */ - CALIBRATING("calibrating", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: error - * - * The observation could not be completed because of an error. - */ - ERROR("error", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: unknown - * - * No observation value was available. - */ - UNKNOWN("unknown", "http://hl7.org/fhir/observation-reliability"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-reliability - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-reliability"; - - /** - * Name for this Value Set: - * ObservationReliability - */ - public static final String VALUESET_NAME = "ObservationReliability"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationReliabilityEnum next : ObservationReliabilityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationReliabilityEnum forCode(String theCode) { - ObservationReliabilityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationReliabilityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationReliabilityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationReliabilityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationReliabilityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationReliabilityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationStatusEnum.java deleted file mode 100644 index b6eab019ec2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ObservationStatusEnum.java +++ /dev/null @@ -1,145 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationStatusEnum { - - /** - * Display: Registered
- * Code Value: registered - * - * The existence of the observation is registered, but there is no result yet available. - */ - REGISTERED("registered", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: preliminary - * - * This is an initial or interim observation: data may be incomplete or unverified. - */ - PRELIMINARY("preliminary", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: final - * - * The observation is complete and verified by an authorized person. - */ - FINAL("final", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: amended - * - * The observation has been modified subsequent to being Final, and is complete and verified by an authorized person. - */ - AMENDED("amended", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: cancelled - * - * The observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: entered in error - * - * The observation has been withdrawn following previous Final release. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/observation-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-status"; - - /** - * Name for this Value Set: - * ObservationStatus - */ - public static final String VALUESET_NAME = "ObservationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationStatusEnum next : ObservationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationStatusEnum forCode(String theCode) { - ObservationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OperationKindEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OperationKindEnum.java deleted file mode 100644 index 4c3804703a2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OperationKindEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OperationKindEnum { - - /** - * Code Value: operation - * - * This operation is invoked as an operation. - */ - OPERATION("operation", "http://hl7.org/fhir/operation-kind"), - - /** - * Code Value: query - * - * This operation is a named query, invoked using the search mechanism. - */ - QUERY("query", "http://hl7.org/fhir/operation-kind"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/operation-kind - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/operation-kind"; - - /** - * Name for this Value Set: - * OperationKind - */ - public static final String VALUESET_NAME = "OperationKind"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OperationKindEnum next : OperationKindEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OperationKindEnum forCode(String theCode) { - OperationKindEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OperationKindEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OperationKindEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OperationKindEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OperationKindEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OperationKindEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OperationParameterUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OperationParameterUseEnum.java deleted file mode 100644 index 60963a28235..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OperationParameterUseEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OperationParameterUseEnum { - - /** - * Code Value: in - * - * This is an input parameter. - */ - IN("in", "http://hl7.org/fhir/operation-parameter-use"), - - /** - * Code Value: out - * - * This is an output parameter. - */ - OUT("out", "http://hl7.org/fhir/operation-parameter-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/operation-parameter-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/operation-parameter-use"; - - /** - * Name for this Value Set: - * OperationParameterUse - */ - public static final String VALUESET_NAME = "OperationParameterUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OperationParameterUseEnum next : OperationParameterUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OperationParameterUseEnum forCode(String theCode) { - OperationParameterUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OperationParameterUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OperationParameterUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OperationParameterUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OperationParameterUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OperationParameterUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OrderOutcomeStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OrderOutcomeStatusEnum.java deleted file mode 100644 index a37c3bd699f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OrderOutcomeStatusEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OrderOutcomeStatusEnum { - - /** - * Code Value: pending - * - * The order is known, but no processing has occurred at this time. - */ - PENDING("pending", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: review - * - * The order is undergoing initial processing to determine whether it will be accepted (usually this involves human review). - */ - REVIEW("review", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: rejected - * - * The order was rejected because of a workflow/business logic reason. - */ - REJECTED("rejected", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: error - * - * The order was unable to be processed because of a technical error (i.e. unexpected error). - */ - ERROR("error", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: accepted - * - * The order has been accepted, and work is in progress. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: cancelled - * - * Processing the order was halted at the initiators request. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: aborted - * - * Processing the order was stopped because of some workflow/business logic reason. - */ - ABORTED("aborted", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: complete - * - * The order has been completed. - */ - COMPLETE("complete", "http://hl7.org/fhir/order-outcome-code"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/order-outcome-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/order-outcome-code"; - - /** - * Name for this Value Set: - * OrderOutcomeStatus - */ - public static final String VALUESET_NAME = "OrderOutcomeStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OrderOutcomeStatusEnum next : OrderOutcomeStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OrderOutcomeStatusEnum forCode(String theCode) { - OrderOutcomeStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OrderOutcomeStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OrderOutcomeStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OrderOutcomeStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OrderOutcomeStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OrderOutcomeStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OrganizationTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OrganizationTypeEnum.java deleted file mode 100644 index b9e224efaca..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/OrganizationTypeEnum.java +++ /dev/null @@ -1,156 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OrganizationTypeEnum { - - /** - * Display: Healthcare Provider
- * Code Value: prov - */ - HEALTHCARE_PROVIDER("prov", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Hospital Department
- * Code Value: dept - */ - HOSPITAL_DEPARTMENT("dept", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Intensive Care Unit
- * Code Value: icu - */ - INTENSIVE_CARE_UNIT("icu", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Organizational team
- * Code Value: team - */ - ORGANIZATIONAL_TEAM("team", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Federal Government
- * Code Value: fed - */ - FEDERAL_GOVERNMENT("fed", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Insurance Company
- * Code Value: ins - */ - INSURANCE_COMPANY("ins", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Educational Institute
- * Code Value: edu - */ - EDUCATIONAL_INSTITUTE("edu", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Religious Institution
- * Code Value: reli - */ - RELIGIOUS_INSTITUTION("reli", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Pharmacy
- * Code Value: pharm - */ - PHARMACY("pharm", "http://hl7.org/fhir/organization-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/organization-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/organization-type"; - - /** - * Name for this Value Set: - * OrganizationType - */ - public static final String VALUESET_NAME = "OrganizationType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OrganizationTypeEnum next : OrganizationTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OrganizationTypeEnum forCode(String theCode) { - OrganizationTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OrganizationTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OrganizationTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OrganizationTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OrganizationTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OrganizationTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantRequiredEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantRequiredEnum.java deleted file mode 100644 index c64fe0e33ad..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantRequiredEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipantRequiredEnum { - - /** - * Code Value: required - * - * The participant is required to attend the appointment. - */ - REQUIRED("required", "http://hl7.org/fhir/participantrequired"), - - /** - * Code Value: optional - * - * The participant may optionally attend the appointment. - */ - OPTIONAL("optional", "http://hl7.org/fhir/participantrequired"), - - /** - * Code Value: information-only - * - * The participant is not required to attend the appointment (appointment is about them, not for them). - */ - INFORMATION_ONLY("information-only", "http://hl7.org/fhir/participantrequired"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/participantrequired - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/participantrequired"; - - /** - * Name for this Value Set: - * ParticipantRequired - */ - public static final String VALUESET_NAME = "ParticipantRequired"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipantRequiredEnum next : ParticipantRequiredEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipantRequiredEnum forCode(String theCode) { - ParticipantRequiredEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipantRequiredEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipantRequiredEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipantRequiredEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipantRequiredEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipantRequiredEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantStatusEnum.java deleted file mode 100644 index 3880d46fb7b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipantStatusEnum { - - /** - * Code Value: accepted - * - * The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: declined - * - * The appointment participant has declined the appointment. - */ - DECLINED("declined", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: tentative - * - * The appointment participant has tentatively accepted the appointment. - */ - TENTATIVE("tentative", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: in-process - * - * The participant has in-process the appointment. - */ - IN_PROCESS("in-process", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: completed - * - * The participant has completed the appointment. - */ - COMPLETED("completed", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: needs-action - * - * This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment. - */ - NEEDS_ACTION("needs-action", "http://hl7.org/fhir/participantstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/participantstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/participantstatus"; - - /** - * Name for this Value Set: - * ParticipantStatus - */ - public static final String VALUESET_NAME = "ParticipantStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipantStatusEnum next : ParticipantStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipantStatusEnum forCode(String theCode) { - ParticipantStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipantStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipantStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipantStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipantStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipantStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantTypeEnum.java deleted file mode 100644 index 5e7ca651b0b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipantTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipantTypeEnum { - - /** - * Display: Translator
- * Code Value: translator - * - * A translator who is facilitating communication with the patient during the encounter - */ - TRANSLATOR("translator", "http://hl7.org/fhir/participant-type"), - - /** - * Display: Emergency
- * Code Value: emergency - * - * A person to be contacted in case of an emergency during the encounter - */ - EMERGENCY("emergency", "http://hl7.org/fhir/participant-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-participant-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-participant-type"; - - /** - * Name for this Value Set: - * ParticipantType - */ - public static final String VALUESET_NAME = "ParticipantType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipantTypeEnum next : ParticipantTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipantTypeEnum forCode(String theCode) { - ParticipantTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipantTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipantTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipantTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipantTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipantTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipationStatusEnum.java deleted file mode 100644 index a7f35abe70a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ParticipationStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipationStatusEnum { - - /** - * Code Value: accepted - * - * The participant has accepted the appointment. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: declined - * - * The participant has declined the appointment and will not participate in the appointment. - */ - DECLINED("declined", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: tentative - * - * The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur. - */ - TENTATIVE("tentative", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: in-process - * - * The participant has started the appointment. - */ - IN_PROCESS("in-process", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: completed - * - * The participant's involvement in the appointment has been completed. - */ - COMPLETED("completed", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: needs-action - * - * The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses. - */ - NEEDS_ACTION("needs-action", "http://hl7.org/fhir/participationstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/participationstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/participationstatus"; - - /** - * Name for this Value Set: - * ParticipationStatus - */ - public static final String VALUESET_NAME = "ParticipationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipationStatusEnum next : ParticipationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipationStatusEnum forCode(String theCode) { - ParticipationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PatientRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PatientRelationshipTypeEnum.java deleted file mode 100644 index d076a79170e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PatientRelationshipTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PatientRelationshipTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/relatedperson-relationshiptype - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/relatedperson-relationshiptype"; - - /** - * Name for this Value Set: - * PatientRelationshipType - */ - public static final String VALUESET_NAME = "PatientRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PatientRelationshipTypeEnum next : PatientRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PatientRelationshipTypeEnum forCode(String theCode) { - PatientRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PatientRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PatientRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PatientRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PatientRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PatientRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PractitionerRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PractitionerRoleEnum.java deleted file mode 100644 index b083ca857f4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PractitionerRoleEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PractitionerRoleEnum { - - /** - * Code Value: doctor - */ - DOCTOR("doctor", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: nurse - */ - NURSE("nurse", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: pharmacist - */ - PHARMACIST("pharmacist", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: researcher - */ - RESEARCHER("researcher", "http://hl7.org/fhir/practitioner-role"), - - /** - * Display: Teacher/educator
- * Code Value: teacher - */ - TEACHER_EDUCATOR("teacher", "http://hl7.org/fhir/practitioner-role"), - - /** - * Display: ICT professional
- * Code Value: ict - */ - ICT_PROFESSIONAL("ict", "http://hl7.org/fhir/practitioner-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/practitioner-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/practitioner-role"; - - /** - * Name for this Value Set: - * PractitionerRole - */ - public static final String VALUESET_NAME = "PractitionerRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PractitionerRoleEnum next : PractitionerRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PractitionerRoleEnum forCode(String theCode) { - PractitionerRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PractitionerRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PractitionerRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PractitionerRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PractitionerRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PractitionerRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PractitionerSpecialtyEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PractitionerSpecialtyEnum.java deleted file mode 100644 index d1807ed858d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PractitionerSpecialtyEnum.java +++ /dev/null @@ -1,132 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PractitionerSpecialtyEnum { - - /** - * Display: Cardiologist
- * Code Value: cardio - */ - CARDIOLOGIST("cardio", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Dentist
- * Code Value: dent - */ - DENTIST("dent", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Dietary consultant
- * Code Value: dietary - */ - DIETARY_CONSULTANT("dietary", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Midwife
- * Code Value: midw - */ - MIDWIFE("midw", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Systems architect
- * Code Value: sysarch - */ - SYSTEMS_ARCHITECT("sysarch", "http://hl7.org/fhir/practitioner-specialty"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/practitioner-specialty - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/practitioner-specialty"; - - /** - * Name for this Value Set: - * PractitionerSpecialty - */ - public static final String VALUESET_NAME = "PractitionerSpecialty"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PractitionerSpecialtyEnum next : PractitionerSpecialtyEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PractitionerSpecialtyEnum forCode(String theCode) { - PractitionerSpecialtyEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PractitionerSpecialtyEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PractitionerSpecialtyEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PractitionerSpecialtyEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PractitionerSpecialtyEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PractitionerSpecialtyEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PriorityCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PriorityCodesEnum.java deleted file mode 100644 index d0884b36e03..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PriorityCodesEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PriorityCodesEnum { - - /** - * Code Value: stat - */ - STAT("stat", "http://hl7.org/fhir/processpriority"), - - /** - * Code Value: normal - */ - NORMAL("normal", "http://hl7.org/fhir/processpriority"), - - /** - * Code Value: deferred - */ - DEFERRED("deferred", "http://hl7.org/fhir/processpriority"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/process-priority - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/process-priority"; - - /** - * Name for this Value Set: - * Priority Codes - */ - public static final String VALUESET_NAME = "Priority Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PriorityCodesEnum next : PriorityCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PriorityCodesEnum forCode(String theCode) { - PriorityCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PriorityCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PriorityCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PriorityCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PriorityCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PriorityCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ProcedureRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ProcedureRelationshipTypeEnum.java deleted file mode 100644 index fd801eefade..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ProcedureRelationshipTypeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ProcedureRelationshipTypeEnum { - - /** - * Code Value: caused-by - * - * This procedure had to be performed because of the related one. - */ - CAUSED_BY("caused-by", "http://hl7.org/fhir/procedure-relationship-type"), - - /** - * Code Value: because-of - * - * This procedure caused the related one to be performed. - */ - BECAUSE_OF("because-of", "http://hl7.org/fhir/procedure-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/procedure-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/procedure-relationship-type"; - - /** - * Name for this Value Set: - * ProcedureRelationshipType - */ - public static final String VALUESET_NAME = "ProcedureRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ProcedureRelationshipTypeEnum next : ProcedureRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ProcedureRelationshipTypeEnum forCode(String theCode) { - ProcedureRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ProcedureRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ProcedureRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ProcedureRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ProcedureRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ProcedureRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PropertyRepresentationEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PropertyRepresentationEnum.java deleted file mode 100644 index fe39f66b5dc..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/PropertyRepresentationEnum.java +++ /dev/null @@ -1,109 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PropertyRepresentationEnum { - - /** - * Code Value: xmlAttr - * - * In XML, this property is represented as an attribute not an element. - */ - XMLATTR("xmlAttr", "http://hl7.org/fhir/property-representation"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/property-representation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/property-representation"; - - /** - * Name for this Value Set: - * PropertyRepresentation - */ - public static final String VALUESET_NAME = "PropertyRepresentation"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PropertyRepresentationEnum next : PropertyRepresentationEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PropertyRepresentationEnum forCode(String theCode) { - PropertyRepresentationEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PropertyRepresentationEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PropertyRepresentationEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PropertyRepresentationEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PropertyRepresentationEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PropertyRepresentationEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ProvenanceEntityRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ProvenanceEntityRoleEnum.java deleted file mode 100644 index d354087b9e5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ProvenanceEntityRoleEnum.java +++ /dev/null @@ -1,109 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ProvenanceEntityRoleEnum { - - /** - * Code Value: derivation - * - * A transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a preexisting entity. - */ - DERIVATION("derivation", "http://hl7.org/fhir/provenance-entity-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/provenance-entity-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/provenance-entity-role"; - - /** - * Name for this Value Set: - * ProvenanceEntityRole - */ - public static final String VALUESET_NAME = "ProvenanceEntityRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ProvenanceEntityRoleEnum next : ProvenanceEntityRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ProvenanceEntityRoleEnum forCode(String theCode) { - ProvenanceEntityRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ProvenanceEntityRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ProvenanceEntityRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ProvenanceEntityRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ProvenanceEntityRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ProvenanceEntityRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuantityComparatorEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuantityComparatorEnum.java deleted file mode 100644 index 585e28b7fd4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuantityComparatorEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuantityComparatorEnum { - - /** - * Code Value: < - * - * The actual value is less than the given value. - */ - LESSTHAN("<", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: <= - * - * The actual value is less than or equal to the given value. - */ - LESSTHAN_OR_EQUALS("<=", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: >= - * - * The actual value is greater than or equal to the given value. - */ - GREATERTHAN_OR_EQUALS(">=", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: > - * - * The actual value is greater than the given value. - */ - GREATERTHAN(">", "http://hl7.org/fhir/quantity-comparator"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/quantity-comparator - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/quantity-comparator"; - - /** - * Name for this Value Set: - * QuantityComparator - */ - public static final String VALUESET_NAME = "QuantityComparator"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuantityComparatorEnum next : QuantityComparatorEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuantityComparatorEnum forCode(String theCode) { - QuantityComparatorEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuantityComparatorEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuantityComparatorEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuantityComparatorEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuantityComparatorEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuantityComparatorEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QueryOutcomeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QueryOutcomeEnum.java deleted file mode 100644 index 882a76127d4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QueryOutcomeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QueryOutcomeEnum { - - /** - * Code Value: ok - * - * The query was processed successfully. - */ - OK("ok", "http://hl7.org/fhir/query-outcome"), - - /** - * Code Value: limited - * - * The query was processed successfully, but some additional limitations were added. - */ - LIMITED("limited", "http://hl7.org/fhir/query-outcome"), - - /** - * Code Value: refused - * - * The server refused to process the query. - */ - REFUSED("refused", "http://hl7.org/fhir/query-outcome"), - - /** - * Code Value: error - * - * The server tried to process the query, but some error occurred. - */ - ERROR("error", "http://hl7.org/fhir/query-outcome"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/query-outcome - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/query-outcome"; - - /** - * Name for this Value Set: - * QueryOutcome - */ - public static final String VALUESET_NAME = "QueryOutcome"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QueryOutcomeEnum next : QueryOutcomeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QueryOutcomeEnum forCode(String theCode) { - QueryOutcomeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QueryOutcomeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QueryOutcomeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QueryOutcomeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QueryOutcomeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QueryOutcomeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuestionnaireAnswersStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuestionnaireAnswersStatusEnum.java deleted file mode 100644 index dc75d1c07c6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuestionnaireAnswersStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuestionnaireAnswersStatusEnum { - - /** - * Display: in progress
- * Code Value: in progress - * - * This QuestionnaireAnswers has been partially filled out with answers, but changes or additions are still expected to be made to it. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/questionnaire-answers-status"), - - /** - * Display: completed
- * Code Value: completed - * - * This QuestionnaireAnswers has been filled out with answers, and the current content is regarded as definitive. - */ - COMPLETED("completed", "http://hl7.org/fhir/questionnaire-answers-status"), - - /** - * Display: amended
- * Code Value: amended - * - * This QuestionnaireAnswers has been filled out with answers, then marked as complete, yet changes or additions have been made to it afterwards. - */ - AMENDED("amended", "http://hl7.org/fhir/questionnaire-answers-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/questionnaire-answers-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/questionnaire-answers-status"; - - /** - * Name for this Value Set: - * QuestionnaireAnswersStatus - */ - public static final String VALUESET_NAME = "QuestionnaireAnswersStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuestionnaireAnswersStatusEnum next : QuestionnaireAnswersStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuestionnaireAnswersStatusEnum forCode(String theCode) { - QuestionnaireAnswersStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuestionnaireAnswersStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuestionnaireAnswersStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuestionnaireAnswersStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuestionnaireAnswersStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuestionnaireAnswersStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuestionnaireStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuestionnaireStatusEnum.java deleted file mode 100644 index 82bb35369bf..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/QuestionnaireStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuestionnaireStatusEnum { - - /** - * Display: draft
- * Code Value: draft - * - * This Questionnaire is not ready for official use. - */ - DRAFT("draft", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: published
- * Code Value: published - * - * This Questionnaire is ready for use. - */ - PUBLISHED("published", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: retired
- * Code Value: retired - * - * This Questionnaire should no longer be used to gather data. - */ - RETIRED("retired", "http://hl7.org/fhir/questionnaire-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/questionnaire-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/questionnaire-status"; - - /** - * Name for this Value Set: - * QuestionnaireStatus - */ - public static final String VALUESET_NAME = "QuestionnaireStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuestionnaireStatusEnum next : QuestionnaireStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuestionnaireStatusEnum forCode(String theCode) { - QuestionnaireStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuestionnaireStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuestionnaireStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuestionnaireStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuestionnaireStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuestionnaireStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ReactionSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ReactionSeverityEnum.java deleted file mode 100644 index 0f10919c5e6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ReactionSeverityEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ReactionSeverityEnum { - - /** - * Code Value: severe - * - * Severe complications arose due to the reaction. - */ - SEVERE("severe", "http://hl7.org/fhir/reactionSeverity"), - - /** - * Code Value: serious - * - * Serious inconvenience to the subject. - */ - SERIOUS("serious", "http://hl7.org/fhir/reactionSeverity"), - - /** - * Code Value: moderate - * - * Moderate inconvenience to the subject. - */ - MODERATE("moderate", "http://hl7.org/fhir/reactionSeverity"), - - /** - * Code Value: minor - * - * Minor inconvenience to the subject. - */ - MINOR("minor", "http://hl7.org/fhir/reactionSeverity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reactionSeverity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reactionSeverity"; - - /** - * Name for this Value Set: - * ReactionSeverity - */ - public static final String VALUESET_NAME = "ReactionSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ReactionSeverityEnum next : ReactionSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ReactionSeverityEnum forCode(String theCode) { - ReactionSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ReactionSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ReactionSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ReactionSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ReactionSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ReactionSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ReferralStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ReferralStatusEnum.java deleted file mode 100644 index 9e44f6feb07..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ReferralStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ReferralStatusEnum { - - /** - * Code Value: draft - * - * A draft referral that has yet to be send. - */ - DRAFT("draft", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: sent - * - * The referral has been transmitted, but not yet acknowledged by the recipient. - */ - SENT("sent", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: active - * - * The referral has been acknowledged by the recipient, and is in the process of being actioned. - */ - ACTIVE("active", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: cancelled - * - * The referral has been cancelled without being completed. For example it is no longer needed. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: refused - * - * The recipient has declined to accept the referral. - */ - REFUSED("refused", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: completed - * - * The referral has been completely actioned. - */ - COMPLETED("completed", "http://hl7.org/fhir/referralstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/referralstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/referralstatus"; - - /** - * Name for this Value Set: - * ReferralStatus - */ - public static final String VALUESET_NAME = "ReferralStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ReferralStatusEnum next : ReferralStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ReferralStatusEnum forCode(String theCode) { - ReferralStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ReferralStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ReferralStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ReferralStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ReferralStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ReferralStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceDataElementStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceDataElementStatusEnum.java deleted file mode 100644 index 0d519299006..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceDataElementStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceDataElementStatusEnum { - - /** - * Code Value: draft - * - * This data element is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/resource-observation-def-status"), - - /** - * Code Value: active - * - * This data element is ready for normal use. - */ - ACTIVE("active", "http://hl7.org/fhir/resource-observation-def-status"), - - /** - * Code Value: retired - * - * This data element has been deprecated, withdrawn or superseded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/resource-observation-def-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-observation-def-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-observation-def-status"; - - /** - * Name for this Value Set: - * ResourceDataElementStatus - */ - public static final String VALUESET_NAME = "ResourceDataElementStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceDataElementStatusEnum next : ResourceDataElementStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceDataElementStatusEnum forCode(String theCode) { - ResourceDataElementStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceDataElementStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceDataElementStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceDataElementStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceDataElementStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceDataElementStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceProfileStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceProfileStatusEnum.java deleted file mode 100644 index 91583ca84b8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceProfileStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceProfileStatusEnum { - - /** - * Code Value: draft - * - * This profile is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/resource-profile-status"), - - /** - * Code Value: active - * - * This profile is ready for normal use. - */ - ACTIVE("active", "http://hl7.org/fhir/resource-profile-status"), - - /** - * Code Value: retired - * - * This profile has been deprecated, withdrawn or superseded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/resource-profile-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-profile-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-profile-status"; - - /** - * Name for this Value Set: - * ResourceProfileStatus - */ - public static final String VALUESET_NAME = "ResourceProfileStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceProfileStatusEnum next : ResourceProfileStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceProfileStatusEnum forCode(String theCode) { - ResourceProfileStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceProfileStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceProfileStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceProfileStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceProfileStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceProfileStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceTypeEnum.java deleted file mode 100644 index 3000c9e57d3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceTypeEnum.java +++ /dev/null @@ -1,578 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceTypeEnum { - - /** - * Code Value: AdverseReaction - * - * Records an unexpected reaction suspected to be related to the exposure of the reaction subject to a substance. - */ - ADVERSEREACTION("AdverseReaction", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: AdverseReactionRisk - * - * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance. - */ - ADVERSEREACTIONRISK("AdverseReactionRisk", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Alert - * - * Prospective warnings of potential issues when providing care to the patient. - */ - ALERT("Alert", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: AllergyIntolerance - * - * Indicates the patient has a susceptibility to an adverse reaction upon exposure to a specified substance. - */ - ALLERGYINTOLERANCE("AllergyIntolerance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Appointment - * - * A scheduled healthcare event for a patient and/or practitioner(s) where a service may take place at a specific date/time. - */ - APPOINTMENT("Appointment", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: AppointmentResponse - * - * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. - */ - APPOINTMENTRESPONSE("AppointmentResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Availability - * - * (informative) A container for slot(s) of time that may be available for booking appointments. - */ - AVAILABILITY("Availability", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Basic - * - * Basic is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest. - */ - BASIC("Basic", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: CarePlan - * - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - */ - CAREPLAN("CarePlan", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ClaimResponse - * - * This resource provides the adjudication details from the processing of a Claim resource. - */ - CLAIMRESPONSE("ClaimResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Composition - * - * A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. - */ - COMPOSITION("Composition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ConceptMap - * - * A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models. - */ - CONCEPTMAP("ConceptMap", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Condition - * - * Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary. - */ - CONDITION("Condition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Conformance - * - * A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation. - */ - CONFORMANCE("Conformance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Contract - * - * A formal agreement between parties regarding the conduct of business, exchange of information or other matters. - */ - CONTRACT("Contract", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Contraindication - * - * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient. E.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc. - */ - CONTRAINDICATION("Contraindication", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Coverage - * - * Financial instrument which may be used to pay for or reimburse for health care products and services. - */ - COVERAGE("Coverage", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DataElement - * - * The formal description of a single piece of information that can be gathered and reported. - */ - DATAELEMENT("DataElement", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Device - * - * This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. - */ - DEVICE("Device", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DeviceObservationReport - * - * Describes the data produced by a device at a point in time. - */ - DEVICEOBSERVATIONREPORT("DeviceObservationReport", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DiagnosticOrder - * - * A request for a diagnostic investigation service to be performed. - */ - DIAGNOSTICORDER("DiagnosticOrder", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DiagnosticReport - * - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports. - */ - DIAGNOSTICREPORT("DiagnosticReport", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DocumentManifest - * - * A manifest that defines a set of documents. - */ - DOCUMENTMANIFEST("DocumentManifest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DocumentReference - * - * A reference to a document. - */ - DOCUMENTREFERENCE("DocumentReference", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Encounter - * - * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. - */ - ENCOUNTER("Encounter", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: FamilyHistory - * - * Significant health events and conditions for people related to the subject relevant in the context of care for the subject. - */ - FAMILYHISTORY("FamilyHistory", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Group - * - * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization. - */ - GROUP("Group", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: HealthcareService - * - * (informative) The details of a Healthcare Service available at a location. - */ - HEALTHCARESERVICE("HealthcareService", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ImagingStudy - * - * Manifest of a set of images produced in study. The set of images may include every image in the study, or it may be an incomplete sample, such as a list of key images. - */ - IMAGINGSTUDY("ImagingStudy", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Immunization - * - * Immunization event information. - */ - IMMUNIZATION("Immunization", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ImmunizationRecommendation - * - * A patient's point-of-time immunization status and recommendation with optional supporting justification. - */ - IMMUNIZATIONRECOMMENDATION("ImmunizationRecommendation", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: List - * - * A set of information summarized from a list of other resources. - */ - LIST("List", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Location - * - * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated. - */ - LOCATION("Location", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Media - * - * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference. - */ - MEDIA("Media", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Medication - * - * Primarily used for identification and definition of Medication, but also covers ingredients and packaging. - */ - MEDICATION("Medication", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationAdministration - * - * Describes the event of a patient being given a dose of a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. - */ - MEDICATIONADMINISTRATION("MedicationAdministration", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationDispense - * - * Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication. - */ - MEDICATIONDISPENSE("MedicationDispense", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationPrescription - * - * An order for both supply of the medication and the instructions for administration of the medicine to a patient. - */ - MEDICATIONPRESCRIPTION("MedicationPrescription", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationStatement - * - * A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician. - */ - MEDICATIONSTATEMENT("MedicationStatement", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MessageHeader - * - * The header for a message exchange that is either requesting or responding to an action. The Reference(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. - */ - MESSAGEHEADER("MessageHeader", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Namespace - * - * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types. - */ - NAMESPACE("Namespace", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: NutritionOrder - * - * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. - */ - NUTRITIONORDER("NutritionOrder", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Observation - * - * Measurements and simple assertions made about a patient, device or other subject. - */ - OBSERVATION("Observation", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OperationDefinition - * - * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). - */ - OPERATIONDEFINITION("OperationDefinition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OperationOutcome - * - * A collection of error, warning or information messages that result from a system action. - */ - OPERATIONOUTCOME("OperationOutcome", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OralHealthClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - ORALHEALTHCLAIM("OralHealthClaim", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Order - * - * A request to perform an action. - */ - ORDER("Order", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OrderResponse - * - * A response to an order. - */ - ORDERRESPONSE("OrderResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Organization - * - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc. - */ - ORGANIZATION("Organization", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Other - * - * Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest. - */ - OTHER("Other", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Patient - * - * Demographics and other administrative information about a person or animal receiving care or other health-related services. - */ - PATIENT("Patient", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Practitioner - * - * A person who is directly or indirectly involved in the provisioning of healthcare. - */ - PRACTITIONER("Practitioner", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Procedure - * - * An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy. - */ - PROCEDURE("Procedure", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Profile - * - * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions. - */ - PROFILE("Profile", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Provenance - * - * Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance. - */ - PROVENANCE("Provenance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Query - * - * A description of a query with a set of parameters. - */ - QUERY("Query", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Questionnaire - * - * A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIRE("Questionnaire", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: QuestionnaireAnswers - * - * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIREANSWERS("QuestionnaireAnswers", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ReferralRequest - * - * Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organisation. - */ - REFERRALREQUEST("ReferralRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: RelatedPerson - * - * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. - */ - RELATEDPERSON("RelatedPerson", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: RiskAssessment - * - * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. - */ - RISKASSESSMENT("RiskAssessment", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: SecurityEvent - * - * A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage. - */ - SECURITYEVENT("SecurityEvent", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Slot - * - * (informative) A slot of time on a schedule that may be available for booking appointments. - */ - SLOT("Slot", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Specimen - * - * Sample for analysis. - */ - SPECIMEN("Specimen", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Subscription - * - * Todo. - */ - SUBSCRIPTION("Subscription", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Substance - * - * A homogeneous material with a definite composition. - */ - SUBSTANCE("Substance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Supply - * - * A supply - a request for something, and provision of what is supplied. - */ - SUPPLY("Supply", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ValueSet - * - * A value set specifies a set of codes drawn from one or more code systems. - */ - VALUESET("ValueSet", "http://hl7.org/fhir/resource-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-types"; - - /** - * Name for this Value Set: - * ResourceType - */ - public static final String VALUESET_NAME = "ResourceType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceTypeEnum next : ResourceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceTypeEnum forCode(String theCode) { - ResourceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceVersionPolicyEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceVersionPolicyEnum.java deleted file mode 100644 index 747f2ac52be..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResourceVersionPolicyEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceVersionPolicyEnum { - - /** - * Display: No VersionId Support
- * Code Value: no-version - * - * VersionId meta-property is not suppoerted (server) or used (client). - */ - NO_VERSIONID_SUPPORT("no-version", "http://hl7.org/fhir/versioning-policy"), - - /** - * Display: Versioned
- * Code Value: versioned - * - * VersionId meta-property is suppoerted (server) or used (client). - */ - VERSIONED("versioned", "http://hl7.org/fhir/versioning-policy"), - - /** - * Display: VersionId tracked fully
- * Code Value: versioned-update - * - * VersionId is must be correct for updates (server) or will be specified (If-match header) for updates (client). - */ - VERSIONID_TRACKED_FULLY("versioned-update", "http://hl7.org/fhir/versioning-policy"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/versioning-policy - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/versioning-policy"; - - /** - * Name for this Value Set: - * ResourceVersionPolicy - */ - public static final String VALUESET_NAME = "ResourceVersionPolicy"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceVersionPolicyEnum next : ResourceVersionPolicyEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceVersionPolicyEnum forCode(String theCode) { - ResourceVersionPolicyEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceVersionPolicyEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceVersionPolicyEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceVersionPolicyEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceVersionPolicyEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceVersionPolicyEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResponseTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResponseTypeEnum.java deleted file mode 100644 index a8c3feec249..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ResponseTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResponseTypeEnum { - - /** - * Code Value: ok - * - * The message was accepted and processed without error. - */ - OK("ok", "http://hl7.org/fhir/response-code"), - - /** - * Code Value: transient-error - * - * Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required. - */ - TRANSIENT_ERROR("transient-error", "http://hl7.org/fhir/response-code"), - - /** - * Code Value: fatal-error - * - * The message was rejected because of some content in it. There is no point in re-sending without change. The response narrative SHALL describe what the issue is. - */ - FATAL_ERROR("fatal-error", "http://hl7.org/fhir/response-code"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/response-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/response-code"; - - /** - * Name for this Value Set: - * ResponseType - */ - public static final String VALUESET_NAME = "ResponseType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResponseTypeEnum next : ResponseTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResponseTypeEnum forCode(String theCode) { - ResponseTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResponseTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResponseTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResponseTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResponseTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResponseTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/RestfulConformanceModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/RestfulConformanceModeEnum.java deleted file mode 100644 index 02bd3b9b70d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/RestfulConformanceModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RestfulConformanceModeEnum { - - /** - * Code Value: client - * - * The application acts as a server for this resource. - */ - CLIENT("client", "http://hl7.org/fhir/restful-conformance-mode"), - - /** - * Code Value: server - * - * The application acts as a client for this resource. - */ - SERVER("server", "http://hl7.org/fhir/restful-conformance-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/restful-conformance-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/restful-conformance-mode"; - - /** - * Name for this Value Set: - * RestfulConformanceMode - */ - public static final String VALUESET_NAME = "RestfulConformanceMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RestfulConformanceModeEnum next : RestfulConformanceModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RestfulConformanceModeEnum forCode(String theCode) { - RestfulConformanceModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RestfulConformanceModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RestfulConformanceModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RestfulConformanceModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RestfulConformanceModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RestfulConformanceModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/RestfulSecurityServiceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/RestfulSecurityServiceEnum.java deleted file mode 100644 index f97ee6f4ca9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/RestfulSecurityServiceEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RestfulSecurityServiceEnum { - - /** - * Code Value: OAuth - * - * OAuth (see oauth.net). - */ - OAUTH("OAuth", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: OAuth2 - * - * OAuth version 2 (see oauth.net). - */ - OAUTH2("OAuth2", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: NTLM - * - * Microsoft NTLM Authentication. - */ - NTLM("NTLM", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: Basic - * - * Basic authentication defined in HTTP specification. - */ - BASIC("Basic", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: Kerberos - * - * see http://www.ietf.org/rfc/rfc4120.txt. - */ - KERBEROS("Kerberos", "http://hl7.org/fhir/restful-security-service"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/restful-security-service - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/restful-security-service"; - - /** - * Name for this Value Set: - * RestfulSecurityService - */ - public static final String VALUESET_NAME = "RestfulSecurityService"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RestfulSecurityServiceEnum next : RestfulSecurityServiceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RestfulSecurityServiceEnum forCode(String theCode) { - RestfulSecurityServiceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RestfulSecurityServiceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RestfulSecurityServiceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RestfulSecurityServiceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RestfulSecurityServiceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RestfulSecurityServiceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SearchParamTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SearchParamTypeEnum.java deleted file mode 100644 index 2b50707b32a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SearchParamTypeEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SearchParamTypeEnum { - - /** - * Code Value: number - * - * Search parameter SHALL be a number (a whole number, or a decimal). - */ - NUMBER("number", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: date - * - * Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported. - */ - DATE("date", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: string - * - * Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces. - */ - STRING("string", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: token - * - * Search parameter on a coded element or identifier. May be used to search through the text, displayname, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a "|", depending on the modifier used. - */ - TOKEN("token", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: reference - * - * A reference to another resource. - */ - REFERENCE("reference", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: composite - * - * A composite search parameter that combines a search on two values together. - */ - COMPOSITE("composite", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: quantity - * - * A search parameter that searches on a quantity. - */ - QUANTITY("quantity", "http://hl7.org/fhir/search-param-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/search-param-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/search-param-type"; - - /** - * Name for this Value Set: - * SearchParamType - */ - public static final String VALUESET_NAME = "SearchParamType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SearchParamTypeEnum next : SearchParamTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SearchParamTypeEnum forCode(String theCode) { - SearchParamTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SearchParamTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SearchParamTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SearchParamTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SearchParamTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SearchParamTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventActionEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventActionEnum.java deleted file mode 100644 index bf5aefd0673..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventActionEnum.java +++ /dev/null @@ -1,142 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventActionEnum { - - /** - * Display: Create
- * Code Value: C - * - * Create a new database object, such as Placing an Order. - */ - CREATE("C", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Read/View/Print
- * Code Value: R - * - * Display or print data, such as a Doctor Census. - */ - READ_VIEW_PRINT("R", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Update
- * Code Value: U - * - * Update data, such as Revise Patient Information. - */ - UPDATE("U", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Delete
- * Code Value: D - * - * Delete items, such as a doctor master file record. - */ - DELETE("D", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Execute
- * Code Value: E - * - * Perform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation. - */ - EXECUTE("E", "http://hl7.org/fhir/security-event-action"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-action - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-action"; - - /** - * Name for this Value Set: - * SecurityEventAction - */ - public static final String VALUESET_NAME = "SecurityEventAction"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventActionEnum next : SecurityEventActionEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventActionEnum forCode(String theCode) { - SecurityEventActionEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventActionEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventActionEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventActionEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventActionEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventActionEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectLifecycleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectLifecycleEnum.java deleted file mode 100644 index 8d09a21e419..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectLifecycleEnum.java +++ /dev/null @@ -1,207 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectLifecycleEnum { - - /** - * Code Value: 1 - * - * Origination / Creation. - */ - ORIGINATION_OR_CREATION("1", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 2 - * - * Import / Copy from original. - */ - IMPORT_OR_COPY_FROM_ORIGINAL("2", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 3 - * - * Amendment. - */ - AMENDMENT("3", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 4 - * - * Verification. - */ - VERIFICATION("4", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 5 - * - * Translation. - */ - TRANSLATION("5", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 6 - * - * Access / Use. - */ - ACCESS_OR_USE("6", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 7 - * - * De-identification. - */ - DE_IDENTIFICATION("7", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 8 - * - * Aggregation, summarization, derivation. - */ - AGGREGATION("8", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 9 - * - * Report. - */ - REPORT("9", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 10 - * - * Export / Copy to target. - */ - EXPORT_OR_COPY_TO_TARGET("10", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 11 - * - * Disclosure. - */ - DISCLOSURE("11", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 12 - * - * Receipt of disclosure. - */ - RECEIPT_OF_DISCLOSURE("12", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 13 - * - * Archiving. - */ - ARCHIVING("13", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 14 - * - * Logical deletion. - */ - LOGICAL_DELETION("14", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 15 - * - * Permanent erasure / Physical destruction. - */ - PERMANENT_ERASURE_OR_PHYSICAL_DESTRUCTION("15", "http://hl7.org/fhir/object-lifecycle"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-lifecycle - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-lifecycle"; - - /** - * Name for this Value Set: - * SecurityEventObjectLifecycle - */ - public static final String VALUESET_NAME = "SecurityEventObjectLifecycle"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectLifecycleEnum next : SecurityEventObjectLifecycleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectLifecycleEnum forCode(String theCode) { - SecurityEventObjectLifecycleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectLifecycleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectLifecycleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectLifecycleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectLifecycleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectLifecycleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectRoleEnum.java deleted file mode 100644 index 64d60e0b4eb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectRoleEnum.java +++ /dev/null @@ -1,294 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectRoleEnum { - - /** - * Display: Patient
- * Code Value: 1 - * - * This object is the patient that is the subject of care related to this event. It is identifiable by patient ID or equivalent. The patient may be either human or animal. - */ - PATIENT("1", "http://hl7.org/fhir/object-role"), - - /** - * Display: Location
- * Code Value: 2 - * - * This is a location identified as related to the event. This is usually the location where the event took place. Note that for shipping, the usual events are arrival at a location or departure from a location. - */ - LOCATION("2", "http://hl7.org/fhir/object-role"), - - /** - * Display: Report
- * Code Value: 3 - * - * This object is any kind of persistent document created as a result of the event. This could be a paper report, film, electronic report, DICOM Study, etc. Issues related to medical records life cycle management are conveyed elsewhere. - */ - REPORT("3", "http://hl7.org/fhir/object-role"), - - /** - * Display: Resource
- * Code Value: 4 - * - * A logical object related to the event. (Deprecated). - */ - RESOURCE("4", "http://hl7.org/fhir/object-role"), - - /** - * Display: Master file
- * Code Value: 5 - * - * This is any configurable file used to control creation of documents. Examples include the objects maintained by the HL7 Master File transactions, Value Sets, etc. - */ - MASTER_FILE("5", "http://hl7.org/fhir/object-role"), - - /** - * Display: User
- * Code Value: 6 - * - * A human participant not otherwise identified by some other category. - */ - USER("6", "http://hl7.org/fhir/object-role"), - - /** - * Display: List
- * Code Value: 7 - * - * (deprecated). - */ - LIST("7", "http://hl7.org/fhir/object-role"), - - /** - * Display: Doctor
- * Code Value: 8 - * - * Typically a licensed person who is providing or performing care related to the event, generally a physician. The key distinction between doctor and practitioner is with regards to their role, not the licensing. The doctor is the human who actually performed the work. The practitioner is the human or organization that is responsible for the work. - */ - DOCTOR("8", "http://hl7.org/fhir/object-role"), - - /** - * Display: Subscriber
- * Code Value: 9 - * - * A person or system that is being notified as part of the event. This is relevant in situations where automated systems provide notifications to other parties when an event took place. - */ - SUBSCRIBER("9", "http://hl7.org/fhir/object-role"), - - /** - * Display: Guarantor
- * Code Value: 10 - * - * Insurance company, or any other organization who accepts responsibility for paying for the healthcare event. - */ - GUARANTOR("10", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security User Entity
- * Code Value: 11 - * - * A person or active system object involved in the event with a security role. - */ - SECURITY_USER_ENTITY("11", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security User Group
- * Code Value: 12 - * - * A person or system object involved in the event with the authority to modify security roles of other objects. - */ - SECURITY_USER_GROUP("12", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security Resource
- * Code Value: 13 - * - * A passive object, such as a role table, that is relevant to the event. - */ - SECURITY_RESOURCE("13", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security Granularity Definition
- * Code Value: 14 - * - * (deprecated) Relevant to certain RBAC security methodologies. - */ - SECURITY_GRANULARITY_DEFINITION("14", "http://hl7.org/fhir/object-role"), - - /** - * Display: Practitioner
- * Code Value: 15 - * - * Any person or organization responsible for providing care. This encompasses all forms of care, licensed or otherwise, and all sorts of teams and care groups. Note, the distinction between practitioners and the doctor that actually provided the care to the patient. - */ - PRACTITIONER("15", "http://hl7.org/fhir/object-role"), - - /** - * Display: Data Destination
- * Code Value: 16 - * - * The source or destination for data transfer, when it does not match some other role. - */ - DATA_DESTINATION("16", "http://hl7.org/fhir/object-role"), - - /** - * Display: Data Repository
- * Code Value: 17 - * - * A source or destination for data transfer, that acts as an archive, database, or similar role. - */ - DATA_REPOSITORY("17", "http://hl7.org/fhir/object-role"), - - /** - * Display: Schedule
- * Code Value: 18 - * - * An object that holds schedule information. This could be an appointment book, availability information, etc. - */ - SCHEDULE("18", "http://hl7.org/fhir/object-role"), - - /** - * Display: Customer
- * Code Value: 19 - * - * An organization or person that is the recipient of services. This could be an organization that is buying services for a patient, or a person that is buying services for an animal. - */ - CUSTOMER("19", "http://hl7.org/fhir/object-role"), - - /** - * Display: Job
- * Code Value: 20 - * - * An order, task, work item, procedure step, or other description of work to be performed. E.g., a particular instance of an MPPS. - */ - JOB("20", "http://hl7.org/fhir/object-role"), - - /** - * Display: Job Stream
- * Code Value: 21 - * - * A list of jobs or a system that provides lists of jobs. E.g., an MWL SCP. - */ - JOB_STREAM("21", "http://hl7.org/fhir/object-role"), - - /** - * Display: Table
- * Code Value: 22 - * - * (Deprecated). - */ - TABLE("22", "http://hl7.org/fhir/object-role"), - - /** - * Display: Routing Criteria
- * Code Value: 23 - * - * An object that specifies or controls the routing or delivery of items. For example, a distribution list is the routing criteria for mail. The items delivered may be documents, jobs, or other objects. - */ - ROUTING_CRITERIA("23", "http://hl7.org/fhir/object-role"), - - /** - * Display: Query
- * Code Value: 24 - * - * The contents of a query. This is used to capture the contents of any kind of query. For security surveillance purposes knowing the queries being made is very important. - */ - QUERY("24", "http://hl7.org/fhir/object-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-role"; - - /** - * Name for this Value Set: - * SecurityEventObjectRole - */ - public static final String VALUESET_NAME = "SecurityEventObjectRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectRoleEnum next : SecurityEventObjectRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectRoleEnum forCode(String theCode) { - SecurityEventObjectRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectSensitivityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectSensitivityEnum.java deleted file mode 100644 index 049b5832ce0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectSensitivityEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectSensitivityEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-sensitivity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-sensitivity"; - - /** - * Name for this Value Set: - * Security Event Object Sensitivity - */ - public static final String VALUESET_NAME = "Security Event Object Sensitivity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectSensitivityEnum next : SecurityEventObjectSensitivityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectSensitivityEnum forCode(String theCode) { - SecurityEventObjectSensitivityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectSensitivityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectSensitivityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectSensitivityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectSensitivityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectSensitivityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectTypeEnum.java deleted file mode 100644 index 2d3257a2e68..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventObjectTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectTypeEnum { - - /** - * Code Value: 1 - * - * Person. - */ - PERSON("1", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 2 - * - * System Object. - */ - SYSTEM_OBJECT("2", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 3 - * - * Organization. - */ - ORGANIZATION("3", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 4 - * - * Other. - */ - OTHER("4", "http://hl7.org/fhir/object-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-type"; - - /** - * Name for this Value Set: - * SecurityEventObjectType - */ - public static final String VALUESET_NAME = "SecurityEventObjectType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectTypeEnum next : SecurityEventObjectTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectTypeEnum forCode(String theCode) { - SecurityEventObjectTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventOutcomeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventOutcomeEnum.java deleted file mode 100644 index 57549440380..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventOutcomeEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventOutcomeEnum { - - /** - * Display: Success
- * Code Value: 0 - * - * The operation completed successfully (whether with warnings or not). - */ - SUCCESS("0", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Minor failure
- * Code Value: 4 - * - * The action was not successful due to some kind of catered for error (often equivalent to an HTTP 400 response). - */ - MINOR_FAILURE("4", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Serious failure
- * Code Value: 8 - * - * The action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response). - */ - SERIOUS_FAILURE("8", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Major failure
- * Code Value: 12 - * - * An error of such magnitude occurred that the system is not longer available for use (i.e. the system died). - */ - MAJOR_FAILURE("12", "http://hl7.org/fhir/security-event-outcome"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-outcome - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-outcome"; - - /** - * Name for this Value Set: - * SecurityEventOutcome - */ - public static final String VALUESET_NAME = "SecurityEventOutcome"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventOutcomeEnum next : SecurityEventOutcomeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventOutcomeEnum forCode(String theCode) { - SecurityEventOutcomeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventOutcomeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventOutcomeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventOutcomeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventOutcomeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventOutcomeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventParticipantNetworkTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventParticipantNetworkTypeEnum.java deleted file mode 100644 index 4ec78b14e2e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventParticipantNetworkTypeEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventParticipantNetworkTypeEnum { - - /** - * Code Value: 1 - * - * Machine Name, including DNS name. - */ - MACHINE_NAME("1", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 2 - * - * IP Address. - */ - IP_ADDRESS("2", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 3 - * - * Telephone Number. - */ - TELEPHONE_NUMBER("3", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 4 - * - * Email address. - */ - EMAIL_ADDRESS("4", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 5 - * - * URI (User directory, HTTP-PUT, ftp, etc.). - */ - URI("5", "http://hl7.org/fhir/network-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/network-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/network-type"; - - /** - * Name for this Value Set: - * SecurityEventParticipantNetworkType - */ - public static final String VALUESET_NAME = "SecurityEventParticipantNetworkType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventParticipantNetworkTypeEnum next : SecurityEventParticipantNetworkTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventParticipantNetworkTypeEnum forCode(String theCode) { - SecurityEventParticipantNetworkTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventParticipantNetworkTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventParticipantNetworkTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventParticipantNetworkTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventParticipantNetworkTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventParticipantNetworkTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventSourceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventSourceTypeEnum.java deleted file mode 100644 index ec999b6125b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SecurityEventSourceTypeEnum.java +++ /dev/null @@ -1,174 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventSourceTypeEnum { - - /** - * Display: User Device
- * Code Value: 1 - * - * End-user display device, diagnostic device - */ - USER_DEVICE("1", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Data Interface
- * Code Value: 2 - * - * Data acquisition device or instrument - */ - DATA_INTERFACE("2", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Web Server
- * Code Value: 3 - * - * Web Server process or thread - */ - WEB_SERVER("3", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Application Server
- * Code Value: 4 - * - * Application Server process or thread - */ - APPLICATION_SERVER("4", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Database Server
- * Code Value: 5 - * - * Database Server process or thread - */ - DATABASE_SERVER("5", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Security Server
- * Code Value: 6 - * - * Security server, e.g., a domain controller - */ - SECURITY_SERVER("6", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Network Device
- * Code Value: 7 - * - * ISO level 1-3 network component - */ - NETWORK_DEVICE("7", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Network Router
- * Code Value: 8 - * - * ISO level 4-6 operating software - */ - NETWORK_ROUTER("8", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Other
- * Code Value: 9 - * - * other kind of device (defined by DICOM, but some other code/system can be used) - */ - OTHER("9", "http://hl7.org/fhir/security-source-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-source-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-source-type"; - - /** - * Name for this Value Set: - * Security Event Source Type - */ - public static final String VALUESET_NAME = "Security Event Source Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventSourceTypeEnum next : SecurityEventSourceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventSourceTypeEnum forCode(String theCode) { - SecurityEventSourceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventSourceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventSourceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventSourceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventSourceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventSourceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SlicingRulesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SlicingRulesEnum.java deleted file mode 100644 index 27a5cb24b52..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SlicingRulesEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SlicingRulesEnum { - - /** - * Code Value: closed - * - * No additional content is allowed other than that described by the slices in this profile. - */ - CLOSED("closed", "http://hl7.org/fhir/resource-slicing-rules"), - - /** - * Code Value: open - * - * Additional content is allowed anywhere in the list. - */ - OPEN("open", "http://hl7.org/fhir/resource-slicing-rules"), - - /** - * Code Value: openAtEnd - * - * Additional content is allowed, but only at the end of the list. - */ - OPENATEND("openAtEnd", "http://hl7.org/fhir/resource-slicing-rules"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-slicing-rules - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-slicing-rules"; - - /** - * Name for this Value Set: - * SlicingRules - */ - public static final String VALUESET_NAME = "SlicingRules"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SlicingRulesEnum next : SlicingRulesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SlicingRulesEnum forCode(String theCode) { - SlicingRulesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SlicingRulesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SlicingRulesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SlicingRulesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SlicingRulesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SlicingRulesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SlotStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SlotStatusEnum.java deleted file mode 100644 index 5b6f1ed517c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SlotStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SlotStatusEnum { - - /** - * Code Value: BUSY - * - * Indicates that the time interval is busy because one or more events have been scheduled for that interval. - */ - BUSY("BUSY", "http://hl7.org/fhir/slotstatus"), - - /** - * Code Value: FREE - * - * Indicates that the time interval is free for scheduling. - */ - FREE("FREE", "http://hl7.org/fhir/slotstatus"), - - /** - * Code Value: BUSY-UNAVAILABLE - * - * Indicates that the time interval is busy and that the interval can not be scheduled. - */ - BUSY_UNAVAILABLE("BUSY-UNAVAILABLE", "http://hl7.org/fhir/slotstatus"), - - /** - * Code Value: BUSY-TENTATIVE - * - * Indicates that the time interval is busy because one or more events have been tentatively scheduled for that interval. - */ - BUSY_TENTATIVE("BUSY-TENTATIVE", "http://hl7.org/fhir/slotstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/slotstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/slotstatus"; - - /** - * Name for this Value Set: - * SlotStatus - */ - public static final String VALUESET_NAME = "SlotStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SlotStatusEnum next : SlotStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SlotStatusEnum forCode(String theCode) { - SlotStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SlotStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SlotStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SlotStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SlotStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SlotStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SpecimenCollectionMethodEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SpecimenCollectionMethodEnum.java deleted file mode 100644 index 44277d25dda..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SpecimenCollectionMethodEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SpecimenCollectionMethodEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/specimen-collection-method - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/specimen-collection-method"; - - /** - * Name for this Value Set: - * SpecimenCollectionMethod - */ - public static final String VALUESET_NAME = "SpecimenCollectionMethod"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SpecimenCollectionMethodEnum next : SpecimenCollectionMethodEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SpecimenCollectionMethodEnum forCode(String theCode) { - SpecimenCollectionMethodEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SpecimenCollectionMethodEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SpecimenCollectionMethodEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SpecimenCollectionMethodEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SpecimenCollectionMethodEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SpecimenCollectionMethodEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SpecimenTreatmentProcedureEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SpecimenTreatmentProcedureEnum.java deleted file mode 100644 index 9188114c305..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SpecimenTreatmentProcedureEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SpecimenTreatmentProcedureEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/specimen-treatment-procedure - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/specimen-treatment-procedure"; - - /** - * Name for this Value Set: - * SpecimenTreatmentProcedure - */ - public static final String VALUESET_NAME = "SpecimenTreatmentProcedure"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SpecimenTreatmentProcedureEnum next : SpecimenTreatmentProcedureEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SpecimenTreatmentProcedureEnum forCode(String theCode) { - SpecimenTreatmentProcedureEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SpecimenTreatmentProcedureEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SpecimenTreatmentProcedureEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SpecimenTreatmentProcedureEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SpecimenTreatmentProcedureEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SpecimenTreatmentProcedureEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubscriptionChannelTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubscriptionChannelTypeEnum.java deleted file mode 100644 index f869a66f207..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubscriptionChannelTypeEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SubscriptionChannelTypeEnum { - - /** - * Code Value: rest-hook - * - * The channel is executed by making a post to the URI. If a payload is included, the URL is interpreted as the service base, and an update (PUT) is made. - */ - REST_HOOK("rest-hook", "http://hl7.org/fhir/subscription-channel-type"), - - /** - * Code Value: websocket - * - * The channel is executed by sending a packet across a web socket connection maintained by the client. The URL identifies the websocket, and the client binds to this URL. - */ - WEBSOCKET("websocket", "http://hl7.org/fhir/subscription-channel-type"), - - /** - * Code Value: email - * - * The channel is executed by sending an email to the email addressed in the URI (which must be a mailto:). - */ - EMAIL("email", "http://hl7.org/fhir/subscription-channel-type"), - - /** - * Code Value: sms - * - * The channel is executed by sending an SMS message to the phone number identified in the URL (tel:). - */ - SMS("sms", "http://hl7.org/fhir/subscription-channel-type"), - - /** - * Code Value: message - * - * The channel Is executed by sending a message (e.g. a Bundle with a MessageHeader resource etc) to the application identified in the URI. - */ - MESSAGE("message", "http://hl7.org/fhir/subscription-channel-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/subscription-channel-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/subscription-channel-type"; - - /** - * Name for this Value Set: - * SubscriptionChannelType - */ - public static final String VALUESET_NAME = "SubscriptionChannelType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SubscriptionChannelTypeEnum next : SubscriptionChannelTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SubscriptionChannelTypeEnum forCode(String theCode) { - SubscriptionChannelTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SubscriptionChannelTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SubscriptionChannelTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SubscriptionChannelTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SubscriptionChannelTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SubscriptionChannelTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubscriptionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubscriptionStatusEnum.java deleted file mode 100644 index 15b41ef3ad1..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubscriptionStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SubscriptionStatusEnum { - - /** - * Code Value: requested - * - * The client has requested the subscription, and the server has not yet set it up. - */ - REQUESTED("requested", "http://hl7.org/fhir/subscription-status"), - - /** - * Code Value: active - * - * The subscription is active. - */ - ACTIVE("active", "http://hl7.org/fhir/subscription-status"), - - /** - * Code Value: error - * - * The server has an error executing the notification. - */ - ERROR("error", "http://hl7.org/fhir/subscription-status"), - - /** - * Code Value: off - * - * Too many errors have occurred or the subscription has expired. - */ - OFF("off", "http://hl7.org/fhir/subscription-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/subscription-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/subscription-status"; - - /** - * Name for this Value Set: - * SubscriptionStatus - */ - public static final String VALUESET_NAME = "SubscriptionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SubscriptionStatusEnum next : SubscriptionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SubscriptionStatusEnum forCode(String theCode) { - SubscriptionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SubscriptionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SubscriptionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SubscriptionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SubscriptionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SubscriptionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubstanceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubstanceTypeEnum.java deleted file mode 100644 index 0a8b1e0b793..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SubstanceTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SubstanceTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/substance-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/substance-type"; - - /** - * Name for this Value Set: - * Substance Type - */ - public static final String VALUESET_NAME = "Substance Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SubstanceTypeEnum next : SubstanceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SubstanceTypeEnum forCode(String theCode) { - SubstanceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SubstanceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SubstanceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SubstanceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SubstanceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SubstanceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplementTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplementTypeEnum.java deleted file mode 100644 index 6876b499ccf..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplementTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplementTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/supplement-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/supplement-type"; - - /** - * Name for this Value Set: - * SupplementType - */ - public static final String VALUESET_NAME = "SupplementType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplementTypeEnum next : SupplementTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplementTypeEnum forCode(String theCode) { - SupplementTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplementTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplementTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplementTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplementTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplementTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyDispenseStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyDispenseStatusEnum.java deleted file mode 100644 index 2c089bafe9a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyDispenseStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyDispenseStatusEnum { - - /** - * Display: In Progress
- * Code Value: in progress - * - * Supply has been requested, but not dispensed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - /** - * Display: Dispensed
- * Code Value: dispensed - * - * Supply is part of a pharmacy order and has been dispensed. - */ - DISPENSED("dispensed", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - /** - * Display: Abandoned
- * Code Value: abandoned - * - * Dispensing was not completed. - */ - ABANDONED("abandoned", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-supply-dispense-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-supply-dispense-status"; - - /** - * Name for this Value Set: - * SupplyDispenseStatus - */ - public static final String VALUESET_NAME = "SupplyDispenseStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyDispenseStatusEnum next : SupplyDispenseStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyDispenseStatusEnum forCode(String theCode) { - SupplyDispenseStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyDispenseStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyDispenseStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyDispenseStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyDispenseStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyDispenseStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyItemTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyItemTypeEnum.java deleted file mode 100644 index 04f38f3e578..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyItemTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyItemTypeEnum { - - /** - * Display: Central Supply
- * Code Value: medication - * - * Supply is a kind of medication. - */ - CENTRAL_SUPPLY("medication", "http://hl7.org/fhir/supply-item-type"), - - /** - * Display: Device
- * Code Value: device - * - * What is supplied (or requested) is a device - */ - DEVICE("device", "http://hl7.org/fhir/supply-item-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/supply-item - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/supply-item"; - - /** - * Name for this Value Set: - * Supply Item Type - */ - public static final String VALUESET_NAME = "Supply Item Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyItemTypeEnum next : SupplyItemTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyItemTypeEnum forCode(String theCode) { - SupplyItemTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyItemTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyItemTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyItemTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyItemTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyItemTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyStatusEnum.java deleted file mode 100644 index 08af35be750..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SupplyStatusEnum.java +++ /dev/null @@ -1,142 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyStatusEnum { - - /** - * Display: Requested
- * Code Value: requested - * - * Supply has been requested, but not dispensed. - */ - REQUESTED("requested", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Dispensed
- * Code Value: dispensed - * - * Supply is part of a pharmacy order and has been dispensed. - */ - DISPENSED("dispensed", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Received
- * Code Value: received - * - * Supply has been received by the requestor. - */ - RECEIVED("received", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Failed
- * Code Value: failed - * - * The supply will not be completed because the supplier was unable or unwilling to supply the item. - */ - FAILED("failed", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Cancelled
- * Code Value: cancelled - * - * The orderer of the supply cancelled the request. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/valueset-supply-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-supply-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-supply-status"; - - /** - * Name for this Value Set: - * SupplyStatus - */ - public static final String VALUESET_NAME = "SupplyStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyStatusEnum next : SupplyStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyStatusEnum forCode(String theCode) { - SupplyStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SystemRestfulInteractionEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SystemRestfulInteractionEnum.java deleted file mode 100644 index 24113f4a80e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/SystemRestfulInteractionEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SystemRestfulInteractionEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/system-restful-interaction - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/system-restful-interaction"; - - /** - * Name for this Value Set: - * SystemRestfulInteraction - */ - public static final String VALUESET_NAME = "SystemRestfulInteraction"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SystemRestfulInteractionEnum next : SystemRestfulInteractionEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SystemRestfulInteractionEnum forCode(String theCode) { - SystemRestfulInteractionEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SystemRestfulInteractionEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SystemRestfulInteractionEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SystemRestfulInteractionEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SystemRestfulInteractionEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SystemRestfulInteractionEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/TextureModifierEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/TextureModifierEnum.java deleted file mode 100644 index 50ad1584475..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/TextureModifierEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum TextureModifierEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/texture-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/texture-code"; - - /** - * Name for this Value Set: - * TextureModifier - */ - public static final String VALUESET_NAME = "TextureModifier"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (TextureModifierEnum next : TextureModifierEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public TextureModifierEnum forCode(String theCode) { - TextureModifierEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(TextureModifierEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(TextureModifierEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public TextureModifierEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public TextureModifierEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - TextureModifierEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/TypeRestfulInteractionEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/TypeRestfulInteractionEnum.java deleted file mode 100644 index 6ceebf48c4d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/TypeRestfulInteractionEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum TypeRestfulInteractionEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/type-restful-interaction - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/type-restful-interaction"; - - /** - * Name for this Value Set: - * TypeRestfulInteraction - */ - public static final String VALUESET_NAME = "TypeRestfulInteraction"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (TypeRestfulInteractionEnum next : TypeRestfulInteractionEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public TypeRestfulInteractionEnum forCode(String theCode) { - TypeRestfulInteractionEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(TypeRestfulInteractionEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(TypeRestfulInteractionEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public TypeRestfulInteractionEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public TypeRestfulInteractionEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - TypeRestfulInteractionEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/UnitsOfTimeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/UnitsOfTimeEnum.java deleted file mode 100644 index 9ffbe028ecc..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/UnitsOfTimeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum UnitsOfTimeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/units-of-time - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/units-of-time"; - - /** - * Name for this Value Set: - * UnitsOfTime - */ - public static final String VALUESET_NAME = "UnitsOfTime"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (UnitsOfTimeEnum next : UnitsOfTimeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public UnitsOfTimeEnum forCode(String theCode) { - UnitsOfTimeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(UnitsOfTimeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(UnitsOfTimeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public UnitsOfTimeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public UnitsOfTimeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - UnitsOfTimeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ValueSetStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ValueSetStatusEnum.java deleted file mode 100644 index c35ed2add44..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/valueset/ValueSetStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dev.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ValueSetStatusEnum { - - /** - * Display: Draft
- * Code Value: draft - * - * This valueset is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/valueset-status"), - - /** - * Display: Active
- * Code Value: active - * - * This valueset is ready for normal use. - */ - ACTIVE("active", "http://hl7.org/fhir/valueset-status"), - - /** - * Display: Retired
- * Code Value: retired - * - * This valueset has been withdrawn or superceded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/valueset-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-status"; - - /** - * Name for this Value Set: - * ValueSetStatus - */ - public static final String VALUESET_NAME = "ValueSetStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ValueSetStatusEnum next : ValueSetStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ValueSetStatusEnum forCode(String theCode) { - ValueSetStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ValueSetStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ValueSetStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ValueSetStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ValueSetStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ValueSetStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java deleted file mode 100644 index a2826300105..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java +++ /dev/null @@ -1,395 +0,0 @@ -package ca.uhn.fhir.model.dstu; - -/* - * #%L - * HAPI FHIR Structures - DSTU1 (FHIR v0.80) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import static org.apache.commons.lang3.StringUtils.*; - -import java.io.InputStream; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; - -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.text.WordUtils; -import org.hl7.fhir.instance.model.IBaseResource; - -import ca.uhn.fhir.context.BaseRuntimeChildDefinition; -import ca.uhn.fhir.context.BaseRuntimeDeclaredChildDefinition; -import ca.uhn.fhir.context.BaseRuntimeElementCompositeDefinition; -import ca.uhn.fhir.context.BaseRuntimeElementDefinition; -import ca.uhn.fhir.context.BaseRuntimeElementDefinition.ChildTypeEnum; -import ca.uhn.fhir.context.ConfigurationException; -import ca.uhn.fhir.context.FhirContext; -import ca.uhn.fhir.context.FhirVersionEnum; -import ca.uhn.fhir.context.RuntimeChildChoiceDefinition; -import ca.uhn.fhir.context.RuntimeChildCompositeDatatypeDefinition; -import ca.uhn.fhir.context.RuntimeChildContainedResources; -import ca.uhn.fhir.context.RuntimeChildDeclaredExtensionDefinition; -import ca.uhn.fhir.context.RuntimeChildPrimitiveDatatypeDefinition; -import ca.uhn.fhir.context.RuntimeChildResourceBlockDefinition; -import ca.uhn.fhir.context.RuntimeChildResourceDefinition; -import ca.uhn.fhir.context.RuntimeChildUndeclaredExtensionDefinition; -import ca.uhn.fhir.context.RuntimeCompositeDatatypeDefinition; -import ca.uhn.fhir.context.RuntimePrimitiveDatatypeDefinition; -import ca.uhn.fhir.context.RuntimeResourceBlockDefinition; -import ca.uhn.fhir.context.RuntimeResourceDefinition; -import ca.uhn.fhir.context.RuntimeResourceReferenceDefinition; -import ca.uhn.fhir.model.api.ICompositeDatatype; -import ca.uhn.fhir.model.api.IFhirVersion; -import ca.uhn.fhir.model.api.IPrimitiveDatatype; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.base.composite.BaseCodingDt; -import ca.uhn.fhir.model.base.composite.BaseContainedDt; -import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; -import ca.uhn.fhir.model.dstu.composite.ContainedDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.resource.Profile.ExtensionDefn; -import ca.uhn.fhir.model.dstu.resource.Profile.Structure; -import ca.uhn.fhir.model.dstu.resource.Profile.StructureElement; -import ca.uhn.fhir.model.dstu.resource.Profile.StructureElementDefinitionType; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.rest.server.IResourceProvider; -import ca.uhn.fhir.rest.server.IServerConformanceProvider; -import ca.uhn.fhir.rest.server.IVersionSpecificBundleFactory; -import ca.uhn.fhir.rest.server.RestfulServer; - -public class FhirDstu1 implements IFhirVersion { - - private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirDstu1.class); -// private Map myExtensionDefToCode = new HashMap(); - private String myId; - - - - private void fillBasics(StructureElement theElement, BaseRuntimeElementDefinition def, LinkedList path, BaseRuntimeDeclaredChildDefinition theChild) { - if (path.isEmpty()) { - path.add(def.getName()); - theElement.setName(def.getName()); - } else { - path.add(WordUtils.uncapitalize(theChild.getElementName())); - theElement.setName(theChild.getElementName()); - } - theElement.setPath(StringUtils.join(path, '.')); - } - - private void fillExtensions(Structure theStruct, LinkedList path, List extList, String elementName, boolean theIsModifier) { - if (extList.size() > 0) { - StructureElement extSlice = theStruct.addElement(); - extSlice.setName(elementName); - extSlice.setPath(join(path, '.') + '.' + elementName); - extSlice.getSlicing().getDiscriminator().setValue("url"); - extSlice.getSlicing().setOrdered(false); - extSlice.getSlicing().setRules(SlicingRulesEnum.OPEN); - extSlice.getDefinition().addType().setCode(DataTypeEnum.EXTENSION); - - for (RuntimeChildDeclaredExtensionDefinition nextExt : extList) { - StructureElement nextProfileExt = theStruct.addElement(); - nextProfileExt.getDefinition().setIsModifier(theIsModifier); - nextProfileExt.setName(extSlice.getName()); - nextProfileExt.setPath(extSlice.getPath()); - fillMinAndMaxAndDefinitions(nextExt, nextProfileExt); - StructureElementDefinitionType type = nextProfileExt.getDefinition().addType(); - type.setCode(DataTypeEnum.EXTENSION); - if (nextExt.isDefinedLocally()) { - type.setProfile(nextExt.getExtensionUrl().substring(nextExt.getExtensionUrl().indexOf('#'))); - } else { - type.setProfile(nextExt.getExtensionUrl()); - } - } - } else { - StructureElement extSlice = theStruct.addElement(); - extSlice.setName(elementName); - extSlice.setPath(join(path, '.') + '.' + elementName); - extSlice.getDefinition().setIsModifier(theIsModifier); - extSlice.getDefinition().addType().setCode(DataTypeEnum.EXTENSION); - extSlice.getDefinition().setMin(0); - extSlice.getDefinition().setMax("*"); - } - } - - private void fillMinAndMaxAndDefinitions(BaseRuntimeDeclaredChildDefinition child, StructureElement elem) { - elem.getDefinition().setMin(child.getMin()); - if (child.getMax() == Child.MAX_UNLIMITED) { - elem.getDefinition().setMax("*"); - } else { - elem.getDefinition().setMax(Integer.toString(child.getMax())); - } - - if (isNotBlank(child.getShortDefinition())) { - elem.getDefinition().getShort().setValue(child.getShortDefinition()); - } - if (isNotBlank(child.getFormalDefinition())) { - elem.getDefinition().getFormal().setValue(child.getFormalDefinition()); - } - } - - private void fillName(StructureElement elem, BaseRuntimeElementDefinition nextDef, String theServerBase) { - if (nextDef instanceof RuntimeResourceReferenceDefinition) { - RuntimeResourceReferenceDefinition rr = (RuntimeResourceReferenceDefinition) nextDef; - for (Class next : rr.getResourceTypes()) { - StructureElementDefinitionType type = elem.getDefinition().addType(); - type.getCode().setValue("ResourceReference"); - - if (next != IResource.class) { - @SuppressWarnings("unchecked") - RuntimeResourceDefinition resDef = rr.getDefinitionForResourceType((Class) next); - type.getProfile().setValueAsString(resDef.getResourceProfile(theServerBase)); - } - } - - return; - } - - StructureElementDefinitionType type = elem.getDefinition().addType(); - String name = nextDef.getName(); - DataTypeEnum fromCodeString = DataTypeEnum.VALUESET_BINDER.fromCodeString(name); - if (fromCodeString == null) { - throw new ConfigurationException("Unknown type: " + name); - } - type.setCode(fromCodeString); - } - - private void fillProfile(Structure theStruct, StructureElement theElement, BaseRuntimeElementDefinition def, LinkedList path, BaseRuntimeDeclaredChildDefinition theChild, String theServerBase) { - - fillBasics(theElement, def, path, theChild); - - String expectedPath = StringUtils.join(path, '.'); - - ourLog.debug("Filling profile for: {} - Path: {}", expectedPath); - String name = def.getName(); - if (!expectedPath.equals(name)) { - path.pollLast(); - theElement.getDefinition().getNameReference().setValue(def.getName()); - return; - } - - fillExtensions(theStruct, path, def.getExtensionsNonModifier(), "extension", false); - fillExtensions(theStruct, path, def.getExtensionsModifier(), "modifierExtension", true); - - if (def.getChildType() == ChildTypeEnum.RESOURCE) { - StructureElement narrative = theStruct.addElement(); - narrative.setName("text"); - narrative.setPath(join(path, '.') + ".text"); - narrative.getDefinition().addType().setCode(DataTypeEnum.NARRATIVE); - narrative.getDefinition().setIsModifier(false); - narrative.getDefinition().setMin(0); - narrative.getDefinition().setMax("1"); - - StructureElement contained = theStruct.addElement(); - contained.setName("contained"); - contained.setPath(join(path, '.') + ".contained"); - contained.getDefinition().addType().getCode().setValue("Resource"); - contained.getDefinition().setIsModifier(false); - contained.getDefinition().setMin(0); - contained.getDefinition().setMax("1"); - } - - if (def instanceof BaseRuntimeElementCompositeDefinition) { - BaseRuntimeElementCompositeDefinition cdef = ((BaseRuntimeElementCompositeDefinition) def); - for (BaseRuntimeChildDefinition nextChild : cdef.getChildren()) { - if (nextChild instanceof RuntimeChildUndeclaredExtensionDefinition) { - continue; - } - - BaseRuntimeDeclaredChildDefinition child = (BaseRuntimeDeclaredChildDefinition) nextChild; - StructureElement elem = theStruct.addElement(); - fillMinAndMaxAndDefinitions(child, elem); - - if (child instanceof RuntimeChildResourceBlockDefinition) { - RuntimeResourceBlockDefinition nextDef = (RuntimeResourceBlockDefinition) child.getSingleChildOrThrow(); - fillProfile(theStruct, elem, nextDef, path, child, theServerBase); - } else if (child instanceof RuntimeChildContainedResources) { - // ignore - } else if (child instanceof RuntimeChildDeclaredExtensionDefinition) { - throw new IllegalStateException("Unexpected child type: " + child.getClass().getCanonicalName()); - } else if (child instanceof RuntimeChildCompositeDatatypeDefinition || child instanceof RuntimeChildPrimitiveDatatypeDefinition || child instanceof RuntimeChildChoiceDefinition - || child instanceof RuntimeChildResourceDefinition) { - Iterator childNamesIter = child.getValidChildNames().iterator(); - String nextName = childNamesIter.next(); - BaseRuntimeElementDefinition nextDef = child.getChildByName(nextName); - fillBasics(elem, nextDef, path, child); - fillName(elem, nextDef, theServerBase); - while (childNamesIter.hasNext()) { - nextDef = child.getChildByName(childNamesIter.next()); - fillName(elem, nextDef, theServerBase); - } - path.pollLast(); - } else { - throw new IllegalStateException("Unexpected child type: " + child.getClass().getCanonicalName()); - } - - } - } else { - throw new IllegalStateException("Unexpected child type: " + def.getClass().getCanonicalName()); - } - - path.pollLast(); - } - - @Override - public IResource generateProfile(RuntimeResourceDefinition theRuntimeResourceDefinition, String theServerBase) { - Profile retVal = new Profile(); - - RuntimeResourceDefinition def = theRuntimeResourceDefinition; - - myId = def.getId(); - if (StringUtils.isBlank(myId)) { - myId = theRuntimeResourceDefinition.getName().toLowerCase(); - } - - retVal.setId(new IdDt(myId)); - - // Scan for extensions - scanForExtensions(retVal, def, new HashMap()); - Collections.sort(retVal.getExtensionDefn(), new Comparator() { - @Override - public int compare(ExtensionDefn theO1, ExtensionDefn theO2) { - return theO1.getCode().compareTo(theO2.getCode()); - } - }); - - // Scan for children - retVal.setName(def.getName()); - Structure struct = retVal.addStructure(); - LinkedList path = new LinkedList(); - - StructureElement element = struct.addElement(); - element.getDefinition().setMin(1); - element.getDefinition().setMax("1"); - fillProfile(struct, element, def, path, null, theServerBase); - - retVal.getStructure().get(0).getElement().get(0).getDefinition().addType().getCode().setValue("Resource"); - - return retVal; - } - - private Map scanForExtensions(Profile theProfile, BaseRuntimeElementDefinition def, Map theExtensionDefToCode) { - BaseRuntimeElementCompositeDefinition cdef = ((BaseRuntimeElementCompositeDefinition) def); - - for (RuntimeChildDeclaredExtensionDefinition nextChild : cdef.getExtensions()) { - if (theExtensionDefToCode.containsKey(nextChild)) { - continue; - } - - if (nextChild.isDefinedLocally() == false) { - continue; - } - - ExtensionDefn defn = theProfile.addExtensionDefn(); - String code = null; - if (nextChild.getExtensionUrl().contains("#") && !nextChild.getExtensionUrl().endsWith("#")) { - code = nextChild.getExtensionUrl().substring(nextChild.getExtensionUrl().indexOf('#') + 1); - } else { - throw new ConfigurationException("Locally defined extension has no '#[code]' part in extension URL: " + nextChild.getExtensionUrl()); - } - - defn.setCode(code); - if (theExtensionDefToCode.values().contains(code)) { - throw new IllegalStateException("Duplicate extension code: " + code); - } - theExtensionDefToCode.put(nextChild, code); - - if (nextChild.getChildType() != null && IPrimitiveDatatype.class.isAssignableFrom(nextChild.getChildType())) { - RuntimePrimitiveDatatypeDefinition pdef = (RuntimePrimitiveDatatypeDefinition) nextChild.getSingleChildOrThrow(); - defn.getDefinition().addType().setCode(DataTypeEnum.VALUESET_BINDER.fromCodeString(pdef.getName())); - } else if (nextChild.getChildType() != null && ICompositeDatatype.class.isAssignableFrom(nextChild.getChildType())) { - RuntimeCompositeDatatypeDefinition pdef = (RuntimeCompositeDatatypeDefinition) nextChild.getSingleChildOrThrow(); - defn.getDefinition().addType().setCode(DataTypeEnum.VALUESET_BINDER.fromCodeString(pdef.getName())); - } else { - RuntimeResourceBlockDefinition pdef = (RuntimeResourceBlockDefinition) nextChild.getSingleChildOrThrow(); - scanForExtensions(theProfile, pdef, theExtensionDefToCode); - - for (RuntimeChildDeclaredExtensionDefinition nextChildExt : pdef.getExtensions()) { - StructureElementDefinitionType type = defn.getDefinition().addType(); - type.setCode(DataTypeEnum.EXTENSION); - type.setProfile("#" + theExtensionDefToCode.get(nextChildExt)); - } - - } - } - - return theExtensionDefToCode; - } - - @Override - public IResourceProvider createServerProfilesProvider(RestfulServer theRestfulServer) { - throw new UnsupportedOperationException(); - } - - - @Override - public IServerConformanceProvider createServerConformanceProvider(RestfulServer theRestfulServer) { - throw new UnsupportedOperationException(); - } - - @Override - public FhirVersionEnum getVersion() { - return FhirVersionEnum.DSTU1; - } - - @Override - public InputStream getFhirVersionPropertiesFile() { - InputStream str = FhirDstu1.class.getResourceAsStream("/ca/uhn/fhir/model/dstu/fhirversion.properties"); - if (str == null) { - str = FhirDstu1.class.getResourceAsStream("ca/uhn/fhir/model/dstu/fhirversion.properties"); - } - if (str == null) { - throw new ConfigurationException("Can not find model property file on classpath: " + "/ca/uhn/fhir/model/dstu/model.properties"); - } - return str; - } - - - @Override - public String getPathToSchemaDefinitions() { - return "ca/uhn/fhir/model/dstu/schema"; - } - - @Override - public Class getResourceReferenceType() { - return ResourceReferenceDt.class; - } - - @Override - public Class getContainedType() { - return ContainedDt.class; - } - - @Override - public BaseCodingDt newCodingDt() { - return new ca.uhn.fhir.model.dstu.composite.CodingDt(); - } - - @Override - public IVersionSpecificBundleFactory newBundleFactory(FhirContext theContext) { - throw new UnsupportedOperationException(); - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AddressDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AddressDt.java deleted file mode 100644 index 8ab7bfbba49..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AddressDt.java +++ /dev/null @@ -1,673 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR AddressDt Datatype - * (A postal address) - * - *

- * Definition: - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world - *

- * - *

- * Requirements: - * Need to be able to record postal addresses, along with notes about their use - *

- */ -@DatatypeDef(name="AddressDt") -public class AddressDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public AddressDt() { - // nothing - } - - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="home | work | temp | old - purpose of this address", - formalDefinition="The purpose of this address" - ) - private BoundCodeDt myUse; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Text representation of the address", - formalDefinition="A full text representation of the address" - ) - private StringDt myText; - - @Child(name="line", type=StringDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Street name, number, direction & P.O. Box etc", - formalDefinition="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information" - ) - private java.util.List myLine; - - @Child(name="city", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Name of city, town etc.", - formalDefinition="The name of the city, town, village or other community or delivery center." - ) - private StringDt myCity; - - @Child(name="state", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Sub-unit of country (abreviations ok)", - formalDefinition="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." - ) - private StringDt myState; - - @Child(name="zip", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Postal code for area", - formalDefinition="A postal code designating a region defined by the postal service." - ) - private StringDt myZip; - - @Child(name="country", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Country (can be ISO 3166 3 letter code)", - formalDefinition="Country - a nation as commonly understood or generally accepted" - ) - private StringDt myCountry; - - @Child(name="period", type=PeriodDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Time period when address was/is in use", - formalDefinition="Time period when address was/is in use" - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myLine, myCity, myState, myZip, myCountry, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myText, myLine, myCity, myState, myZip, myCountry, myPeriod); - } - - /** - * Gets the value(s) for use (home | work | temp | old - purpose of this address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this address - *

- */ - public BoundCodeDt getUse() { - if (myUse == null) { - myUse = new BoundCodeDt(AddressUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (home | work | temp | old - purpose of this address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this address - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(AddressUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Sets the value(s) for use (home | work | temp | old - purpose of this address) - * - *

- * Definition: - * The purpose of this address - *

- */ - public AddressDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - /** - * Sets the value(s) for use (home | work | temp | old - purpose of this address) - * - *

- * Definition: - * The purpose of this address - *

- */ - public AddressDt setUse(AddressUseEnum theValue) { - getUse().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for text (Text representation of the address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the address - *

- */ - public StringDt getText() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (Text representation of the address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the address - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Sets the value(s) for text (Text representation of the address) - * - *

- * Definition: - * A full text representation of the address - *

- */ - public AddressDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - /** - * Sets the value for text (Text representation of the address) - * - *

- * Definition: - * A full text representation of the address - *

- */ - public AddressDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for line (Street name, number, direction & P.O. Box etc). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public java.util.List getLine() { - if (myLine == null) { - myLine = new java.util.ArrayList(); - } - return myLine; - } - - - /** - * Gets the value(s) for line (Street name, number, direction & P.O. Box etc). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public java.util.List getLineElement() { - if (myLine == null) { - myLine = new java.util.ArrayList(); - } - return myLine; - } - - - /** - * Sets the value(s) for line (Street name, number, direction & P.O. Box etc) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public AddressDt setLine(java.util.List theValue) { - myLine = theValue; - return this; - } - - /** - * Adds and returns a new value for line (Street name, number, direction & P.O. Box etc) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public StringDt addLine() { - StringDt newType = new StringDt(); - getLine().add(newType); - return newType; - } - - /** - * Gets the first repetition for line (Street name, number, direction & P.O. Box etc), - * creating it if it does not already exist. - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public StringDt getLineFirstRep() { - if (getLine().isEmpty()) { - return addLine(); - } - return getLine().get(0); - } - /** - * Adds a new value for line (Street name, number, direction & P.O. Box etc) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AddressDt addLine( String theString) { - if (myLine == null) { - myLine = new java.util.ArrayList(); - } - myLine.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for city (Name of city, town etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public StringDt getCity() { - if (myCity == null) { - myCity = new StringDt(); - } - return myCity; - } - - - /** - * Gets the value(s) for city (Name of city, town etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public StringDt getCityElement() { - if (myCity == null) { - myCity = new StringDt(); - } - return myCity; - } - - - /** - * Sets the value(s) for city (Name of city, town etc.) - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public AddressDt setCity(StringDt theValue) { - myCity = theValue; - return this; - } - - /** - * Sets the value for city (Name of city, town etc.) - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public AddressDt setCity( String theString) { - myCity = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for state (Sub-unit of country (abreviations ok)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public StringDt getState() { - if (myState == null) { - myState = new StringDt(); - } - return myState; - } - - - /** - * Gets the value(s) for state (Sub-unit of country (abreviations ok)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public StringDt getStateElement() { - if (myState == null) { - myState = new StringDt(); - } - return myState; - } - - - /** - * Sets the value(s) for state (Sub-unit of country (abreviations ok)) - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public AddressDt setState(StringDt theValue) { - myState = theValue; - return this; - } - - /** - * Sets the value for state (Sub-unit of country (abreviations ok)) - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public AddressDt setState( String theString) { - myState = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for zip (Postal code for area). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public StringDt getZip() { - if (myZip == null) { - myZip = new StringDt(); - } - return myZip; - } - - - /** - * Gets the value(s) for zip (Postal code for area). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public StringDt getZipElement() { - if (myZip == null) { - myZip = new StringDt(); - } - return myZip; - } - - - /** - * Sets the value(s) for zip (Postal code for area) - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public AddressDt setZip(StringDt theValue) { - myZip = theValue; - return this; - } - - /** - * Sets the value for zip (Postal code for area) - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public AddressDt setZip( String theString) { - myZip = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for country (Country (can be ISO 3166 3 letter code)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public StringDt getCountry() { - if (myCountry == null) { - myCountry = new StringDt(); - } - return myCountry; - } - - - /** - * Gets the value(s) for country (Country (can be ISO 3166 3 letter code)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public StringDt getCountryElement() { - if (myCountry == null) { - myCountry = new StringDt(); - } - return myCountry; - } - - - /** - * Sets the value(s) for country (Country (can be ISO 3166 3 letter code)) - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public AddressDt setCountry(StringDt theValue) { - myCountry = theValue; - return this; - } - - /** - * Sets the value for country (Country (can be ISO 3166 3 letter code)) - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public AddressDt setCountry( String theString) { - myCountry = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for period (Time period when address was/is in use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period when address was/is in use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Time period when address was/is in use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period when address was/is in use - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Time period when address was/is in use) - * - *

- * Definition: - * Time period when address was/is in use - *

- */ - public AddressDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AgeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AgeDt.java deleted file mode 100644 index ae6518a1012..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AgeDt.java +++ /dev/null @@ -1,30 +0,0 @@ -package ca.uhn.fhir.model.dstu.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; - -/* - * #%L - * HAPI FHIR Structures - DSTU1 (FHIR v0.80) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="AgeDt") -public class AgeDt extends QuantityDt { - - // TODO: implement restricions - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AttachmentDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AttachmentDt.java deleted file mode 100644 index 53c02431826..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/AttachmentDt.java +++ /dev/null @@ -1,582 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR AttachmentDt Datatype - * (Content in a format defined elsewhere) - * - *

- * Definition: - * For referring to data content defined in other formats. - *

- * - *

- * Requirements: - * Many models need to include data defined in other specifications that is complex and opaque to the healthcare model. This includes documents, media recordings, structured data, etc. - *

- */ -@DatatypeDef(name="AttachmentDt") -public class AttachmentDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public AttachmentDt() { - // nothing - } - - - @Child(name="contentType", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Mime type of the content, with charset etc.", - formalDefinition="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate" - ) - private CodeDt myContentType; - - @Child(name="language", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Human language of the content (BCP-47)", - formalDefinition="The human language of the content. The value can be any valid value according to BCP 47" - ) - private CodeDt myLanguage; - - @Child(name="data", type=Base64BinaryDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Data inline, base64ed", - formalDefinition="The actual data of the attachment - a sequence of bytes. In XML, represented using base64" - ) - private Base64BinaryDt myData; - - @Child(name="url", type=UriDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Uri where the data can be found", - formalDefinition="An alternative location where the data can be accessed" - ) - private UriDt myUrl; - - @Child(name="size", type=IntegerDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Number of bytes of content (if url provided)", - formalDefinition="The number of bytes of data that make up this attachment." - ) - private IntegerDt mySize; - - @Child(name="hash", type=Base64BinaryDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Hash of the data (sha-1, base64ed )", - formalDefinition="The calculated hash of the data using SHA-1. Represented using base64" - ) - private Base64BinaryDt myHash; - - @Child(name="title", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Label to display in place of the data", - formalDefinition="A label or set of text to display in place of the data" - ) - private StringDt myTitle; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle); - } - - /** - * Gets the value(s) for contentType (Mime type of the content, with charset etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public CodeDt getContentType() { - if (myContentType == null) { - myContentType = new CodeDt(); - } - return myContentType; - } - - - /** - * Gets the value(s) for contentType (Mime type of the content, with charset etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public CodeDt getContentTypeElement() { - if (myContentType == null) { - myContentType = new CodeDt(); - } - return myContentType; - } - - - /** - * Sets the value(s) for contentType (Mime type of the content, with charset etc.) - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public AttachmentDt setContentType(CodeDt theValue) { - myContentType = theValue; - return this; - } - - /** - * Sets the value for contentType (Mime type of the content, with charset etc.) - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public AttachmentDt setContentType( String theCode) { - myContentType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for language (Human language of the content (BCP-47)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public CodeDt getLanguage() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - - /** - * Gets the value(s) for language (Human language of the content (BCP-47)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public CodeDt getLanguageElement() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - - /** - * Sets the value(s) for language (Human language of the content (BCP-47)) - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public AttachmentDt setLanguage(CodeDt theValue) { - myLanguage = theValue; - return this; - } - - /** - * Sets the value for language (Human language of the content (BCP-47)) - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public AttachmentDt setLanguage( String theCode) { - myLanguage = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for data (Data inline, base64ed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public Base64BinaryDt getData() { - if (myData == null) { - myData = new Base64BinaryDt(); - } - return myData; - } - - - /** - * Gets the value(s) for data (Data inline, base64ed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public Base64BinaryDt getDataElement() { - if (myData == null) { - myData = new Base64BinaryDt(); - } - return myData; - } - - - /** - * Sets the value(s) for data (Data inline, base64ed) - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public AttachmentDt setData(Base64BinaryDt theValue) { - myData = theValue; - return this; - } - - /** - * Sets the value for data (Data inline, base64ed) - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public AttachmentDt setData( byte[] theBytes) { - myData = new Base64BinaryDt(theBytes); - return this; - } - - - /** - * Gets the value(s) for url (Uri where the data can be found). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public UriDt getUrl() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (Uri where the data can be found). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Sets the value(s) for url (Uri where the data can be found) - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public AttachmentDt setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - /** - * Sets the value for url (Uri where the data can be found) - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public AttachmentDt setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for size (Number of bytes of content (if url provided)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public IntegerDt getSize() { - if (mySize == null) { - mySize = new IntegerDt(); - } - return mySize; - } - - - /** - * Gets the value(s) for size (Number of bytes of content (if url provided)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public IntegerDt getSizeElement() { - if (mySize == null) { - mySize = new IntegerDt(); - } - return mySize; - } - - - /** - * Sets the value(s) for size (Number of bytes of content (if url provided)) - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public AttachmentDt setSize(IntegerDt theValue) { - mySize = theValue; - return this; - } - - /** - * Sets the value for size (Number of bytes of content (if url provided)) - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public AttachmentDt setSize( int theInteger) { - mySize = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for hash (Hash of the data (sha-1, base64ed )). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public Base64BinaryDt getHash() { - if (myHash == null) { - myHash = new Base64BinaryDt(); - } - return myHash; - } - - - /** - * Gets the value(s) for hash (Hash of the data (sha-1, base64ed )). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public Base64BinaryDt getHashElement() { - if (myHash == null) { - myHash = new Base64BinaryDt(); - } - return myHash; - } - - - /** - * Sets the value(s) for hash (Hash of the data (sha-1, base64ed )) - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public AttachmentDt setHash(Base64BinaryDt theValue) { - myHash = theValue; - return this; - } - - /** - * Sets the value for hash (Hash of the data (sha-1, base64ed )) - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public AttachmentDt setHash( byte[] theBytes) { - myHash = new Base64BinaryDt(theBytes); - return this; - } - - - /** - * Gets the value(s) for title (Label to display in place of the data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public StringDt getTitle() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Gets the value(s) for title (Label to display in place of the data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public StringDt getTitleElement() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Sets the value(s) for title (Label to display in place of the data) - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public AttachmentDt setTitle(StringDt theValue) { - myTitle = theValue; - return this; - } - - /** - * Sets the value for title (Label to display in place of the data) - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public AttachmentDt setTitle( String theString) { - myTitle = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/CodeableConceptDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/CodeableConceptDt.java deleted file mode 100644 index 42534d15697..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/CodeableConceptDt.java +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR CodeableConceptDt Datatype - * (Concept - reference to a terminology or just text) - * - *

- * Definition: - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text - *

- * - *

- * Requirements: - * This is a common pattern in healthcare - a concept that may be defined by one or more codes from formal definitions including LOINC and SNOMED CT, and/or defined by the provision of text that captures a human sense of the concept - *

- */ -@DatatypeDef(name="CodeableConceptDt") -public class CodeableConceptDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public CodeableConceptDt() { - // nothing - } - - /** - * Constructor which creates a CodeableConceptDt with one coding repetition, containing - * the given system and code - */ - public CodeableConceptDt(String theSystem, String theCode) { - addCoding().setSystem(theSystem).setCode(theCode); - } - - @Child(name="coding", type=CodingDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Code defined by a terminology system", - formalDefinition="A reference to a code defined by a terminology system" - ) - private java.util.List myCoding; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Plain text representation of the concept", - formalDefinition="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user" - ) - private StringDt myText; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCoding, myText); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCoding, myText); - } - - /** - * Gets the value(s) for coding (Code defined by a terminology system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public java.util.List getCoding() { - if (myCoding == null) { - myCoding = new java.util.ArrayList(); - } - return myCoding; - } - - - /** - * Gets the value(s) for coding (Code defined by a terminology system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public java.util.List getCodingElement() { - if (myCoding == null) { - myCoding = new java.util.ArrayList(); - } - return myCoding; - } - - - /** - * Sets the value(s) for coding (Code defined by a terminology system) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodeableConceptDt setCoding(java.util.List theValue) { - myCoding = theValue; - return this; - } - - /** - * Adds and returns a new value for coding (Code defined by a terminology system) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodingDt addCoding() { - CodingDt newType = new CodingDt(); - getCoding().add(newType); - return newType; - } - - /** - * Gets the first repetition for coding (Code defined by a terminology system), - * creating it if it does not already exist. - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodingDt getCodingFirstRep() { - if (getCoding().isEmpty()) { - return addCoding(); - } - return getCoding().get(0); - } - - /** - * Gets the value(s) for text (Plain text representation of the concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public StringDt getText() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (Plain text representation of the concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Sets the value(s) for text (Plain text representation of the concept) - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public CodeableConceptDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - /** - * Sets the value for text (Plain text representation of the concept) - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public CodeableConceptDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/CodingDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/CodingDt.java deleted file mode 100644 index a47d4b82c78..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/CodingDt.java +++ /dev/null @@ -1,495 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.util.List; - -import ca.uhn.fhir.model.api.ICompositeDatatype; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.base.composite.BaseCodingDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR CodingDt Datatype - * (A reference to a code defined by a terminology system) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- * - *

- * Requirements: - * References to codes are very common in healthcare models - *

- */ -@DatatypeDef(name="CodingDt") -public class CodingDt - extends BaseCodingDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public CodingDt() { - // nothing - } - - /** - * Creates a new Coding with the given system and code - */ - public CodingDt(String theSystem, String theCode) { - setSystem(theSystem); - setCode(theCode); - } - - /** - * Copy constructor: Creates a new Coding with the system and code copied out of the given coding - */ - public CodingDt(BaseCodingDt theCoding) { - this(theCoding.getSystemElement().getValueAsString(), theCoding.getCodeElement().getValue()); - } - - - @Child(name="system", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identity of the terminology system", - formalDefinition="The identification of the code system that defines the meaning of the symbol in the code." - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Version of the system - if relevant", - formalDefinition="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged" - ) - private StringDt myVersion; - - @Child(name="code", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Symbol in syntax defined by the system", - formalDefinition="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Representation defined by the system", - formalDefinition="A representation of the meaning of the code in the system, following the rules of the system." - ) - private StringDt myDisplay; - - @Child(name="primary", type=BooleanDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="If this code was chosen directly by the user", - formalDefinition="Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)" - ) - private BooleanDt myPrimary; - - @Child(name="valueSet", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.ValueSet.class }) - @Description( - shortDefinition="Set this coding was chosen from", - formalDefinition="The set of possible coded values this coding was chosen from or constrained by" - ) - private ResourceReferenceDt myValueSet; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet); - } - - /** - * Gets the value(s) for system (Identity of the terminology system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (Identity of the terminology system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (Identity of the terminology system) - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public CodingDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (Identity of the terminology system) - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public CodingDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (Version of the system - if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Version of the system - if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Version of the system - if relevant) - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public CodingDt setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Version of the system - if relevant) - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public CodingDt setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (Symbol in syntax defined by the system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodeDt getCode() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Symbol in syntax defined by the system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Symbol in syntax defined by the system) - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodingDt setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value for code (Symbol in syntax defined by the system) - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodingDt setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (Representation defined by the system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Representation defined by the system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Sets the value(s) for display (Representation defined by the system) - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public CodingDt setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (Representation defined by the system) - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public CodingDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for primary (If this code was chosen directly by the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public BooleanDt getPrimary() { - if (myPrimary == null) { - myPrimary = new BooleanDt(); - } - return myPrimary; - } - - - /** - * Gets the value(s) for primary (If this code was chosen directly by the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public BooleanDt getPrimaryElement() { - if (myPrimary == null) { - myPrimary = new BooleanDt(); - } - return myPrimary; - } - - - /** - * Sets the value(s) for primary (If this code was chosen directly by the user) - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public CodingDt setPrimary(BooleanDt theValue) { - myPrimary = theValue; - return this; - } - - /** - * Sets the value for primary (If this code was chosen directly by the user) - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public CodingDt setPrimary( boolean theBoolean) { - myPrimary = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for valueSet (Set this coding was chosen from). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

- */ - public ResourceReferenceDt getValueSet() { - if (myValueSet == null) { - myValueSet = new ResourceReferenceDt(); - } - return myValueSet; - } - - - /** - * Gets the value(s) for valueSet (Set this coding was chosen from). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

- */ - public ResourceReferenceDt getValueSetElement() { - if (myValueSet == null) { - myValueSet = new ResourceReferenceDt(); - } - return myValueSet; - } - - - /** - * Sets the value(s) for valueSet (Set this coding was chosen from) - * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

- */ - public CodingDt setValueSet(ResourceReferenceDt theValue) { - myValueSet = theValue; - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ContactDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ContactDt.java deleted file mode 100644 index bd89574c603..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ContactDt.java +++ /dev/null @@ -1,375 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR ContactDt Datatype - * (Technology mediated contact details (phone, fax, email, etc)) - * - *

- * Definition: - * All kinds of technology mediated contact details for a person or organization, including telephone, email, etc. - *

- * - *

- * Requirements: - * Need to track phone, fax, mobile, sms numbers, email addresses, twitter tags, etc. - *

- */ -@DatatypeDef(name="ContactDt") -public class ContactDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ContactDt() { - // nothing - } - - /** - * Constructor - */ - @SimpleSetter - public ContactDt(@SimpleSetter.Parameter(name="theValue") String theValue) { - setValue(theValue); - } - - /** - * Constructor - */ - @SimpleSetter - public ContactDt(@SimpleSetter.Parameter(name="theContactUse") ContactUseEnum theContactUse, @SimpleSetter.Parameter(name="theValue") String theValue) { - setUse(theContactUse); - setValue(theValue); - } - - @Child(name="system", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="phone | fax | email | url", - formalDefinition="Telecommunications form for contact - what communications system is required to make use of the contact" - ) - private BoundCodeDt mySystem; - - @Child(name="value", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="The actual contact details", - formalDefinition="The actual contact details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)." - ) - private StringDt myValue; - - @Child(name="use", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="home | work | temp | old | mobile - purpose of this address", - formalDefinition="Identifies the purpose for the address" - ) - private BoundCodeDt myUse; - - @Child(name="period", type=PeriodDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Time period when the contact was/is in use", - formalDefinition="Time period when the contact was/is in use" - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myValue, myUse, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myValue, myUse, myPeriod); - } - - /** - * Gets the value(s) for system (phone | fax | email | url). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Telecommunications form for contact - what communications system is required to make use of the contact - *

- */ - public BoundCodeDt getSystem() { - if (mySystem == null) { - mySystem = new BoundCodeDt(ContactSystemEnum.VALUESET_BINDER); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (phone | fax | email | url). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Telecommunications form for contact - what communications system is required to make use of the contact - *

- */ - public BoundCodeDt getSystemElement() { - if (mySystem == null) { - mySystem = new BoundCodeDt(ContactSystemEnum.VALUESET_BINDER); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (phone | fax | email | url) - * - *

- * Definition: - * Telecommunications form for contact - what communications system is required to make use of the contact - *

- */ - public ContactDt setSystem(BoundCodeDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value(s) for system (phone | fax | email | url) - * - *

- * Definition: - * Telecommunications form for contact - what communications system is required to make use of the contact - *

- */ - public ContactDt setSystem(ContactSystemEnum theValue) { - getSystem().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for value (The actual contact details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual contact details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public StringDt getValue() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (The actual contact details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual contact details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Sets the value(s) for value (The actual contact details) - * - *

- * Definition: - * The actual contact details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public ContactDt setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - /** - * Sets the value for value (The actual contact details) - * - *

- * Definition: - * The actual contact details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public ContactDt setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for use (home | work | temp | old | mobile - purpose of this address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for the address - *

- */ - public BoundCodeDt getUse() { - if (myUse == null) { - myUse = new BoundCodeDt(ContactUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (home | work | temp | old | mobile - purpose of this address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for the address - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(ContactUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Sets the value(s) for use (home | work | temp | old | mobile - purpose of this address) - * - *

- * Definition: - * Identifies the purpose for the address - *

- */ - public ContactDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - /** - * Sets the value(s) for use (home | work | temp | old | mobile - purpose of this address) - * - *

- * Definition: - * Identifies the purpose for the address - *

- */ - public ContactDt setUse(ContactUseEnum theValue) { - getUse().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for period (Time period when the contact was/is in use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period when the contact was/is in use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Time period when the contact was/is in use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period when the contact was/is in use - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Time period when the contact was/is in use) - * - *

- * Definition: - * Time period when the contact was/is in use - *

- */ - public ContactDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ContainedDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ContainedDt.java deleted file mode 100644 index e969d03184a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ContainedDt.java +++ /dev/null @@ -1,53 +0,0 @@ -package ca.uhn.fhir.model.dstu.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.ArrayList; -import java.util.List; - -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.base.composite.BaseContainedDt; - -@DatatypeDef(name = "contained") -public class ContainedDt extends BaseContainedDt { - - @Child(name = "resource", type = IResource.class, order = 0, min = 0, max = Child.MAX_UNLIMITED) - private List myContainedResources; - - public List getContainedResources() { - if (myContainedResources == null) { - myContainedResources = new ArrayList(); - } - return myContainedResources; - } - - public void setContainedResources(List theContainedResources) { - myContainedResources = theContainedResources; - } - - @Override - public boolean isEmpty() { - return myContainedResources == null || myContainedResources.size() == 0; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/DurationDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/DurationDt.java deleted file mode 100644 index 1a78218c524..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/DurationDt.java +++ /dev/null @@ -1,33 +0,0 @@ -package ca.uhn.fhir.model.dstu.composite; - -/* - * #%L - * HAPI FHIR Structures - DSTU1 (FHIR v0.80) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; - -@DatatypeDef(name = "Duration") -public class DurationDt extends QuantityDt { - - // TODO: implement restricions - - // There SHALL be a code if there is a value and it SHALL be an expression of length. If system is present, it SHALL be UCUM. - // (f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org') - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java deleted file mode 100644 index a04e3a8f7aa..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/HumanNameDt.java +++ /dev/null @@ -1,705 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR HumanNameDt Datatype - * (Name of a human - parts and usage) - * - *

- * Definition: - * A human's name with the ability to identify parts and usage - *

- * - *

- * Requirements: - * Need to be able to record names, along with notes about their use - *

- */ -@DatatypeDef(name="HumanNameDt") -public class HumanNameDt - extends BaseHumanNameDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public HumanNameDt() { - // nothing - } - - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="usual | official | temp | nickname | anonymous | old | maiden", - formalDefinition="Identifies the purpose for this name" - ) - private BoundCodeDt myUse; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Text representation of the full name", - formalDefinition="A full text representation of the name" - ) - private StringDt myText; - - @Child(name="family", type=StringDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Family name (often called 'Surname')", - formalDefinition="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." - ) - private java.util.List myFamily; - - @Child(name="given", type=StringDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Given names (not always 'first'). Includes middle names", - formalDefinition="Given name" - ) - private java.util.List myGiven; - - @Child(name="prefix", type=StringDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Parts that come before the name", - formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name" - ) - private java.util.List myPrefix; - - @Child(name="suffix", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Parts that come after the name", - formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name" - ) - private java.util.List mySuffix; - - @Child(name="period", type=PeriodDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Time period when name was/is in use", - formalDefinition="Indicates the period of time when this name was valid for the named person." - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod); - } - - /** - * Gets the value(s) for use (usual | official | temp | nickname | anonymous | old | maiden). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public BoundCodeDt getUse() { - if (myUse == null) { - myUse = new BoundCodeDt(NameUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (usual | official | temp | nickname | anonymous | old | maiden). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(NameUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Sets the value(s) for use (usual | official | temp | nickname | anonymous | old | maiden) - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public HumanNameDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - /** - * Sets the value(s) for use (usual | official | temp | nickname | anonymous | old | maiden) - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public HumanNameDt setUse(NameUseEnum theValue) { - getUse().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for text (Text representation of the full name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the name - *

- */ - public StringDt getText() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (Text representation of the full name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the name - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Sets the value(s) for text (Text representation of the full name) - * - *

- * Definition: - * A full text representation of the name - *

- */ - public HumanNameDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - /** - * Sets the value for text (Text representation of the full name) - * - *

- * Definition: - * A full text representation of the name - *

- */ - public HumanNameDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for family (Family name (often called 'Surname')). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public java.util.List getFamily() { - if (myFamily == null) { - myFamily = new java.util.ArrayList(); - } - return myFamily; - } - - - /** - * Gets the value(s) for family (Family name (often called 'Surname')). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public java.util.List getFamilyElement() { - if (myFamily == null) { - myFamily = new java.util.ArrayList(); - } - return myFamily; - } - - - /** - * Sets the value(s) for family (Family name (often called 'Surname')) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public HumanNameDt setFamily(java.util.List theValue) { - myFamily = theValue; - return this; - } - - /** - * Adds and returns a new value for family (Family name (often called 'Surname')) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public StringDt addFamily() { - StringDt newType = new StringDt(); - getFamily().add(newType); - return newType; - } - - /** - * Gets the first repetition for family (Family name (often called 'Surname')), - * creating it if it does not already exist. - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public StringDt getFamilyFirstRep() { - if (getFamily().isEmpty()) { - return addFamily(); - } - return getFamily().get(0); - } - /** - * Adds a new value for family (Family name (often called 'Surname')) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addFamily( String theString) { - if (myFamily == null) { - myFamily = new java.util.ArrayList(); - } - myFamily.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for given (Given names (not always 'first'). Includes middle names). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Given name - *

- */ - public java.util.List getGiven() { - if (myGiven == null) { - myGiven = new java.util.ArrayList(); - } - return myGiven; - } - - - /** - * Gets the value(s) for given (Given names (not always 'first'). Includes middle names). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Given name - *

- */ - public java.util.List getGivenElement() { - if (myGiven == null) { - myGiven = new java.util.ArrayList(); - } - return myGiven; - } - - - /** - * Sets the value(s) for given (Given names (not always 'first'). Includes middle names) - * - *

- * Definition: - * Given name - *

- */ - public HumanNameDt setGiven(java.util.List theValue) { - myGiven = theValue; - return this; - } - - /** - * Adds and returns a new value for given (Given names (not always 'first'). Includes middle names) - * - *

- * Definition: - * Given name - *

- */ - public StringDt addGiven() { - StringDt newType = new StringDt(); - getGiven().add(newType); - return newType; - } - - /** - * Gets the first repetition for given (Given names (not always 'first'). Includes middle names), - * creating it if it does not already exist. - * - *

- * Definition: - * Given name - *

- */ - public StringDt getGivenFirstRep() { - if (getGiven().isEmpty()) { - return addGiven(); - } - return getGiven().get(0); - } - /** - * Adds a new value for given (Given names (not always 'first'). Includes middle names) - * - *

- * Definition: - * Given name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addGiven( String theString) { - if (myGiven == null) { - myGiven = new java.util.ArrayList(); - } - myGiven.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for prefix (Parts that come before the name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public java.util.List getPrefix() { - if (myPrefix == null) { - myPrefix = new java.util.ArrayList(); - } - return myPrefix; - } - - - /** - * Gets the value(s) for prefix (Parts that come before the name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public java.util.List getPrefixElement() { - if (myPrefix == null) { - myPrefix = new java.util.ArrayList(); - } - return myPrefix; - } - - - /** - * Sets the value(s) for prefix (Parts that come before the name) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public HumanNameDt setPrefix(java.util.List theValue) { - myPrefix = theValue; - return this; - } - - /** - * Adds and returns a new value for prefix (Parts that come before the name) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public StringDt addPrefix() { - StringDt newType = new StringDt(); - getPrefix().add(newType); - return newType; - } - - /** - * Gets the first repetition for prefix (Parts that come before the name), - * creating it if it does not already exist. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public StringDt getPrefixFirstRep() { - if (getPrefix().isEmpty()) { - return addPrefix(); - } - return getPrefix().get(0); - } - /** - * Adds a new value for prefix (Parts that come before the name) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addPrefix( String theString) { - if (myPrefix == null) { - myPrefix = new java.util.ArrayList(); - } - myPrefix.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for suffix (Parts that come after the name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public java.util.List getSuffix() { - if (mySuffix == null) { - mySuffix = new java.util.ArrayList(); - } - return mySuffix; - } - - - /** - * Gets the value(s) for suffix (Parts that come after the name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public java.util.List getSuffixElement() { - if (mySuffix == null) { - mySuffix = new java.util.ArrayList(); - } - return mySuffix; - } - - - /** - * Sets the value(s) for suffix (Parts that come after the name) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public HumanNameDt setSuffix(java.util.List theValue) { - mySuffix = theValue; - return this; - } - - /** - * Adds and returns a new value for suffix (Parts that come after the name) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public StringDt addSuffix() { - StringDt newType = new StringDt(); - getSuffix().add(newType); - return newType; - } - - /** - * Gets the first repetition for suffix (Parts that come after the name), - * creating it if it does not already exist. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public StringDt getSuffixFirstRep() { - if (getSuffix().isEmpty()) { - return addSuffix(); - } - return getSuffix().get(0); - } - /** - * Adds a new value for suffix (Parts that come after the name) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addSuffix( String theString) { - if (mySuffix == null) { - mySuffix = new java.util.ArrayList(); - } - mySuffix.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for period (Time period when name was/is in use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the period of time when this name was valid for the named person. - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Time period when name was/is in use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the period of time when this name was valid for the named person. - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Time period when name was/is in use) - * - *

- * Definition: - * Indicates the period of time when this name was valid for the named person. - *

- */ - public HumanNameDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/IdentifierDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/IdentifierDt.java deleted file mode 100644 index e2f9ed86232..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/IdentifierDt.java +++ /dev/null @@ -1,511 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR IdentifierDt Datatype - * (An identifier intended for computation) - * - *

- * Definition: - * A technical identifier - identifies some entity uniquely and unambiguously - *

- * - *

- * Requirements: - * Need to be able to identify things with confidence and be sure that the identification is not subject to misinterpretation - *

- */ -@DatatypeDef(name="IdentifierDt") -public class IdentifierDt - extends BaseIdentifierDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public IdentifierDt() { - // nothing - } - - /** - * Creates a new identifier with the given system and value - */ - @SimpleSetter - public IdentifierDt(@SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theValue") String theValue) { - setSystem(theSystem); - setValue(theValue); - } - - /** - * Creates a new identifier with the given system and value - */ - @SimpleSetter - public IdentifierDt(@SimpleSetter.Parameter(name="theUse") IdentifierUseEnum theUse, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theValue") String theValue, @SimpleSetter.Parameter(name="theLabel") String theLabel) { - setUse(theUse); - setSystem(theSystem); - setValue(theValue); - setLabel(theLabel); - } - - @Override - public String toString() { - return "IdentifierDt[" + getValueAsQueryToken() + "]"; - } - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="usual | official | temp | secondary (If known)", - formalDefinition="The purpose of this identifier" - ) - private BoundCodeDt myUse; - - @Child(name="label", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Description of identifier", - formalDefinition="A text string for the identifier that can be displayed to a human so they can recognize the identifier" - ) - private StringDt myLabel; - - @Child(name="system", type=UriDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="The namespace for the identifier", - formalDefinition="Establishes the namespace in which set of possible id values is unique." - ) - private UriDt mySystem; - - @Child(name="value", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="The value that is unique", - formalDefinition="The portion of the identifier typically displayed to the user and which is unique within the context of the system." - ) - private StringDt myValue; - - @Child(name="period", type=PeriodDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Time period when id is/was valid for use", - formalDefinition="Time period during which identifier is/was valid for use" - ) - private PeriodDt myPeriod; - - @Child(name="assigner", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Organization that issued id (may be just text)", - formalDefinition="Organization that issued/manages the identifier" - ) - private ResourceReferenceDt myAssigner; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myLabel, mySystem, myValue, myPeriod, myAssigner); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myLabel, mySystem, myValue, myPeriod, myAssigner); - } - - /** - * Gets the value(s) for use (usual | official | temp | secondary (If known)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public BoundCodeDt getUse() { - if (myUse == null) { - myUse = new BoundCodeDt(IdentifierUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (usual | official | temp | secondary (If known)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(IdentifierUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Sets the value(s) for use (usual | official | temp | secondary (If known)) - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public IdentifierDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - /** - * Sets the value(s) for use (usual | official | temp | secondary (If known)) - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public IdentifierDt setUse(IdentifierUseEnum theValue) { - getUse().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for label (Description of identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public StringDt getLabel() { - if (myLabel == null) { - myLabel = new StringDt(); - } - return myLabel; - } - - - /** - * Gets the value(s) for label (Description of identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public StringDt getLabelElement() { - if (myLabel == null) { - myLabel = new StringDt(); - } - return myLabel; - } - - - /** - * Sets the value(s) for label (Description of identifier) - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public IdentifierDt setLabel(StringDt theValue) { - myLabel = theValue; - return this; - } - - /** - * Sets the value for label (Description of identifier) - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public IdentifierDt setLabel( String theString) { - myLabel = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for system (The namespace for the identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (The namespace for the identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (The namespace for the identifier) - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public IdentifierDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (The namespace for the identifier) - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public IdentifierDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for value (The value that is unique). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public StringDt getValue() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (The value that is unique). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Sets the value(s) for value (The value that is unique) - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public IdentifierDt setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - /** - * Sets the value for value (The value that is unique) - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public IdentifierDt setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for period (Time period when id is/was valid for use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period during which identifier is/was valid for use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Time period when id is/was valid for use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period during which identifier is/was valid for use - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Time period when id is/was valid for use) - * - *

- * Definition: - * Time period during which identifier is/was valid for use - *

- */ - public IdentifierDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for assigner (Organization that issued id (may be just text)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that issued/manages the identifier - *

- */ - public ResourceReferenceDt getAssigner() { - if (myAssigner == null) { - myAssigner = new ResourceReferenceDt(); - } - return myAssigner; - } - - - /** - * Gets the value(s) for assigner (Organization that issued id (may be just text)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that issued/manages the identifier - *

- */ - public ResourceReferenceDt getAssignerElement() { - if (myAssigner == null) { - myAssigner = new ResourceReferenceDt(); - } - return myAssigner; - } - - - /** - * Sets the value(s) for assigner (Organization that issued id (may be just text)) - * - *

- * Definition: - * Organization that issued/manages the identifier - *

- */ - public IdentifierDt setAssigner(ResourceReferenceDt theValue) { - myAssigner = theValue; - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/NarrativeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/NarrativeDt.java deleted file mode 100644 index 9808aebe5c9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/NarrativeDt.java +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.List; - -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.base.composite.BaseNarrativeDt; -import ca.uhn.fhir.model.dstu.valueset.NarrativeStatusEnum; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.XhtmlDt; - -/** - * HAPI/FHIR Narrative Datatype - * (A human-readable formatted text, including images) - * - *

- * Definition: - * A human-readable formatted text, including images - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="Narrative") -public class NarrativeDt extends BaseNarrativeDt { - - @Child(name="status", type=CodeDt.class, order=0, min=1, max=1) - private BoundCodeDt myStatus; - - @Child(name="div", type=XhtmlDt.class, order=1, min=1, max=1) - private XhtmlDt myDiv; - - public NarrativeDt() { - // nothing - } - - public NarrativeDt(XhtmlDt theDiv, NarrativeStatusEnum theStatus) { - setDiv(theDiv); - setStatus(theStatus); - } - - @Override - public boolean isEmpty() { - return ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myDiv ); - } - - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( theType, myStatus, myDiv ); - } - - /** - * Gets the value(s) for status (generated | extensions | additional). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(NarrativeStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - /** - * Sets the value(s) for status (generated | extensions | additional) - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public void setStatus(BoundCodeDt theValue) { - myStatus = theValue; - } - - /** - * Sets the value(s) for status (generated | extensions | additional) - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public void setStatus(NarrativeStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - } - - - /** - * Gets the value(s) for div (Limited xhtml content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual narrative content, a stripped down version of XHTML - *

- */ - public XhtmlDt getDiv() { - if (myDiv == null) { - myDiv = new XhtmlDt(); - } - return myDiv; - } - - /** - * Sets the value(s) for div (Limited xhtml content) - * - *

- * Definition: - * The actual narrative content, a stripped down version of XHTML - *

- */ - public void setDiv(XhtmlDt theValue) { - myDiv = theValue; - } - - /** - * Sets the value using a textual DIV (or simple text block which will be - * converted to XHTML) - */ - public void setDiv(String theTextDiv) { - myDiv = new XhtmlDt(theTextDiv); - } - - - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/PeriodDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/PeriodDt.java deleted file mode 100644 index 65012aa65df..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/PeriodDt.java +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR PeriodDt Datatype - * (Time range defined by start and end date/time) - * - *

- * Definition: - * A time period defined by a start and end date and optionally time. - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="PeriodDt") -public class PeriodDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public PeriodDt() { - // nothing - } - - - @Child(name="start", type=DateTimeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Starting time with inclusive boundary", - formalDefinition="The start of the period. The boundary is inclusive." - ) - private DateTimeDt myStart; - - @Child(name="end", type=DateTimeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="End time with inclusive boundary, if not ongoing", - formalDefinition="The end of the period. If the end of the period is missing, it means that the period is ongoing" - ) - private DateTimeDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStart, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStart, myEnd); - } - - /** - * Gets the value(s) for start (Starting time with inclusive boundary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public DateTimeDt getStart() { - if (myStart == null) { - myStart = new DateTimeDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Starting time with inclusive boundary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public DateTimeDt getStartElement() { - if (myStart == null) { - myStart = new DateTimeDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Starting time with inclusive boundary) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStart(DateTimeDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Starting time with inclusive boundary) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStart( Date theDate, TemporalPrecisionEnum thePrecision) { - myStart = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for start (Starting time with inclusive boundary) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStartWithSecondsPrecision( Date theDate) { - myStart = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for end (End time with inclusive boundary, if not ongoing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public DateTimeDt getEnd() { - if (myEnd == null) { - myEnd = new DateTimeDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (End time with inclusive boundary, if not ongoing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public DateTimeDt getEndElement() { - if (myEnd == null) { - myEnd = new DateTimeDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (End time with inclusive boundary, if not ongoing) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEnd(DateTimeDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (End time with inclusive boundary, if not ongoing) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for end (End time with inclusive boundary, if not ongoing) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEndWithSecondsPrecision( Date theDate) { - myEnd = new DateTimeDt(theDate); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/QuantityDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/QuantityDt.java deleted file mode 100644 index f3e06ecef9a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/QuantityDt.java +++ /dev/null @@ -1,529 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR QuantityDt Datatype - * (A measured or measurable amount) - * - *

- * Definition: - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies - *

- * - *

- * Requirements: - * Need to able to capture all sorts of measured values, even if the measured value are not precisely quantified. Values include exact measures such as 3.51g, customary units such as 3 tablets, and currencies such as $100.32USD - *

- */ -@DatatypeDef(name="QuantityDt") -public class QuantityDt - extends BaseQuantityDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public QuantityDt() { - // nothing - } - - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theValue") double theValue) { - setValue(theValue); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theValue") long theValue) { - setValue(theValue); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") double theValue, - @SimpleSetter.Parameter(name = "theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") long theValue, - @SimpleSetter.Parameter(name = "theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") double theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setSystem(theSystem); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") long theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setSystem(theSystem); - setUnits(theUnits); - } - - - @Child(name="value", type=DecimalDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Numerical value (with implicit precision)", - formalDefinition="The value of the measured amount. The value includes an implicit precision in the presentation of the value" - ) - private DecimalDt myValue; - - @Child(name="comparator", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="< | <= | >= | > - how to understand the value", - formalDefinition="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value" - ) - private BoundCodeDt myComparator; - - @Child(name="units", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Unit representation", - formalDefinition="A human-readable form of the units" - ) - private StringDt myUnits; - - @Child(name="system", type=UriDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="System that defines coded unit form", - formalDefinition="The identification of the system that provides the coded form of the unit" - ) - private UriDt mySystem; - - @Child(name="code", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Coded form of the unit", - formalDefinition="A computer processable form of the units in some unit representation system" - ) - private CodeDt myCode; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myValue, myComparator, myUnits, mySystem, myCode); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myValue, myComparator, myUnits, mySystem, myCode); - } - - /** - * Gets the value(s) for value (Numerical value (with implicit precision)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public DecimalDt getValue() { - if (myValue == null) { - myValue = new DecimalDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Numerical value (with implicit precision)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public DecimalDt getValueElement() { - if (myValue == null) { - myValue = new DecimalDt(); - } - return myValue; - } - - - /** - * Sets the value(s) for value (Numerical value (with implicit precision)) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue(DecimalDt theValue) { - myValue = theValue; - return this; - } - - /** - * Sets the value for value (Numerical value (with implicit precision)) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( long theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for value (Numerical value (with implicit precision)) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( double theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for value (Numerical value (with implicit precision)) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( java.math.BigDecimal theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for comparator (< | <= | >= | > - how to understand the value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public BoundCodeDt getComparator() { - if (myComparator == null) { - myComparator = new BoundCodeDt(QuantityCompararatorEnum.VALUESET_BINDER); - } - return myComparator; - } - - - /** - * Gets the value(s) for comparator (< | <= | >= | > - how to understand the value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public BoundCodeDt getComparatorElement() { - if (myComparator == null) { - myComparator = new BoundCodeDt(QuantityCompararatorEnum.VALUESET_BINDER); - } - return myComparator; - } - - - /** - * Sets the value(s) for comparator (< | <= | >= | > - how to understand the value) - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public QuantityDt setComparator(BoundCodeDt theValue) { - myComparator = theValue; - return this; - } - - /** - * Sets the value(s) for comparator (< | <= | >= | > - how to understand the value) - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public QuantityDt setComparator(QuantityCompararatorEnum theValue) { - getComparator().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for units (Unit representation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public StringDt getUnits() { - if (myUnits == null) { - myUnits = new StringDt(); - } - return myUnits; - } - - - /** - * Gets the value(s) for units (Unit representation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public StringDt getUnitsElement() { - if (myUnits == null) { - myUnits = new StringDt(); - } - return myUnits; - } - - - /** - * Sets the value(s) for units (Unit representation) - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public QuantityDt setUnits(StringDt theValue) { - myUnits = theValue; - return this; - } - - /** - * Sets the value for units (Unit representation) - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public QuantityDt setUnits( String theString) { - myUnits = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for system (System that defines coded unit form). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (System that defines coded unit form). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (System that defines coded unit form) - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public QuantityDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (System that defines coded unit form) - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public QuantityDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for code (Coded form of the unit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public CodeDt getCode() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Coded form of the unit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Coded form of the unit) - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public QuantityDt setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value for code (Coded form of the unit) - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public QuantityDt setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/RangeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/RangeDt.java deleted file mode 100644 index 8a673958fd0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/RangeDt.java +++ /dev/null @@ -1,362 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR RangeDt Datatype - * (Set of values bounded by low and high) - * - *

- * Definition: - * A set of ordered Quantities defined by a low and high limit. - *

- * - *

- * Requirements: - * Need to be able to specify ranges of values - *

- */ -@DatatypeDef(name="RangeDt") -public class RangeDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public RangeDt() { - // nothing - } - - - @Child(name="low", type=QuantityDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Low limit", - formalDefinition="The low limit. The boundary is inclusive." - ) - private QuantityDt myLow; - - @Child(name="high", type=QuantityDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="High limit", - formalDefinition="The high limit. The boundary is inclusive." - ) - private QuantityDt myHigh; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLow, myHigh); - } - - /** - * Gets the value(s) for low (Low limit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public QuantityDt getLow() { - if (myLow == null) { - myLow = new QuantityDt(); - } - return myLow; - } - - - /** - * Gets the value(s) for low (Low limit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public QuantityDt getLowElement() { - if (myLow == null) { - myLow = new QuantityDt(); - } - return myLow; - } - - - /** - * Sets the value(s) for low (Low limit) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow(QuantityDt theValue) { - myLow = theValue; - return this; - } - - /** - * Sets the value for low (Low limit) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myLow = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for low (Low limit) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myLow = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for low (Low limit) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myLow = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for low (Low limit) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myLow = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for low (Low limit) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow( double theValue) { - myLow = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for low (Low limit) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow( long theValue) { - myLow = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for high (High limit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public QuantityDt getHigh() { - if (myHigh == null) { - myHigh = new QuantityDt(); - } - return myHigh; - } - - - /** - * Gets the value(s) for high (High limit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public QuantityDt getHighElement() { - if (myHigh == null) { - myHigh = new QuantityDt(); - } - return myHigh; - } - - - /** - * Sets the value(s) for high (High limit) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh(QuantityDt theValue) { - myHigh = theValue; - return this; - } - - /** - * Sets the value for high (High limit) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myHigh = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for high (High limit) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myHigh = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for high (High limit) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myHigh = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for high (High limit) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myHigh = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for high (High limit) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh( double theValue) { - myHigh = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for high (High limit) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh( long theValue) { - myHigh = new QuantityDt(theValue); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/RatioDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/RatioDt.java deleted file mode 100644 index 0d7e959c6a2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/RatioDt.java +++ /dev/null @@ -1,362 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR RatioDt Datatype - * (A ratio of two Quantity values - a numerator and a denominator) - * - *

- * Definition: - * A relationship of two Quantity values - expressed as a numerator and a denominator. - *

- * - *

- * Requirements: - * Need to able to capture ratios for some measurements (titers) and some rates (costs) - *

- */ -@DatatypeDef(name="RatioDt") -public class RatioDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public RatioDt() { - // nothing - } - - - @Child(name="numerator", type=QuantityDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Numerator value", - formalDefinition="The value of the numerator" - ) - private QuantityDt myNumerator; - - @Child(name="denominator", type=QuantityDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Denominator value", - formalDefinition="The value of the denominator" - ) - private QuantityDt myDenominator; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumerator, myDenominator); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myNumerator, myDenominator); - } - - /** - * Gets the value(s) for numerator (Numerator value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the numerator - *

- */ - public QuantityDt getNumerator() { - if (myNumerator == null) { - myNumerator = new QuantityDt(); - } - return myNumerator; - } - - - /** - * Gets the value(s) for numerator (Numerator value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the numerator - *

- */ - public QuantityDt getNumeratorElement() { - if (myNumerator == null) { - myNumerator = new QuantityDt(); - } - return myNumerator; - } - - - /** - * Sets the value(s) for numerator (Numerator value) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator(QuantityDt theValue) { - myNumerator = theValue; - return this; - } - - /** - * Sets the value for numerator (Numerator value) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myNumerator = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for numerator (Numerator value) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myNumerator = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for numerator (Numerator value) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myNumerator = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for numerator (Numerator value) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myNumerator = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for numerator (Numerator value) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator( double theValue) { - myNumerator = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for numerator (Numerator value) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator( long theValue) { - myNumerator = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for denominator (Denominator value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the denominator - *

- */ - public QuantityDt getDenominator() { - if (myDenominator == null) { - myDenominator = new QuantityDt(); - } - return myDenominator; - } - - - /** - * Gets the value(s) for denominator (Denominator value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the denominator - *

- */ - public QuantityDt getDenominatorElement() { - if (myDenominator == null) { - myDenominator = new QuantityDt(); - } - return myDenominator; - } - - - /** - * Sets the value(s) for denominator (Denominator value) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator(QuantityDt theValue) { - myDenominator = theValue; - return this; - } - - /** - * Sets the value for denominator (Denominator value) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myDenominator = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for denominator (Denominator value) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myDenominator = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for denominator (Denominator value) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myDenominator = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for denominator (Denominator value) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myDenominator = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for denominator (Denominator value) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator( double theValue) { - myDenominator = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for denominator (Denominator value) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator( long theValue) { - myDenominator = new QuantityDt(theValue); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ResourceReferenceDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ResourceReferenceDt.java deleted file mode 100644 index 7977d90d462..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ResourceReferenceDt.java +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.List; - -import ca.uhn.fhir.model.api.ICompositeDatatype; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.SimpleSetter; -import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.StringDt; - -/** - * HAPI/FHIR ResourceReferenceDt Datatype - * (A reference from one resource to another) - * - *

- * Definition: - * A reference from one resource to another - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="ResourceReferenceDt") -public class ResourceReferenceDt - extends BaseResourceReferenceDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ResourceReferenceDt() { - // nothing - } - - /** - * Constructor which creates a resource reference containing the actual resource in question. - *

- * When using this in a server: Generally if this is serialized, it will be serialized as a contained - * resource, so this should not be used if the intent is not to actually supply the referenced resource. This is not - * a hard-and-fast rule however, as the server can be configured to not serialized this resource, or to load an ID - * and contain even if this constructor is not used. - *

- * - * @param theResource - * The resource instance - */ - @SimpleSetter() - public ResourceReferenceDt(IResource theResource) { - super(theResource); - } - - /** - * Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute - * URL) - * - * @param theId - * The reference itself - */ - public ResourceReferenceDt(String theId) { - setReference(new IdDt(theId)); - } - - /** - * Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute - * URL) - * - * @param theResourceId - * The reference itself - */ - public ResourceReferenceDt(IdDt theResourceId) { - setReference(theResourceId); - } - - @Child(name="reference", type=IdDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Relative, internal or absolute URL reference", - formalDefinition="A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources" - ) - private IdDt myReference; - - @Child(name="display", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Text alternative for the resource", - formalDefinition="Plain text narrative that identifies the resource in addition to the resource reference" - ) - private StringDt myDisplay; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReference, myDisplay); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myReference, myDisplay); - } - - /** - * Gets the value(s) for reference (Relative, internal or absolute URL reference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public IdDt getReference() { - if (myReference == null) { - myReference = new IdDt(); - } - return myReference; - } - - /** - * Sets the value(s) for reference (Relative, internal or absolute URL reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ResourceReferenceDt setReference(IdDt theValue) { - myReference = theValue; - return this; - } - - /** - * Sets the value for reference (Relative, internal or absolute URL reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ResourceReferenceDt setReference( String theId) { - myReference = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for display (Text alternative for the resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - /** - * Sets the value(s) for display (Text alternative for the resource) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ResourceReferenceDt setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (Text alternative for the resource) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ResourceReferenceDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - @Override - public StringDt getDisplayElement() { - return getDisplay(); - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/SampledDataDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/SampledDataDt.java deleted file mode 100644 index 6429cdfbfa8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/SampledDataDt.java +++ /dev/null @@ -1,751 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR SampledDataDt Datatype - * (A series of measurements taken by a device) - * - *

- * Definition: - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data - *

- * - *

- * Requirements: - * There is a need for a concise way to handle the data produced by devices that sample a physical state at a high frequency - *

- */ -@DatatypeDef(name="SampledDataDt") -public class SampledDataDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public SampledDataDt() { - // nothing - } - - - @Child(name="origin", type=QuantityDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Zero value and units", - formalDefinition="The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series" - ) - private QuantityDt myOrigin; - - @Child(name="period", type=DecimalDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Number of milliseconds between samples", - formalDefinition="The length of time between sampling times, measured in milliseconds" - ) - private DecimalDt myPeriod; - - @Child(name="factor", type=DecimalDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Multiply data by this before adding to origin", - formalDefinition="A correction factor that is applied to the sampled data points before they are added to the origin" - ) - private DecimalDt myFactor; - - @Child(name="lowerLimit", type=DecimalDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Lower limit of detection", - formalDefinition="The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)" - ) - private DecimalDt myLowerLimit; - - @Child(name="upperLimit", type=DecimalDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Upper limit of detection", - formalDefinition="The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)" - ) - private DecimalDt myUpperLimit; - - @Child(name="dimensions", type=IntegerDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Number of sample points at each time point", - formalDefinition="The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once" - ) - private IntegerDt myDimensions; - - @Child(name="data", type=StringDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="Decimal values with spaces, or \"E\" | \"U\" | \"L\"", - formalDefinition="A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value" - ) - private StringDt myData; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData); - } - - /** - * Gets the value(s) for origin (Zero value and units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public QuantityDt getOrigin() { - if (myOrigin == null) { - myOrigin = new QuantityDt(); - } - return myOrigin; - } - - - /** - * Gets the value(s) for origin (Zero value and units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public QuantityDt getOriginElement() { - if (myOrigin == null) { - myOrigin = new QuantityDt(); - } - return myOrigin; - } - - - /** - * Sets the value(s) for origin (Zero value and units) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin(QuantityDt theValue) { - myOrigin = theValue; - return this; - } - - /** - * Sets the value for origin (Zero value and units) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myOrigin = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for origin (Zero value and units) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myOrigin = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for origin (Zero value and units) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myOrigin = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for origin (Zero value and units) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myOrigin = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for origin (Zero value and units) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin( double theValue) { - myOrigin = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for origin (Zero value and units) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin( long theValue) { - myOrigin = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for period (Number of milliseconds between samples). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public DecimalDt getPeriod() { - if (myPeriod == null) { - myPeriod = new DecimalDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Number of milliseconds between samples). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public DecimalDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new DecimalDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Number of milliseconds between samples) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod(DecimalDt theValue) { - myPeriod = theValue; - return this; - } - - /** - * Sets the value for period (Number of milliseconds between samples) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( long theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for period (Number of milliseconds between samples) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( double theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for period (Number of milliseconds between samples) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( java.math.BigDecimal theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for factor (Multiply data by this before adding to origin). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public DecimalDt getFactor() { - if (myFactor == null) { - myFactor = new DecimalDt(); - } - return myFactor; - } - - - /** - * Gets the value(s) for factor (Multiply data by this before adding to origin). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public DecimalDt getFactorElement() { - if (myFactor == null) { - myFactor = new DecimalDt(); - } - return myFactor; - } - - - /** - * Sets the value(s) for factor (Multiply data by this before adding to origin) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor(DecimalDt theValue) { - myFactor = theValue; - return this; - } - - /** - * Sets the value for factor (Multiply data by this before adding to origin) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( long theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for factor (Multiply data by this before adding to origin) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( double theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for factor (Multiply data by this before adding to origin) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( java.math.BigDecimal theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for lowerLimit (Lower limit of detection). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public DecimalDt getLowerLimit() { - if (myLowerLimit == null) { - myLowerLimit = new DecimalDt(); - } - return myLowerLimit; - } - - - /** - * Gets the value(s) for lowerLimit (Lower limit of detection). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public DecimalDt getLowerLimitElement() { - if (myLowerLimit == null) { - myLowerLimit = new DecimalDt(); - } - return myLowerLimit; - } - - - /** - * Sets the value(s) for lowerLimit (Lower limit of detection) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit(DecimalDt theValue) { - myLowerLimit = theValue; - return this; - } - - /** - * Sets the value for lowerLimit (Lower limit of detection) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( long theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for lowerLimit (Lower limit of detection) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( double theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for lowerLimit (Lower limit of detection) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( java.math.BigDecimal theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for upperLimit (Upper limit of detection). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public DecimalDt getUpperLimit() { - if (myUpperLimit == null) { - myUpperLimit = new DecimalDt(); - } - return myUpperLimit; - } - - - /** - * Gets the value(s) for upperLimit (Upper limit of detection). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public DecimalDt getUpperLimitElement() { - if (myUpperLimit == null) { - myUpperLimit = new DecimalDt(); - } - return myUpperLimit; - } - - - /** - * Sets the value(s) for upperLimit (Upper limit of detection) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit(DecimalDt theValue) { - myUpperLimit = theValue; - return this; - } - - /** - * Sets the value for upperLimit (Upper limit of detection) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( long theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for upperLimit (Upper limit of detection) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( double theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for upperLimit (Upper limit of detection) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( java.math.BigDecimal theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for dimensions (Number of sample points at each time point). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public IntegerDt getDimensions() { - if (myDimensions == null) { - myDimensions = new IntegerDt(); - } - return myDimensions; - } - - - /** - * Gets the value(s) for dimensions (Number of sample points at each time point). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public IntegerDt getDimensionsElement() { - if (myDimensions == null) { - myDimensions = new IntegerDt(); - } - return myDimensions; - } - - - /** - * Sets the value(s) for dimensions (Number of sample points at each time point) - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public SampledDataDt setDimensions(IntegerDt theValue) { - myDimensions = theValue; - return this; - } - - /** - * Sets the value for dimensions (Number of sample points at each time point) - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public SampledDataDt setDimensions( int theInteger) { - myDimensions = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for data (Decimal values with spaces, or \"E\" | \"U\" | \"L\"). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public StringDt getData() { - if (myData == null) { - myData = new StringDt(); - } - return myData; - } - - - /** - * Gets the value(s) for data (Decimal values with spaces, or \"E\" | \"U\" | \"L\"). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public StringDt getDataElement() { - if (myData == null) { - myData = new StringDt(); - } - return myData; - } - - - /** - * Sets the value(s) for data (Decimal values with spaces, or \"E\" | \"U\" | \"L\") - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public SampledDataDt setData(StringDt theValue) { - myData = theValue; - return this; - } - - /** - * Sets the value for data (Decimal values with spaces, or \"E\" | \"U\" | \"L\") - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public SampledDataDt setData( String theString) { - myData = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ScheduleDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ScheduleDt.java deleted file mode 100644 index c5fe6fe77e0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/composite/ScheduleDt.java +++ /dev/null @@ -1,721 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.composite; - -import java.math.BigDecimal; -import org.apache.commons.lang3.StringUtils; -import java.util.*; -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; - -import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR ScheduleDt Datatype - * (A schedule that specifies an event that may occur multiple times) - * - *

- * Definition: - * Specifies an event that may occur multiple times. Schedules are used for to reord when things are expected or requested to occur. - *

- * - *

- * Requirements: - * Need to able to track schedules. There are several different ways to do scheduling: one or more specified times, a simple rules like three times a day, or before/after meals - *

- */ -@DatatypeDef(name="ScheduleDt") -public class ScheduleDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ScheduleDt() { - // nothing - } - - - @Child(name="event", type=PeriodDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="When the event occurs", - formalDefinition="Identifies specific time periods when the event should occur" - ) - private java.util.List myEvent; - - @Child(name="repeat", order=1, min=0, max=1) - @Description( - shortDefinition="Only if there is none or one event", - formalDefinition="Identifies a repeating pattern to the intended time periods." - ) - private Repeat myRepeat; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myRepeat); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEvent, myRepeat); - } - - /** - * Gets the value(s) for event (When the event occurs). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public java.util.List getEvent() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Gets the value(s) for event (When the event occurs). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public java.util.List getEventElement() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Sets the value(s) for event (When the event occurs) - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public ScheduleDt setEvent(java.util.List theValue) { - myEvent = theValue; - return this; - } - - /** - * Adds and returns a new value for event (When the event occurs) - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public PeriodDt addEvent() { - PeriodDt newType = new PeriodDt(); - getEvent().add(newType); - return newType; - } - - /** - * Gets the first repetition for event (When the event occurs), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public PeriodDt getEventFirstRep() { - if (getEvent().isEmpty()) { - return addEvent(); - } - return getEvent().get(0); - } - - /** - * Gets the value(s) for repeat (Only if there is none or one event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - public Repeat getRepeat() { - if (myRepeat == null) { - myRepeat = new Repeat(); - } - return myRepeat; - } - - - /** - * Gets the value(s) for repeat (Only if there is none or one event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - public Repeat getRepeatElement() { - if (myRepeat == null) { - myRepeat = new Repeat(); - } - return myRepeat; - } - - - /** - * Sets the value(s) for repeat (Only if there is none or one event) - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - public ScheduleDt setRepeat(Repeat theValue) { - myRepeat = theValue; - return this; - } - - - /** - * Block class for child element: Schedule.repeat (Only if there is none or one event) - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - @Block() - public static class Repeat - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="frequency", type=IntegerDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Event occurs frequency times per duration", - formalDefinition="Indicates how often the event should occur." - ) - private IntegerDt myFrequency; - - @Child(name="when", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="HS | WAKE | AC | ACM | ACD | ACV | PC | PCM | PCD | PCV - common life events", - formalDefinition="Identifies the occurrence of daily life that determines timing" - ) - private BoundCodeDt myWhen; - - @Child(name="duration", type=DecimalDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Repeating or event-related duration", - formalDefinition="How long each repetition should last" - ) - private DecimalDt myDuration; - - @Child(name="units", type=CodeDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="s | min | h | d | wk | mo | a - unit of time (UCUM)", - formalDefinition="The units of time for the duration" - ) - private BoundCodeDt myUnits; - - @Child(name="count", type=IntegerDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Number of times to repeat", - formalDefinition="A total count of the desired number of repetitions" - ) - private IntegerDt myCount; - - @Child(name="end", type=DateTimeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="When to stop repeats", - formalDefinition="When to stop repeating the schedule" - ) - private DateTimeDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myFrequency, myWhen, myDuration, myUnits, myCount, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myFrequency, myWhen, myDuration, myUnits, myCount, myEnd); - } - - /** - * Gets the value(s) for frequency (Event occurs frequency times per duration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public IntegerDt getFrequency() { - if (myFrequency == null) { - myFrequency = new IntegerDt(); - } - return myFrequency; - } - - - /** - * Gets the value(s) for frequency (Event occurs frequency times per duration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public IntegerDt getFrequencyElement() { - if (myFrequency == null) { - myFrequency = new IntegerDt(); - } - return myFrequency; - } - - - /** - * Sets the value(s) for frequency (Event occurs frequency times per duration) - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public Repeat setFrequency(IntegerDt theValue) { - myFrequency = theValue; - return this; - } - - /** - * Sets the value for frequency (Event occurs frequency times per duration) - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public Repeat setFrequency( int theInteger) { - myFrequency = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for when (HS | WAKE | AC | ACM | ACD | ACV | PC | PCM | PCD | PCV - common life events). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public BoundCodeDt getWhen() { - if (myWhen == null) { - myWhen = new BoundCodeDt(EventTimingEnum.VALUESET_BINDER); - } - return myWhen; - } - - - /** - * Gets the value(s) for when (HS | WAKE | AC | ACM | ACD | ACV | PC | PCM | PCD | PCV - common life events). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public BoundCodeDt getWhenElement() { - if (myWhen == null) { - myWhen = new BoundCodeDt(EventTimingEnum.VALUESET_BINDER); - } - return myWhen; - } - - - /** - * Sets the value(s) for when (HS | WAKE | AC | ACM | ACD | ACV | PC | PCM | PCD | PCV - common life events) - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public Repeat setWhen(BoundCodeDt theValue) { - myWhen = theValue; - return this; - } - - /** - * Sets the value(s) for when (HS | WAKE | AC | ACM | ACD | ACV | PC | PCM | PCD | PCV - common life events) - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public Repeat setWhen(EventTimingEnum theValue) { - getWhen().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for duration (Repeating or event-related duration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How long each repetition should last - *

- */ - public DecimalDt getDuration() { - if (myDuration == null) { - myDuration = new DecimalDt(); - } - return myDuration; - } - - - /** - * Gets the value(s) for duration (Repeating or event-related duration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How long each repetition should last - *

- */ - public DecimalDt getDurationElement() { - if (myDuration == null) { - myDuration = new DecimalDt(); - } - return myDuration; - } - - - /** - * Sets the value(s) for duration (Repeating or event-related duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration(DecimalDt theValue) { - myDuration = theValue; - return this; - } - - /** - * Sets the value for duration (Repeating or event-related duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( long theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for duration (Repeating or event-related duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( double theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for duration (Repeating or event-related duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( java.math.BigDecimal theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for units (s | min | h | d | wk | mo | a - unit of time (UCUM)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The units of time for the duration - *

- */ - public BoundCodeDt getUnits() { - if (myUnits == null) { - myUnits = new BoundCodeDt(UnitsOfTimeEnum.VALUESET_BINDER); - } - return myUnits; - } - - - /** - * Gets the value(s) for units (s | min | h | d | wk | mo | a - unit of time (UCUM)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The units of time for the duration - *

- */ - public BoundCodeDt getUnitsElement() { - if (myUnits == null) { - myUnits = new BoundCodeDt(UnitsOfTimeEnum.VALUESET_BINDER); - } - return myUnits; - } - - - /** - * Sets the value(s) for units (s | min | h | d | wk | mo | a - unit of time (UCUM)) - * - *

- * Definition: - * The units of time for the duration - *

- */ - public Repeat setUnits(BoundCodeDt theValue) { - myUnits = theValue; - return this; - } - - /** - * Sets the value(s) for units (s | min | h | d | wk | mo | a - unit of time (UCUM)) - * - *

- * Definition: - * The units of time for the duration - *

- */ - public Repeat setUnits(UnitsOfTimeEnum theValue) { - getUnits().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for count (Number of times to repeat). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public IntegerDt getCount() { - if (myCount == null) { - myCount = new IntegerDt(); - } - return myCount; - } - - - /** - * Gets the value(s) for count (Number of times to repeat). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public IntegerDt getCountElement() { - if (myCount == null) { - myCount = new IntegerDt(); - } - return myCount; - } - - - /** - * Sets the value(s) for count (Number of times to repeat) - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public Repeat setCount(IntegerDt theValue) { - myCount = theValue; - return this; - } - - /** - * Sets the value for count (Number of times to repeat) - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public Repeat setCount( int theInteger) { - myCount = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (When to stop repeats). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When to stop repeating the schedule - *

- */ - public DateTimeDt getEnd() { - if (myEnd == null) { - myEnd = new DateTimeDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (When to stop repeats). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When to stop repeating the schedule - *

- */ - public DateTimeDt getEndElement() { - if (myEnd == null) { - myEnd = new DateTimeDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (When to stop repeats) - * - *

- * Definition: - * When to stop repeating the schedule - *

- */ - public Repeat setEnd(DateTimeDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (When to stop repeats) - * - *

- * Definition: - * When to stop repeating the schedule - *

- */ - public Repeat setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for end (When to stop repeats) - * - *

- * Definition: - * When to stop repeating the schedule - *

- */ - public Repeat setEndWithSecondsPrecision( Date theDate) { - myEnd = new DateTimeDt(theDate); - return this; - } - - - - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AdverseReaction.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AdverseReaction.java deleted file mode 100644 index 3a58c0ed2f4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AdverseReaction.java +++ /dev/null @@ -1,1380 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR AdverseReaction Resource - * (Specific reactions to a substance) - * - *

- * Definition: - * Records an unexpected reaction suspected to be related to the exposure of the reaction subject to a substance - *

- * - *

- * Requirements: - * Used to track reactions when it is unknown the exact cause but there's a desire to flag/track potential causes. Also used to capture reactions that are significant for inclusion in the health record or as evidence for an allergy or intolerance. - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/AdverseReaction - *

- * - */ -@ResourceDef(name="AdverseReaction", profile="http://hl7.org/fhir/profiles/AdverseReaction", id="adversereaction") -public class AdverseReaction - extends BaseResource implements IResource { - - /** - * Search parameter constant for symptom - *

- * Description: One of the symptoms of the reaction
- * Type: token
- * Path: AdverseReaction.symptom.code
- *

- */ - @SearchParamDefinition(name="symptom", path="AdverseReaction.symptom.code", description="One of the symptoms of the reaction", type="token" ) - public static final String SP_SYMPTOM = "symptom"; - - /** - * Fluent Client search parameter constant for symptom - *

- * Description: One of the symptoms of the reaction
- * Type: token
- * Path: AdverseReaction.symptom.code
- *

- */ - public static final TokenClientParam SYMPTOM = new TokenClientParam(SP_SYMPTOM); - - /** - * Search parameter constant for substance - *

- * Description: The name or code of the substance that produces the sensitivity
- * Type: reference
- * Path: AdverseReaction.exposure.substance
- *

- */ - @SearchParamDefinition(name="substance", path="AdverseReaction.exposure.substance", description="The name or code of the substance that produces the sensitivity", type="reference" ) - public static final String SP_SUBSTANCE = "substance"; - - /** - * Fluent Client search parameter constant for substance - *

- * Description: The name or code of the substance that produces the sensitivity
- * Type: reference
- * Path: AdverseReaction.exposure.substance
- *

- */ - public static final ReferenceClientParam SUBSTANCE = new ReferenceClientParam(SP_SUBSTANCE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AdverseReaction.exposure.substance". - */ - public static final Include INCLUDE_EXPOSURE_SUBSTANCE = new Include("AdverseReaction.exposure.substance"); - - /** - * Search parameter constant for date - *

- * Description: The date of the reaction
- * Type: date
- * Path: AdverseReaction.date
- *

- */ - @SearchParamDefinition(name="date", path="AdverseReaction.date", description="The date of the reaction", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: The date of the reaction
- * Type: date
- * Path: AdverseReaction.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for subject - *

- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: AdverseReaction.subject
- *

- */ - @SearchParamDefinition(name="subject", path="AdverseReaction.subject", description="The subject that the sensitivity is about", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: AdverseReaction.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AdverseReaction.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("AdverseReaction.subject"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this adverse reaction", - formalDefinition="This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="date", type=DateTimeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="When the reaction occurred", - formalDefinition="The date (and possibly time) when the reaction began" - ) - private DateTimeDt myDate; - - @Child(name="subject", order=2, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who had the reaction", - formalDefinition="The subject of the adverse reaction" - ) - private ResourceReferenceDt mySubject; - - @Child(name="didNotOccurFlag", type=BooleanDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Indicates lack of reaction", - formalDefinition="If true, indicates that no reaction occurred." - ) - private BooleanDt myDidNotOccurFlag; - - @Child(name="recorder", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who recorded the reaction", - formalDefinition="Identifies the individual responsible for the information in the reaction record." - ) - private ResourceReferenceDt myRecorder; - - @Child(name="symptom", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="What was reaction?", - formalDefinition="The signs and symptoms that were observed as part of the reaction" - ) - private java.util.List mySymptom; - - @Child(name="exposure", order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Suspected substance", - formalDefinition="An exposure to a substance that preceded a reaction occurrence" - ) - private java.util.List myExposure; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDate, mySubject, myDidNotOccurFlag, myRecorder, mySymptom, myExposure); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDate, mySubject, myDidNotOccurFlag, myRecorder, mySymptom, myExposure); - } - - /** - * Gets the value(s) for identifier (External Ids for this adverse reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this adverse reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this adverse reaction) - * - *

- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public AdverseReaction setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this adverse reaction) - * - *

- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this adverse reaction), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this adverse reaction) - * - *

- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AdverseReaction addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this adverse reaction) - * - *

- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AdverseReaction addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for date (When the reaction occurred). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date (and possibly time) when the reaction began - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (When the reaction occurred). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date (and possibly time) when the reaction began - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (When the reaction occurred) - * - *

- * Definition: - * The date (and possibly time) when the reaction began - *

- */ - public AdverseReaction setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When the reaction occurred) - * - *

- * Definition: - * The date (and possibly time) when the reaction began - *

- */ - public AdverseReaction setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (When the reaction occurred) - * - *

- * Definition: - * The date (and possibly time) when the reaction began - *

- */ - public AdverseReaction setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for subject (Who had the reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The subject of the adverse reaction - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who had the reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The subject of the adverse reaction - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who had the reaction) - * - *

- * Definition: - * The subject of the adverse reaction - *

- */ - public AdverseReaction setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for didNotOccurFlag (Indicates lack of reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates that no reaction occurred. - *

- */ - public BooleanDt getDidNotOccurFlag() { - if (myDidNotOccurFlag == null) { - myDidNotOccurFlag = new BooleanDt(); - } - return myDidNotOccurFlag; - } - - - /** - * Gets the value(s) for didNotOccurFlag (Indicates lack of reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates that no reaction occurred. - *

- */ - public BooleanDt getDidNotOccurFlagElement() { - if (myDidNotOccurFlag == null) { - myDidNotOccurFlag = new BooleanDt(); - } - return myDidNotOccurFlag; - } - - - /** - * Sets the value(s) for didNotOccurFlag (Indicates lack of reaction) - * - *

- * Definition: - * If true, indicates that no reaction occurred. - *

- */ - public AdverseReaction setDidNotOccurFlag(BooleanDt theValue) { - myDidNotOccurFlag = theValue; - return this; - } - - /** - * Sets the value for didNotOccurFlag (Indicates lack of reaction) - * - *

- * Definition: - * If true, indicates that no reaction occurred. - *

- */ - public AdverseReaction setDidNotOccurFlag( boolean theBoolean) { - myDidNotOccurFlag = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for recorder (Who recorded the reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the individual responsible for the information in the reaction record. - *

- */ - public ResourceReferenceDt getRecorder() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - - /** - * Gets the value(s) for recorder (Who recorded the reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the individual responsible for the information in the reaction record. - *

- */ - public ResourceReferenceDt getRecorderElement() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - - /** - * Sets the value(s) for recorder (Who recorded the reaction) - * - *

- * Definition: - * Identifies the individual responsible for the information in the reaction record. - *

- */ - public AdverseReaction setRecorder(ResourceReferenceDt theValue) { - myRecorder = theValue; - return this; - } - - - /** - * Gets the value(s) for symptom (What was reaction?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The signs and symptoms that were observed as part of the reaction - *

- */ - public java.util.List getSymptom() { - if (mySymptom == null) { - mySymptom = new java.util.ArrayList(); - } - return mySymptom; - } - - - /** - * Gets the value(s) for symptom (What was reaction?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The signs and symptoms that were observed as part of the reaction - *

- */ - public java.util.List getSymptomElement() { - if (mySymptom == null) { - mySymptom = new java.util.ArrayList(); - } - return mySymptom; - } - - - /** - * Sets the value(s) for symptom (What was reaction?) - * - *

- * Definition: - * The signs and symptoms that were observed as part of the reaction - *

- */ - public AdverseReaction setSymptom(java.util.List theValue) { - mySymptom = theValue; - return this; - } - - /** - * Adds and returns a new value for symptom (What was reaction?) - * - *

- * Definition: - * The signs and symptoms that were observed as part of the reaction - *

- */ - public Symptom addSymptom() { - Symptom newType = new Symptom(); - getSymptom().add(newType); - return newType; - } - - /** - * Gets the first repetition for symptom (What was reaction?), - * creating it if it does not already exist. - * - *

- * Definition: - * The signs and symptoms that were observed as part of the reaction - *

- */ - public Symptom getSymptomFirstRep() { - if (getSymptom().isEmpty()) { - return addSymptom(); - } - return getSymptom().get(0); - } - - /** - * Gets the value(s) for exposure (Suspected substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *

- */ - public java.util.List getExposure() { - if (myExposure == null) { - myExposure = new java.util.ArrayList(); - } - return myExposure; - } - - - /** - * Gets the value(s) for exposure (Suspected substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *

- */ - public java.util.List getExposureElement() { - if (myExposure == null) { - myExposure = new java.util.ArrayList(); - } - return myExposure; - } - - - /** - * Sets the value(s) for exposure (Suspected substance) - * - *

- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *

- */ - public AdverseReaction setExposure(java.util.List theValue) { - myExposure = theValue; - return this; - } - - /** - * Adds and returns a new value for exposure (Suspected substance) - * - *

- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *

- */ - public Exposure addExposure() { - Exposure newType = new Exposure(); - getExposure().add(newType); - return newType; - } - - /** - * Gets the first repetition for exposure (Suspected substance), - * creating it if it does not already exist. - * - *

- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *

- */ - public Exposure getExposureFirstRep() { - if (getExposure().isEmpty()) { - return addExposure(); - } - return getExposure().get(0); - } - - /** - * Block class for child element: AdverseReaction.symptom (What was reaction?) - * - *

- * Definition: - * The signs and symptoms that were observed as part of the reaction - *

- */ - @Block() - public static class Symptom - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="E.g. Rash, vomiting", - formalDefinition="Indicates the specific sign or symptom that was observed" - ) - private CodeableConceptDt myCode; - - @Child(name="severity", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="severe | serious | moderate | minor", - formalDefinition="The severity of the sign or symptom" - ) - private BoundCodeDt mySeverity; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, mySeverity); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, mySeverity); - } - - /** - * Gets the value(s) for code (E.g. Rash, vomiting). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the specific sign or symptom that was observed - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (E.g. Rash, vomiting). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the specific sign or symptom that was observed - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (E.g. Rash, vomiting) - * - *

- * Definition: - * Indicates the specific sign or symptom that was observed - *

- */ - public Symptom setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for severity (severe | serious | moderate | minor). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The severity of the sign or symptom - *

- */ - public BoundCodeDt getSeverity() { - if (mySeverity == null) { - mySeverity = new BoundCodeDt(ReactionSeverityEnum.VALUESET_BINDER); - } - return mySeverity; - } - - - /** - * Gets the value(s) for severity (severe | serious | moderate | minor). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The severity of the sign or symptom - *

- */ - public BoundCodeDt getSeverityElement() { - if (mySeverity == null) { - mySeverity = new BoundCodeDt(ReactionSeverityEnum.VALUESET_BINDER); - } - return mySeverity; - } - - - /** - * Sets the value(s) for severity (severe | serious | moderate | minor) - * - *

- * Definition: - * The severity of the sign or symptom - *

- */ - public Symptom setSeverity(BoundCodeDt theValue) { - mySeverity = theValue; - return this; - } - - /** - * Sets the value(s) for severity (severe | serious | moderate | minor) - * - *

- * Definition: - * The severity of the sign or symptom - *

- */ - public Symptom setSeverity(ReactionSeverityEnum theValue) { - getSeverity().setValueAsEnum(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: AdverseReaction.exposure (Suspected substance) - * - *

- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *

- */ - @Block() - public static class Exposure - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="date", type=DateTimeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="When the exposure occurred", - formalDefinition="Identifies the initial date of the exposure that is suspected to be related to the reaction" - ) - private DateTimeDt myDate; - - @Child(name="type", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="drugadmin | immuniz | coincidental", - formalDefinition="The type of exposure: Drug Administration, Immunization, Coincidental" - ) - private BoundCodeDt myType; - - @Child(name="causalityExpectation", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="likely | unlikely | confirmed | unknown", - formalDefinition="A statement of how confident that the recorder was that this exposure caused the reaction" - ) - private BoundCodeDt myCausalityExpectation; - - @Child(name="substance", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Substance.class }) - @Description( - shortDefinition="Presumed causative substance", - formalDefinition="Substance that is presumed to have caused the adverse reaction" - ) - private ResourceReferenceDt mySubstance; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDate, myType, myCausalityExpectation, mySubstance); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDate, myType, myCausalityExpectation, mySubstance); - } - - /** - * Gets the value(s) for date (When the exposure occurred). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (When the exposure occurred). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (When the exposure occurred) - * - *

- * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *

- */ - public Exposure setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When the exposure occurred) - * - *

- * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *

- */ - public Exposure setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (When the exposure occurred) - * - *

- * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *

- */ - public Exposure setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for type (drugadmin | immuniz | coincidental). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of exposure: Drug Administration, Immunization, Coincidental - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(ExposureTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (drugadmin | immuniz | coincidental). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of exposure: Drug Administration, Immunization, Coincidental - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(ExposureTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (drugadmin | immuniz | coincidental) - * - *

- * Definition: - * The type of exposure: Drug Administration, Immunization, Coincidental - *

- */ - public Exposure setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (drugadmin | immuniz | coincidental) - * - *

- * Definition: - * The type of exposure: Drug Administration, Immunization, Coincidental - *

- */ - public Exposure setType(ExposureTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for causalityExpectation (likely | unlikely | confirmed | unknown). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A statement of how confident that the recorder was that this exposure caused the reaction - *

- */ - public BoundCodeDt getCausalityExpectation() { - if (myCausalityExpectation == null) { - myCausalityExpectation = new BoundCodeDt(CausalityExpectationEnum.VALUESET_BINDER); - } - return myCausalityExpectation; - } - - - /** - * Gets the value(s) for causalityExpectation (likely | unlikely | confirmed | unknown). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A statement of how confident that the recorder was that this exposure caused the reaction - *

- */ - public BoundCodeDt getCausalityExpectationElement() { - if (myCausalityExpectation == null) { - myCausalityExpectation = new BoundCodeDt(CausalityExpectationEnum.VALUESET_BINDER); - } - return myCausalityExpectation; - } - - - /** - * Sets the value(s) for causalityExpectation (likely | unlikely | confirmed | unknown) - * - *

- * Definition: - * A statement of how confident that the recorder was that this exposure caused the reaction - *

- */ - public Exposure setCausalityExpectation(BoundCodeDt theValue) { - myCausalityExpectation = theValue; - return this; - } - - /** - * Sets the value(s) for causalityExpectation (likely | unlikely | confirmed | unknown) - * - *

- * Definition: - * A statement of how confident that the recorder was that this exposure caused the reaction - *

- */ - public Exposure setCausalityExpectation(CausalityExpectationEnum theValue) { - getCausalityExpectation().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for substance (Presumed causative substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Substance that is presumed to have caused the adverse reaction - *

- */ - public ResourceReferenceDt getSubstance() { - if (mySubstance == null) { - mySubstance = new ResourceReferenceDt(); - } - return mySubstance; - } - - - /** - * Gets the value(s) for substance (Presumed causative substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Substance that is presumed to have caused the adverse reaction - *

- */ - public ResourceReferenceDt getSubstanceElement() { - if (mySubstance == null) { - mySubstance = new ResourceReferenceDt(); - } - return mySubstance; - } - - - /** - * Sets the value(s) for substance (Presumed causative substance) - * - *

- * Definition: - * Substance that is presumed to have caused the adverse reaction - *

- */ - public Exposure setSubstance(ResourceReferenceDt theValue) { - mySubstance = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "AdverseReaction"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Alert.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Alert.java deleted file mode 100644 index 9179135e48e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Alert.java +++ /dev/null @@ -1,721 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Alert Resource - * (Key information to flag to healthcare providers) - * - *

- * Definition: - * Prospective warnings of potential issues when providing care to the patient - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Alert - *

- * - */ -@ResourceDef(name="Alert", profile="http://hl7.org/fhir/profiles/Alert", id="alert") -public class Alert - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description: The identity of a subject to list alerts for
- * Type: reference
- * Path: Alert.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Alert.subject", description="The identity of a subject to list alerts for", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The identity of a subject to list alerts for
- * Type: reference
- * Path: Alert.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Alert.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Alert.subject"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Business identifier", - formalDefinition="Identifier assigned to the alert for external use (outside the FHIR environment)" - ) - private java.util.List myIdentifier; - - @Child(name="category", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Clinical, administrative, etc.", - formalDefinition="Allows an alert to be divided into different categories like clinical, administrative etc." - ) - private CodeableConceptDt myCategory; - - @Child(name="status", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="active | inactive | entered in error", - formalDefinition="Supports basic workflow" - ) - private BoundCodeDt myStatus; - - @Child(name="subject", order=3, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who is alert about?", - formalDefinition="The person who this alert concerns" - ) - private ResourceReferenceDt mySubject; - - @Child(name="author", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Alert creator", - formalDefinition="The person or device that created the alert" - ) - private ResourceReferenceDt myAuthor; - - @Child(name="note", type=StringDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Text of alert", - formalDefinition="The textual component of the alert to display to the user" - ) - private StringDt myNote; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCategory, myStatus, mySubject, myAuthor, myNote); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCategory, myStatus, mySubject, myAuthor, myNote); - } - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Business identifier) - * - *

- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *

- */ - public Alert setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Business identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Alert addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Alert addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for category (Clinical, administrative, etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows an alert to be divided into different categories like clinical, administrative etc. - *

- */ - public CodeableConceptDt getCategory() { - if (myCategory == null) { - myCategory = new CodeableConceptDt(); - } - return myCategory; - } - - - /** - * Gets the value(s) for category (Clinical, administrative, etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows an alert to be divided into different categories like clinical, administrative etc. - *

- */ - public CodeableConceptDt getCategoryElement() { - if (myCategory == null) { - myCategory = new CodeableConceptDt(); - } - return myCategory; - } - - - /** - * Sets the value(s) for category (Clinical, administrative, etc.) - * - *

- * Definition: - * Allows an alert to be divided into different categories like clinical, administrative etc. - *

- */ - public Alert setCategory(CodeableConceptDt theValue) { - myCategory = theValue; - return this; - } - - - /** - * Gets the value(s) for status (active | inactive | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Supports basic workflow - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(AlertStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (active | inactive | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Supports basic workflow - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(AlertStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (active | inactive | entered in error) - * - *

- * Definition: - * Supports basic workflow - *

- */ - public Alert setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (active | inactive | entered in error) - * - *

- * Definition: - * Supports basic workflow - *

- */ - public Alert setStatus(AlertStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for subject (Who is alert about?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who this alert concerns - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who is alert about?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who this alert concerns - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who is alert about?) - * - *

- * Definition: - * The person who this alert concerns - *

- */ - public Alert setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Alert creator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or device that created the alert - *

- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Alert creator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or device that created the alert - *

- */ - public ResourceReferenceDt getAuthorElement() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Alert creator) - * - *

- * Definition: - * The person or device that created the alert - *

- */ - public Alert setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for note (Text of alert). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The textual component of the alert to display to the user - *

- */ - public StringDt getNote() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - - /** - * Gets the value(s) for note (Text of alert). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The textual component of the alert to display to the user - *

- */ - public StringDt getNoteElement() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - - /** - * Sets the value(s) for note (Text of alert) - * - *

- * Definition: - * The textual component of the alert to display to the user - *

- */ - public Alert setNote(StringDt theValue) { - myNote = theValue; - return this; - } - - /** - * Sets the value for note (Text of alert) - * - *

- * Definition: - * The textual component of the alert to display to the user - *

- */ - public Alert setNote( String theString) { - myNote = new StringDt(theString); - return this; - } - - - - - @Override - public String getResourceName() { - return "Alert"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AllergyIntolerance.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AllergyIntolerance.java deleted file mode 100644 index 003308ea7f6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AllergyIntolerance.java +++ /dev/null @@ -1,1134 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR AllergyIntolerance Resource - * (Drug, food, environmental and others) - * - *

- * Definition: - * Indicates the patient has a susceptibility to an adverse reaction upon exposure to a specified substance - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/AllergyIntolerance - *

- * - */ -@ResourceDef(name="AllergyIntolerance", profile="http://hl7.org/fhir/profiles/AllergyIntolerance", id="allergyintolerance") -public class AllergyIntolerance - extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *

- * Description: The type of sensitivity
- * Type: token
- * Path: AllergyIntolerance.sensitivityType
- *

- */ - @SearchParamDefinition(name="type", path="AllergyIntolerance.sensitivityType", description="The type of sensitivity", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: The type of sensitivity
- * Type: token
- * Path: AllergyIntolerance.sensitivityType
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for substance - *

- * Description: The name or code of the substance that produces the sensitivity
- * Type: reference
- * Path: AllergyIntolerance.substance
- *

- */ - @SearchParamDefinition(name="substance", path="AllergyIntolerance.substance", description="The name or code of the substance that produces the sensitivity", type="reference" ) - public static final String SP_SUBSTANCE = "substance"; - - /** - * Fluent Client search parameter constant for substance - *

- * Description: The name or code of the substance that produces the sensitivity
- * Type: reference
- * Path: AllergyIntolerance.substance
- *

- */ - public static final ReferenceClientParam SUBSTANCE = new ReferenceClientParam(SP_SUBSTANCE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AllergyIntolerance.substance". - */ - public static final Include INCLUDE_SUBSTANCE = new Include("AllergyIntolerance.substance"); - - /** - * Search parameter constant for date - *

- * Description: Recorded date/time.
- * Type: date
- * Path: AllergyIntolerance.recordedDate
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate", description="Recorded date/time.", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: Recorded date/time.
- * Type: date
- * Path: AllergyIntolerance.recordedDate
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for status - *

- * Description: The status of the sensitivity
- * Type: token
- * Path: AllergyIntolerance.status
- *

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

- * Description: The status of the sensitivity
- * Type: token
- * Path: AllergyIntolerance.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for subject - *

- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: AllergyIntolerance.subject
- *

- */ - @SearchParamDefinition(name="subject", path="AllergyIntolerance.subject", description="The subject that the sensitivity is about", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: AllergyIntolerance.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AllergyIntolerance.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("AllergyIntolerance.subject"); - - /** - * Search parameter constant for recorder - *

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

- */ - @SearchParamDefinition(name="recorder", path="AllergyIntolerance.recorder", description="Who recorded the sensitivity", type="reference" ) - public static final String SP_RECORDER = "recorder"; - - /** - * Fluent Client search parameter constant for recorder - *

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

- */ - public static final ReferenceClientParam RECORDER = new ReferenceClientParam(SP_RECORDER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AllergyIntolerance.recorder". - */ - public static final Include INCLUDE_RECORDER = new Include("AllergyIntolerance.recorder"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this item", - formalDefinition="This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="criticality", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="fatal | high | medium | low", - formalDefinition="Criticality of the sensitivity" - ) - private BoundCodeDt myCriticality; - - @Child(name="sensitivityType", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="allergy | intolerance | unknown", - formalDefinition="Type of the sensitivity" - ) - private BoundCodeDt mySensitivityType; - - @Child(name="recordedDate", type=DateTimeDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="When recorded", - formalDefinition="Date when the sensitivity was recorded" - ) - private DateTimeDt myRecordedDate; - - @Child(name="status", type=CodeDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="suspected | confirmed | refuted | resolved", - formalDefinition="Status of the sensitivity" - ) - private BoundCodeDt myStatus; - - @Child(name="subject", order=5, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who the sensitivity is for", - formalDefinition="The patient who has the allergy or intolerance" - ) - private ResourceReferenceDt mySubject; - - @Child(name="recorder", order=6, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who recorded the sensitivity", - formalDefinition="Indicates who has responsibility for the record" - ) - private ResourceReferenceDt myRecorder; - - @Child(name="substance", order=7, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Substance.class }) - @Description( - shortDefinition="The substance that causes the sensitivity", - formalDefinition="The substance that causes the sensitivity" - ) - private ResourceReferenceDt mySubstance; - - @Child(name="reaction", order=8, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.AdverseReaction.class }) - @Description( - shortDefinition="Reactions associated with the sensitivity", - formalDefinition="Reactions associated with the sensitivity" - ) - private java.util.List myReaction; - - @Child(name="sensitivityTest", order=9, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Observation.class }) - @Description( - shortDefinition="Observations that confirm or refute", - formalDefinition="Observations that confirm or refute the sensitivity" - ) - private java.util.List mySensitivityTest; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCriticality, mySensitivityType, myRecordedDate, myStatus, mySubject, myRecorder, mySubstance, myReaction, mySensitivityTest); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCriticality, mySensitivityType, myRecordedDate, myStatus, mySubject, myRecorder, mySubstance, myReaction, mySensitivityTest); - } - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public AllergyIntolerance setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AllergyIntolerance addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AllergyIntolerance addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for criticality (fatal | high | medium | low). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Criticality of the sensitivity - *

- */ - public BoundCodeDt getCriticality() { - if (myCriticality == null) { - myCriticality = new BoundCodeDt(CriticalityEnum.VALUESET_BINDER); - } - return myCriticality; - } - - - /** - * Gets the value(s) for criticality (fatal | high | medium | low). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Criticality of the sensitivity - *

- */ - public BoundCodeDt getCriticalityElement() { - if (myCriticality == null) { - myCriticality = new BoundCodeDt(CriticalityEnum.VALUESET_BINDER); - } - return myCriticality; - } - - - /** - * Sets the value(s) for criticality (fatal | high | medium | low) - * - *

- * Definition: - * Criticality of the sensitivity - *

- */ - public AllergyIntolerance setCriticality(BoundCodeDt theValue) { - myCriticality = theValue; - return this; - } - - /** - * Sets the value(s) for criticality (fatal | high | medium | low) - * - *

- * Definition: - * Criticality of the sensitivity - *

- */ - public AllergyIntolerance setCriticality(CriticalityEnum theValue) { - getCriticality().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for sensitivityType (allergy | intolerance | unknown). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the sensitivity - *

- */ - public BoundCodeDt getSensitivityType() { - if (mySensitivityType == null) { - mySensitivityType = new BoundCodeDt(SensitivityTypeEnum.VALUESET_BINDER); - } - return mySensitivityType; - } - - - /** - * Gets the value(s) for sensitivityType (allergy | intolerance | unknown). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the sensitivity - *

- */ - public BoundCodeDt getSensitivityTypeElement() { - if (mySensitivityType == null) { - mySensitivityType = new BoundCodeDt(SensitivityTypeEnum.VALUESET_BINDER); - } - return mySensitivityType; - } - - - /** - * Sets the value(s) for sensitivityType (allergy | intolerance | unknown) - * - *

- * Definition: - * Type of the sensitivity - *

- */ - public AllergyIntolerance setSensitivityType(BoundCodeDt theValue) { - mySensitivityType = theValue; - return this; - } - - /** - * Sets the value(s) for sensitivityType (allergy | intolerance | unknown) - * - *

- * Definition: - * Type of the sensitivity - *

- */ - public AllergyIntolerance setSensitivityType(SensitivityTypeEnum theValue) { - getSensitivityType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for recordedDate (When recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when the sensitivity was recorded - *

- */ - public DateTimeDt getRecordedDate() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - - /** - * Gets the value(s) for recordedDate (When recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when the sensitivity was recorded - *

- */ - public DateTimeDt getRecordedDateElement() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - - /** - * Sets the value(s) for recordedDate (When recorded) - * - *

- * Definition: - * Date when the sensitivity was recorded - *

- */ - public AllergyIntolerance setRecordedDate(DateTimeDt theValue) { - myRecordedDate = theValue; - return this; - } - - /** - * Sets the value for recordedDate (When recorded) - * - *

- * Definition: - * Date when the sensitivity was recorded - *

- */ - public AllergyIntolerance setRecordedDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myRecordedDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for recordedDate (When recorded) - * - *

- * Definition: - * Date when the sensitivity was recorded - *

- */ - public AllergyIntolerance setRecordedDateWithSecondsPrecision( Date theDate) { - myRecordedDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for status (suspected | confirmed | refuted | resolved). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Status of the sensitivity - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(SensitivityStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (suspected | confirmed | refuted | resolved). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Status of the sensitivity - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(SensitivityStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (suspected | confirmed | refuted | resolved) - * - *

- * Definition: - * Status of the sensitivity - *

- */ - public AllergyIntolerance setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (suspected | confirmed | refuted | resolved) - * - *

- * Definition: - * Status of the sensitivity - *

- */ - public AllergyIntolerance setStatus(SensitivityStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for subject (Who the sensitivity is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient who has the allergy or intolerance - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who the sensitivity is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient who has the allergy or intolerance - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who the sensitivity is for) - * - *

- * Definition: - * The patient who has the allergy or intolerance - *

- */ - public AllergyIntolerance setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for recorder (Who recorded the sensitivity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates who has responsibility for the record - *

- */ - public ResourceReferenceDt getRecorder() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - - /** - * Gets the value(s) for recorder (Who recorded the sensitivity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates who has responsibility for the record - *

- */ - public ResourceReferenceDt getRecorderElement() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - - /** - * Sets the value(s) for recorder (Who recorded the sensitivity) - * - *

- * Definition: - * Indicates who has responsibility for the record - *

- */ - public AllergyIntolerance setRecorder(ResourceReferenceDt theValue) { - myRecorder = theValue; - return this; - } - - - /** - * Gets the value(s) for substance (The substance that causes the sensitivity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The substance that causes the sensitivity - *

- */ - public ResourceReferenceDt getSubstance() { - if (mySubstance == null) { - mySubstance = new ResourceReferenceDt(); - } - return mySubstance; - } - - - /** - * Gets the value(s) for substance (The substance that causes the sensitivity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The substance that causes the sensitivity - *

- */ - public ResourceReferenceDt getSubstanceElement() { - if (mySubstance == null) { - mySubstance = new ResourceReferenceDt(); - } - return mySubstance; - } - - - /** - * Sets the value(s) for substance (The substance that causes the sensitivity) - * - *

- * Definition: - * The substance that causes the sensitivity - *

- */ - public AllergyIntolerance setSubstance(ResourceReferenceDt theValue) { - mySubstance = theValue; - return this; - } - - - /** - * Gets the value(s) for reaction (Reactions associated with the sensitivity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reactions associated with the sensitivity - *

- */ - public java.util.List getReaction() { - if (myReaction == null) { - myReaction = new java.util.ArrayList(); - } - return myReaction; - } - - - /** - * Gets the value(s) for reaction (Reactions associated with the sensitivity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reactions associated with the sensitivity - *

- */ - public java.util.List getReactionElement() { - if (myReaction == null) { - myReaction = new java.util.ArrayList(); - } - return myReaction; - } - - - /** - * Sets the value(s) for reaction (Reactions associated with the sensitivity) - * - *

- * Definition: - * Reactions associated with the sensitivity - *

- */ - public AllergyIntolerance setReaction(java.util.List theValue) { - myReaction = theValue; - return this; - } - - /** - * Adds and returns a new value for reaction (Reactions associated with the sensitivity) - * - *

- * Definition: - * Reactions associated with the sensitivity - *

- */ - public ResourceReferenceDt addReaction() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getReaction().add(newType); - return newType; - } - - /** - * Gets the value(s) for sensitivityTest (Observations that confirm or refute). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Observations that confirm or refute the sensitivity - *

- */ - public java.util.List getSensitivityTest() { - if (mySensitivityTest == null) { - mySensitivityTest = new java.util.ArrayList(); - } - return mySensitivityTest; - } - - - /** - * Gets the value(s) for sensitivityTest (Observations that confirm or refute). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Observations that confirm or refute the sensitivity - *

- */ - public java.util.List getSensitivityTestElement() { - if (mySensitivityTest == null) { - mySensitivityTest = new java.util.ArrayList(); - } - return mySensitivityTest; - } - - - /** - * Sets the value(s) for sensitivityTest (Observations that confirm or refute) - * - *

- * Definition: - * Observations that confirm or refute the sensitivity - *

- */ - public AllergyIntolerance setSensitivityTest(java.util.List theValue) { - mySensitivityTest = theValue; - return this; - } - - /** - * Adds and returns a new value for sensitivityTest (Observations that confirm or refute) - * - *

- * Definition: - * Observations that confirm or refute the sensitivity - *

- */ - public ResourceReferenceDt addSensitivityTest() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSensitivityTest().add(newType); - return newType; - } - - - - @Override - public String getResourceName() { - return "AllergyIntolerance"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Appointment.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Appointment.java deleted file mode 100644 index 7de730861b8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Appointment.java +++ /dev/null @@ -1,1885 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Appointment Resource - * ((informative) A scheduled appointment for a patient and/or practitioner(s) where a service may take place) - * - *

- * Definition: - * A scheduled appointment for a patient and/or practitioner(s) where a service may take place. - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Appointment - *

- * - */ -@ResourceDef(name="Appointment", profile="http://hl7.org/fhir/profiles/Appointment", id="appointment") -public class Appointment - extends BaseResource implements IResource { - - /** - * Search parameter constant for date - *

- * Description: Appointment date/time.
- * Type: date
- * Path: Appointment.start
- *

- */ - @SearchParamDefinition(name="date", path="Appointment.start", description="Appointment date/time.", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: Appointment date/time.
- * Type: date
- * Path: Appointment.start
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for status - *

- * Description: The overall status of the appointment
- * Type: string
- * Path: Appointment.status
- *

- */ - @SearchParamDefinition(name="status", path="Appointment.status", description="The overall status of the appointment", type="string" ) - public static final String SP_STATUS = "status"; - - /** - * Fluent Client search parameter constant for status - *

- * Description: The overall status of the appointment
- * Type: string
- * Path: Appointment.status
- *

- */ - public static final StringClientParam STATUS = new StringClientParam(SP_STATUS); - - /** - * Search parameter constant for subject - *

- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: Appointment.participant.individual
- *

- */ - @SearchParamDefinition(name="subject", path="Appointment.participant.individual", description="The subject that the sensitivity is about", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: Appointment.participant.individual
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Appointment.participant.individual". - */ - public static final Include INCLUDE_PARTICIPANT_INDIVIDUAL = new Include("Appointment.participant.individual"); - - /** - * Search parameter constant for partstatus - *

- * Description: The Participation status of the subject, or other participant on the appointment
- * Type: token
- * Path: Appointment.participant.status
- *

- */ - @SearchParamDefinition(name="partstatus", path="Appointment.participant.status", description="The Participation status of the subject, or other participant on the appointment ", type="token" ) - public static final String SP_PARTSTATUS = "partstatus"; - - /** - * Fluent Client search parameter constant for partstatus - *

- * Description: The Participation status of the subject, or other participant on the appointment
- * Type: token
- * Path: Appointment.participant.status
- *

- */ - public static final TokenClientParam PARTSTATUS = new TokenClientParam(SP_PARTSTATUS); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this item", - formalDefinition="This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="priority", type=IntegerDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)", - formalDefinition="" - ) - private IntegerDt myPriority; - - @Child(name="status", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="The overall status of the Appointment", - formalDefinition="Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status" - ) - private CodeDt myStatus; - - @Child(name="description", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field", - formalDefinition="" - ) - private StringDt myDescription; - - @Child(name="start", type=InstantDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Date/Time that the appointment is to take place", - formalDefinition="" - ) - private InstantDt myStart; - - @Child(name="end", type=InstantDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Date/Time that the appointment is to conclude", - formalDefinition="" - ) - private InstantDt myEnd; - - @Child(name="schedule", type=ScheduleDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment", - formalDefinition="" - ) - private ScheduleDt mySchedule; - - @Child(name="timezone", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry", - formalDefinition="The timezone should be a value referenced from a timezone database" - ) - private StringDt myTimezone; - - @Child(name="slot", order=8, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Slot.class }) - @Description( - shortDefinition="The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot", - formalDefinition="" - ) - private java.util.List mySlot; - - @Child(name="location", order=9, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="The primary location that this appointment is to take place", - formalDefinition="" - ) - private ResourceReferenceDt myLocation; - - @Child(name="comment", type=StringDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Additional comments about the appointment", - formalDefinition="" - ) - private StringDt myComment; - - @Child(name="order", order=11, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Order.class }) - @Description( - shortDefinition="An Order that lead to the creation of this appointment", - formalDefinition="" - ) - private ResourceReferenceDt myOrder; - - @Child(name="participant", order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="List of participants involved in the appointment", - formalDefinition="" - ) - private java.util.List myParticipant; - - @Child(name="recorder", order=13, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Who recorded the appointment", - formalDefinition="" - ) - private ResourceReferenceDt myRecorder; - - @Child(name="recordedDate", type=DateTimeDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="Date when the sensitivity was recorded", - formalDefinition="" - ) - private DateTimeDt myRecordedDate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myPriority, myStatus, myDescription, myStart, myEnd, mySchedule, myTimezone, mySlot, myLocation, myComment, myOrder, myParticipant, myRecorder, myRecordedDate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myPriority, myStatus, myDescription, myStart, myEnd, mySchedule, myTimezone, mySlot, myLocation, myComment, myOrder, myParticipant, myRecorder, myRecordedDate); - } - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public Appointment setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Appointment addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Appointment addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for priority (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IntegerDt getPriority() { - if (myPriority == null) { - myPriority = new IntegerDt(); - } - return myPriority; - } - - - /** - * Gets the value(s) for priority (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IntegerDt getPriorityElement() { - if (myPriority == null) { - myPriority = new IntegerDt(); - } - return myPriority; - } - - - /** - * Sets the value(s) for priority (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)) - * - *

- * Definition: - * - *

- */ - public Appointment setPriority(IntegerDt theValue) { - myPriority = theValue; - return this; - } - - /** - * Sets the value for priority (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)) - * - *

- * Definition: - * - *

- */ - public Appointment setPriority( int theInteger) { - myPriority = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for status (The overall status of the Appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status - *

- */ - public CodeDt getStatus() { - if (myStatus == null) { - myStatus = new CodeDt(); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (The overall status of the Appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status - *

- */ - public CodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new CodeDt(); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (The overall status of the Appointment) - * - *

- * Definition: - * Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status - *

- */ - public Appointment setStatus(CodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value for status (The overall status of the Appointment) - * - *

- * Definition: - * Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status - *

- */ - public Appointment setStatus( String theCode) { - myStatus = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for description (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field) - * - *

- * Definition: - * - *

- */ - public Appointment setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field) - * - *

- * Definition: - * - *

- */ - public Appointment setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for start (Date/Time that the appointment is to take place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getStart() { - if (myStart == null) { - myStart = new InstantDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Date/Time that the appointment is to take place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getStartElement() { - if (myStart == null) { - myStart = new InstantDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Date/Time that the appointment is to take place) - * - *

- * Definition: - * - *

- */ - public Appointment setStart(InstantDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Date/Time that the appointment is to take place) - * - *

- * Definition: - * - *

- */ - public Appointment setStartWithMillisPrecision( Date theDate) { - myStart = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for start (Date/Time that the appointment is to take place) - * - *

- * Definition: - * - *

- */ - public Appointment setStart( Date theDate, TemporalPrecisionEnum thePrecision) { - myStart = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for end (Date/Time that the appointment is to conclude). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getEnd() { - if (myEnd == null) { - myEnd = new InstantDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (Date/Time that the appointment is to conclude). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getEndElement() { - if (myEnd == null) { - myEnd = new InstantDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (Date/Time that the appointment is to conclude) - * - *

- * Definition: - * - *

- */ - public Appointment setEnd(InstantDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (Date/Time that the appointment is to conclude) - * - *

- * Definition: - * - *

- */ - public Appointment setEndWithMillisPrecision( Date theDate) { - myEnd = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for end (Date/Time that the appointment is to conclude) - * - *

- * Definition: - * - *

- */ - public Appointment setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ScheduleDt getSchedule() { - if (mySchedule == null) { - mySchedule = new ScheduleDt(); - } - return mySchedule; - } - - - /** - * Gets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ScheduleDt getScheduleElement() { - if (mySchedule == null) { - mySchedule = new ScheduleDt(); - } - return mySchedule; - } - - - /** - * Sets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment) - * - *

- * Definition: - * - *

- */ - public Appointment setSchedule(ScheduleDt theValue) { - mySchedule = theValue; - return this; - } - - - /** - * Gets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timezone should be a value referenced from a timezone database - *

- */ - public StringDt getTimezone() { - if (myTimezone == null) { - myTimezone = new StringDt(); - } - return myTimezone; - } - - - /** - * Gets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timezone should be a value referenced from a timezone database - *

- */ - public StringDt getTimezoneElement() { - if (myTimezone == null) { - myTimezone = new StringDt(); - } - return myTimezone; - } - - - /** - * Sets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry) - * - *

- * Definition: - * The timezone should be a value referenced from a timezone database - *

- */ - public Appointment setTimezone(StringDt theValue) { - myTimezone = theValue; - return this; - } - - /** - * Sets the value for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry) - * - *

- * Definition: - * The timezone should be a value referenced from a timezone database - *

- */ - public Appointment setTimezone( String theString) { - myTimezone = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for slot (The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getSlot() { - if (mySlot == null) { - mySlot = new java.util.ArrayList(); - } - return mySlot; - } - - - /** - * Gets the value(s) for slot (The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getSlotElement() { - if (mySlot == null) { - mySlot = new java.util.ArrayList(); - } - return mySlot; - } - - - /** - * Sets the value(s) for slot (The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot) - * - *

- * Definition: - * - *

- */ - public Appointment setSlot(java.util.List theValue) { - mySlot = theValue; - return this; - } - - /** - * Adds and returns a new value for slot (The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot) - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt addSlot() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSlot().add(newType); - return newType; - } - - /** - * Gets the value(s) for location (The primary location that this appointment is to take place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getLocation() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (The primary location that this appointment is to take place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getLocationElement() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (The primary location that this appointment is to take place) - * - *

- * Definition: - * - *

- */ - public Appointment setLocation(ResourceReferenceDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for comment (Additional comments about the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getComment() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Gets the value(s) for comment (Additional comments about the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getCommentElement() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Sets the value(s) for comment (Additional comments about the appointment) - * - *

- * Definition: - * - *

- */ - public Appointment setComment(StringDt theValue) { - myComment = theValue; - return this; - } - - /** - * Sets the value for comment (Additional comments about the appointment) - * - *

- * Definition: - * - *

- */ - public Appointment setComment( String theString) { - myComment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for order (An Order that lead to the creation of this appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getOrder() { - if (myOrder == null) { - myOrder = new ResourceReferenceDt(); - } - return myOrder; - } - - - /** - * Gets the value(s) for order (An Order that lead to the creation of this appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getOrderElement() { - if (myOrder == null) { - myOrder = new ResourceReferenceDt(); - } - return myOrder; - } - - - /** - * Sets the value(s) for order (An Order that lead to the creation of this appointment) - * - *

- * Definition: - * - *

- */ - public Appointment setOrder(ResourceReferenceDt theValue) { - myOrder = theValue; - return this; - } - - - /** - * Gets the value(s) for participant (List of participants involved in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getParticipant() { - if (myParticipant == null) { - myParticipant = new java.util.ArrayList(); - } - return myParticipant; - } - - - /** - * Gets the value(s) for participant (List of participants involved in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getParticipantElement() { - if (myParticipant == null) { - myParticipant = new java.util.ArrayList(); - } - return myParticipant; - } - - - /** - * Sets the value(s) for participant (List of participants involved in the appointment) - * - *

- * Definition: - * - *

- */ - public Appointment setParticipant(java.util.List theValue) { - myParticipant = theValue; - return this; - } - - /** - * Adds and returns a new value for participant (List of participants involved in the appointment) - * - *

- * Definition: - * - *

- */ - public Participant addParticipant() { - Participant newType = new Participant(); - getParticipant().add(newType); - return newType; - } - - /** - * Gets the first repetition for participant (List of participants involved in the appointment), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public Participant getParticipantFirstRep() { - if (getParticipant().isEmpty()) { - return addParticipant(); - } - return getParticipant().get(0); - } - - /** - * Gets the value(s) for recorder (Who recorded the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getRecorder() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - - /** - * Gets the value(s) for recorder (Who recorded the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getRecorderElement() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - - /** - * Sets the value(s) for recorder (Who recorded the appointment) - * - *

- * Definition: - * - *

- */ - public Appointment setRecorder(ResourceReferenceDt theValue) { - myRecorder = theValue; - return this; - } - - - /** - * Gets the value(s) for recordedDate (Date when the sensitivity was recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getRecordedDate() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - - /** - * Gets the value(s) for recordedDate (Date when the sensitivity was recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getRecordedDateElement() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - - /** - * Sets the value(s) for recordedDate (Date when the sensitivity was recorded) - * - *

- * Definition: - * - *

- */ - public Appointment setRecordedDate(DateTimeDt theValue) { - myRecordedDate = theValue; - return this; - } - - /** - * Sets the value for recordedDate (Date when the sensitivity was recorded) - * - *

- * Definition: - * - *

- */ - public Appointment setRecordedDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myRecordedDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for recordedDate (Date when the sensitivity was recorded) - * - *

- * Definition: - * - *

- */ - public Appointment setRecordedDateWithSecondsPrecision( Date theDate) { - myRecordedDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Block class for child element: Appointment.participant (List of participants involved in the appointment) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Participant - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Role of participant in the appointment", - formalDefinition="" - ) - private java.util.List> myType; - - @Child(name="individual", order=1, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="A Person of device that is participating in the appointment", - formalDefinition="" - ) - private java.util.List myIndividual; - - @Child(name="required", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="required | optional | information-only", - formalDefinition="Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present." - ) - private CodeDt myRequired; - - @Child(name="status", type=CodeDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="accepted | declined | tentative | in-process | completed | needs-action", - formalDefinition="Participation status of the Patient" - ) - private CodeDt myStatus; - - @Child(name="observation", order=4, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Observation.class }) - @Description( - shortDefinition="Observations that lead to the creation of this appointment. (Is this 80%)", - formalDefinition="" - ) - private java.util.List myObservation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myIndividual, myRequired, myStatus, myObservation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myIndividual, myRequired, myStatus, myObservation); - } - - /** - * Gets the value(s) for type (Role of participant in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List> getType() { - if (myType == null) { - myType = new java.util.ArrayList>(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Role of participant in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List> getTypeElement() { - if (myType == null) { - myType = new java.util.ArrayList>(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Role of participant in the appointment) - * - *

- * Definition: - * - *

- */ - public Participant setType(java.util.List> theValue) { - myType = theValue; - return this; - } - - /** - * Add a value for type (Role of participant in the appointment) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addType()} method. - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt addType(ParticipantTypeEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER, theValue); - getType().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for type (Role of participant in the appointment), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt getTypeFirstRep() { - if (getType().size() == 0) { - addType(); - } - return getType().get(0); - } - - /** - * Add a value for type (Role of participant in the appointment) - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt addType() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER); - getType().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for type (Role of participant in the appointment) - * - *

- * Definition: - * - *

- */ - public Participant setType(ParticipantTypeEnum theValue) { - getType().clear(); - addType(theValue); - return this; - } - - - /** - * Gets the value(s) for individual (A Person of device that is participating in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIndividual() { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - return myIndividual; - } - - - /** - * Gets the value(s) for individual (A Person of device that is participating in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIndividualElement() { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - return myIndividual; - } - - - /** - * Sets the value(s) for individual (A Person of device that is participating in the appointment) - * - *

- * Definition: - * - *

- */ - public Participant setIndividual(java.util.List theValue) { - myIndividual = theValue; - return this; - } - - /** - * Adds and returns a new value for individual (A Person of device that is participating in the appointment) - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt addIndividual() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getIndividual().add(newType); - return newType; - } - - /** - * Gets the value(s) for required (required | optional | information-only). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. - *

- */ - public CodeDt getRequired() { - if (myRequired == null) { - myRequired = new CodeDt(); - } - return myRequired; - } - - - /** - * Gets the value(s) for required (required | optional | information-only). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. - *

- */ - public CodeDt getRequiredElement() { - if (myRequired == null) { - myRequired = new CodeDt(); - } - return myRequired; - } - - - /** - * Sets the value(s) for required (required | optional | information-only) - * - *

- * Definition: - * Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. - *

- */ - public Participant setRequired(CodeDt theValue) { - myRequired = theValue; - return this; - } - - /** - * Sets the value for required (required | optional | information-only) - * - *

- * Definition: - * Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. - *

- */ - public Participant setRequired( String theCode) { - myRequired = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for status (accepted | declined | tentative | in-process | completed | needs-action). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Participation status of the Patient - *

- */ - public CodeDt getStatus() { - if (myStatus == null) { - myStatus = new CodeDt(); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (accepted | declined | tentative | in-process | completed | needs-action). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Participation status of the Patient - *

- */ - public CodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new CodeDt(); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (accepted | declined | tentative | in-process | completed | needs-action) - * - *

- * Definition: - * Participation status of the Patient - *

- */ - public Participant setStatus(CodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value for status (accepted | declined | tentative | in-process | completed | needs-action) - * - *

- * Definition: - * Participation status of the Patient - *

- */ - public Participant setStatus( String theCode) { - myStatus = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for observation (Observations that lead to the creation of this appointment. (Is this 80%)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getObservation() { - if (myObservation == null) { - myObservation = new java.util.ArrayList(); - } - return myObservation; - } - - - /** - * Gets the value(s) for observation (Observations that lead to the creation of this appointment. (Is this 80%)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getObservationElement() { - if (myObservation == null) { - myObservation = new java.util.ArrayList(); - } - return myObservation; - } - - - /** - * Sets the value(s) for observation (Observations that lead to the creation of this appointment. (Is this 80%)) - * - *

- * Definition: - * - *

- */ - public Participant setObservation(java.util.List theValue) { - myObservation = theValue; - return this; - } - - /** - * Adds and returns a new value for observation (Observations that lead to the creation of this appointment. (Is this 80%)) - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt addObservation() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getObservation().add(newType); - return newType; - } - - - } - - - - - @Override - public String getResourceName() { - return "Appointment"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AppointmentResponse.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AppointmentResponse.java deleted file mode 100644 index 9bee5813268..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/AppointmentResponse.java +++ /dev/null @@ -1,1277 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR AppointmentResponse Resource - * ((informative) A response to a scheduled appointment for a patient and/or practitioner(s)) - * - *

- * Definition: - * A scheduled appointment for a patient and/or practitioner(s) where a service may take place. - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/AppointmentResponse - *

- * - */ -@ResourceDef(name="AppointmentResponse", profile="http://hl7.org/fhir/profiles/AppointmentResponse", id="appointmentresponse") -public class AppointmentResponse - extends BaseResource implements IResource { - - /** - * Search parameter constant for partstatus - *

- * Description: The overall status of the appointment
- * Type: string
- * Path: AppointmentResponse.participantStatus
- *

- */ - @SearchParamDefinition(name="partstatus", path="AppointmentResponse.participantStatus", description="The overall status of the appointment", type="string" ) - public static final String SP_PARTSTATUS = "partstatus"; - - /** - * Fluent Client search parameter constant for partstatus - *

- * Description: The overall status of the appointment
- * Type: string
- * Path: AppointmentResponse.participantStatus
- *

- */ - public static final StringClientParam PARTSTATUS = new StringClientParam(SP_PARTSTATUS); - - /** - * Search parameter constant for subject - *

- * Description: The subject that the appointment response replies for
- * Type: reference
- * Path: AppointmentResponse.individual
- *

- */ - @SearchParamDefinition(name="subject", path="AppointmentResponse.individual", description="The subject that the appointment response replies for", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject that the appointment response replies for
- * Type: reference
- * Path: AppointmentResponse.individual
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AppointmentResponse.individual". - */ - public static final Include INCLUDE_INDIVIDUAL = new Include("AppointmentResponse.individual"); - - /** - * Search parameter constant for appointment - *

- * Description: The appointment that the response is attached to
- * Type: reference
- * Path: AppointmentResponse.appointment
- *

- */ - @SearchParamDefinition(name="appointment", path="AppointmentResponse.appointment", description="The appointment that the response is attached to", type="reference" ) - public static final String SP_APPOINTMENT = "appointment"; - - /** - * Fluent Client search parameter constant for appointment - *

- * Description: The appointment that the response is attached to
- * Type: reference
- * Path: AppointmentResponse.appointment
- *

- */ - public static final ReferenceClientParam APPOINTMENT = new ReferenceClientParam(SP_APPOINTMENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AppointmentResponse.appointment". - */ - public static final Include INCLUDE_APPOINTMENT = new Include("AppointmentResponse.appointment"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this item", - formalDefinition="This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="appointment", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Appointment.class }) - @Description( - shortDefinition="Parent appointment that this response is replying to", - formalDefinition="" - ) - private ResourceReferenceDt myAppointment; - - @Child(name="participantType", type=CodeableConceptDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Role of participant in the appointment", - formalDefinition="" - ) - private java.util.List> myParticipantType; - - @Child(name="individual", order=3, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="A Person of device that is participating in the appointment", - formalDefinition="" - ) - private java.util.List myIndividual; - - @Child(name="participantStatus", type=CodeDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="accepted | declined | tentative | in-process | completed | needs-action", - formalDefinition="Participation status of the Patient" - ) - private CodeDt myParticipantStatus; - - @Child(name="comment", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Additional comments about the appointment", - formalDefinition="" - ) - private StringDt myComment; - - @Child(name="start", type=InstantDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Date/Time that the appointment is to take place", - formalDefinition="" - ) - private InstantDt myStart; - - @Child(name="end", type=InstantDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Date/Time that the appointment is to conclude", - formalDefinition="" - ) - private InstantDt myEnd; - - @Child(name="schedule", type=ScheduleDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment", - formalDefinition="" - ) - private ScheduleDt mySchedule; - - @Child(name="timezone", type=StringDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry", - formalDefinition="The timezone should be a value referenced from a timezone database" - ) - private StringDt myTimezone; - - @Child(name="recorder", order=10, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Who recorded the appointment response", - formalDefinition="" - ) - private ResourceReferenceDt myRecorder; - - @Child(name="recordedDate", type=DateTimeDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Date when the response was recorded or last updated", - formalDefinition="" - ) - private DateTimeDt myRecordedDate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myAppointment, myParticipantType, myIndividual, myParticipantStatus, myComment, myStart, myEnd, mySchedule, myTimezone, myRecorder, myRecordedDate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myAppointment, myParticipantType, myIndividual, myParticipantStatus, myComment, myStart, myEnd, mySchedule, myTimezone, myRecorder, myRecordedDate); - } - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public AppointmentResponse setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AppointmentResponse addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AppointmentResponse addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for appointment (Parent appointment that this response is replying to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAppointment() { - if (myAppointment == null) { - myAppointment = new ResourceReferenceDt(); - } - return myAppointment; - } - - - /** - * Gets the value(s) for appointment (Parent appointment that this response is replying to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAppointmentElement() { - if (myAppointment == null) { - myAppointment = new ResourceReferenceDt(); - } - return myAppointment; - } - - - /** - * Sets the value(s) for appointment (Parent appointment that this response is replying to) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setAppointment(ResourceReferenceDt theValue) { - myAppointment = theValue; - return this; - } - - - /** - * Gets the value(s) for participantType (Role of participant in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List> getParticipantType() { - if (myParticipantType == null) { - myParticipantType = new java.util.ArrayList>(); - } - return myParticipantType; - } - - - /** - * Gets the value(s) for participantType (Role of participant in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List> getParticipantTypeElement() { - if (myParticipantType == null) { - myParticipantType = new java.util.ArrayList>(); - } - return myParticipantType; - } - - - /** - * Sets the value(s) for participantType (Role of participant in the appointment) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setParticipantType(java.util.List> theValue) { - myParticipantType = theValue; - return this; - } - - /** - * Add a value for participantType (Role of participant in the appointment) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addParticipantType()} method. - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt addParticipantType(ParticipantTypeEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER, theValue); - getParticipantType().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for participantType (Role of participant in the appointment), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt getParticipantTypeFirstRep() { - if (getParticipantType().size() == 0) { - addParticipantType(); - } - return getParticipantType().get(0); - } - - /** - * Add a value for participantType (Role of participant in the appointment) - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt addParticipantType() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER); - getParticipantType().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for participantType (Role of participant in the appointment) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setParticipantType(ParticipantTypeEnum theValue) { - getParticipantType().clear(); - addParticipantType(theValue); - return this; - } - - - /** - * Gets the value(s) for individual (A Person of device that is participating in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIndividual() { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - return myIndividual; - } - - - /** - * Gets the value(s) for individual (A Person of device that is participating in the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIndividualElement() { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - return myIndividual; - } - - - /** - * Sets the value(s) for individual (A Person of device that is participating in the appointment) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setIndividual(java.util.List theValue) { - myIndividual = theValue; - return this; - } - - /** - * Adds and returns a new value for individual (A Person of device that is participating in the appointment) - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt addIndividual() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getIndividual().add(newType); - return newType; - } - - /** - * Gets the value(s) for participantStatus (accepted | declined | tentative | in-process | completed | needs-action). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Participation status of the Patient - *

- */ - public CodeDt getParticipantStatus() { - if (myParticipantStatus == null) { - myParticipantStatus = new CodeDt(); - } - return myParticipantStatus; - } - - - /** - * Gets the value(s) for participantStatus (accepted | declined | tentative | in-process | completed | needs-action). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Participation status of the Patient - *

- */ - public CodeDt getParticipantStatusElement() { - if (myParticipantStatus == null) { - myParticipantStatus = new CodeDt(); - } - return myParticipantStatus; - } - - - /** - * Sets the value(s) for participantStatus (accepted | declined | tentative | in-process | completed | needs-action) - * - *

- * Definition: - * Participation status of the Patient - *

- */ - public AppointmentResponse setParticipantStatus(CodeDt theValue) { - myParticipantStatus = theValue; - return this; - } - - /** - * Sets the value for participantStatus (accepted | declined | tentative | in-process | completed | needs-action) - * - *

- * Definition: - * Participation status of the Patient - *

- */ - public AppointmentResponse setParticipantStatus( String theCode) { - myParticipantStatus = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for comment (Additional comments about the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getComment() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Gets the value(s) for comment (Additional comments about the appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getCommentElement() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Sets the value(s) for comment (Additional comments about the appointment) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setComment(StringDt theValue) { - myComment = theValue; - return this; - } - - /** - * Sets the value for comment (Additional comments about the appointment) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setComment( String theString) { - myComment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for start (Date/Time that the appointment is to take place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getStart() { - if (myStart == null) { - myStart = new InstantDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Date/Time that the appointment is to take place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getStartElement() { - if (myStart == null) { - myStart = new InstantDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Date/Time that the appointment is to take place) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setStart(InstantDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Date/Time that the appointment is to take place) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setStartWithMillisPrecision( Date theDate) { - myStart = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for start (Date/Time that the appointment is to take place) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setStart( Date theDate, TemporalPrecisionEnum thePrecision) { - myStart = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for end (Date/Time that the appointment is to conclude). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getEnd() { - if (myEnd == null) { - myEnd = new InstantDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (Date/Time that the appointment is to conclude). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getEndElement() { - if (myEnd == null) { - myEnd = new InstantDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (Date/Time that the appointment is to conclude) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setEnd(InstantDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (Date/Time that the appointment is to conclude) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setEndWithMillisPrecision( Date theDate) { - myEnd = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for end (Date/Time that the appointment is to conclude) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ScheduleDt getSchedule() { - if (mySchedule == null) { - mySchedule = new ScheduleDt(); - } - return mySchedule; - } - - - /** - * Gets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ScheduleDt getScheduleElement() { - if (mySchedule == null) { - mySchedule = new ScheduleDt(); - } - return mySchedule; - } - - - /** - * Sets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setSchedule(ScheduleDt theValue) { - mySchedule = theValue; - return this; - } - - - /** - * Gets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timezone should be a value referenced from a timezone database - *

- */ - public StringDt getTimezone() { - if (myTimezone == null) { - myTimezone = new StringDt(); - } - return myTimezone; - } - - - /** - * Gets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timezone should be a value referenced from a timezone database - *

- */ - public StringDt getTimezoneElement() { - if (myTimezone == null) { - myTimezone = new StringDt(); - } - return myTimezone; - } - - - /** - * Sets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry) - * - *

- * Definition: - * The timezone should be a value referenced from a timezone database - *

- */ - public AppointmentResponse setTimezone(StringDt theValue) { - myTimezone = theValue; - return this; - } - - /** - * Sets the value for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry) - * - *

- * Definition: - * The timezone should be a value referenced from a timezone database - *

- */ - public AppointmentResponse setTimezone( String theString) { - myTimezone = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for recorder (Who recorded the appointment response). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getRecorder() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - - /** - * Gets the value(s) for recorder (Who recorded the appointment response). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getRecorderElement() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - - /** - * Sets the value(s) for recorder (Who recorded the appointment response) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setRecorder(ResourceReferenceDt theValue) { - myRecorder = theValue; - return this; - } - - - /** - * Gets the value(s) for recordedDate (Date when the response was recorded or last updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getRecordedDate() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - - /** - * Gets the value(s) for recordedDate (Date when the response was recorded or last updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getRecordedDateElement() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - - /** - * Sets the value(s) for recordedDate (Date when the response was recorded or last updated) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setRecordedDate(DateTimeDt theValue) { - myRecordedDate = theValue; - return this; - } - - /** - * Sets the value for recordedDate (Date when the response was recorded or last updated) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setRecordedDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myRecordedDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for recordedDate (Date when the response was recorded or last updated) - * - *

- * Definition: - * - *

- */ - public AppointmentResponse setRecordedDateWithSecondsPrecision( Date theDate) { - myRecordedDate = new DateTimeDt(theDate); - return this; - } - - - - - @Override - public String getResourceName() { - return "AppointmentResponse"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Availability.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Availability.java deleted file mode 100644 index 51a541d0ba9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Availability.java +++ /dev/null @@ -1,812 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Availability Resource - * ((informative) A container for slot(s) of time that may be available for booking appointments) - * - *

- * Definition: - * - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Availability - *

- * - */ -@ResourceDef(name="Availability", profile="http://hl7.org/fhir/profiles/Availability", id="availability") -public class Availability - extends BaseResource implements IResource { - - /** - * Search parameter constant for individual - *

- * Description: The individual to find an availability for
- * Type: reference
- * Path: Availability.individual
- *

- */ - @SearchParamDefinition(name="individual", path="Availability.individual", description="The individual to find an availability for", type="reference" ) - public static final String SP_INDIVIDUAL = "individual"; - - /** - * Fluent Client search parameter constant for individual - *

- * Description: The individual to find an availability for
- * Type: reference
- * Path: Availability.individual
- *

- */ - public static final ReferenceClientParam INDIVIDUAL = new ReferenceClientParam(SP_INDIVIDUAL); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Availability.individual". - */ - public static final Include INCLUDE_INDIVIDUAL = new Include("Availability.individual"); - - /** - * Search parameter constant for slottype - *

- * Description: The type of appointments that can be booked into associated slot(s)
- * Type: token
- * Path: Availability.type
- *

- */ - @SearchParamDefinition(name="slottype", path="Availability.type", description="The type of appointments that can be booked into associated slot(s)", type="token" ) - public static final String SP_SLOTTYPE = "slottype"; - - /** - * Fluent Client search parameter constant for slottype - *

- * Description: The type of appointments that can be booked into associated slot(s)
- * Type: token
- * Path: Availability.type
- *

- */ - public static final TokenClientParam SLOTTYPE = new TokenClientParam(SP_SLOTTYPE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this item", - formalDefinition="" - ) - private java.util.List myIdentifier; - - @Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="The type of appointments that can be booked into slots attached to this availability resource (ideally this would be an identifiable service - which is at a location, rather than the location itself) - change to CodeableConcept", - formalDefinition="" - ) - private CodeableConceptDt myType; - - @Child(name="individual", order=2, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="The type of resource this availability resource is providing availability information for", - formalDefinition="" - ) - private ResourceReferenceDt myIndividual; - - @Child(name="period", type=PeriodDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="The period of time that the slots that are attached to this availability resource cover (even if none exist)", - formalDefinition="" - ) - private PeriodDt myPeriod; - - @Child(name="comment", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated", - formalDefinition="" - ) - private StringDt myComment; - - @Child(name="author", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Who authored the availability", - formalDefinition="" - ) - private ResourceReferenceDt myAuthor; - - @Child(name="authorDate", type=DateTimeDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="When this availability was created, or last revised", - formalDefinition="" - ) - private DateTimeDt myAuthorDate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myIndividual, myPeriod, myComment, myAuthor, myAuthorDate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myIndividual, myPeriod, myComment, myAuthor, myAuthorDate); - } - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this item) - * - *

- * Definition: - * - *

- */ - public Availability setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this item) - * - *

- * Definition: - * - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Availability addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Availability addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for type (The type of appointments that can be booked into slots attached to this availability resource (ideally this would be an identifiable service - which is at a location, rather than the location itself) - change to CodeableConcept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (The type of appointments that can be booked into slots attached to this availability resource (ideally this would be an identifiable service - which is at a location, rather than the location itself) - change to CodeableConcept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (The type of appointments that can be booked into slots attached to this availability resource (ideally this would be an identifiable service - which is at a location, rather than the location itself) - change to CodeableConcept) - * - *

- * Definition: - * - *

- */ - public Availability setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for individual (The type of resource this availability resource is providing availability information for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getIndividual() { - if (myIndividual == null) { - myIndividual = new ResourceReferenceDt(); - } - return myIndividual; - } - - - /** - * Gets the value(s) for individual (The type of resource this availability resource is providing availability information for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getIndividualElement() { - if (myIndividual == null) { - myIndividual = new ResourceReferenceDt(); - } - return myIndividual; - } - - - /** - * Sets the value(s) for individual (The type of resource this availability resource is providing availability information for) - * - *

- * Definition: - * - *

- */ - public Availability setIndividual(ResourceReferenceDt theValue) { - myIndividual = theValue; - return this; - } - - - /** - * Gets the value(s) for period (The period of time that the slots that are attached to this availability resource cover (even if none exist)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (The period of time that the slots that are attached to this availability resource cover (even if none exist)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (The period of time that the slots that are attached to this availability resource cover (even if none exist)) - * - *

- * Definition: - * - *

- */ - public Availability setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for comment (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getComment() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Gets the value(s) for comment (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getCommentElement() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Sets the value(s) for comment (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated) - * - *

- * Definition: - * - *

- */ - public Availability setComment(StringDt theValue) { - myComment = theValue; - return this; - } - - /** - * Sets the value for comment (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated) - * - *

- * Definition: - * - *

- */ - public Availability setComment( String theString) { - myComment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for author (Who authored the availability). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Who authored the availability). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAuthorElement() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Who authored the availability) - * - *

- * Definition: - * - *

- */ - public Availability setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for authorDate (When this availability was created, or last revised). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getAuthorDate() { - if (myAuthorDate == null) { - myAuthorDate = new DateTimeDt(); - } - return myAuthorDate; - } - - - /** - * Gets the value(s) for authorDate (When this availability was created, or last revised). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getAuthorDateElement() { - if (myAuthorDate == null) { - myAuthorDate = new DateTimeDt(); - } - return myAuthorDate; - } - - - /** - * Sets the value(s) for authorDate (When this availability was created, or last revised) - * - *

- * Definition: - * - *

- */ - public Availability setAuthorDate(DateTimeDt theValue) { - myAuthorDate = theValue; - return this; - } - - /** - * Sets the value for authorDate (When this availability was created, or last revised) - * - *

- * Definition: - * - *

- */ - public Availability setAuthorDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myAuthorDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for authorDate (When this availability was created, or last revised) - * - *

- * Definition: - * - *

- */ - public Availability setAuthorDateWithSecondsPrecision( Date theDate) { - myAuthorDate = new DateTimeDt(theDate); - return this; - } - - - - - @Override - public String getResourceName() { - return "Availability"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/BaseResource.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/BaseResource.java deleted file mode 100644 index 4c523541f80..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/BaseResource.java +++ /dev/null @@ -1,164 +0,0 @@ -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import org.apache.commons.lang3.Validate; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -import ca.uhn.fhir.model.api.BaseElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.base.resource.ResourceMetadataMap; -import ca.uhn.fhir.model.dstu.composite.ContainedDt; -import ca.uhn.fhir.model.dstu.composite.NarrativeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.util.ElementUtil; - -public abstract class BaseResource extends BaseElement implements IResource { - - /** - * Search parameter constant for _language - */ - @SearchParamDefinition(name="_language", path="", description="The language of the resource", type="string" ) - public static final String SP_RES_LANGUAGE = "_language"; - - - /** - * Search parameter constant for _id - */ - @SearchParamDefinition(name="_id", path="", description="The ID of the resource", type="string" ) - public static final String SP_RES_ID = "_id"; - - /** - * Fluent Client search parameter constant for _id - *

- * Description: the _id of a resource
- * Type: string
- * Path: Resource._id
- *

- */ - public static final StringClientParam RES_ID = new StringClientParam(BaseResource.SP_RES_ID); - - - @Child(name = "contained", order = 2, min = 0, max = 1) - private ContainedDt myContained; - - private IdDt myId; - - @Child(name = "language", order = 0, min = 0, max = Child.MAX_UNLIMITED) - private CodeDt myLanguage; - - private ResourceMetadataMap myResourceMetadata; - - @Child(name = "text", order = 1, min = 0, max = 1) - private NarrativeDt myText; - - @Override - public ContainedDt getContained() { - if (myContained == null) { - myContained = new ContainedDt(); - } - return myContained; - } - - public IdDt getId() { - if (myId == null) { - myId = new IdDt(); - } - return myId; - } - - @Override - public CodeDt getLanguage() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - @Override - public ResourceMetadataMap getResourceMetadata() { - if (myResourceMetadata == null) { - myResourceMetadata = new ResourceMetadataMap(); - } - return myResourceMetadata; - } - - @Override - public NarrativeDt getText() { - if (myText == null) { - myText = new NarrativeDt(); - } - return myText; - } - - public void setContained(ContainedDt theContained) { - myContained = theContained; - } - - public void setId(IdDt theId) { - myId = theId; - } - - public void setId(String theId) { - if (theId == null) { - myId = null; - } else { - myId = new IdDt(theId); - } - } - - @Override - public void setLanguage(CodeDt theLanguage) { - myLanguage = theLanguage; - } - - @Override - public void setResourceMetadata(ResourceMetadataMap theMap) { - Validate.notNull(theMap, "The Map must not be null"); - myResourceMetadata = theMap; - } - - public void setText(NarrativeDt theText) { - myText = theText; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); - b.append("id", getId().toUnqualified()); - return b.toString(); - } - - /** - * Intended to be called by extending classes {@link #isEmpty()} implementations, returns true if all - * content in this superclass instance is empty per the semantics of {@link #isEmpty()}. - */ - @Override - protected boolean isBaseEmpty() { - return super.isBaseEmpty() && ElementUtil.isEmpty(myLanguage, myText, myId); - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Binary.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Binary.java deleted file mode 100644 index 102e91dfe37..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Binary.java +++ /dev/null @@ -1,111 +0,0 @@ -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.Collections; -import java.util.List; - -import ca.uhn.fhir.context.FhirVersionEnum; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.util.ElementUtil; - -@ResourceDef(name = "Binary", profile = "http://hl7.org/fhir/profiles/Binary", id = "binary") -public class Binary extends BaseResource implements IResource { - - @Child(name = "content", order = 1) - private Base64BinaryDt myContent = new Base64BinaryDt(); - - @Child(name = "contentType", order = 0) - private StringDt myContentType; - - /** - * Constructor - */ - public Binary() { - // nothing - } - - /** - * Constructor - * - * @param theContentType - * The content type - * @param theContent - * The binary contents - */ - public Binary(String theContentType, byte[] theContent) { - setContentType(theContentType); - setContent(theContent); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return Collections.emptyList(); - } - - public byte[] getContent() { - return myContent.getValue(); - } - - public String getContentAsBase64() { - return myContent.getValueAsString(); - } - - public String getContentType() { - if (myContentType == null) { - return null; - } - return myContentType.getValue(); - } - - @Override - public boolean isEmpty() { - return (myContent.isEmpty()) && ElementUtil.isEmpty(myContentType); - } - - public void setContent(byte[] theContent) { - myContent.setValue(theContent); - } - - public void setContentAsBase64(String theContent) { - myContent.setValueAsString(theContent); - } - - public void setContentType(String theContentType) { - myContentType = new StringDt(theContentType); - } - - @Override - public String getResourceName() { - return Binary.class.getName(); - } - - @Override - public FhirVersionEnum getStructureFhirVersionEnum() { - return FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/CarePlan.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/CarePlan.java deleted file mode 100644 index 6cd95e2e76e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/CarePlan.java +++ /dev/null @@ -1,2911 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR CarePlan Resource - * (Healthcare plan for patient) - * - *

- * Definition: - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/CarePlan - *

- * - */ -@ResourceDef(name="CarePlan", profile="http://hl7.org/fhir/profiles/CarePlan", id="careplan") -public class CarePlan - extends BaseResource implements IResource { - - /** - * Search parameter constant for patient - *

- * Description:
- * Type: reference
- * Path: CarePlan.patient
- *

- */ - @SearchParamDefinition(name="patient", path="CarePlan.patient", description="", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description:
- * Type: reference
- * Path: CarePlan.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CarePlan.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("CarePlan.patient"); - - /** - * Search parameter constant for condition - *

- * Description:
- * Type: reference
- * Path: CarePlan.concern
- *

- */ - @SearchParamDefinition(name="condition", path="CarePlan.concern", description="", type="reference" ) - public static final String SP_CONDITION = "condition"; - - /** - * Fluent Client search parameter constant for condition - *

- * Description:
- * Type: reference
- * Path: CarePlan.concern
- *

- */ - public static final ReferenceClientParam CONDITION = new ReferenceClientParam(SP_CONDITION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CarePlan.concern". - */ - public static final Include INCLUDE_CONCERN = new Include("CarePlan.concern"); - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: CarePlan.period
- *

- */ - @SearchParamDefinition(name="date", path="CarePlan.period", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: CarePlan.period
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for participant - *

- * Description:
- * Type: reference
- * Path: CarePlan.participant.member
- *

- */ - @SearchParamDefinition(name="participant", path="CarePlan.participant.member", description="", type="reference" ) - public static final String SP_PARTICIPANT = "participant"; - - /** - * Fluent Client search parameter constant for participant - *

- * Description:
- * Type: reference
- * Path: CarePlan.participant.member
- *

- */ - public static final ReferenceClientParam PARTICIPANT = new ReferenceClientParam(SP_PARTICIPANT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CarePlan.participant.member". - */ - public static final Include INCLUDE_PARTICIPANT_MEMBER = new Include("CarePlan.participant.member"); - - /** - * Search parameter constant for activitycode - *

- * Description:
- * Type: token
- * Path: CarePlan.activity.simple.code
- *

- */ - @SearchParamDefinition(name="activitycode", path="CarePlan.activity.simple.code", description="", type="token" ) - public static final String SP_ACTIVITYCODE = "activitycode"; - - /** - * Fluent Client search parameter constant for activitycode - *

- * Description:
- * Type: token
- * Path: CarePlan.activity.simple.code
- *

- */ - public static final TokenClientParam ACTIVITYCODE = new TokenClientParam(SP_ACTIVITYCODE); - - /** - * Search parameter constant for activitydate - *

- * Description: Specified date occurs within period specified by CarePlan.activity.timingSchedule
- * Type: date
- * Path: CarePlan.activity.simple.timing[x]
- *

- */ - @SearchParamDefinition(name="activitydate", path="CarePlan.activity.simple.timing[x]", description="Specified date occurs within period specified by CarePlan.activity.timingSchedule", type="date" ) - public static final String SP_ACTIVITYDATE = "activitydate"; - - /** - * Fluent Client search parameter constant for activitydate - *

- * Description: Specified date occurs within period specified by CarePlan.activity.timingSchedule
- * Type: date
- * Path: CarePlan.activity.simple.timing[x]
- *

- */ - public static final DateClientParam ACTIVITYDATE = new DateClientParam(SP_ACTIVITYDATE); - - /** - * Search parameter constant for activitydetail - *

- * Description:
- * Type: reference
- * Path: CarePlan.activity.detail
- *

- */ - @SearchParamDefinition(name="activitydetail", path="CarePlan.activity.detail", description="", type="reference" ) - public static final String SP_ACTIVITYDETAIL = "activitydetail"; - - /** - * Fluent Client search parameter constant for activitydetail - *

- * Description:
- * Type: reference
- * Path: CarePlan.activity.detail
- *

- */ - public static final ReferenceClientParam ACTIVITYDETAIL = new ReferenceClientParam(SP_ACTIVITYDETAIL); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CarePlan.activity.detail". - */ - public static final Include INCLUDE_ACTIVITY_DETAIL = new Include("CarePlan.activity.detail"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this plan", - formalDefinition="This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="patient", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who care plan is for", - formalDefinition="Identifies the patient/subject whose intended care is described by the plan." - ) - private ResourceReferenceDt myPatient; - - @Child(name="status", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="planned | active | completed", - formalDefinition="Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record." - ) - private BoundCodeDt myStatus; - - @Child(name="period", type=PeriodDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Time period plan covers", - formalDefinition="Indicates when the plan did (or is intended to) come into effect and end." - ) - private PeriodDt myPeriod; - - @Child(name="modified", type=DateTimeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="When last updated", - formalDefinition="Identifies the most recent date on which the plan has been revised." - ) - private DateTimeDt myModified; - - @Child(name="concern", order=5, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Condition.class }) - @Description( - shortDefinition="Health issues this plan addresses", - formalDefinition="Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan." - ) - private java.util.List myConcern; - - @Child(name="participant", order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Who's involved in plan?", - formalDefinition="Identifies all people and organizations who are expected to be involved in the care envisioned by this plan." - ) - private java.util.List myParticipant; - - @Child(name="goal", order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Desired outcome of plan", - formalDefinition="Describes the intended objective(s) of carrying out the Care Plan." - ) - private java.util.List myGoal; - - @Child(name="activity", order=8, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Action to occur as part of plan", - formalDefinition="Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." - ) - private java.util.List myActivity; - - @Child(name="notes", type=StringDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Comments about the plan", - formalDefinition="General notes about the care plan not covered elsewhere" - ) - private StringDt myNotes; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myPatient, myStatus, myPeriod, myModified, myConcern, myParticipant, myGoal, myActivity, myNotes); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myPatient, myStatus, myPeriod, myModified, myConcern, myParticipant, myGoal, myActivity, myNotes); - } - - /** - * Gets the value(s) for identifier (External Ids for this plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this plan) - * - *

- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public CarePlan setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this plan) - * - *

- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this plan), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this plan) - * - *

- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public CarePlan addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this plan) - * - *

- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public CarePlan addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for patient (Who care plan is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the patient/subject whose intended care is described by the plan. - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Who care plan is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the patient/subject whose intended care is described by the plan. - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Who care plan is for) - * - *

- * Definition: - * Identifies the patient/subject whose intended care is described by the plan. - *

- */ - public CarePlan setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for status (planned | active | completed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(CarePlanStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (planned | active | completed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(CarePlanStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (planned | active | completed) - * - *

- * Definition: - * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. - *

- */ - public CarePlan setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (planned | active | completed) - * - *

- * Definition: - * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. - *

- */ - public CarePlan setStatus(CarePlanStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for period (Time period plan covers). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates when the plan did (or is intended to) come into effect and end. - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Time period plan covers). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates when the plan did (or is intended to) come into effect and end. - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Time period plan covers) - * - *

- * Definition: - * Indicates when the plan did (or is intended to) come into effect and end. - *

- */ - public CarePlan setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for modified (When last updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the most recent date on which the plan has been revised. - *

- */ - public DateTimeDt getModified() { - if (myModified == null) { - myModified = new DateTimeDt(); - } - return myModified; - } - - - /** - * Gets the value(s) for modified (When last updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the most recent date on which the plan has been revised. - *

- */ - public DateTimeDt getModifiedElement() { - if (myModified == null) { - myModified = new DateTimeDt(); - } - return myModified; - } - - - /** - * Sets the value(s) for modified (When last updated) - * - *

- * Definition: - * Identifies the most recent date on which the plan has been revised. - *

- */ - public CarePlan setModified(DateTimeDt theValue) { - myModified = theValue; - return this; - } - - /** - * Sets the value for modified (When last updated) - * - *

- * Definition: - * Identifies the most recent date on which the plan has been revised. - *

- */ - public CarePlan setModified( Date theDate, TemporalPrecisionEnum thePrecision) { - myModified = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for modified (When last updated) - * - *

- * Definition: - * Identifies the most recent date on which the plan has been revised. - *

- */ - public CarePlan setModifiedWithSecondsPrecision( Date theDate) { - myModified = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for concern (Health issues this plan addresses). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. - *

- */ - public java.util.List getConcern() { - if (myConcern == null) { - myConcern = new java.util.ArrayList(); - } - return myConcern; - } - - - /** - * Gets the value(s) for concern (Health issues this plan addresses). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. - *

- */ - public java.util.List getConcernElement() { - if (myConcern == null) { - myConcern = new java.util.ArrayList(); - } - return myConcern; - } - - - /** - * Sets the value(s) for concern (Health issues this plan addresses) - * - *

- * Definition: - * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. - *

- */ - public CarePlan setConcern(java.util.List theValue) { - myConcern = theValue; - return this; - } - - /** - * Adds and returns a new value for concern (Health issues this plan addresses) - * - *

- * Definition: - * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. - *

- */ - public ResourceReferenceDt addConcern() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getConcern().add(newType); - return newType; - } - - /** - * Gets the value(s) for participant (Who's involved in plan?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *

- */ - public java.util.List getParticipant() { - if (myParticipant == null) { - myParticipant = new java.util.ArrayList(); - } - return myParticipant; - } - - - /** - * Gets the value(s) for participant (Who's involved in plan?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *

- */ - public java.util.List getParticipantElement() { - if (myParticipant == null) { - myParticipant = new java.util.ArrayList(); - } - return myParticipant; - } - - - /** - * Sets the value(s) for participant (Who's involved in plan?) - * - *

- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *

- */ - public CarePlan setParticipant(java.util.List theValue) { - myParticipant = theValue; - return this; - } - - /** - * Adds and returns a new value for participant (Who's involved in plan?) - * - *

- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *

- */ - public Participant addParticipant() { - Participant newType = new Participant(); - getParticipant().add(newType); - return newType; - } - - /** - * Gets the first repetition for participant (Who's involved in plan?), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *

- */ - public Participant getParticipantFirstRep() { - if (getParticipant().isEmpty()) { - return addParticipant(); - } - return getParticipant().get(0); - } - - /** - * Gets the value(s) for goal (Desired outcome of plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *

- */ - public java.util.List getGoal() { - if (myGoal == null) { - myGoal = new java.util.ArrayList(); - } - return myGoal; - } - - - /** - * Gets the value(s) for goal (Desired outcome of plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *

- */ - public java.util.List getGoalElement() { - if (myGoal == null) { - myGoal = new java.util.ArrayList(); - } - return myGoal; - } - - - /** - * Sets the value(s) for goal (Desired outcome of plan) - * - *

- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *

- */ - public CarePlan setGoal(java.util.List theValue) { - myGoal = theValue; - return this; - } - - /** - * Adds and returns a new value for goal (Desired outcome of plan) - * - *

- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *

- */ - public Goal addGoal() { - Goal newType = new Goal(); - getGoal().add(newType); - return newType; - } - - /** - * Gets the first repetition for goal (Desired outcome of plan), - * creating it if it does not already exist. - * - *

- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *

- */ - public Goal getGoalFirstRep() { - if (getGoal().isEmpty()) { - return addGoal(); - } - return getGoal().get(0); - } - - /** - * Gets the value(s) for activity (Action to occur as part of plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *

- */ - public java.util.List getActivity() { - if (myActivity == null) { - myActivity = new java.util.ArrayList(); - } - return myActivity; - } - - - /** - * Gets the value(s) for activity (Action to occur as part of plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *

- */ - public java.util.List getActivityElement() { - if (myActivity == null) { - myActivity = new java.util.ArrayList(); - } - return myActivity; - } - - - /** - * Sets the value(s) for activity (Action to occur as part of plan) - * - *

- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *

- */ - public CarePlan setActivity(java.util.List theValue) { - myActivity = theValue; - return this; - } - - /** - * Adds and returns a new value for activity (Action to occur as part of plan) - * - *

- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *

- */ - public Activity addActivity() { - Activity newType = new Activity(); - getActivity().add(newType); - return newType; - } - - /** - * Gets the first repetition for activity (Action to occur as part of plan), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *

- */ - public Activity getActivityFirstRep() { - if (getActivity().isEmpty()) { - return addActivity(); - } - return getActivity().get(0); - } - - /** - * Gets the value(s) for notes (Comments about the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * General notes about the care plan not covered elsewhere - *

- */ - public StringDt getNotes() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Gets the value(s) for notes (Comments about the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * General notes about the care plan not covered elsewhere - *

- */ - public StringDt getNotesElement() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Sets the value(s) for notes (Comments about the plan) - * - *

- * Definition: - * General notes about the care plan not covered elsewhere - *

- */ - public CarePlan setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - /** - * Sets the value for notes (Comments about the plan) - * - *

- * Definition: - * General notes about the care plan not covered elsewhere - *

- */ - public CarePlan setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Block class for child element: CarePlan.participant (Who's involved in plan?) - * - *

- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *

- */ - @Block() - public static class Participant - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="role", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Type of involvement", - formalDefinition="Indicates specific responsibility of an individual within the care plan. E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc." - ) - private CodeableConceptDt myRole; - - @Child(name="member", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Who is involved", - formalDefinition="The specific person or organization who is participating/expected to participate in the care plan." - ) - private ResourceReferenceDt myMember; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myMember); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRole, myMember); - } - - /** - * Gets the value(s) for role (Type of involvement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates specific responsibility of an individual within the care plan. E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc. - *

- */ - public CodeableConceptDt getRole() { - if (myRole == null) { - myRole = new CodeableConceptDt(); - } - return myRole; - } - - - /** - * Gets the value(s) for role (Type of involvement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates specific responsibility of an individual within the care plan. E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc. - *

- */ - public CodeableConceptDt getRoleElement() { - if (myRole == null) { - myRole = new CodeableConceptDt(); - } - return myRole; - } - - - /** - * Sets the value(s) for role (Type of involvement) - * - *

- * Definition: - * Indicates specific responsibility of an individual within the care plan. E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc. - *

- */ - public Participant setRole(CodeableConceptDt theValue) { - myRole = theValue; - return this; - } - - - /** - * Gets the value(s) for member (Who is involved). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specific person or organization who is participating/expected to participate in the care plan. - *

- */ - public ResourceReferenceDt getMember() { - if (myMember == null) { - myMember = new ResourceReferenceDt(); - } - return myMember; - } - - - /** - * Gets the value(s) for member (Who is involved). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specific person or organization who is participating/expected to participate in the care plan. - *

- */ - public ResourceReferenceDt getMemberElement() { - if (myMember == null) { - myMember = new ResourceReferenceDt(); - } - return myMember; - } - - - /** - * Sets the value(s) for member (Who is involved) - * - *

- * Definition: - * The specific person or organization who is participating/expected to participate in the care plan. - *

- */ - public Participant setMember(ResourceReferenceDt theValue) { - myMember = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: CarePlan.goal (Desired outcome of plan) - * - *

- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *

- */ - @Block() - public static class Goal - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="description", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="What's the desired outcome?", - formalDefinition="Human-readable description of a specific desired objective of the care plan." - ) - private StringDt myDescription; - - @Child(name="status", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="in progress | achieved | sustaining | cancelled", - formalDefinition="Indicates whether the goal has been reached and is still considered relevant" - ) - private BoundCodeDt myStatus; - - @Child(name="notes", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Comments about the goal", - formalDefinition="Any comments related to the goal" - ) - private StringDt myNotes; - - @Child(name="concern", order=3, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Condition.class }) - @Description( - shortDefinition="Health issues this goal addresses", - formalDefinition="The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address" - ) - private java.util.List myConcern; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDescription, myStatus, myNotes, myConcern); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDescription, myStatus, myNotes, myConcern); - } - - /** - * Gets the value(s) for description (What's the desired outcome?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of a specific desired objective of the care plan. - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (What's the desired outcome?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of a specific desired objective of the care plan. - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (What's the desired outcome?) - * - *

- * Definition: - * Human-readable description of a specific desired objective of the care plan. - *

- */ - public Goal setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (What's the desired outcome?) - * - *

- * Definition: - * Human-readable description of a specific desired objective of the care plan. - *

- */ - public Goal setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (in progress | achieved | sustaining | cancelled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the goal has been reached and is still considered relevant - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(CarePlanGoalStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (in progress | achieved | sustaining | cancelled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the goal has been reached and is still considered relevant - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(CarePlanGoalStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (in progress | achieved | sustaining | cancelled) - * - *

- * Definition: - * Indicates whether the goal has been reached and is still considered relevant - *

- */ - public Goal setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (in progress | achieved | sustaining | cancelled) - * - *

- * Definition: - * Indicates whether the goal has been reached and is still considered relevant - *

- */ - public Goal setStatus(CarePlanGoalStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for notes (Comments about the goal). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Any comments related to the goal - *

- */ - public StringDt getNotes() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Gets the value(s) for notes (Comments about the goal). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Any comments related to the goal - *

- */ - public StringDt getNotesElement() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Sets the value(s) for notes (Comments about the goal) - * - *

- * Definition: - * Any comments related to the goal - *

- */ - public Goal setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - /** - * Sets the value for notes (Comments about the goal) - * - *

- * Definition: - * Any comments related to the goal - *

- */ - public Goal setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for concern (Health issues this goal addresses). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address - *

- */ - public java.util.List getConcern() { - if (myConcern == null) { - myConcern = new java.util.ArrayList(); - } - return myConcern; - } - - - /** - * Gets the value(s) for concern (Health issues this goal addresses). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address - *

- */ - public java.util.List getConcernElement() { - if (myConcern == null) { - myConcern = new java.util.ArrayList(); - } - return myConcern; - } - - - /** - * Sets the value(s) for concern (Health issues this goal addresses) - * - *

- * Definition: - * The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address - *

- */ - public Goal setConcern(java.util.List theValue) { - myConcern = theValue; - return this; - } - - /** - * Adds and returns a new value for concern (Health issues this goal addresses) - * - *

- * Definition: - * The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address - *

- */ - public ResourceReferenceDt addConcern() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getConcern().add(newType); - return newType; - } - - - } - - - /** - * Block class for child element: CarePlan.activity (Action to occur as part of plan) - * - *

- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *

- */ - @Block() - public static class Activity - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="goal", type=IdrefDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Goals this activity relates to", - formalDefinition="Internal reference that identifies the goals that this activity is intended to contribute towards meeting" - ) - private java.util.List myGoal; - - @Child(name="status", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="not started | scheduled | in progress | on hold | completed | cancelled", - formalDefinition="Identifies what progress is being made for the specific activity." - ) - private BoundCodeDt myStatus; - - @Child(name="prohibited", type=BooleanDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Do NOT do", - formalDefinition="If true, indicates that the described activity is one that must NOT be engaged in when following the plan." - ) - private BooleanDt myProhibited; - - @Child(name="actionResulting", order=3, min=0, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="Appointments, orders, etc.", - formalDefinition="Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc." - ) - private java.util.List myActionResulting; - - @Child(name="notes", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Comments about the activity", - formalDefinition="Notes about the execution of the activity" - ) - private StringDt myNotes; - - @Child(name="detail", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Procedure.class, ca.uhn.fhir.model.dstu.resource.MedicationPrescription.class, ca.uhn.fhir.model.dstu.resource.DiagnosticOrder.class, ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="Activity details defined in specific resource", - formalDefinition="The details of the proposed activity represented in a specific resource" - ) - private ResourceReferenceDt myDetail; - - @Child(name="simple", order=6, min=0, max=1) - @Description( - shortDefinition="Activity details summarised here", - formalDefinition="A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc" - ) - private ActivitySimple mySimple; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myGoal, myStatus, myProhibited, myActionResulting, myNotes, myDetail, mySimple); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myGoal, myStatus, myProhibited, myActionResulting, myNotes, myDetail, mySimple); - } - - /** - * Gets the value(s) for goal (Goals this activity relates to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *

- */ - public java.util.List getGoal() { - if (myGoal == null) { - myGoal = new java.util.ArrayList(); - } - return myGoal; - } - - - /** - * Gets the value(s) for goal (Goals this activity relates to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *

- */ - public java.util.List getGoalElement() { - if (myGoal == null) { - myGoal = new java.util.ArrayList(); - } - return myGoal; - } - - - /** - * Sets the value(s) for goal (Goals this activity relates to) - * - *

- * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *

- */ - public Activity setGoal(java.util.List theValue) { - myGoal = theValue; - return this; - } - - /** - * Adds and returns a new value for goal (Goals this activity relates to) - * - *

- * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *

- */ - public IdrefDt addGoal() { - IdrefDt newType = new IdrefDt(); - getGoal().add(newType); - return newType; - } - - /** - * Gets the first repetition for goal (Goals this activity relates to), - * creating it if it does not already exist. - * - *

- * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *

- */ - public IdrefDt getGoalFirstRep() { - if (getGoal().isEmpty()) { - return addGoal(); - } - return getGoal().get(0); - } - - /** - * Gets the value(s) for status (not started | scheduled | in progress | on hold | completed | cancelled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies what progress is being made for the specific activity. - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(CarePlanActivityStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (not started | scheduled | in progress | on hold | completed | cancelled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies what progress is being made for the specific activity. - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(CarePlanActivityStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (not started | scheduled | in progress | on hold | completed | cancelled) - * - *

- * Definition: - * Identifies what progress is being made for the specific activity. - *

- */ - public Activity setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (not started | scheduled | in progress | on hold | completed | cancelled) - * - *

- * Definition: - * Identifies what progress is being made for the specific activity. - *

- */ - public Activity setStatus(CarePlanActivityStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for prohibited (Do NOT do). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates that the described activity is one that must NOT be engaged in when following the plan. - *

- */ - public BooleanDt getProhibited() { - if (myProhibited == null) { - myProhibited = new BooleanDt(); - } - return myProhibited; - } - - - /** - * Gets the value(s) for prohibited (Do NOT do). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates that the described activity is one that must NOT be engaged in when following the plan. - *

- */ - public BooleanDt getProhibitedElement() { - if (myProhibited == null) { - myProhibited = new BooleanDt(); - } - return myProhibited; - } - - - /** - * Sets the value(s) for prohibited (Do NOT do) - * - *

- * Definition: - * If true, indicates that the described activity is one that must NOT be engaged in when following the plan. - *

- */ - public Activity setProhibited(BooleanDt theValue) { - myProhibited = theValue; - return this; - } - - /** - * Sets the value for prohibited (Do NOT do) - * - *

- * Definition: - * If true, indicates that the described activity is one that must NOT be engaged in when following the plan. - *

- */ - public Activity setProhibited( boolean theBoolean) { - myProhibited = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for actionResulting (Appointments, orders, etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc. - *

- */ - public java.util.List getActionResulting() { - if (myActionResulting == null) { - myActionResulting = new java.util.ArrayList(); - } - return myActionResulting; - } - - - /** - * Gets the value(s) for actionResulting (Appointments, orders, etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc. - *

- */ - public java.util.List getActionResultingElement() { - if (myActionResulting == null) { - myActionResulting = new java.util.ArrayList(); - } - return myActionResulting; - } - - - /** - * Sets the value(s) for actionResulting (Appointments, orders, etc.) - * - *

- * Definition: - * Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc. - *

- */ - public Activity setActionResulting(java.util.List theValue) { - myActionResulting = theValue; - return this; - } - - /** - * Adds and returns a new value for actionResulting (Appointments, orders, etc.) - * - *

- * Definition: - * Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc. - *

- */ - public ResourceReferenceDt addActionResulting() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getActionResulting().add(newType); - return newType; - } - - /** - * Gets the value(s) for notes (Comments about the activity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Notes about the execution of the activity - *

- */ - public StringDt getNotes() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Gets the value(s) for notes (Comments about the activity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Notes about the execution of the activity - *

- */ - public StringDt getNotesElement() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Sets the value(s) for notes (Comments about the activity) - * - *

- * Definition: - * Notes about the execution of the activity - *

- */ - public Activity setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - /** - * Sets the value for notes (Comments about the activity) - * - *

- * Definition: - * Notes about the execution of the activity - *

- */ - public Activity setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for detail (Activity details defined in specific resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The details of the proposed activity represented in a specific resource - *

- */ - public ResourceReferenceDt getDetail() { - if (myDetail == null) { - myDetail = new ResourceReferenceDt(); - } - return myDetail; - } - - - /** - * Gets the value(s) for detail (Activity details defined in specific resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The details of the proposed activity represented in a specific resource - *

- */ - public ResourceReferenceDt getDetailElement() { - if (myDetail == null) { - myDetail = new ResourceReferenceDt(); - } - return myDetail; - } - - - /** - * Sets the value(s) for detail (Activity details defined in specific resource) - * - *

- * Definition: - * The details of the proposed activity represented in a specific resource - *

- */ - public Activity setDetail(ResourceReferenceDt theValue) { - myDetail = theValue; - return this; - } - - - /** - * Gets the value(s) for simple (Activity details summarised here). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc - *

- */ - public ActivitySimple getSimple() { - if (mySimple == null) { - mySimple = new ActivitySimple(); - } - return mySimple; - } - - - /** - * Gets the value(s) for simple (Activity details summarised here). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc - *

- */ - public ActivitySimple getSimpleElement() { - if (mySimple == null) { - mySimple = new ActivitySimple(); - } - return mySimple; - } - - - /** - * Sets the value(s) for simple (Activity details summarised here) - * - *

- * Definition: - * A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc - *

- */ - public Activity setSimple(ActivitySimple theValue) { - mySimple = theValue; - return this; - } - - - - } - - /** - * Block class for child element: CarePlan.activity.simple (Activity details summarised here) - * - *

- * Definition: - * A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc - *

- */ - @Block() - public static class ActivitySimple - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="category", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="diet | drug | encounter | observation | procedure | supply | other", - formalDefinition="High-level categorization of the type of activity in a care plan." - ) - private BoundCodeDt myCategory; - - @Child(name="code", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Detail type of activity", - formalDefinition="Detailed description of the type of activity. E.g. What lab test, what procedure, what kind of encounter." - ) - private CodeableConceptDt myCode; - - @Child(name="timing", order=2, min=0, max=1, type={ - ScheduleDt.class, PeriodDt.class, StringDt.class }) - @Description( - shortDefinition="When activity is to occur", - formalDefinition="The period, timing or frequency upon which the described activity is to occur." - ) - private IDatatype myTiming; - - @Child(name="location", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Where it should happen", - formalDefinition="Identifies the facility where the activity will occur. E.g. home, hospital, specific clinic, etc." - ) - private ResourceReferenceDt myLocation; - - @Child(name="performer", order=4, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who's responsible?", - formalDefinition="Identifies who's expected to be involved in the activity." - ) - private java.util.List myPerformer; - - @Child(name="product", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class, ca.uhn.fhir.model.dstu.resource.Substance.class }) - @Description( - shortDefinition="What's administered/supplied", - formalDefinition="Identifies the food, drug or other product being consumed or supplied in the activity." - ) - private ResourceReferenceDt myProduct; - - @Child(name="dailyAmount", type=QuantityDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="How much consumed/day?", - formalDefinition="Identifies the quantity expected to be consumed in a given day." - ) - private QuantityDt myDailyAmount; - - @Child(name="quantity", type=QuantityDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="How much is administered/supplied/consumed", - formalDefinition="Identifies the quantity expected to be supplied." - ) - private QuantityDt myQuantity; - - @Child(name="details", type=StringDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Extra info on activity occurrence", - formalDefinition="This provides a textual description of constraints on the activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc." - ) - private StringDt myDetails; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCategory, myCode, myTiming, myLocation, myPerformer, myProduct, myDailyAmount, myQuantity, myDetails); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCategory, myCode, myTiming, myLocation, myPerformer, myProduct, myDailyAmount, myQuantity, myDetails); - } - - /** - * Gets the value(s) for category (diet | drug | encounter | observation | procedure | supply | other). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * High-level categorization of the type of activity in a care plan. - *

- */ - public BoundCodeDt getCategory() { - if (myCategory == null) { - myCategory = new BoundCodeDt(CarePlanActivityCategoryEnum.VALUESET_BINDER); - } - return myCategory; - } - - - /** - * Gets the value(s) for category (diet | drug | encounter | observation | procedure | supply | other). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * High-level categorization of the type of activity in a care plan. - *

- */ - public BoundCodeDt getCategoryElement() { - if (myCategory == null) { - myCategory = new BoundCodeDt(CarePlanActivityCategoryEnum.VALUESET_BINDER); - } - return myCategory; - } - - - /** - * Sets the value(s) for category (diet | drug | encounter | observation | procedure | supply | other) - * - *

- * Definition: - * High-level categorization of the type of activity in a care plan. - *

- */ - public ActivitySimple setCategory(BoundCodeDt theValue) { - myCategory = theValue; - return this; - } - - /** - * Sets the value(s) for category (diet | drug | encounter | observation | procedure | supply | other) - * - *

- * Definition: - * High-level categorization of the type of activity in a care plan. - *

- */ - public ActivitySimple setCategory(CarePlanActivityCategoryEnum theValue) { - getCategory().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for code (Detail type of activity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Detailed description of the type of activity. E.g. What lab test, what procedure, what kind of encounter. - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Detail type of activity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Detailed description of the type of activity. E.g. What lab test, what procedure, what kind of encounter. - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Detail type of activity) - * - *

- * Definition: - * Detailed description of the type of activity. E.g. What lab test, what procedure, what kind of encounter. - *

- */ - public ActivitySimple setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for timing[x] (When activity is to occur). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The period, timing or frequency upon which the described activity is to occur. - *

- */ - public IDatatype getTiming() { - return myTiming; - } - - - /** - * Gets the value(s) for timing[x] (When activity is to occur). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The period, timing or frequency upon which the described activity is to occur. - *

- */ - public IDatatype getTimingElement() { - return myTiming; - } - - - /** - * Sets the value(s) for timing[x] (When activity is to occur) - * - *

- * Definition: - * The period, timing or frequency upon which the described activity is to occur. - *

- */ - public ActivitySimple setTiming(IDatatype theValue) { - myTiming = theValue; - return this; - } - - - /** - * Gets the value(s) for location (Where it should happen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the facility where the activity will occur. E.g. home, hospital, specific clinic, etc. - *

- */ - public ResourceReferenceDt getLocation() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Where it should happen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the facility where the activity will occur. E.g. home, hospital, specific clinic, etc. - *

- */ - public ResourceReferenceDt getLocationElement() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Where it should happen) - * - *

- * Definition: - * Identifies the facility where the activity will occur. E.g. home, hospital, specific clinic, etc. - *

- */ - public ActivitySimple setLocation(ResourceReferenceDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for performer (Who's responsible?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies who's expected to be involved in the activity. - *

- */ - public java.util.List getPerformer() { - if (myPerformer == null) { - myPerformer = new java.util.ArrayList(); - } - return myPerformer; - } - - - /** - * Gets the value(s) for performer (Who's responsible?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies who's expected to be involved in the activity. - *

- */ - public java.util.List getPerformerElement() { - if (myPerformer == null) { - myPerformer = new java.util.ArrayList(); - } - return myPerformer; - } - - - /** - * Sets the value(s) for performer (Who's responsible?) - * - *

- * Definition: - * Identifies who's expected to be involved in the activity. - *

- */ - public ActivitySimple setPerformer(java.util.List theValue) { - myPerformer = theValue; - return this; - } - - /** - * Adds and returns a new value for performer (Who's responsible?) - * - *

- * Definition: - * Identifies who's expected to be involved in the activity. - *

- */ - public ResourceReferenceDt addPerformer() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getPerformer().add(newType); - return newType; - } - - /** - * Gets the value(s) for product (What's administered/supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the food, drug or other product being consumed or supplied in the activity. - *

- */ - public ResourceReferenceDt getProduct() { - if (myProduct == null) { - myProduct = new ResourceReferenceDt(); - } - return myProduct; - } - - - /** - * Gets the value(s) for product (What's administered/supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the food, drug or other product being consumed or supplied in the activity. - *

- */ - public ResourceReferenceDt getProductElement() { - if (myProduct == null) { - myProduct = new ResourceReferenceDt(); - } - return myProduct; - } - - - /** - * Sets the value(s) for product (What's administered/supplied) - * - *

- * Definition: - * Identifies the food, drug or other product being consumed or supplied in the activity. - *

- */ - public ActivitySimple setProduct(ResourceReferenceDt theValue) { - myProduct = theValue; - return this; - } - - - /** - * Gets the value(s) for dailyAmount (How much consumed/day?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public QuantityDt getDailyAmount() { - if (myDailyAmount == null) { - myDailyAmount = new QuantityDt(); - } - return myDailyAmount; - } - - - /** - * Gets the value(s) for dailyAmount (How much consumed/day?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public QuantityDt getDailyAmountElement() { - if (myDailyAmount == null) { - myDailyAmount = new QuantityDt(); - } - return myDailyAmount; - } - - - /** - * Sets the value(s) for dailyAmount (How much consumed/day?) - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public ActivitySimple setDailyAmount(QuantityDt theValue) { - myDailyAmount = theValue; - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public ActivitySimple setDailyAmount( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myDailyAmount = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public ActivitySimple setDailyAmount( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myDailyAmount = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public ActivitySimple setDailyAmount( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myDailyAmount = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public ActivitySimple setDailyAmount( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myDailyAmount = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public ActivitySimple setDailyAmount( double theValue) { - myDailyAmount = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *

- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *

- */ - public ActivitySimple setDailyAmount( long theValue) { - myDailyAmount = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for quantity (How much is administered/supplied/consumed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (How much is administered/supplied/consumed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (How much is administered/supplied/consumed) - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public ActivitySimple setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public ActivitySimple setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public ActivitySimple setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public ActivitySimple setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public ActivitySimple setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public ActivitySimple setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *

- * Definition: - * Identifies the quantity expected to be supplied. - *

- */ - public ActivitySimple setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for details (Extra info on activity occurrence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This provides a textual description of constraints on the activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. - *

- */ - public StringDt getDetails() { - if (myDetails == null) { - myDetails = new StringDt(); - } - return myDetails; - } - - - /** - * Gets the value(s) for details (Extra info on activity occurrence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This provides a textual description of constraints on the activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. - *

- */ - public StringDt getDetailsElement() { - if (myDetails == null) { - myDetails = new StringDt(); - } - return myDetails; - } - - - /** - * Sets the value(s) for details (Extra info on activity occurrence) - * - *

- * Definition: - * This provides a textual description of constraints on the activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. - *

- */ - public ActivitySimple setDetails(StringDt theValue) { - myDetails = theValue; - return this; - } - - /** - * Sets the value for details (Extra info on activity occurrence) - * - *

- * Definition: - * This provides a textual description of constraints on the activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. - *

- */ - public ActivitySimple setDetails( String theString) { - myDetails = new StringDt(theString); - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "CarePlan"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Claim.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Claim.java deleted file mode 100644 index e6332e12772..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Claim.java +++ /dev/null @@ -1,2895 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Claim Resource - * (A claim) - * - *

- * Definition: - * A claim - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Claim - *

- * - */ -@ResourceDef(name="Claim", profile="http://hl7.org/fhir/profiles/Claim", id="claim") -public class Claim - extends BaseResource implements IResource { - - /** - * Search parameter constant for number - *

- * Description:
- * Type: token
- * Path: Claim.number
- *

- */ - @SearchParamDefinition(name="number", path="Claim.number", description="", type="token" ) - public static final String SP_NUMBER = "number"; - - /** - * Fluent Client search parameter constant for number - *

- * Description:
- * Type: token
- * Path: Claim.number
- *

- */ - public static final TokenClientParam NUMBER = new TokenClientParam(SP_NUMBER); - - - @Child(name="number", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Claim/Invoice number", - formalDefinition="The claim issuer and claim number" - ) - private IdentifierDt myNumber; - - @Child(name="servicedate", type=DateDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Date of Service", - formalDefinition="The date when the enclosed suite of services were performed or completed" - ) - private DateDt myServicedate; - - @Child(name="provider", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Responsible practitioner", - formalDefinition="The practitioner who is responsible for the services rendered to the patient" - ) - private ResourceReferenceDt myProvider; - - @Child(name="billingProvider", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Provider who is the payee", - formalDefinition="The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned)" - ) - private ResourceReferenceDt myBillingProvider; - - @Child(name="referrer", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Provider who is the payee", - formalDefinition="" - ) - private ResourceReferenceDt myReferrer; - - @Child(name="reason", type=CodeableConceptDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Referal Reason", - formalDefinition="The reason code for the referral" - ) - private CodeableConceptDt myReason; - - @Child(name="patient", order=6, min=1, max=1) - @Description( - shortDefinition="Patient Details", - formalDefinition="Patient Details." - ) - private Patient myPatient; - - @Child(name="coverage", order=7, min=0, max=1) - @Description( - shortDefinition="Insurance or medical plan", - formalDefinition="Financial instrument by which payment information for health care" - ) - private Coverage myCoverage; - - @Child(name="exception", type=CodeableConceptDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Eligibility exceptions", - formalDefinition="Factors which may influence the appicability of coverage" - ) - private CodeableConceptDt myException; - - @Child(name="relationship", type=CodeableConceptDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Patient relationship to subscriber", - formalDefinition="The relationship of the patient to the subscriber" - ) - private CodeableConceptDt myRelationship; - - @Child(name="school", type=StringDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Name of School", - formalDefinition="Name of school" - ) - private StringDt mySchool; - - @Child(name="service", order=11, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Service Details", - formalDefinition="" - ) - private java.util.List myService; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumber, myServicedate, myProvider, myBillingProvider, myReferrer, myReason, myPatient, myCoverage, myException, myRelationship, mySchool, myService); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myNumber, myServicedate, myProvider, myBillingProvider, myReferrer, myReason, myPatient, myCoverage, myException, myRelationship, mySchool, myService); - } - - /** - * Gets the value(s) for number (Claim/Invoice number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The claim issuer and claim number - *

- */ - public IdentifierDt getNumber() { - if (myNumber == null) { - myNumber = new IdentifierDt(); - } - return myNumber; - } - - - /** - * Gets the value(s) for number (Claim/Invoice number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The claim issuer and claim number - *

- */ - public IdentifierDt getNumberElement() { - if (myNumber == null) { - myNumber = new IdentifierDt(); - } - return myNumber; - } - - - /** - * Sets the value(s) for number (Claim/Invoice number) - * - *

- * Definition: - * The claim issuer and claim number - *

- */ - public Claim setNumber(IdentifierDt theValue) { - myNumber = theValue; - return this; - } - - /** - * Sets the value for number (Claim/Invoice number) - * - *

- * Definition: - * The claim issuer and claim number - *

- */ - public Claim setNumber( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myNumber = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for number (Claim/Invoice number) - * - *

- * Definition: - * The claim issuer and claim number - *

- */ - public Claim setNumber( String theSystem, String theValue) { - myNumber = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for servicedate (Date of Service). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date when the enclosed suite of services were performed or completed - *

- */ - public DateDt getServicedate() { - if (myServicedate == null) { - myServicedate = new DateDt(); - } - return myServicedate; - } - - - /** - * Gets the value(s) for servicedate (Date of Service). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date when the enclosed suite of services were performed or completed - *

- */ - public DateDt getServicedateElement() { - if (myServicedate == null) { - myServicedate = new DateDt(); - } - return myServicedate; - } - - - /** - * Sets the value(s) for servicedate (Date of Service) - * - *

- * Definition: - * The date when the enclosed suite of services were performed or completed - *

- */ - public Claim setServicedate(DateDt theValue) { - myServicedate = theValue; - return this; - } - - /** - * Sets the value for servicedate (Date of Service) - * - *

- * Definition: - * The date when the enclosed suite of services were performed or completed - *

- */ - public Claim setServicedate( Date theDate, TemporalPrecisionEnum thePrecision) { - myServicedate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for servicedate (Date of Service) - * - *

- * Definition: - * The date when the enclosed suite of services were performed or completed - *

- */ - public Claim setServicedateWithDayPrecision( Date theDate) { - myServicedate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for provider (Responsible practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The practitioner who is responsible for the services rendered to the patient - *

- */ - public ResourceReferenceDt getProvider() { - if (myProvider == null) { - myProvider = new ResourceReferenceDt(); - } - return myProvider; - } - - - /** - * Gets the value(s) for provider (Responsible practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The practitioner who is responsible for the services rendered to the patient - *

- */ - public ResourceReferenceDt getProviderElement() { - if (myProvider == null) { - myProvider = new ResourceReferenceDt(); - } - return myProvider; - } - - - /** - * Sets the value(s) for provider (Responsible practitioner) - * - *

- * Definition: - * The practitioner who is responsible for the services rendered to the patient - *

- */ - public Claim setProvider(ResourceReferenceDt theValue) { - myProvider = theValue; - return this; - } - - - /** - * Gets the value(s) for billingProvider (Provider who is the payee). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned) - *

- */ - public ResourceReferenceDt getBillingProvider() { - if (myBillingProvider == null) { - myBillingProvider = new ResourceReferenceDt(); - } - return myBillingProvider; - } - - - /** - * Gets the value(s) for billingProvider (Provider who is the payee). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned) - *

- */ - public ResourceReferenceDt getBillingProviderElement() { - if (myBillingProvider == null) { - myBillingProvider = new ResourceReferenceDt(); - } - return myBillingProvider; - } - - - /** - * Sets the value(s) for billingProvider (Provider who is the payee) - * - *

- * Definition: - * The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned) - *

- */ - public Claim setBillingProvider(ResourceReferenceDt theValue) { - myBillingProvider = theValue; - return this; - } - - - /** - * Gets the value(s) for referrer (Provider who is the payee). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getReferrer() { - if (myReferrer == null) { - myReferrer = new ResourceReferenceDt(); - } - return myReferrer; - } - - - /** - * Gets the value(s) for referrer (Provider who is the payee). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getReferrerElement() { - if (myReferrer == null) { - myReferrer = new ResourceReferenceDt(); - } - return myReferrer; - } - - - /** - * Sets the value(s) for referrer (Provider who is the payee) - * - *

- * Definition: - * - *

- */ - public Claim setReferrer(ResourceReferenceDt theValue) { - myReferrer = theValue; - return this; - } - - - /** - * Gets the value(s) for reason (Referal Reason). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The reason code for the referral - *

- */ - public CodeableConceptDt getReason() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - - /** - * Gets the value(s) for reason (Referal Reason). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The reason code for the referral - *

- */ - public CodeableConceptDt getReasonElement() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - - /** - * Sets the value(s) for reason (Referal Reason) - * - *

- * Definition: - * The reason code for the referral - *

- */ - public Claim setReason(CodeableConceptDt theValue) { - myReason = theValue; - return this; - } - - - /** - * Gets the value(s) for patient (Patient Details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient Details. - *

- */ - public Patient getPatient() { - if (myPatient == null) { - myPatient = new Patient(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Patient Details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient Details. - *

- */ - public Patient getPatientElement() { - if (myPatient == null) { - myPatient = new Patient(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Patient Details) - * - *

- * Definition: - * Patient Details. - *

- */ - public Claim setPatient(Patient theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for coverage (Insurance or medical plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Financial instrument by which payment information for health care - *

- */ - public Coverage getCoverage() { - if (myCoverage == null) { - myCoverage = new Coverage(); - } - return myCoverage; - } - - - /** - * Gets the value(s) for coverage (Insurance or medical plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Financial instrument by which payment information for health care - *

- */ - public Coverage getCoverageElement() { - if (myCoverage == null) { - myCoverage = new Coverage(); - } - return myCoverage; - } - - - /** - * Sets the value(s) for coverage (Insurance or medical plan) - * - *

- * Definition: - * Financial instrument by which payment information for health care - *

- */ - public Claim setCoverage(Coverage theValue) { - myCoverage = theValue; - return this; - } - - - /** - * Gets the value(s) for exception (Eligibility exceptions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Factors which may influence the appicability of coverage - *

- */ - public CodeableConceptDt getException() { - if (myException == null) { - myException = new CodeableConceptDt(); - } - return myException; - } - - - /** - * Gets the value(s) for exception (Eligibility exceptions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Factors which may influence the appicability of coverage - *

- */ - public CodeableConceptDt getExceptionElement() { - if (myException == null) { - myException = new CodeableConceptDt(); - } - return myException; - } - - - /** - * Sets the value(s) for exception (Eligibility exceptions) - * - *

- * Definition: - * Factors which may influence the appicability of coverage - *

- */ - public Claim setException(CodeableConceptDt theValue) { - myException = theValue; - return this; - } - - - /** - * Gets the value(s) for relationship (Patient relationship to subscriber). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The relationship of the patient to the subscriber - *

- */ - public CodeableConceptDt getRelationship() { - if (myRelationship == null) { - myRelationship = new CodeableConceptDt(); - } - return myRelationship; - } - - - /** - * Gets the value(s) for relationship (Patient relationship to subscriber). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The relationship of the patient to the subscriber - *

- */ - public CodeableConceptDt getRelationshipElement() { - if (myRelationship == null) { - myRelationship = new CodeableConceptDt(); - } - return myRelationship; - } - - - /** - * Sets the value(s) for relationship (Patient relationship to subscriber) - * - *

- * Definition: - * The relationship of the patient to the subscriber - *

- */ - public Claim setRelationship(CodeableConceptDt theValue) { - myRelationship = theValue; - return this; - } - - - /** - * Gets the value(s) for school (Name of School). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of school - *

- */ - public StringDt getSchool() { - if (mySchool == null) { - mySchool = new StringDt(); - } - return mySchool; - } - - - /** - * Gets the value(s) for school (Name of School). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of school - *

- */ - public StringDt getSchoolElement() { - if (mySchool == null) { - mySchool = new StringDt(); - } - return mySchool; - } - - - /** - * Sets the value(s) for school (Name of School) - * - *

- * Definition: - * Name of school - *

- */ - public Claim setSchool(StringDt theValue) { - mySchool = theValue; - return this; - } - - /** - * Sets the value for school (Name of School) - * - *

- * Definition: - * Name of school - *

- */ - public Claim setSchool( String theString) { - mySchool = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for service (Service Details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getService() { - if (myService == null) { - myService = new java.util.ArrayList(); - } - return myService; - } - - - /** - * Gets the value(s) for service (Service Details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getServiceElement() { - if (myService == null) { - myService = new java.util.ArrayList(); - } - return myService; - } - - - /** - * Sets the value(s) for service (Service Details) - * - *

- * Definition: - * - *

- */ - public Claim setService(java.util.List theValue) { - myService = theValue; - return this; - } - - /** - * Adds and returns a new value for service (Service Details) - * - *

- * Definition: - * - *

- */ - public Service addService() { - Service newType = new Service(); - getService().add(newType); - return newType; - } - - /** - * Gets the first repetition for service (Service Details), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public Service getServiceFirstRep() { - if (getService().isEmpty()) { - return addService(); - } - return getService().get(0); - } - - /** - * Block class for child element: Claim.patient (Patient Details) - * - *

- * Definition: - * Patient Details. - *

- */ - @Block() - public static class Patient - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=HumanNameDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Patient name", - formalDefinition="The name of the PolicyHolder" - ) - private HumanNameDt myName; - - @Child(name="address", type=AddressDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Patient address", - formalDefinition="The mailing address, typically home, of the PolicyHolder" - ) - private AddressDt myAddress; - - @Child(name="birthdate", type=DateDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Patient date of birth", - formalDefinition="The date of birth of the PolicyHolder" - ) - private DateDt myBirthdate; - - @Child(name="gender", type=CodingDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Gender", - formalDefinition="Gender." - ) - private CodingDt myGender; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myAddress, myBirthdate, myGender); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myAddress, myBirthdate, myGender); - } - - /** - * Gets the value(s) for name (Patient name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Patient name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public HumanNameDt getNameElement() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Patient name) - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public Patient setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for address (Patient address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (Patient address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public AddressDt getAddressElement() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (Patient address) - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public Patient setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for birthdate (Patient date of birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public DateDt getBirthdate() { - if (myBirthdate == null) { - myBirthdate = new DateDt(); - } - return myBirthdate; - } - - - /** - * Gets the value(s) for birthdate (Patient date of birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public DateDt getBirthdateElement() { - if (myBirthdate == null) { - myBirthdate = new DateDt(); - } - return myBirthdate; - } - - - /** - * Sets the value(s) for birthdate (Patient date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public Patient setBirthdate(DateDt theValue) { - myBirthdate = theValue; - return this; - } - - /** - * Sets the value for birthdate (Patient date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public Patient setBirthdate( Date theDate, TemporalPrecisionEnum thePrecision) { - myBirthdate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for birthdate (Patient date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public Patient setBirthdateWithDayPrecision( Date theDate) { - myBirthdate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for gender (Gender). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Gender. - *

- */ - public CodingDt getGender() { - if (myGender == null) { - myGender = new CodingDt(); - } - return myGender; - } - - - /** - * Gets the value(s) for gender (Gender). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Gender. - *

- */ - public CodingDt getGenderElement() { - if (myGender == null) { - myGender = new CodingDt(); - } - return myGender; - } - - - /** - * Sets the value(s) for gender (Gender) - * - *

- * Definition: - * Gender. - *

- */ - public Patient setGender(CodingDt theValue) { - myGender = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Claim.coverage (Insurance or medical plan) - * - *

- * Definition: - * Financial instrument by which payment information for health care - *

- */ - @Block() - public static class Coverage - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="issuer", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="An identifier for the plan issuer", - formalDefinition="The program or plan underwriter or payor." - ) - private ResourceReferenceDt myIssuer; - - @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Coverage start and end dates", - formalDefinition="Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force." - ) - private PeriodDt myPeriod; - - @Child(name="type", type=CodingDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Type of coverage", - formalDefinition="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health." - ) - private CodingDt myType; - - @Child(name="identifier", type=IdentifierDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="The primary coverage ID", - formalDefinition="The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID." - ) - private IdentifierDt myIdentifier; - - @Child(name="group", type=IdentifierDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="An identifier for the group", - formalDefinition="Todo" - ) - private IdentifierDt myGroup; - - @Child(name="plan", type=IdentifierDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="An identifier for the plan", - formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID." - ) - private IdentifierDt myPlan; - - @Child(name="subplan", type=IdentifierDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="An identifier for the subsection of the plan", - formalDefinition="Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID." - ) - private IdentifierDt mySubplan; - - @Child(name="dependent", type=IntegerDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="The dependent number", - formalDefinition="A unique identifier for a dependent under the coverage." - ) - private IntegerDt myDependent; - - @Child(name="sequence", type=IntegerDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="The plan instance or sequence counter", - formalDefinition="An optional counter for a particular instance of the identified coverage which increments upon each renewal." - ) - private IntegerDt mySequence; - - @Child(name="subscriber", order=9, min=0, max=1) - @Description( - shortDefinition="Planholder information", - formalDefinition="Th demographics for the individual in whose name the insurance coverage is issued." - ) - private CoverageSubscriber mySubscriber; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIssuer, myPeriod, myType, myIdentifier, myGroup, myPlan, mySubplan, myDependent, mySequence, mySubscriber); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIssuer, myPeriod, myType, myIdentifier, myGroup, myPlan, mySubplan, myDependent, mySequence, mySubscriber); - } - - /** - * Gets the value(s) for issuer (An identifier for the plan issuer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The program or plan underwriter or payor. - *

- */ - public ResourceReferenceDt getIssuer() { - if (myIssuer == null) { - myIssuer = new ResourceReferenceDt(); - } - return myIssuer; - } - - - /** - * Gets the value(s) for issuer (An identifier for the plan issuer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The program or plan underwriter or payor. - *

- */ - public ResourceReferenceDt getIssuerElement() { - if (myIssuer == null) { - myIssuer = new ResourceReferenceDt(); - } - return myIssuer; - } - - - /** - * Sets the value(s) for issuer (An identifier for the plan issuer) - * - *

- * Definition: - * The program or plan underwriter or payor. - *

- */ - public Coverage setIssuer(ResourceReferenceDt theValue) { - myIssuer = theValue; - return this; - } - - - /** - * Gets the value(s) for period (Coverage start and end dates). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Coverage start and end dates). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Coverage start and end dates) - * - *

- * Definition: - * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. - *

- */ - public Coverage setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for type (Type of coverage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. - *

- */ - public CodingDt getType() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Type of coverage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. - *

- */ - public CodingDt getTypeElement() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Type of coverage) - * - *

- * Definition: - * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. - *

- */ - public Coverage setType(CodingDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for identifier (The primary coverage ID). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (The primary coverage ID). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (The primary coverage ID) - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public Coverage setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (The primary coverage ID) - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public Coverage setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (The primary coverage ID) - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public Coverage setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for group (An identifier for the group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Todo - *

- */ - public IdentifierDt getGroup() { - if (myGroup == null) { - myGroup = new IdentifierDt(); - } - return myGroup; - } - - - /** - * Gets the value(s) for group (An identifier for the group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Todo - *

- */ - public IdentifierDt getGroupElement() { - if (myGroup == null) { - myGroup = new IdentifierDt(); - } - return myGroup; - } - - - /** - * Sets the value(s) for group (An identifier for the group) - * - *

- * Definition: - * Todo - *

- */ - public Coverage setGroup(IdentifierDt theValue) { - myGroup = theValue; - return this; - } - - /** - * Sets the value for group (An identifier for the group) - * - *

- * Definition: - * Todo - *

- */ - public Coverage setGroup( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myGroup = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for group (An identifier for the group) - * - *

- * Definition: - * Todo - *

- */ - public Coverage setGroup( String theSystem, String theValue) { - myGroup = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for plan (An identifier for the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public IdentifierDt getPlan() { - if (myPlan == null) { - myPlan = new IdentifierDt(); - } - return myPlan; - } - - - /** - * Gets the value(s) for plan (An identifier for the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public IdentifierDt getPlanElement() { - if (myPlan == null) { - myPlan = new IdentifierDt(); - } - return myPlan; - } - - - /** - * Sets the value(s) for plan (An identifier for the plan) - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public Coverage setPlan(IdentifierDt theValue) { - myPlan = theValue; - return this; - } - - /** - * Sets the value for plan (An identifier for the plan) - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public Coverage setPlan( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myPlan = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for plan (An identifier for the plan) - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public Coverage setPlan( String theSystem, String theValue) { - myPlan = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for subplan (An identifier for the subsection of the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public IdentifierDt getSubplan() { - if (mySubplan == null) { - mySubplan = new IdentifierDt(); - } - return mySubplan; - } - - - /** - * Gets the value(s) for subplan (An identifier for the subsection of the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public IdentifierDt getSubplanElement() { - if (mySubplan == null) { - mySubplan = new IdentifierDt(); - } - return mySubplan; - } - - - /** - * Sets the value(s) for subplan (An identifier for the subsection of the plan) - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public Coverage setSubplan(IdentifierDt theValue) { - mySubplan = theValue; - return this; - } - - /** - * Sets the value for subplan (An identifier for the subsection of the plan) - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public Coverage setSubplan( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - mySubplan = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for subplan (An identifier for the subsection of the plan) - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public Coverage setSubplan( String theSystem, String theValue) { - mySubplan = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for dependent (The dependent number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier for a dependent under the coverage. - *

- */ - public IntegerDt getDependent() { - if (myDependent == null) { - myDependent = new IntegerDt(); - } - return myDependent; - } - - - /** - * Gets the value(s) for dependent (The dependent number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier for a dependent under the coverage. - *

- */ - public IntegerDt getDependentElement() { - if (myDependent == null) { - myDependent = new IntegerDt(); - } - return myDependent; - } - - - /** - * Sets the value(s) for dependent (The dependent number) - * - *

- * Definition: - * A unique identifier for a dependent under the coverage. - *

- */ - public Coverage setDependent(IntegerDt theValue) { - myDependent = theValue; - return this; - } - - /** - * Sets the value for dependent (The dependent number) - * - *

- * Definition: - * A unique identifier for a dependent under the coverage. - *

- */ - public Coverage setDependent( int theInteger) { - myDependent = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for sequence (The plan instance or sequence counter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *

- */ - public IntegerDt getSequence() { - if (mySequence == null) { - mySequence = new IntegerDt(); - } - return mySequence; - } - - - /** - * Gets the value(s) for sequence (The plan instance or sequence counter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *

- */ - public IntegerDt getSequenceElement() { - if (mySequence == null) { - mySequence = new IntegerDt(); - } - return mySequence; - } - - - /** - * Sets the value(s) for sequence (The plan instance or sequence counter) - * - *

- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *

- */ - public Coverage setSequence(IntegerDt theValue) { - mySequence = theValue; - return this; - } - - /** - * Sets the value for sequence (The plan instance or sequence counter) - * - *

- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *

- */ - public Coverage setSequence( int theInteger) { - mySequence = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for subscriber (Planholder information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Th demographics for the individual in whose name the insurance coverage is issued. - *

- */ - public CoverageSubscriber getSubscriber() { - if (mySubscriber == null) { - mySubscriber = new CoverageSubscriber(); - } - return mySubscriber; - } - - - /** - * Gets the value(s) for subscriber (Planholder information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Th demographics for the individual in whose name the insurance coverage is issued. - *

- */ - public CoverageSubscriber getSubscriberElement() { - if (mySubscriber == null) { - mySubscriber = new CoverageSubscriber(); - } - return mySubscriber; - } - - - /** - * Sets the value(s) for subscriber (Planholder information) - * - *

- * Definition: - * Th demographics for the individual in whose name the insurance coverage is issued. - *

- */ - public Coverage setSubscriber(CoverageSubscriber theValue) { - mySubscriber = theValue; - return this; - } - - - - } - - /** - * Block class for child element: Claim.coverage.subscriber (Planholder information) - * - *

- * Definition: - * Th demographics for the individual in whose name the insurance coverage is issued. - *

- */ - @Block() - public static class CoverageSubscriber - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=HumanNameDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="PolicyHolder name", - formalDefinition="The name of the PolicyHolder" - ) - private HumanNameDt myName; - - @Child(name="address", type=AddressDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="PolicyHolder address", - formalDefinition="The mailing address, typically home, of the PolicyHolder" - ) - private AddressDt myAddress; - - @Child(name="birthdate", type=DateDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="PolicyHolder date of birth", - formalDefinition="The date of birth of the PolicyHolder" - ) - private DateDt myBirthdate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myAddress, myBirthdate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myAddress, myBirthdate); - } - - /** - * Gets the value(s) for name (PolicyHolder name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (PolicyHolder name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public HumanNameDt getNameElement() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (PolicyHolder name) - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public CoverageSubscriber setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for address (PolicyHolder address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (PolicyHolder address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public AddressDt getAddressElement() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (PolicyHolder address) - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public CoverageSubscriber setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for birthdate (PolicyHolder date of birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public DateDt getBirthdate() { - if (myBirthdate == null) { - myBirthdate = new DateDt(); - } - return myBirthdate; - } - - - /** - * Gets the value(s) for birthdate (PolicyHolder date of birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public DateDt getBirthdateElement() { - if (myBirthdate == null) { - myBirthdate = new DateDt(); - } - return myBirthdate; - } - - - /** - * Sets the value(s) for birthdate (PolicyHolder date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public CoverageSubscriber setBirthdate(DateDt theValue) { - myBirthdate = theValue; - return this; - } - - /** - * Sets the value for birthdate (PolicyHolder date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public CoverageSubscriber setBirthdate( Date theDate, TemporalPrecisionEnum thePrecision) { - myBirthdate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for birthdate (PolicyHolder date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public CoverageSubscriber setBirthdateWithDayPrecision( Date theDate) { - myBirthdate = new DateDt(theDate); - return this; - } - - - - } - - - - /** - * Block class for child element: Claim.service (Service Details) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Service - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="service", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Professional service code", - formalDefinition="The code for the professional service provided." - ) - private CodeableConceptDt myService; - - @Child(name="instance", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Service instance", - formalDefinition="A service line item." - ) - private IntegerDt myInstance; - - @Child(name="fee", type=DecimalDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Professional fee", - formalDefinition="" - ) - private DecimalDt myFee; - - @Child(name="location", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Service Location", - formalDefinition="Code for the oral cavity, tooth, quadrant, sextant or arch." - ) - private CodeableConceptDt myLocation; - - @Child(name="surface", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Tooth surface", - formalDefinition="Tooth surface(s) involved in the restoration." - ) - private CodeableConceptDt mySurface; - - @Child(name="lab", order=5, min=0, max=1) - @Description( - shortDefinition="Lab Details", - formalDefinition="" - ) - private ServiceLab myLab; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myService, myInstance, myFee, myLocation, mySurface, myLab); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myService, myInstance, myFee, myLocation, mySurface, myLab); - } - - /** - * Gets the value(s) for service (Professional service code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code for the professional service provided. - *

- */ - public CodeableConceptDt getService() { - if (myService == null) { - myService = new CodeableConceptDt(); - } - return myService; - } - - - /** - * Gets the value(s) for service (Professional service code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code for the professional service provided. - *

- */ - public CodeableConceptDt getServiceElement() { - if (myService == null) { - myService = new CodeableConceptDt(); - } - return myService; - } - - - /** - * Sets the value(s) for service (Professional service code) - * - *

- * Definition: - * The code for the professional service provided. - *

- */ - public Service setService(CodeableConceptDt theValue) { - myService = theValue; - return this; - } - - - /** - * Gets the value(s) for instance (Service instance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A service line item. - *

- */ - public IntegerDt getInstance() { - if (myInstance == null) { - myInstance = new IntegerDt(); - } - return myInstance; - } - - - /** - * Gets the value(s) for instance (Service instance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A service line item. - *

- */ - public IntegerDt getInstanceElement() { - if (myInstance == null) { - myInstance = new IntegerDt(); - } - return myInstance; - } - - - /** - * Sets the value(s) for instance (Service instance) - * - *

- * Definition: - * A service line item. - *

- */ - public Service setInstance(IntegerDt theValue) { - myInstance = theValue; - return this; - } - - /** - * Sets the value for instance (Service instance) - * - *

- * Definition: - * A service line item. - *

- */ - public Service setInstance( int theInteger) { - myInstance = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for fee (Professional fee). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DecimalDt getFee() { - if (myFee == null) { - myFee = new DecimalDt(); - } - return myFee; - } - - - /** - * Gets the value(s) for fee (Professional fee). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DecimalDt getFeeElement() { - if (myFee == null) { - myFee = new DecimalDt(); - } - return myFee; - } - - - /** - * Sets the value(s) for fee (Professional fee) - * - *

- * Definition: - * - *

- */ - public Service setFee(DecimalDt theValue) { - myFee = theValue; - return this; - } - - /** - * Sets the value for fee (Professional fee) - * - *

- * Definition: - * - *

- */ - public Service setFee( long theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for fee (Professional fee) - * - *

- * Definition: - * - *

- */ - public Service setFee( double theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for fee (Professional fee) - * - *

- * Definition: - * - *

- */ - public Service setFee( java.math.BigDecimal theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for location (Service Location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code for the oral cavity, tooth, quadrant, sextant or arch. - *

- */ - public CodeableConceptDt getLocation() { - if (myLocation == null) { - myLocation = new CodeableConceptDt(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Service Location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code for the oral cavity, tooth, quadrant, sextant or arch. - *

- */ - public CodeableConceptDt getLocationElement() { - if (myLocation == null) { - myLocation = new CodeableConceptDt(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Service Location) - * - *

- * Definition: - * Code for the oral cavity, tooth, quadrant, sextant or arch. - *

- */ - public Service setLocation(CodeableConceptDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for surface (Tooth surface). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Tooth surface(s) involved in the restoration. - *

- */ - public CodeableConceptDt getSurface() { - if (mySurface == null) { - mySurface = new CodeableConceptDt(); - } - return mySurface; - } - - - /** - * Gets the value(s) for surface (Tooth surface). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Tooth surface(s) involved in the restoration. - *

- */ - public CodeableConceptDt getSurfaceElement() { - if (mySurface == null) { - mySurface = new CodeableConceptDt(); - } - return mySurface; - } - - - /** - * Sets the value(s) for surface (Tooth surface) - * - *

- * Definition: - * Tooth surface(s) involved in the restoration. - *

- */ - public Service setSurface(CodeableConceptDt theValue) { - mySurface = theValue; - return this; - } - - - /** - * Gets the value(s) for lab (Lab Details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ServiceLab getLab() { - if (myLab == null) { - myLab = new ServiceLab(); - } - return myLab; - } - - - /** - * Gets the value(s) for lab (Lab Details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ServiceLab getLabElement() { - if (myLab == null) { - myLab = new ServiceLab(); - } - return myLab; - } - - - /** - * Sets the value(s) for lab (Lab Details) - * - *

- * Definition: - * - *

- */ - public Service setLab(ServiceLab theValue) { - myLab = theValue; - return this; - } - - - - } - - /** - * Block class for child element: Claim.service.lab (Lab Details) - * - *

- * Definition: - * - *

- */ - @Block() - public static class ServiceLab - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="service", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Lab service code", - formalDefinition="The code for the lab service provided." - ) - private CodeableConceptDt myService; - - @Child(name="fee", type=DecimalDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Lab fee", - formalDefinition="The amount to reimbuse for a laboratory service." - ) - private DecimalDt myFee; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myService, myFee); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myService, myFee); - } - - /** - * Gets the value(s) for service (Lab service code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code for the lab service provided. - *

- */ - public CodeableConceptDt getService() { - if (myService == null) { - myService = new CodeableConceptDt(); - } - return myService; - } - - - /** - * Gets the value(s) for service (Lab service code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code for the lab service provided. - *

- */ - public CodeableConceptDt getServiceElement() { - if (myService == null) { - myService = new CodeableConceptDt(); - } - return myService; - } - - - /** - * Sets the value(s) for service (Lab service code) - * - *

- * Definition: - * The code for the lab service provided. - *

- */ - public ServiceLab setService(CodeableConceptDt theValue) { - myService = theValue; - return this; - } - - - /** - * Gets the value(s) for fee (Lab fee). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount to reimbuse for a laboratory service. - *

- */ - public DecimalDt getFee() { - if (myFee == null) { - myFee = new DecimalDt(); - } - return myFee; - } - - - /** - * Gets the value(s) for fee (Lab fee). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount to reimbuse for a laboratory service. - *

- */ - public DecimalDt getFeeElement() { - if (myFee == null) { - myFee = new DecimalDt(); - } - return myFee; - } - - - /** - * Sets the value(s) for fee (Lab fee) - * - *

- * Definition: - * The amount to reimbuse for a laboratory service. - *

- */ - public ServiceLab setFee(DecimalDt theValue) { - myFee = theValue; - return this; - } - - /** - * Sets the value for fee (Lab fee) - * - *

- * Definition: - * The amount to reimbuse for a laboratory service. - *

- */ - public ServiceLab setFee( long theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for fee (Lab fee) - * - *

- * Definition: - * The amount to reimbuse for a laboratory service. - *

- */ - public ServiceLab setFee( double theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for fee (Lab fee) - * - *

- * Definition: - * The amount to reimbuse for a laboratory service. - *

- */ - public ServiceLab setFee( java.math.BigDecimal theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "Claim"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Composition.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Composition.java deleted file mode 100644 index 167bd1c19db..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Composition.java +++ /dev/null @@ -1,2327 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Composition Resource - * (A set of resources composed into a single coherent clinical statement with clinical attestation) - * - *

- * Definition: - * A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. - *

- * - *

- * Requirements: - * To support documents, and also to capture the EN13606 notion of an attested commit to the patient EHR, and to allow a set of disparate resources at the information/engineering level to be gathered into a clinical statement - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Composition - *

- * - */ -@ResourceDef(name="Composition", profile="http://hl7.org/fhir/profiles/Composition", id="composition") -public class Composition - extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *

- * Description:
- * Type: token
- * Path: Composition.type
- *

- */ - @SearchParamDefinition(name="type", path="Composition.type", description="", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description:
- * Type: token
- * Path: Composition.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for class - *

- * Description:
- * Type: token
- * Path: Composition.class
- *

- */ - @SearchParamDefinition(name="class", path="Composition.class", description="", type="token" ) - public static final String SP_CLASS = "class"; - - /** - * Fluent Client search parameter constant for class - *

- * Description:
- * Type: token
- * Path: Composition.class
- *

- */ - public static final TokenClientParam CLASS = new TokenClientParam(SP_CLASS); - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: Composition.date
- *

- */ - @SearchParamDefinition(name="date", path="Composition.date", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: Composition.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Composition.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Composition.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Composition.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Composition.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Composition.subject"); - - /** - * Search parameter constant for author - *

- * Description:
- * Type: reference
- * Path: Composition.author
- *

- */ - @SearchParamDefinition(name="author", path="Composition.author", description="", type="reference" ) - public static final String SP_AUTHOR = "author"; - - /** - * Fluent Client search parameter constant for author - *

- * Description:
- * Type: reference
- * Path: Composition.author
- *

- */ - public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Composition.author". - */ - public static final Include INCLUDE_AUTHOR = new Include("Composition.author"); - - /** - * Search parameter constant for attester - *

- * Description:
- * Type: reference
- * Path: Composition.attester.party
- *

- */ - @SearchParamDefinition(name="attester", path="Composition.attester.party", description="", type="reference" ) - public static final String SP_ATTESTER = "attester"; - - /** - * Fluent Client search parameter constant for attester - *

- * Description:
- * Type: reference
- * Path: Composition.attester.party
- *

- */ - public static final ReferenceClientParam ATTESTER = new ReferenceClientParam(SP_ATTESTER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Composition.attester.party". - */ - public static final Include INCLUDE_ATTESTER_PARTY = new Include("Composition.attester.party"); - - /** - * Search parameter constant for context - *

- * Description:
- * Type: token
- * Path: Composition.event.code
- *

- */ - @SearchParamDefinition(name="context", path="Composition.event.code", description="", type="token" ) - public static final String SP_CONTEXT = "context"; - - /** - * Fluent Client search parameter constant for context - *

- * Description:
- * Type: token
- * Path: Composition.event.code
- *

- */ - public static final TokenClientParam CONTEXT = new TokenClientParam(SP_CONTEXT); - - /** - * Search parameter constant for section-type - *

- * Description:
- * Type: token
- * Path: Composition.section.code
- *

- */ - @SearchParamDefinition(name="section-type", path="Composition.section.code", description="", type="token" ) - public static final String SP_SECTION_TYPE = "section-type"; - - /** - * Fluent Client search parameter constant for section-type - *

- * Description:
- * Type: token
- * Path: Composition.section.code
- *

- */ - public static final TokenClientParam SECTION_TYPE = new TokenClientParam(SP_SECTION_TYPE); - - /** - * Search parameter constant for section-content - *

- * Description:
- * Type: reference
- * Path: Composition.section.content
- *

- */ - @SearchParamDefinition(name="section-content", path="Composition.section.content", description="", type="reference" ) - public static final String SP_SECTION_CONTENT = "section-content"; - - /** - * Fluent Client search parameter constant for section-content - *

- * Description:
- * Type: reference
- * Path: Composition.section.content
- *

- */ - public static final ReferenceClientParam SECTION_CONTENT = new ReferenceClientParam(SP_SECTION_CONTENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Composition.section.content". - */ - public static final Include INCLUDE_SECTION_CONTENT = new Include("Composition.section.content"); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Composition.identifier
- *

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

- * Description:
- * Type: token
- * Path: Composition.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Logical identifier of composition (version-independent)", - formalDefinition="Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time" - ) - private IdentifierDt myIdentifier; - - @Child(name="date", type=DateTimeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Composition editing time", - formalDefinition="The composition editing time, when the composition was last logically changed by the author" - ) - private DateTimeDt myDate; - - @Child(name="type", type=CodeableConceptDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Kind of composition (LOINC if possible)", - formalDefinition="Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition" - ) - private CodeableConceptDt myType; - - @Child(name="class", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Categorization of Composition", - formalDefinition="A categorization for the type of the composition. This may be implied by or derived from the code specified in the Composition Type" - ) - private CodeableConceptDt myClassElement; - - @Child(name="title", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Human Readable name/title", - formalDefinition="Official human-readable label for the composition" - ) - private StringDt myTitle; - - @Child(name="status", type=CodeDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="preliminary | final | appended | amended | entered in error", - formalDefinition="The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document" - ) - private BoundCodeDt myStatus; - - @Child(name="confidentiality", type=CodingDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="As defined by affinity domain", - formalDefinition="The code specifying the level of confidentiality of the Composition" - ) - private CodingDt myConfidentiality; - - @Child(name="subject", order=7, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Who and/or what the composition is about", - formalDefinition="Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure)" - ) - private ResourceReferenceDt mySubject; - - @Child(name="author", order=8, min=1, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Who and/or what authored the composition", - formalDefinition="Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.)" - ) - private java.util.List myAuthor; - - @Child(name="attester", order=9, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Attests to accuracy of composition", - formalDefinition="A participant who has attested to the accuracy of the composition/document" - ) - private java.util.List myAttester; - - @Child(name="custodian", order=10, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Org which maintains the composition", - formalDefinition="Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information" - ) - private ResourceReferenceDt myCustodian; - - @Child(name="event", order=11, min=0, max=1) - @Description( - shortDefinition="The clinical event/act/item being documented", - formalDefinition="The main event/act/item, such as a colonoscopy or an appendectomy, being documented" - ) - private Event myEvent; - - @Child(name="encounter", order=12, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="Context of the conposition", - formalDefinition="Describes the clinical encounter or type of care this documentation is associated with." - ) - private ResourceReferenceDt myEncounter; - - @Child(name="section", order=13, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Composition is broken into sections", - formalDefinition="The root of the sections that make up the composition" - ) - private java.util.List
mySection; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDate, myType, myClassElement, myTitle, myStatus, myConfidentiality, mySubject, myAuthor, myAttester, myCustodian, myEvent, myEncounter, mySection); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDate, myType, myClassElement, myTitle, myStatus, myConfidentiality, mySubject, myAuthor, myAttester, myCustodian, myEvent, myEncounter, mySection); - } - - /** - * Gets the value(s) for identifier (Logical identifier of composition (version-independent)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Logical identifier of composition (version-independent)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Logical identifier of composition (version-independent)) - * - *

- * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *

- */ - public Composition setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Logical identifier of composition (version-independent)) - * - *

- * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *

- */ - public Composition setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Logical identifier of composition (version-independent)) - * - *

- * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *

- */ - public Composition setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for date (Composition editing time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The composition editing time, when the composition was last logically changed by the author - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Composition editing time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The composition editing time, when the composition was last logically changed by the author - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Composition editing time) - * - *

- * Definition: - * The composition editing time, when the composition was last logically changed by the author - *

- */ - public Composition setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Composition editing time) - * - *

- * Definition: - * The composition editing time, when the composition was last logically changed by the author - *

- */ - public Composition setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Composition editing time) - * - *

- * Definition: - * The composition editing time, when the composition was last logically changed by the author - *

- */ - public Composition setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for type (Kind of composition (LOINC if possible)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Kind of composition (LOINC if possible)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Kind of composition (LOINC if possible)) - * - *

- * Definition: - * Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition - *

- */ - public Composition setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for class (Categorization of Composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A categorization for the type of the composition. This may be implied by or derived from the code specified in the Composition Type - *

- */ - public CodeableConceptDt getClassElement() { - if (myClassElement == null) { - myClassElement = new CodeableConceptDt(); - } - return myClassElement; - } - - - /** - * Gets the value(s) for class (Categorization of Composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A categorization for the type of the composition. This may be implied by or derived from the code specified in the Composition Type - *

- */ - public CodeableConceptDt getClassElementElement() { - if (myClassElement == null) { - myClassElement = new CodeableConceptDt(); - } - return myClassElement; - } - - - /** - * Sets the value(s) for class (Categorization of Composition) - * - *

- * Definition: - * A categorization for the type of the composition. This may be implied by or derived from the code specified in the Composition Type - *

- */ - public Composition setClassElement(CodeableConceptDt theValue) { - myClassElement = theValue; - return this; - } - - - /** - * Gets the value(s) for title (Human Readable name/title). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Official human-readable label for the composition - *

- */ - public StringDt getTitle() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Gets the value(s) for title (Human Readable name/title). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Official human-readable label for the composition - *

- */ - public StringDt getTitleElement() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Sets the value(s) for title (Human Readable name/title) - * - *

- * Definition: - * Official human-readable label for the composition - *

- */ - public Composition setTitle(StringDt theValue) { - myTitle = theValue; - return this; - } - - /** - * Sets the value for title (Human Readable name/title) - * - *

- * Definition: - * Official human-readable label for the composition - *

- */ - public Composition setTitle( String theString) { - myTitle = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (preliminary | final | appended | amended | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(CompositionStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (preliminary | final | appended | amended | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(CompositionStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (preliminary | final | appended | amended | entered in error) - * - *

- * Definition: - * The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document - *

- */ - public Composition setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (preliminary | final | appended | amended | entered in error) - * - *

- * Definition: - * The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document - *

- */ - public Composition setStatus(CompositionStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for confidentiality (As defined by affinity domain). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code specifying the level of confidentiality of the Composition - *

- */ - public CodingDt getConfidentiality() { - if (myConfidentiality == null) { - myConfidentiality = new CodingDt(); - } - return myConfidentiality; - } - - - /** - * Gets the value(s) for confidentiality (As defined by affinity domain). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code specifying the level of confidentiality of the Composition - *

- */ - public CodingDt getConfidentialityElement() { - if (myConfidentiality == null) { - myConfidentiality = new CodingDt(); - } - return myConfidentiality; - } - - - /** - * Sets the value(s) for confidentiality (As defined by affinity domain) - * - *

- * Definition: - * The code specifying the level of confidentiality of the Composition - *

- */ - public Composition setConfidentiality(CodingDt theValue) { - myConfidentiality = theValue; - return this; - } - - - /** - * Gets the value(s) for subject (Who and/or what the composition is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure) - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who and/or what the composition is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure) - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who and/or what the composition is about) - * - *

- * Definition: - * Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure) - *

- */ - public Composition setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Who and/or what authored the composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.) - *

- */ - public java.util.List getAuthor() { - if (myAuthor == null) { - myAuthor = new java.util.ArrayList(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Who and/or what authored the composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.) - *

- */ - public java.util.List getAuthorElement() { - if (myAuthor == null) { - myAuthor = new java.util.ArrayList(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Who and/or what authored the composition) - * - *

- * Definition: - * Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.) - *

- */ - public Composition setAuthor(java.util.List theValue) { - myAuthor = theValue; - return this; - } - - /** - * Adds and returns a new value for author (Who and/or what authored the composition) - * - *

- * Definition: - * Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.) - *

- */ - public ResourceReferenceDt addAuthor() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getAuthor().add(newType); - return newType; - } - - /** - * Gets the value(s) for attester (Attests to accuracy of composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A participant who has attested to the accuracy of the composition/document - *

- */ - public java.util.List getAttester() { - if (myAttester == null) { - myAttester = new java.util.ArrayList(); - } - return myAttester; - } - - - /** - * Gets the value(s) for attester (Attests to accuracy of composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A participant who has attested to the accuracy of the composition/document - *

- */ - public java.util.List getAttesterElement() { - if (myAttester == null) { - myAttester = new java.util.ArrayList(); - } - return myAttester; - } - - - /** - * Sets the value(s) for attester (Attests to accuracy of composition) - * - *

- * Definition: - * A participant who has attested to the accuracy of the composition/document - *

- */ - public Composition setAttester(java.util.List theValue) { - myAttester = theValue; - return this; - } - - /** - * Adds and returns a new value for attester (Attests to accuracy of composition) - * - *

- * Definition: - * A participant who has attested to the accuracy of the composition/document - *

- */ - public Attester addAttester() { - Attester newType = new Attester(); - getAttester().add(newType); - return newType; - } - - /** - * Gets the first repetition for attester (Attests to accuracy of composition), - * creating it if it does not already exist. - * - *

- * Definition: - * A participant who has attested to the accuracy of the composition/document - *

- */ - public Attester getAttesterFirstRep() { - if (getAttester().isEmpty()) { - return addAttester(); - } - return getAttester().get(0); - } - - /** - * Gets the value(s) for custodian (Org which maintains the composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information - *

- */ - public ResourceReferenceDt getCustodian() { - if (myCustodian == null) { - myCustodian = new ResourceReferenceDt(); - } - return myCustodian; - } - - - /** - * Gets the value(s) for custodian (Org which maintains the composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information - *

- */ - public ResourceReferenceDt getCustodianElement() { - if (myCustodian == null) { - myCustodian = new ResourceReferenceDt(); - } - return myCustodian; - } - - - /** - * Sets the value(s) for custodian (Org which maintains the composition) - * - *

- * Definition: - * Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information - *

- */ - public Composition setCustodian(ResourceReferenceDt theValue) { - myCustodian = theValue; - return this; - } - - - /** - * Gets the value(s) for event (The clinical event/act/item being documented). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The main event/act/item, such as a colonoscopy or an appendectomy, being documented - *

- */ - public Event getEvent() { - if (myEvent == null) { - myEvent = new Event(); - } - return myEvent; - } - - - /** - * Gets the value(s) for event (The clinical event/act/item being documented). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The main event/act/item, such as a colonoscopy or an appendectomy, being documented - *

- */ - public Event getEventElement() { - if (myEvent == null) { - myEvent = new Event(); - } - return myEvent; - } - - - /** - * Sets the value(s) for event (The clinical event/act/item being documented) - * - *

- * Definition: - * The main event/act/item, such as a colonoscopy or an appendectomy, being documented - *

- */ - public Composition setEvent(Event theValue) { - myEvent = theValue; - return this; - } - - - /** - * Gets the value(s) for encounter (Context of the conposition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the clinical encounter or type of care this documentation is associated with. - *

- */ - public ResourceReferenceDt getEncounter() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Gets the value(s) for encounter (Context of the conposition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the clinical encounter or type of care this documentation is associated with. - *

- */ - public ResourceReferenceDt getEncounterElement() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Sets the value(s) for encounter (Context of the conposition) - * - *

- * Definition: - * Describes the clinical encounter or type of care this documentation is associated with. - *

- */ - public Composition setEncounter(ResourceReferenceDt theValue) { - myEncounter = theValue; - return this; - } - - - /** - * Gets the value(s) for section (Composition is broken into sections). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The root of the sections that make up the composition - *

- */ - public java.util.List
getSection() { - if (mySection == null) { - mySection = new java.util.ArrayList
(); - } - return mySection; - } - - - /** - * Gets the value(s) for section (Composition is broken into sections). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The root of the sections that make up the composition - *

- */ - public java.util.List
getSectionElement() { - if (mySection == null) { - mySection = new java.util.ArrayList
(); - } - return mySection; - } - - - /** - * Sets the value(s) for section (Composition is broken into sections) - * - *

- * Definition: - * The root of the sections that make up the composition - *

- */ - public Composition setSection(java.util.List
theValue) { - mySection = theValue; - return this; - } - - /** - * Adds and returns a new value for section (Composition is broken into sections) - * - *

- * Definition: - * The root of the sections that make up the composition - *

- */ - public Section addSection() { - Section newType = new Section(); - getSection().add(newType); - return newType; - } - - /** - * Gets the first repetition for section (Composition is broken into sections), - * creating it if it does not already exist. - * - *

- * Definition: - * The root of the sections that make up the composition - *

- */ - public Section getSectionFirstRep() { - if (getSection().isEmpty()) { - return addSection(); - } - return getSection().get(0); - } - - /** - * Block class for child element: Composition.attester (Attests to accuracy of composition) - * - *

- * Definition: - * A participant who has attested to the accuracy of the composition/document - *

- */ - @Block() - public static class Attester - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="mode", type=CodeDt.class, order=0, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="personal | professional | legal | official", - formalDefinition="The type of attestation the authenticator offers" - ) - private java.util.List> myMode; - - @Child(name="time", type=DateTimeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="When composition attested", - formalDefinition="When composition was attested by the party" - ) - private DateTimeDt myTime; - - @Child(name="party", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Who attested the composition", - formalDefinition="Who attested the composition in the specified way" - ) - private ResourceReferenceDt myParty; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myTime, myParty); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myTime, myParty); - } - - /** - * Gets the value(s) for mode (personal | professional | legal | official). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of attestation the authenticator offers - *

- */ - public java.util.List> getMode() { - if (myMode == null) { - myMode = new java.util.ArrayList>(); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (personal | professional | legal | official). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of attestation the authenticator offers - *

- */ - public java.util.List> getModeElement() { - if (myMode == null) { - myMode = new java.util.ArrayList>(); - } - return myMode; - } - - - /** - * Sets the value(s) for mode (personal | professional | legal | official) - * - *

- * Definition: - * The type of attestation the authenticator offers - *

- */ - public Attester setMode(java.util.List> theValue) { - myMode = theValue; - return this; - } - - /** - * Add a value for mode (personal | professional | legal | official) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addMode()} method. - * - *

- * Definition: - * The type of attestation the authenticator offers - *

- */ - public BoundCodeDt addMode(CompositionAttestationModeEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(CompositionAttestationModeEnum.VALUESET_BINDER, theValue); - getMode().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for mode (personal | professional | legal | official), - * creating it if it does not already exist. - * - *

- * Definition: - * The type of attestation the authenticator offers - *

- */ - public BoundCodeDt getModeFirstRep() { - if (getMode().size() == 0) { - addMode(); - } - return getMode().get(0); - } - - /** - * Add a value for mode (personal | professional | legal | official) - * - *

- * Definition: - * The type of attestation the authenticator offers - *

- */ - public BoundCodeDt addMode() { - BoundCodeDt retVal = new BoundCodeDt(CompositionAttestationModeEnum.VALUESET_BINDER); - getMode().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for mode (personal | professional | legal | official) - * - *

- * Definition: - * The type of attestation the authenticator offers - *

- */ - public Attester setMode(CompositionAttestationModeEnum theValue) { - getMode().clear(); - addMode(theValue); - return this; - } - - - /** - * Gets the value(s) for time (When composition attested). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When composition was attested by the party - *

- */ - public DateTimeDt getTime() { - if (myTime == null) { - myTime = new DateTimeDt(); - } - return myTime; - } - - - /** - * Gets the value(s) for time (When composition attested). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When composition was attested by the party - *

- */ - public DateTimeDt getTimeElement() { - if (myTime == null) { - myTime = new DateTimeDt(); - } - return myTime; - } - - - /** - * Sets the value(s) for time (When composition attested) - * - *

- * Definition: - * When composition was attested by the party - *

- */ - public Attester setTime(DateTimeDt theValue) { - myTime = theValue; - return this; - } - - /** - * Sets the value for time (When composition attested) - * - *

- * Definition: - * When composition was attested by the party - *

- */ - public Attester setTime( Date theDate, TemporalPrecisionEnum thePrecision) { - myTime = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for time (When composition attested) - * - *

- * Definition: - * When composition was attested by the party - *

- */ - public Attester setTimeWithSecondsPrecision( Date theDate) { - myTime = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for party (Who attested the composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who attested the composition in the specified way - *

- */ - public ResourceReferenceDt getParty() { - if (myParty == null) { - myParty = new ResourceReferenceDt(); - } - return myParty; - } - - - /** - * Gets the value(s) for party (Who attested the composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who attested the composition in the specified way - *

- */ - public ResourceReferenceDt getPartyElement() { - if (myParty == null) { - myParty = new ResourceReferenceDt(); - } - return myParty; - } - - - /** - * Sets the value(s) for party (Who attested the composition) - * - *

- * Definition: - * Who attested the composition in the specified way - *

- */ - public Attester setParty(ResourceReferenceDt theValue) { - myParty = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Composition.event (The clinical event/act/item being documented) - * - *

- * Definition: - * The main event/act/item, such as a colonoscopy or an appendectomy, being documented - *

- */ - @Block() - public static class Event - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Code(s) that apply to the event being documented", - formalDefinition="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act." - ) - private java.util.List myCode; - - @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="The period covered by the documentation", - formalDefinition="The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time" - ) - private PeriodDt myPeriod; - - @Child(name="detail", order=2, min=0, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="Full details for the event(s) the composition consents", - formalDefinition="Full details for the event(s) the composition/documentation consents" - ) - private java.util.List myDetail; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myPeriod, myDetail); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myPeriod, myDetail); - } - - /** - * Gets the value(s) for code (Code(s) that apply to the event being documented). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act. - *

- */ - public java.util.List getCode() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Code(s) that apply to the event being documented). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act. - *

- */ - public java.util.List getCodeElement() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Code(s) that apply to the event being documented) - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act. - *

- */ - public Event setCode(java.util.List theValue) { - myCode = theValue; - return this; - } - - /** - * Adds and returns a new value for code (Code(s) that apply to the event being documented) - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act. - *

- */ - public CodeableConceptDt addCode() { - CodeableConceptDt newType = new CodeableConceptDt(); - getCode().add(newType); - return newType; - } - - /** - * Gets the first repetition for code (Code(s) that apply to the event being documented), - * creating it if it does not already exist. - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act. - *

- */ - public CodeableConceptDt getCodeFirstRep() { - if (getCode().isEmpty()) { - return addCode(); - } - return getCode().get(0); - } - - /** - * Gets the value(s) for period (The period covered by the documentation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (The period covered by the documentation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (The period covered by the documentation) - * - *

- * Definition: - * The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time - *

- */ - public Event setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for detail (Full details for the event(s) the composition consents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Full details for the event(s) the composition/documentation consents - *

- */ - public java.util.List getDetail() { - if (myDetail == null) { - myDetail = new java.util.ArrayList(); - } - return myDetail; - } - - - /** - * Gets the value(s) for detail (Full details for the event(s) the composition consents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Full details for the event(s) the composition/documentation consents - *

- */ - public java.util.List getDetailElement() { - if (myDetail == null) { - myDetail = new java.util.ArrayList(); - } - return myDetail; - } - - - /** - * Sets the value(s) for detail (Full details for the event(s) the composition consents) - * - *

- * Definition: - * Full details for the event(s) the composition/documentation consents - *

- */ - public Event setDetail(java.util.List theValue) { - myDetail = theValue; - return this; - } - - /** - * Adds and returns a new value for detail (Full details for the event(s) the composition consents) - * - *

- * Definition: - * Full details for the event(s) the composition/documentation consents - *

- */ - public ResourceReferenceDt addDetail() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getDetail().add(newType); - return newType; - } - - - } - - - /** - * Block class for child element: Composition.section (Composition is broken into sections) - * - *

- * Definition: - * The root of the sections that make up the composition - *

- */ - @Block() - public static class Section - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="title", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Label for section", - formalDefinition="The heading for this particular section. This will be part of the rendered content for the document." - ) - private StringDt myTitle; - - @Child(name="code", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Classification of section (recommended)", - formalDefinition="A code identifying the kind of content contained within the section" - ) - private CodeableConceptDt myCode; - - @Child(name="subject", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="If section different to composition", - formalDefinition="Identifies the primary subject of the section." - ) - private ResourceReferenceDt mySubject; - - @Child(name="content", order=3, min=0, max=1, type={ - IResource.class }) - @Description( - shortDefinition="The actual data for the section", - formalDefinition="Identifies the discrete data that provides the content for the section." - ) - private ResourceReferenceDt myContent; - - @Child(name="section", type=Section.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Nested Section", - formalDefinition="A nested sub-section within this section" - ) - private java.util.List
mySection; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myTitle, myCode, mySubject, myContent, mySection); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myTitle, myCode, mySubject, myContent, mySection); - } - - /** - * Gets the value(s) for title (Label for section). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The heading for this particular section. This will be part of the rendered content for the document. - *

- */ - public StringDt getTitle() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Gets the value(s) for title (Label for section). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The heading for this particular section. This will be part of the rendered content for the document. - *

- */ - public StringDt getTitleElement() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Sets the value(s) for title (Label for section) - * - *

- * Definition: - * The heading for this particular section. This will be part of the rendered content for the document. - *

- */ - public Section setTitle(StringDt theValue) { - myTitle = theValue; - return this; - } - - /** - * Sets the value for title (Label for section) - * - *

- * Definition: - * The heading for this particular section. This will be part of the rendered content for the document. - *

- */ - public Section setTitle( String theString) { - myTitle = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (Classification of section (recommended)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code identifying the kind of content contained within the section - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Classification of section (recommended)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code identifying the kind of content contained within the section - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Classification of section (recommended)) - * - *

- * Definition: - * A code identifying the kind of content contained within the section - *

- */ - public Section setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for subject (If section different to composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the primary subject of the section. - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (If section different to composition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the primary subject of the section. - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (If section different to composition) - * - *

- * Definition: - * Identifies the primary subject of the section. - *

- */ - public Section setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for content (The actual data for the section). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the discrete data that provides the content for the section. - *

- */ - public ResourceReferenceDt getContent() { - if (myContent == null) { - myContent = new ResourceReferenceDt(); - } - return myContent; - } - - - /** - * Gets the value(s) for content (The actual data for the section). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the discrete data that provides the content for the section. - *

- */ - public ResourceReferenceDt getContentElement() { - if (myContent == null) { - myContent = new ResourceReferenceDt(); - } - return myContent; - } - - - /** - * Sets the value(s) for content (The actual data for the section) - * - *

- * Definition: - * Identifies the discrete data that provides the content for the section. - *

- */ - public Section setContent(ResourceReferenceDt theValue) { - myContent = theValue; - return this; - } - - - /** - * Gets the value(s) for section (Nested Section). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A nested sub-section within this section - *

- */ - public java.util.List
getSection() { - if (mySection == null) { - mySection = new java.util.ArrayList
(); - } - return mySection; - } - - - /** - * Gets the value(s) for section (Nested Section). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A nested sub-section within this section - *

- */ - public java.util.List
getSectionElement() { - if (mySection == null) { - mySection = new java.util.ArrayList
(); - } - return mySection; - } - - - /** - * Sets the value(s) for section (Nested Section) - * - *

- * Definition: - * A nested sub-section within this section - *

- */ - public Section setSection(java.util.List
theValue) { - mySection = theValue; - return this; - } - - /** - * Adds and returns a new value for section (Nested Section) - * - *

- * Definition: - * A nested sub-section within this section - *

- */ - public Section addSection() { - Section newType = new Section(); - getSection().add(newType); - return newType; - } - - /** - * Gets the first repetition for section (Nested Section), - * creating it if it does not already exist. - * - *

- * Definition: - * A nested sub-section within this section - *

- */ - public Section getSectionFirstRep() { - if (getSection().isEmpty()) { - return addSection(); - } - return getSection().get(0); - } - - - } - - - - - @Override - public String getResourceName() { - return "Composition"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ConceptMap.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ConceptMap.java deleted file mode 100644 index 5fdc9a44fc3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ConceptMap.java +++ /dev/null @@ -1,2459 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR ConceptMap Resource - * (A statement of relationships from one set of concepts to one or more other concept systems) - * - *

- * Definition: - * A statement of relationships from one set of concepts to one or more other concept systems - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/ConceptMap - *

- * - */ -@ResourceDef(name="ConceptMap", profile="http://hl7.org/fhir/profiles/ConceptMap", id="conceptmap") -public class ConceptMap - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the concept map
- * Type: token
- * Path: ConceptMap.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="ConceptMap.identifier", description="The identifier of the concept map", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: The identifier of the concept map
- * Type: token
- * Path: ConceptMap.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the concept map
- * Type: token
- * Path: ConceptMap.version
- *

- */ - @SearchParamDefinition(name="version", path="ConceptMap.version", description="The version identifier of the concept map", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the concept map
- * Type: token
- * Path: ConceptMap.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: Name of the concept map
- * Type: string
- * Path: ConceptMap.name
- *

- */ - @SearchParamDefinition(name="name", path="ConceptMap.name", description="Name of the concept map", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: Name of the concept map
- * Type: string
- * Path: ConceptMap.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the concept map
- * Type: string
- * Path: ConceptMap.publisher
- *

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

- * Description: Name of the publisher of the concept map
- * Type: string
- * Path: ConceptMap.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the concept map
- * Type: string
- * Path: ConceptMap.description
- *

- */ - @SearchParamDefinition(name="description", path="ConceptMap.description", description="Text search in the description of the concept map", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the concept map
- * Type: string
- * Path: ConceptMap.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: Status of the concept map
- * Type: token
- * Path: ConceptMap.status
- *

- */ - @SearchParamDefinition(name="status", path="ConceptMap.status", description="Status of the concept map", type="token" ) - public static final String SP_STATUS = "status"; - - /** - * Fluent Client search parameter constant for status - *

- * Description: Status of the concept map
- * Type: token
- * Path: ConceptMap.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The concept map publication date
- * Type: date
- * Path: ConceptMap.date
- *

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

- * Description: The concept map publication date
- * Type: date
- * Path: ConceptMap.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for source - *

- * Description: The system for any concepts mapped by this concept map
- * Type: reference
- * Path: ConceptMap.source
- *

- */ - @SearchParamDefinition(name="source", path="ConceptMap.source", description="The system for any concepts mapped by this concept map", type="reference" ) - public static final String SP_SOURCE = "source"; - - /** - * Fluent Client search parameter constant for source - *

- * Description: The system for any concepts mapped by this concept map
- * Type: reference
- * Path: ConceptMap.source
- *

- */ - public static final ReferenceClientParam SOURCE = new ReferenceClientParam(SP_SOURCE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ConceptMap.source". - */ - public static final Include INCLUDE_SOURCE = new Include("ConceptMap.source"); - - /** - * Search parameter constant for target - *

- * Description:
- * Type: reference
- * Path: ConceptMap.target
- *

- */ - @SearchParamDefinition(name="target", path="ConceptMap.target", description="", type="reference" ) - public static final String SP_TARGET = "target"; - - /** - * Fluent Client search parameter constant for target - *

- * Description:
- * Type: reference
- * Path: ConceptMap.target
- *

- */ - public static final ReferenceClientParam TARGET = new ReferenceClientParam(SP_TARGET); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ConceptMap.target". - */ - public static final Include INCLUDE_TARGET = new Include("ConceptMap.target"); - - /** - * Search parameter constant for system - *

- * Description: The system for any destination concepts mapped by this map
- * Type: token
- * Path: ConceptMap.concept.map.system
- *

- */ - @SearchParamDefinition(name="system", path="ConceptMap.concept.map.system", description="The system for any destination concepts mapped by this map", type="token" ) - public static final String SP_SYSTEM = "system"; - - /** - * Fluent Client search parameter constant for system - *

- * Description: The system for any destination concepts mapped by this map
- * Type: token
- * Path: ConceptMap.concept.map.system
- *

- */ - public static final TokenClientParam SYSTEM = new TokenClientParam(SP_SYSTEM); - - /** - * Search parameter constant for dependson - *

- * Description:
- * Type: token
- * Path: ConceptMap.concept.dependsOn.concept
- *

- */ - @SearchParamDefinition(name="dependson", path="ConceptMap.concept.dependsOn.concept", description="", type="token" ) - public static final String SP_DEPENDSON = "dependson"; - - /** - * Fluent Client search parameter constant for dependson - *

- * Description:
- * Type: token
- * Path: ConceptMap.concept.dependsOn.concept
- *

- */ - public static final TokenClientParam DEPENDSON = new TokenClientParam(SP_DEPENDSON); - - /** - * Search parameter constant for product - *

- * Description:
- * Type: token
- * Path: ConceptMap.concept.map.product.concept
- *

- */ - @SearchParamDefinition(name="product", path="ConceptMap.concept.map.product.concept", description="", type="token" ) - public static final String SP_PRODUCT = "product"; - - /** - * Fluent Client search parameter constant for product - *

- * Description:
- * Type: token
- * Path: ConceptMap.concept.map.product.concept
- *

- */ - public static final TokenClientParam PRODUCT = new TokenClientParam(SP_PRODUCT); - - - @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Logical id to reference this concept map", - formalDefinition="The identifier that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" - ) - private StringDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Logical id for this version of the concept map", - formalDefinition="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 profile author manually and the value should be a timestamp" - ) - private StringDt myVersion; - - @Child(name="name", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Informal name for this concept map", - formalDefinition="A free text natural language name describing the concept map" - ) - private StringDt myName; - - @Child(name="publisher", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Name of the publisher (Organization or individual)", - formalDefinition="The name of the individual or organization that published the concept map" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Contact information of the publisher", - formalDefinition="Contacts of the publisher to assist a user in finding and communicating with the publisher" - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Human language description of the concept map", - formalDefinition="A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc." - ) - private StringDt myDescription; - - @Child(name="copyright", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="About the concept map or its content", - formalDefinition="A copyright statement relating to the concept map and/or its contents" - ) - private StringDt myCopyright; - - @Child(name="status", type=CodeDt.class, order=7, min=1, max=1) - @Description( - shortDefinition="draft | active | retired", - formalDefinition="The status of the concept map" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="If for testing purposes, not real usage", - formalDefinition="This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="date", type=DateTimeDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Date for given status", - formalDefinition="The date that the concept map status was last changed" - ) - private DateTimeDt myDate; - - @Child(name="source", order=10, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.ValueSet.class }) - @Description( - shortDefinition="Identifies the source value set which is being mapped", - formalDefinition="The source value set that specifies the concepts that are being mapped" - ) - private ResourceReferenceDt mySource; - - @Child(name="target", order=11, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.ValueSet.class }) - @Description( - shortDefinition="Provides context to the mappings", - formalDefinition="The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made" - ) - private ResourceReferenceDt myTarget; - - @Child(name="concept", order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Mappings for a concept from the source valueset", - formalDefinition="" - ) - private java.util.List myConcept; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myDate, mySource, myTarget, myConcept); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myDate, mySource, myTarget, myConcept); - } - - /** - * Gets the value(s) for identifier (Logical id to reference this concept map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Logical id to reference this concept map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Logical id to reference this concept map) - * - *

- * Definition: - * The identifier that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public ConceptMap setIdentifier(StringDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Logical id to reference this concept map) - * - *

- * Definition: - * The identifier that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public ConceptMap setIdentifier( String theString) { - myIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (Logical id for this version of the concept map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * 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 profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Logical id for this version of the concept map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * 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 profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Logical id for this version of the concept map) - * - *

- * Definition: - * 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 profile author manually and the value should be a timestamp - *

- */ - public ConceptMap setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Logical id for this version of the concept map) - * - *

- * Definition: - * 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 profile author manually and the value should be a timestamp - *

- */ - public ConceptMap setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (Informal name for this concept map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name describing the concept map - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Informal name for this concept map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name describing the concept map - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Informal name for this concept map) - * - *

- * Definition: - * A free text natural language name describing the concept map - *

- */ - public ConceptMap setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Informal name for this concept map) - * - *

- * Definition: - * A free text natural language name describing the concept map - *

- */ - public ConceptMap setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publisher (Name of the publisher (Organization or individual)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the individual or organization that published the concept map - *

- */ - public StringDt getPublisher() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (Name of the publisher (Organization or individual)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the individual or organization that published the concept map - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Sets the value(s) for publisher (Name of the publisher (Organization or individual)) - * - *

- * Definition: - * The name of the individual or organization that published the concept map - *

- */ - public ConceptMap setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - /** - * Sets the value for publisher (Name of the publisher (Organization or individual)) - * - *

- * Definition: - * The name of the individual or organization that published the concept map - *

- */ - public ConceptMap setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (Contact information of the publisher). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (Contact information of the publisher). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ConceptMap setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (Contact information of the publisher), - * creating it if it does not already exist. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ConceptMap addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ConceptMap addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for description (Human language description of the concept map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc. - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Human language description of the concept map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc. - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Human language description of the concept map) - * - *

- * Definition: - * A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc. - *

- */ - public ConceptMap setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Human language description of the concept map) - * - *

- * Definition: - * A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc. - *

- */ - public ConceptMap setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for copyright (About the concept map or its content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A copyright statement relating to the concept map and/or its contents - *

- */ - public StringDt getCopyright() { - if (myCopyright == null) { - myCopyright = new StringDt(); - } - return myCopyright; - } - - - /** - * Gets the value(s) for copyright (About the concept map or its content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A copyright statement relating to the concept map and/or its contents - *

- */ - public StringDt getCopyrightElement() { - if (myCopyright == null) { - myCopyright = new StringDt(); - } - return myCopyright; - } - - - /** - * Sets the value(s) for copyright (About the concept map or its content) - * - *

- * Definition: - * A copyright statement relating to the concept map and/or its contents - *

- */ - public ConceptMap setCopyright(StringDt theValue) { - myCopyright = theValue; - return this; - } - - /** - * Sets the value for copyright (About the concept map or its content) - * - *

- * Definition: - * A copyright statement relating to the concept map and/or its contents - *

- */ - public ConceptMap setCopyright( String theString) { - myCopyright = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (draft | active | retired). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the concept map - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ValueSetStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (draft | active | retired). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the concept map - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ValueSetStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (draft | active | retired) - * - *

- * Definition: - * The status of the concept map - *

- */ - public ConceptMap setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (draft | active | retired) - * - *

- * Definition: - * The status of the concept map - *

- */ - public ConceptMap setStatus(ValueSetStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (If for testing purposes, not real usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimental() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (If for testing purposes, not real usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Sets the value(s) for experimental (If for testing purposes, not real usage) - * - *

- * Definition: - * This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public ConceptMap setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - /** - * Sets the value for experimental (If for testing purposes, not real usage) - * - *

- * Definition: - * This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public ConceptMap setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (Date for given status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the concept map status was last changed - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Date for given status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the concept map status was last changed - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Date for given status) - * - *

- * Definition: - * The date that the concept map status was last changed - *

- */ - public ConceptMap setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Date for given status) - * - *

- * Definition: - * The date that the concept map status was last changed - *

- */ - public ConceptMap setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Date for given status) - * - *

- * Definition: - * The date that the concept map status was last changed - *

- */ - public ConceptMap setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for source (Identifies the source value set which is being mapped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The source value set that specifies the concepts that are being mapped - *

- */ - public ResourceReferenceDt getSource() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Identifies the source value set which is being mapped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The source value set that specifies the concepts that are being mapped - *

- */ - public ResourceReferenceDt getSourceElement() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Identifies the source value set which is being mapped) - * - *

- * Definition: - * The source value set that specifies the concepts that are being mapped - *

- */ - public ConceptMap setSource(ResourceReferenceDt theValue) { - mySource = theValue; - return this; - } - - - /** - * Gets the value(s) for target (Provides context to the mappings). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made - *

- */ - public ResourceReferenceDt getTarget() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Provides context to the mappings). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made - *

- */ - public ResourceReferenceDt getTargetElement() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Provides context to the mappings) - * - *

- * Definition: - * The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made - *

- */ - public ConceptMap setTarget(ResourceReferenceDt theValue) { - myTarget = theValue; - return this; - } - - - /** - * Gets the value(s) for concept (Mappings for a concept from the source valueset). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - - /** - * Gets the value(s) for concept (Mappings for a concept from the source valueset). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConceptElement() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - - /** - * Sets the value(s) for concept (Mappings for a concept from the source valueset) - * - *

- * Definition: - * - *

- */ - public ConceptMap setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - /** - * Adds and returns a new value for concept (Mappings for a concept from the source valueset) - * - *

- * Definition: - * - *

- */ - public Concept addConcept() { - Concept newType = new Concept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (Mappings for a concept from the source valueset), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public Concept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - /** - * Block class for child element: ConceptMap.concept (Mappings for a concept from the source valueset) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Concept - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="System that defines the concept being mapped", - formalDefinition="" - ) - private UriDt mySystem; - - @Child(name="code", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Identifies concept being mapped", - formalDefinition="" - ) - private CodeDt myCode; - - @Child(name="dependsOn", order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Other concepts required for this mapping (from context)", - formalDefinition="A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified concept can be resolved, and it has the specified value" - ) - private java.util.List myDependsOn; - - @Child(name="map", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A concept from the target value set that this concept maps to", - formalDefinition="" - ) - private java.util.List myMap; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myCode, myDependsOn, myMap); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myCode, myDependsOn, myMap); - } - - /** - * Gets the value(s) for system (System that defines the concept being mapped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (System that defines the concept being mapped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (System that defines the concept being mapped) - * - *

- * Definition: - * - *

- */ - public Concept setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (System that defines the concept being mapped) - * - *

- * Definition: - * - *

- */ - public Concept setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for code (Identifies concept being mapped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCode() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Identifies concept being mapped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Identifies concept being mapped) - * - *

- * Definition: - * - *

- */ - public Concept setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value for code (Identifies concept being mapped) - * - *

- * Definition: - * - *

- */ - public Concept setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for dependsOn (Other concepts required for this mapping (from context)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified concept can be resolved, and it has the specified value - *

- */ - public java.util.List getDependsOn() { - if (myDependsOn == null) { - myDependsOn = new java.util.ArrayList(); - } - return myDependsOn; - } - - - /** - * Gets the value(s) for dependsOn (Other concepts required for this mapping (from context)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified concept can be resolved, and it has the specified value - *

- */ - public java.util.List getDependsOnElement() { - if (myDependsOn == null) { - myDependsOn = new java.util.ArrayList(); - } - return myDependsOn; - } - - - /** - * Sets the value(s) for dependsOn (Other concepts required for this mapping (from context)) - * - *

- * Definition: - * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified concept can be resolved, and it has the specified value - *

- */ - public Concept setDependsOn(java.util.List theValue) { - myDependsOn = theValue; - return this; - } - - /** - * Adds and returns a new value for dependsOn (Other concepts required for this mapping (from context)) - * - *

- * Definition: - * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified concept can be resolved, and it has the specified value - *

- */ - public ConceptDependsOn addDependsOn() { - ConceptDependsOn newType = new ConceptDependsOn(); - getDependsOn().add(newType); - return newType; - } - - /** - * Gets the first repetition for dependsOn (Other concepts required for this mapping (from context)), - * creating it if it does not already exist. - * - *

- * Definition: - * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified concept can be resolved, and it has the specified value - *

- */ - public ConceptDependsOn getDependsOnFirstRep() { - if (getDependsOn().isEmpty()) { - return addDependsOn(); - } - return getDependsOn().get(0); - } - - /** - * Gets the value(s) for map (A concept from the target value set that this concept maps to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getMap() { - if (myMap == null) { - myMap = new java.util.ArrayList(); - } - return myMap; - } - - - /** - * Gets the value(s) for map (A concept from the target value set that this concept maps to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getMapElement() { - if (myMap == null) { - myMap = new java.util.ArrayList(); - } - return myMap; - } - - - /** - * Sets the value(s) for map (A concept from the target value set that this concept maps to) - * - *

- * Definition: - * - *

- */ - public Concept setMap(java.util.List theValue) { - myMap = theValue; - return this; - } - - /** - * Adds and returns a new value for map (A concept from the target value set that this concept maps to) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 addMap() { - ConceptMap2 newType = new ConceptMap2(); - getMap().add(newType); - return newType; - } - - /** - * Gets the first repetition for map (A concept from the target value set that this concept maps to), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ConceptMap2 getMapFirstRep() { - if (getMap().isEmpty()) { - return addMap(); - } - return getMap().get(0); - } - - - } - - /** - * Block class for child element: ConceptMap.concept.dependsOn (Other concepts required for this mapping (from context)) - * - *

- * Definition: - * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified concept can be resolved, and it has the specified value - *

- */ - @Block() - public static class ConceptDependsOn - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="concept", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Reference to element/field/valueset provides the context", - formalDefinition="A reference to a specific concept that holds a coded value. This can be an element in a FHIR resource, or a specific reference to a data element in a different specification (e.g. v2) or a general reference to a kind of data field, or a reference to a value set with an appropriately narrow definition" - ) - private UriDt myConcept; - - @Child(name="system", type=UriDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="System for a concept in the referenced concept", - formalDefinition="" - ) - private UriDt mySystem; - - @Child(name="code", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Code for a concept in the referenced concept", - formalDefinition="" - ) - private CodeDt myCode; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myConcept, mySystem, myCode); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myConcept, mySystem, myCode); - } - - /** - * Gets the value(s) for concept (Reference to element/field/valueset provides the context). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a specific concept that holds a coded value. This can be an element in a FHIR resource, or a specific reference to a data element in a different specification (e.g. v2) or a general reference to a kind of data field, or a reference to a value set with an appropriately narrow definition - *

- */ - public UriDt getConcept() { - if (myConcept == null) { - myConcept = new UriDt(); - } - return myConcept; - } - - - /** - * Gets the value(s) for concept (Reference to element/field/valueset provides the context). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a specific concept that holds a coded value. This can be an element in a FHIR resource, or a specific reference to a data element in a different specification (e.g. v2) or a general reference to a kind of data field, or a reference to a value set with an appropriately narrow definition - *

- */ - public UriDt getConceptElement() { - if (myConcept == null) { - myConcept = new UriDt(); - } - return myConcept; - } - - - /** - * Sets the value(s) for concept (Reference to element/field/valueset provides the context) - * - *

- * Definition: - * A reference to a specific concept that holds a coded value. This can be an element in a FHIR resource, or a specific reference to a data element in a different specification (e.g. v2) or a general reference to a kind of data field, or a reference to a value set with an appropriately narrow definition - *

- */ - public ConceptDependsOn setConcept(UriDt theValue) { - myConcept = theValue; - return this; - } - - /** - * Sets the value for concept (Reference to element/field/valueset provides the context) - * - *

- * Definition: - * A reference to a specific concept that holds a coded value. This can be an element in a FHIR resource, or a specific reference to a data element in a different specification (e.g. v2) or a general reference to a kind of data field, or a reference to a value set with an appropriately narrow definition - *

- */ - public ConceptDependsOn setConcept( String theUri) { - myConcept = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for system (System for a concept in the referenced concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (System for a concept in the referenced concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (System for a concept in the referenced concept) - * - *

- * Definition: - * - *

- */ - public ConceptDependsOn setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (System for a concept in the referenced concept) - * - *

- * Definition: - * - *

- */ - public ConceptDependsOn setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for code (Code for a concept in the referenced concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCode() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Code for a concept in the referenced concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Code for a concept in the referenced concept) - * - *

- * Definition: - * - *

- */ - public ConceptDependsOn setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value for code (Code for a concept in the referenced concept) - * - *

- * Definition: - * - *

- */ - public ConceptDependsOn setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - - } - - - /** - * Block class for child element: ConceptMap.concept.map (A concept from the target value set that this concept maps to) - * - *

- * Definition: - * - *

- */ - @Block() - public static class ConceptMap2 - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="System of the target", - formalDefinition="" - ) - private UriDt mySystem; - - @Child(name="code", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Code that identifies the target concept", - formalDefinition="" - ) - private CodeDt myCode; - - @Child(name="equivalence", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="equal | equivalent | wider | subsumes | narrower | specialises | inexact | unmatched | disjoint", - formalDefinition="" - ) - private BoundCodeDt myEquivalence; - - @Child(name="comments", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Description of status/issues in mapping", - formalDefinition="" - ) - private StringDt myComments; - - @Child(name="product", type=ConceptDependsOn.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Other concepts that this mapping also produces", - formalDefinition="A set of additional outcomes from this mapping to other value sets. To properly execute this mapping, the specified value set must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on" - ) - private java.util.List myProduct; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myCode, myEquivalence, myComments, myProduct); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myCode, myEquivalence, myComments, myProduct); - } - - /** - * Gets the value(s) for system (System of the target). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (System of the target). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (System of the target) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (System of the target) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for code (Code that identifies the target concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCode() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Code that identifies the target concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Code that identifies the target concept) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value for code (Code that identifies the target concept) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for equivalence (equal | equivalent | wider | subsumes | narrower | specialises | inexact | unmatched | disjoint). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getEquivalence() { - if (myEquivalence == null) { - myEquivalence = new BoundCodeDt(ConceptMapEquivalenceEnum.VALUESET_BINDER); - } - return myEquivalence; - } - - - /** - * Gets the value(s) for equivalence (equal | equivalent | wider | subsumes | narrower | specialises | inexact | unmatched | disjoint). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getEquivalenceElement() { - if (myEquivalence == null) { - myEquivalence = new BoundCodeDt(ConceptMapEquivalenceEnum.VALUESET_BINDER); - } - return myEquivalence; - } - - - /** - * Sets the value(s) for equivalence (equal | equivalent | wider | subsumes | narrower | specialises | inexact | unmatched | disjoint) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 setEquivalence(BoundCodeDt theValue) { - myEquivalence = theValue; - return this; - } - - /** - * Sets the value(s) for equivalence (equal | equivalent | wider | subsumes | narrower | specialises | inexact | unmatched | disjoint) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 setEquivalence(ConceptMapEquivalenceEnum theValue) { - getEquivalence().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for comments (Description of status/issues in mapping). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getComments() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (Description of status/issues in mapping). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Sets the value(s) for comments (Description of status/issues in mapping) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - /** - * Sets the value for comments (Description of status/issues in mapping) - * - *

- * Definition: - * - *

- */ - public ConceptMap2 setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for product (Other concepts that this mapping also produces). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of additional outcomes from this mapping to other value sets. To properly execute this mapping, the specified value set must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on - *

- */ - public java.util.List getProduct() { - if (myProduct == null) { - myProduct = new java.util.ArrayList(); - } - return myProduct; - } - - - /** - * Gets the value(s) for product (Other concepts that this mapping also produces). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of additional outcomes from this mapping to other value sets. To properly execute this mapping, the specified value set must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on - *

- */ - public java.util.List getProductElement() { - if (myProduct == null) { - myProduct = new java.util.ArrayList(); - } - return myProduct; - } - - - /** - * Sets the value(s) for product (Other concepts that this mapping also produces) - * - *

- * Definition: - * A set of additional outcomes from this mapping to other value sets. To properly execute this mapping, the specified value set must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on - *

- */ - public ConceptMap2 setProduct(java.util.List theValue) { - myProduct = theValue; - return this; - } - - /** - * Adds and returns a new value for product (Other concepts that this mapping also produces) - * - *

- * Definition: - * A set of additional outcomes from this mapping to other value sets. To properly execute this mapping, the specified value set must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on - *

- */ - public ConceptDependsOn addProduct() { - ConceptDependsOn newType = new ConceptDependsOn(); - getProduct().add(newType); - return newType; - } - - /** - * Gets the first repetition for product (Other concepts that this mapping also produces), - * creating it if it does not already exist. - * - *

- * Definition: - * A set of additional outcomes from this mapping to other value sets. To properly execute this mapping, the specified value set must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on - *

- */ - public ConceptDependsOn getProductFirstRep() { - if (getProduct().isEmpty()) { - return addProduct(); - } - return getProduct().get(0); - } - - - } - - - - - - @Override - public String getResourceName() { - return "ConceptMap"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Condition.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Condition.java deleted file mode 100644 index d9435b17f40..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Condition.java +++ /dev/null @@ -1,2419 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Condition Resource - * (Detailed information about conditions, problems or diagnoses) - * - *

- * Definition: - * Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Condition - *

- * - */ -@ResourceDef(name="Condition", profile="http://hl7.org/fhir/profiles/Condition", id="condition") -public class Condition - extends BaseResource implements IResource { - - /** - * Search parameter constant for code - *

- * Description: Code for the condition
- * Type: token
- * Path: Condition.code
- *

- */ - @SearchParamDefinition(name="code", path="Condition.code", description="Code for the condition", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description: Code for the condition
- * Type: token
- * Path: Condition.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for status - *

- * Description: The status of the condition
- * Type: token
- * Path: Condition.status
- *

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

- * Description: The status of the condition
- * Type: token
- * Path: Condition.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for severity - *

- * Description: The severity of the condition
- * Type: token
- * Path: Condition.severity
- *

- */ - @SearchParamDefinition(name="severity", path="Condition.severity", description="The severity of the condition", type="token" ) - public static final String SP_SEVERITY = "severity"; - - /** - * Fluent Client search parameter constant for severity - *

- * Description: The severity of the condition
- * Type: token
- * Path: Condition.severity
- *

- */ - public static final TokenClientParam SEVERITY = new TokenClientParam(SP_SEVERITY); - - /** - * Search parameter constant for category - *

- * Description: The category of the condition
- * Type: token
- * Path: Condition.category
- *

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

- * Description: The category of the condition
- * Type: token
- * Path: Condition.category
- *

- */ - public static final TokenClientParam CATEGORY = new TokenClientParam(SP_CATEGORY); - - /** - * Search parameter constant for onset - *

- * Description: When the Condition started (if started on a date)
- * Type: date
- * Path: Condition.onset[x]
- *

- */ - @SearchParamDefinition(name="onset", path="Condition.onset[x]", description="When the Condition started (if started on a date)", type="date" ) - public static final String SP_ONSET = "onset"; - - /** - * Fluent Client search parameter constant for onset - *

- * Description: When the Condition started (if started on a date)
- * Type: date
- * Path: Condition.onset[x]
- *

- */ - public static final DateClientParam ONSET = new DateClientParam(SP_ONSET); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Condition.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Condition.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Condition.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Condition.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Condition.subject"); - - /** - * Search parameter constant for encounter - *

- * Description:
- * Type: reference
- * Path: Condition.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Condition.encounter", description="", type="reference" ) - public static final String SP_ENCOUNTER = "encounter"; - - /** - * Fluent Client search parameter constant for encounter - *

- * Description:
- * Type: reference
- * Path: Condition.encounter
- *

- */ - public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Condition.encounter". - */ - public static final Include INCLUDE_ENCOUNTER = new Include("Condition.encounter"); - - /** - * Search parameter constant for asserter - *

- * Description:
- * Type: reference
- * Path: Condition.asserter
- *

- */ - @SearchParamDefinition(name="asserter", path="Condition.asserter", description="", type="reference" ) - public static final String SP_ASSERTER = "asserter"; - - /** - * Fluent Client search parameter constant for asserter - *

- * Description:
- * Type: reference
- * Path: Condition.asserter
- *

- */ - public static final ReferenceClientParam ASSERTER = new ReferenceClientParam(SP_ASSERTER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Condition.asserter". - */ - public static final Include INCLUDE_ASSERTER = new Include("Condition.asserter"); - - /** - * Search parameter constant for date-asserted - *

- * Description:
- * Type: date
- * Path: Condition.dateAsserted
- *

- */ - @SearchParamDefinition(name="date-asserted", path="Condition.dateAsserted", description="", type="date" ) - public static final String SP_DATE_ASSERTED = "date-asserted"; - - /** - * Fluent Client search parameter constant for date-asserted - *

- * Description:
- * Type: date
- * Path: Condition.dateAsserted
- *

- */ - public static final DateClientParam DATE_ASSERTED = new DateClientParam(SP_DATE_ASSERTED); - - /** - * Search parameter constant for evidence - *

- * Description:
- * Type: token
- * Path: Condition.evidence.code
- *

- */ - @SearchParamDefinition(name="evidence", path="Condition.evidence.code", description="", type="token" ) - public static final String SP_EVIDENCE = "evidence"; - - /** - * Fluent Client search parameter constant for evidence - *

- * Description:
- * Type: token
- * Path: Condition.evidence.code
- *

- */ - public static final TokenClientParam EVIDENCE = new TokenClientParam(SP_EVIDENCE); - - /** - * Search parameter constant for location - *

- * Description:
- * Type: token
- * Path: Condition.location.code
- *

- */ - @SearchParamDefinition(name="location", path="Condition.location.code", description="", type="token" ) - public static final String SP_LOCATION = "location"; - - /** - * Fluent Client search parameter constant for location - *

- * Description:
- * Type: token
- * Path: Condition.location.code
- *

- */ - public static final TokenClientParam LOCATION = new TokenClientParam(SP_LOCATION); - - /** - * Search parameter constant for related-item - *

- * Description:
- * Type: reference
- * Path: Condition.relatedItem.target
- *

- */ - @SearchParamDefinition(name="related-item", path="Condition.relatedItem.target", description="", type="reference" ) - public static final String SP_RELATED_ITEM = "related-item"; - - /** - * Fluent Client search parameter constant for related-item - *

- * Description:
- * Type: reference
- * Path: Condition.relatedItem.target
- *

- */ - public static final ReferenceClientParam RELATED_ITEM = new ReferenceClientParam(SP_RELATED_ITEM); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Condition.relatedItem.target". - */ - public static final Include INCLUDE_RELATEDITEM_TARGET = new Include("Condition.relatedItem.target"); - - /** - * Search parameter constant for stage - *

- * Description:
- * Type: token
- * Path: Condition.stage.summary
- *

- */ - @SearchParamDefinition(name="stage", path="Condition.stage.summary", description="", type="token" ) - public static final String SP_STAGE = "stage"; - - /** - * Fluent Client search parameter constant for stage - *

- * Description:
- * Type: token
- * Path: Condition.stage.summary
- *

- */ - public static final TokenClientParam STAGE = new TokenClientParam(SP_STAGE); - - /** - * Search parameter constant for related-code - *

- * Description:
- * Type: token
- * Path: Condition.relatedItem.code
- *

- */ - @SearchParamDefinition(name="related-code", path="Condition.relatedItem.code", description="", type="token" ) - public static final String SP_RELATED_CODE = "related-code"; - - /** - * Fluent Client search parameter constant for related-code - *

- * Description:
- * Type: token
- * Path: Condition.relatedItem.code
- *

- */ - public static final TokenClientParam RELATED_CODE = new TokenClientParam(SP_RELATED_CODE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this condition", - formalDefinition="This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="subject", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who has the condition?", - formalDefinition="Indicates the patient who the condition record is associated with" - ) - private ResourceReferenceDt mySubject; - - @Child(name="encounter", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="Encounter when condition first asserted", - formalDefinition="Encounter during which the condition was first asserted" - ) - private ResourceReferenceDt myEncounter; - - @Child(name="asserter", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Person who asserts this condition", - formalDefinition="Person who takes responsibility for asserting the existence of the condition as part of the electronic record" - ) - private ResourceReferenceDt myAsserter; - - @Child(name="dateAsserted", type=DateDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="When first detected/suspected/entered", - formalDefinition="Estimated or actual date the condition/problem/diagnosis was first detected/suspected" - ) - private DateDt myDateAsserted; - - @Child(name="code", type=CodeableConceptDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Identification of the condition, problem or diagnosis", - formalDefinition="Identification of the condition, problem or diagnosis." - ) - private CodeableConceptDt myCode; - - @Child(name="category", type=CodeableConceptDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="E.g. complaint | symptom | finding | diagnosis", - formalDefinition="A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis" - ) - private CodeableConceptDt myCategory; - - @Child(name="status", type=CodeDt.class, order=7, min=1, max=1) - @Description( - shortDefinition="provisional | working | confirmed | refuted", - formalDefinition="The clinical status of the condition" - ) - private BoundCodeDt myStatus; - - @Child(name="certainty", type=CodeableConceptDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Degree of confidence", - formalDefinition="The degree of confidence that this condition is correct" - ) - private CodeableConceptDt myCertainty; - - @Child(name="severity", type=CodeableConceptDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Subjective severity of condition", - formalDefinition="A subjective assessment of the severity of the condition as evaluated by the clinician." - ) - private CodeableConceptDt mySeverity; - - @Child(name="onset", order=10, min=0, max=1, type={ - DateDt.class, AgeDt.class }) - @Description( - shortDefinition="Estimated or actual date, or age", - formalDefinition="Estimated or actual date the condition began, in the opinion of the clinician" - ) - private IDatatype myOnset; - - @Child(name="abatement", order=11, min=0, max=1, type={ - DateDt.class, AgeDt.class, BooleanDt.class }) - @Description( - shortDefinition="If/when in resolution/remission", - formalDefinition="The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate." - ) - private IDatatype myAbatement; - - @Child(name="stage", order=12, min=0, max=1) - @Description( - shortDefinition="Stage/grade, usually assessed formally", - formalDefinition="Clinical stage or grade of a condition. May include formal severity assessments" - ) - private Stage myStage; - - @Child(name="evidence", order=13, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Supporting evidence", - formalDefinition="Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed" - ) - private java.util.List myEvidence; - - @Child(name="location", order=14, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Anatomical location, if relevant", - formalDefinition="The anatomical location where this condition manifests itself" - ) - private java.util.List myLocation; - - @Child(name="relatedItem", order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Causes or precedents for this Condition", - formalDefinition="Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition" - ) - private java.util.List myRelatedItem; - - @Child(name="notes", type=StringDt.class, order=16, min=0, max=1) - @Description( - shortDefinition="Additional information about the Condition", - formalDefinition="Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis" - ) - private StringDt myNotes; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, mySubject, myEncounter, myAsserter, myDateAsserted, myCode, myCategory, myStatus, myCertainty, mySeverity, myOnset, myAbatement, myStage, myEvidence, myLocation, myRelatedItem, myNotes); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, mySubject, myEncounter, myAsserter, myDateAsserted, myCode, myCategory, myStatus, myCertainty, mySeverity, myOnset, myAbatement, myStage, myEvidence, myLocation, myRelatedItem, myNotes); - } - - /** - * Gets the value(s) for identifier (External Ids for this condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this condition) - * - *

- * Definition: - * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public Condition setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this condition) - * - *

- * Definition: - * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this condition), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this condition) - * - *

- * Definition: - * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Condition addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this condition) - * - *

- * Definition: - * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Condition addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for subject (Who has the condition?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the patient who the condition record is associated with - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who has the condition?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the patient who the condition record is associated with - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who has the condition?) - * - *

- * Definition: - * Indicates the patient who the condition record is associated with - *

- */ - public Condition setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for encounter (Encounter when condition first asserted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Encounter during which the condition was first asserted - *

- */ - public ResourceReferenceDt getEncounter() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Gets the value(s) for encounter (Encounter when condition first asserted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Encounter during which the condition was first asserted - *

- */ - public ResourceReferenceDt getEncounterElement() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Sets the value(s) for encounter (Encounter when condition first asserted) - * - *

- * Definition: - * Encounter during which the condition was first asserted - *

- */ - public Condition setEncounter(ResourceReferenceDt theValue) { - myEncounter = theValue; - return this; - } - - - /** - * Gets the value(s) for asserter (Person who asserts this condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Person who takes responsibility for asserting the existence of the condition as part of the electronic record - *

- */ - public ResourceReferenceDt getAsserter() { - if (myAsserter == null) { - myAsserter = new ResourceReferenceDt(); - } - return myAsserter; - } - - - /** - * Gets the value(s) for asserter (Person who asserts this condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Person who takes responsibility for asserting the existence of the condition as part of the electronic record - *

- */ - public ResourceReferenceDt getAsserterElement() { - if (myAsserter == null) { - myAsserter = new ResourceReferenceDt(); - } - return myAsserter; - } - - - /** - * Sets the value(s) for asserter (Person who asserts this condition) - * - *

- * Definition: - * Person who takes responsibility for asserting the existence of the condition as part of the electronic record - *

- */ - public Condition setAsserter(ResourceReferenceDt theValue) { - myAsserter = theValue; - return this; - } - - - /** - * Gets the value(s) for dateAsserted (When first detected/suspected/entered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Estimated or actual date the condition/problem/diagnosis was first detected/suspected - *

- */ - public DateDt getDateAsserted() { - if (myDateAsserted == null) { - myDateAsserted = new DateDt(); - } - return myDateAsserted; - } - - - /** - * Gets the value(s) for dateAsserted (When first detected/suspected/entered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Estimated or actual date the condition/problem/diagnosis was first detected/suspected - *

- */ - public DateDt getDateAssertedElement() { - if (myDateAsserted == null) { - myDateAsserted = new DateDt(); - } - return myDateAsserted; - } - - - /** - * Sets the value(s) for dateAsserted (When first detected/suspected/entered) - * - *

- * Definition: - * Estimated or actual date the condition/problem/diagnosis was first detected/suspected - *

- */ - public Condition setDateAsserted(DateDt theValue) { - myDateAsserted = theValue; - return this; - } - - /** - * Sets the value for dateAsserted (When first detected/suspected/entered) - * - *

- * Definition: - * Estimated or actual date the condition/problem/diagnosis was first detected/suspected - *

- */ - public Condition setDateAsserted( Date theDate, TemporalPrecisionEnum thePrecision) { - myDateAsserted = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for dateAsserted (When first detected/suspected/entered) - * - *

- * Definition: - * Estimated or actual date the condition/problem/diagnosis was first detected/suspected - *

- */ - public Condition setDateAssertedWithDayPrecision( Date theDate) { - myDateAsserted = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for code (Identification of the condition, problem or diagnosis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identification of the condition, problem or diagnosis. - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Identification of the condition, problem or diagnosis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identification of the condition, problem or diagnosis. - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Identification of the condition, problem or diagnosis) - * - *

- * Definition: - * Identification of the condition, problem or diagnosis. - *

- */ - public Condition setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for category (E.g. complaint | symptom | finding | diagnosis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis - *

- */ - public CodeableConceptDt getCategory() { - if (myCategory == null) { - myCategory = new CodeableConceptDt(); - } - return myCategory; - } - - - /** - * Gets the value(s) for category (E.g. complaint | symptom | finding | diagnosis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis - *

- */ - public CodeableConceptDt getCategoryElement() { - if (myCategory == null) { - myCategory = new CodeableConceptDt(); - } - return myCategory; - } - - - /** - * Sets the value(s) for category (E.g. complaint | symptom | finding | diagnosis) - * - *

- * Definition: - * A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis - *

- */ - public Condition setCategory(CodeableConceptDt theValue) { - myCategory = theValue; - return this; - } - - - /** - * Gets the value(s) for status (provisional | working | confirmed | refuted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The clinical status of the condition - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ConditionStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (provisional | working | confirmed | refuted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The clinical status of the condition - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ConditionStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (provisional | working | confirmed | refuted) - * - *

- * Definition: - * The clinical status of the condition - *

- */ - public Condition setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (provisional | working | confirmed | refuted) - * - *

- * Definition: - * The clinical status of the condition - *

- */ - public Condition setStatus(ConditionStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for certainty (Degree of confidence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The degree of confidence that this condition is correct - *

- */ - public CodeableConceptDt getCertainty() { - if (myCertainty == null) { - myCertainty = new CodeableConceptDt(); - } - return myCertainty; - } - - - /** - * Gets the value(s) for certainty (Degree of confidence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The degree of confidence that this condition is correct - *

- */ - public CodeableConceptDt getCertaintyElement() { - if (myCertainty == null) { - myCertainty = new CodeableConceptDt(); - } - return myCertainty; - } - - - /** - * Sets the value(s) for certainty (Degree of confidence) - * - *

- * Definition: - * The degree of confidence that this condition is correct - *

- */ - public Condition setCertainty(CodeableConceptDt theValue) { - myCertainty = theValue; - return this; - } - - - /** - * Gets the value(s) for severity (Subjective severity of condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A subjective assessment of the severity of the condition as evaluated by the clinician. - *

- */ - public CodeableConceptDt getSeverity() { - if (mySeverity == null) { - mySeverity = new CodeableConceptDt(); - } - return mySeverity; - } - - - /** - * Gets the value(s) for severity (Subjective severity of condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A subjective assessment of the severity of the condition as evaluated by the clinician. - *

- */ - public CodeableConceptDt getSeverityElement() { - if (mySeverity == null) { - mySeverity = new CodeableConceptDt(); - } - return mySeverity; - } - - - /** - * Sets the value(s) for severity (Subjective severity of condition) - * - *

- * Definition: - * A subjective assessment of the severity of the condition as evaluated by the clinician. - *

- */ - public Condition setSeverity(CodeableConceptDt theValue) { - mySeverity = theValue; - return this; - } - - - /** - * Gets the value(s) for onset[x] (Estimated or actual date, or age). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Estimated or actual date the condition began, in the opinion of the clinician - *

- */ - public IDatatype getOnset() { - return myOnset; - } - - - /** - * Gets the value(s) for onset[x] (Estimated or actual date, or age). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Estimated or actual date the condition began, in the opinion of the clinician - *

- */ - public IDatatype getOnsetElement() { - return myOnset; - } - - - /** - * Sets the value(s) for onset[x] (Estimated or actual date, or age) - * - *

- * Definition: - * Estimated or actual date the condition began, in the opinion of the clinician - *

- */ - public Condition setOnset(IDatatype theValue) { - myOnset = theValue; - return this; - } - - - /** - * Gets the value(s) for abatement[x] (If/when in resolution/remission). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate. - *

- */ - public IDatatype getAbatement() { - return myAbatement; - } - - - /** - * Gets the value(s) for abatement[x] (If/when in resolution/remission). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate. - *

- */ - public IDatatype getAbatementElement() { - return myAbatement; - } - - - /** - * Sets the value(s) for abatement[x] (If/when in resolution/remission) - * - *

- * Definition: - * The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate. - *

- */ - public Condition setAbatement(IDatatype theValue) { - myAbatement = theValue; - return this; - } - - - /** - * Gets the value(s) for stage (Stage/grade, usually assessed formally). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Clinical stage or grade of a condition. May include formal severity assessments - *

- */ - public Stage getStage() { - if (myStage == null) { - myStage = new Stage(); - } - return myStage; - } - - - /** - * Gets the value(s) for stage (Stage/grade, usually assessed formally). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Clinical stage or grade of a condition. May include formal severity assessments - *

- */ - public Stage getStageElement() { - if (myStage == null) { - myStage = new Stage(); - } - return myStage; - } - - - /** - * Sets the value(s) for stage (Stage/grade, usually assessed formally) - * - *

- * Definition: - * Clinical stage or grade of a condition. May include formal severity assessments - *

- */ - public Condition setStage(Stage theValue) { - myStage = theValue; - return this; - } - - - /** - * Gets the value(s) for evidence (Supporting evidence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed - *

- */ - public java.util.List getEvidence() { - if (myEvidence == null) { - myEvidence = new java.util.ArrayList(); - } - return myEvidence; - } - - - /** - * Gets the value(s) for evidence (Supporting evidence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed - *

- */ - public java.util.List getEvidenceElement() { - if (myEvidence == null) { - myEvidence = new java.util.ArrayList(); - } - return myEvidence; - } - - - /** - * Sets the value(s) for evidence (Supporting evidence) - * - *

- * Definition: - * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed - *

- */ - public Condition setEvidence(java.util.List theValue) { - myEvidence = theValue; - return this; - } - - /** - * Adds and returns a new value for evidence (Supporting evidence) - * - *

- * Definition: - * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed - *

- */ - public Evidence addEvidence() { - Evidence newType = new Evidence(); - getEvidence().add(newType); - return newType; - } - - /** - * Gets the first repetition for evidence (Supporting evidence), - * creating it if it does not already exist. - * - *

- * Definition: - * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed - *

- */ - public Evidence getEvidenceFirstRep() { - if (getEvidence().isEmpty()) { - return addEvidence(); - } - return getEvidence().get(0); - } - - /** - * Gets the value(s) for location (Anatomical location, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The anatomical location where this condition manifests itself - *

- */ - public java.util.List getLocation() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Anatomical location, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The anatomical location where this condition manifests itself - *

- */ - public java.util.List getLocationElement() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Anatomical location, if relevant) - * - *

- * Definition: - * The anatomical location where this condition manifests itself - *

- */ - public Condition setLocation(java.util.List theValue) { - myLocation = theValue; - return this; - } - - /** - * Adds and returns a new value for location (Anatomical location, if relevant) - * - *

- * Definition: - * The anatomical location where this condition manifests itself - *

- */ - public Location addLocation() { - Location newType = new Location(); - getLocation().add(newType); - return newType; - } - - /** - * Gets the first repetition for location (Anatomical location, if relevant), - * creating it if it does not already exist. - * - *

- * Definition: - * The anatomical location where this condition manifests itself - *

- */ - public Location getLocationFirstRep() { - if (getLocation().isEmpty()) { - return addLocation(); - } - return getLocation().get(0); - } - - /** - * Gets the value(s) for relatedItem (Causes or precedents for this Condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition - *

- */ - public java.util.List getRelatedItem() { - if (myRelatedItem == null) { - myRelatedItem = new java.util.ArrayList(); - } - return myRelatedItem; - } - - - /** - * Gets the value(s) for relatedItem (Causes or precedents for this Condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition - *

- */ - public java.util.List getRelatedItemElement() { - if (myRelatedItem == null) { - myRelatedItem = new java.util.ArrayList(); - } - return myRelatedItem; - } - - - /** - * Sets the value(s) for relatedItem (Causes or precedents for this Condition) - * - *

- * Definition: - * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition - *

- */ - public Condition setRelatedItem(java.util.List theValue) { - myRelatedItem = theValue; - return this; - } - - /** - * Adds and returns a new value for relatedItem (Causes or precedents for this Condition) - * - *

- * Definition: - * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition - *

- */ - public RelatedItem addRelatedItem() { - RelatedItem newType = new RelatedItem(); - getRelatedItem().add(newType); - return newType; - } - - /** - * Gets the first repetition for relatedItem (Causes or precedents for this Condition), - * creating it if it does not already exist. - * - *

- * Definition: - * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition - *

- */ - public RelatedItem getRelatedItemFirstRep() { - if (getRelatedItem().isEmpty()) { - return addRelatedItem(); - } - return getRelatedItem().get(0); - } - - /** - * Gets the value(s) for notes (Additional information about the Condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis - *

- */ - public StringDt getNotes() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Gets the value(s) for notes (Additional information about the Condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis - *

- */ - public StringDt getNotesElement() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Sets the value(s) for notes (Additional information about the Condition) - * - *

- * Definition: - * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis - *

- */ - public Condition setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - /** - * Sets the value for notes (Additional information about the Condition) - * - *

- * Definition: - * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis - *

- */ - public Condition setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Block class for child element: Condition.stage (Stage/grade, usually assessed formally) - * - *

- * Definition: - * Clinical stage or grade of a condition. May include formal severity assessments - *

- */ - @Block() - public static class Stage - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="summary", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Simple summary (disease specific)", - formalDefinition="A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific" - ) - private CodeableConceptDt mySummary; - - @Child(name="assessment", order=1, min=0, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="Formal record of assessment", - formalDefinition="Reference to a formal record of the evidence on which the staging assessment is based" - ) - private java.util.List myAssessment; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySummary, myAssessment); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySummary, myAssessment); - } - - /** - * Gets the value(s) for summary (Simple summary (disease specific)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific - *

- */ - public CodeableConceptDt getSummary() { - if (mySummary == null) { - mySummary = new CodeableConceptDt(); - } - return mySummary; - } - - - /** - * Gets the value(s) for summary (Simple summary (disease specific)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific - *

- */ - public CodeableConceptDt getSummaryElement() { - if (mySummary == null) { - mySummary = new CodeableConceptDt(); - } - return mySummary; - } - - - /** - * Sets the value(s) for summary (Simple summary (disease specific)) - * - *

- * Definition: - * A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific - *

- */ - public Stage setSummary(CodeableConceptDt theValue) { - mySummary = theValue; - return this; - } - - - /** - * Gets the value(s) for assessment (Formal record of assessment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference to a formal record of the evidence on which the staging assessment is based - *

- */ - public java.util.List getAssessment() { - if (myAssessment == null) { - myAssessment = new java.util.ArrayList(); - } - return myAssessment; - } - - - /** - * Gets the value(s) for assessment (Formal record of assessment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference to a formal record of the evidence on which the staging assessment is based - *

- */ - public java.util.List getAssessmentElement() { - if (myAssessment == null) { - myAssessment = new java.util.ArrayList(); - } - return myAssessment; - } - - - /** - * Sets the value(s) for assessment (Formal record of assessment) - * - *

- * Definition: - * Reference to a formal record of the evidence on which the staging assessment is based - *

- */ - public Stage setAssessment(java.util.List theValue) { - myAssessment = theValue; - return this; - } - - /** - * Adds and returns a new value for assessment (Formal record of assessment) - * - *

- * Definition: - * Reference to a formal record of the evidence on which the staging assessment is based - *

- */ - public ResourceReferenceDt addAssessment() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getAssessment().add(newType); - return newType; - } - - - } - - - /** - * Block class for child element: Condition.evidence (Supporting evidence) - * - *

- * Definition: - * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed - *

- */ - @Block() - public static class Evidence - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Manifestation/symptom", - formalDefinition="A manifestation or symptom that led to the recording of this condition" - ) - private CodeableConceptDt myCode; - - @Child(name="detail", order=1, min=0, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="Supporting information found elsewhere", - formalDefinition="Links to other relevant information, including pathology reports" - ) - private java.util.List myDetail; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDetail); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDetail); - } - - /** - * Gets the value(s) for code (Manifestation/symptom). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A manifestation or symptom that led to the recording of this condition - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Manifestation/symptom). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A manifestation or symptom that led to the recording of this condition - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Manifestation/symptom) - * - *

- * Definition: - * A manifestation or symptom that led to the recording of this condition - *

- */ - public Evidence setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for detail (Supporting information found elsewhere). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Links to other relevant information, including pathology reports - *

- */ - public java.util.List getDetail() { - if (myDetail == null) { - myDetail = new java.util.ArrayList(); - } - return myDetail; - } - - - /** - * Gets the value(s) for detail (Supporting information found elsewhere). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Links to other relevant information, including pathology reports - *

- */ - public java.util.List getDetailElement() { - if (myDetail == null) { - myDetail = new java.util.ArrayList(); - } - return myDetail; - } - - - /** - * Sets the value(s) for detail (Supporting information found elsewhere) - * - *

- * Definition: - * Links to other relevant information, including pathology reports - *

- */ - public Evidence setDetail(java.util.List theValue) { - myDetail = theValue; - return this; - } - - /** - * Adds and returns a new value for detail (Supporting information found elsewhere) - * - *

- * Definition: - * Links to other relevant information, including pathology reports - *

- */ - public ResourceReferenceDt addDetail() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getDetail().add(newType); - return newType; - } - - - } - - - /** - * Block class for child element: Condition.location (Anatomical location, if relevant) - * - *

- * Definition: - * The anatomical location where this condition manifests itself - *

- */ - @Block() - public static class Location - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Location - may include laterality", - formalDefinition="Code that identifies the structural location" - ) - private CodeableConceptDt myCode; - - @Child(name="detail", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Precise location details", - formalDefinition="Detailed anatomical location information" - ) - private StringDt myDetail; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDetail); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDetail); - } - - /** - * Gets the value(s) for code (Location - may include laterality). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code that identifies the structural location - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Location - may include laterality). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code that identifies the structural location - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Location - may include laterality) - * - *

- * Definition: - * Code that identifies the structural location - *

- */ - public Location setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for detail (Precise location details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Detailed anatomical location information - *

- */ - public StringDt getDetail() { - if (myDetail == null) { - myDetail = new StringDt(); - } - return myDetail; - } - - - /** - * Gets the value(s) for detail (Precise location details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Detailed anatomical location information - *

- */ - public StringDt getDetailElement() { - if (myDetail == null) { - myDetail = new StringDt(); - } - return myDetail; - } - - - /** - * Sets the value(s) for detail (Precise location details) - * - *

- * Definition: - * Detailed anatomical location information - *

- */ - public Location setDetail(StringDt theValue) { - myDetail = theValue; - return this; - } - - /** - * Sets the value for detail (Precise location details) - * - *

- * Definition: - * Detailed anatomical location information - *

- */ - public Location setDetail( String theString) { - myDetail = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Condition.relatedItem (Causes or precedents for this Condition) - * - *

- * Definition: - * Further conditions, problems, diagnoses, procedures or events that are related in some way to this condition, or the substance that caused/triggered this Condition - *

- */ - @Block() - public static class RelatedItem - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="due-to | following", - formalDefinition="The type of relationship that this condition has to the related item" - ) - private BoundCodeDt myType; - - @Child(name="code", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Relationship target by means of a predefined code", - formalDefinition="Code that identifies the target of this relationship. The code takes the place of a detailed instance target" - ) - private CodeableConceptDt myCode; - - @Child(name="target", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Condition.class, ca.uhn.fhir.model.dstu.resource.Procedure.class, ca.uhn.fhir.model.dstu.resource.MedicationAdministration.class, ca.uhn.fhir.model.dstu.resource.Immunization.class, ca.uhn.fhir.model.dstu.resource.MedicationStatement.class }) - @Description( - shortDefinition="Relationship target resource", - formalDefinition="Target of the relationship" - ) - private ResourceReferenceDt myTarget; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myCode, myTarget); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myCode, myTarget); - } - - /** - * Gets the value(s) for type (due-to | following). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of relationship that this condition has to the related item - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(ConditionRelationshipTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (due-to | following). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of relationship that this condition has to the related item - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(ConditionRelationshipTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (due-to | following) - * - *

- * Definition: - * The type of relationship that this condition has to the related item - *

- */ - public RelatedItem setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (due-to | following) - * - *

- * Definition: - * The type of relationship that this condition has to the related item - *

- */ - public RelatedItem setType(ConditionRelationshipTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for code (Relationship target by means of a predefined code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code that identifies the target of this relationship. The code takes the place of a detailed instance target - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Relationship target by means of a predefined code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code that identifies the target of this relationship. The code takes the place of a detailed instance target - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Relationship target by means of a predefined code) - * - *

- * Definition: - * Code that identifies the target of this relationship. The code takes the place of a detailed instance target - *

- */ - public RelatedItem setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for target (Relationship target resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Target of the relationship - *

- */ - public ResourceReferenceDt getTarget() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Relationship target resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Target of the relationship - *

- */ - public ResourceReferenceDt getTargetElement() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Relationship target resource) - * - *

- * Definition: - * Target of the relationship - *

- */ - public RelatedItem setTarget(ResourceReferenceDt theValue) { - myTarget = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Condition"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Conformance.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Conformance.java deleted file mode 100644 index cead6be4f4d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Conformance.java +++ /dev/null @@ -1,6252 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Conformance Resource - * (A conformance statement) - * - *

- * Definition: - * A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Conformance - *

- * - */ -@ResourceDef(name="Conformance", profile="http://hl7.org/fhir/profiles/Conformance", id="conformance") -public class Conformance extends BaseResource implements ca.uhn.fhir.model.base.resource.BaseConformance { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the conformance statement
- * Type: token
- * Path: Conformance.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Conformance.identifier", description="The identifier of the conformance statement", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: The identifier of the conformance statement
- * Type: token
- * Path: Conformance.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the conformance statement
- * Type: token
- * Path: Conformance.version
- *

- */ - @SearchParamDefinition(name="version", path="Conformance.version", description="The version identifier of the conformance statement", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the conformance statement
- * Type: token
- * Path: Conformance.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: Name of the conformance statement
- * Type: string
- * Path: Conformance.name
- *

- */ - @SearchParamDefinition(name="name", path="Conformance.name", description="Name of the conformance statement", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: Name of the conformance statement
- * Type: string
- * Path: Conformance.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the conformance statement
- * Type: string
- * Path: Conformance.publisher
- *

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

- * Description: Name of the publisher of the conformance statement
- * Type: string
- * Path: Conformance.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the conformance statement
- * Type: string
- * Path: Conformance.description
- *

- */ - @SearchParamDefinition(name="description", path="Conformance.description", description="Text search in the description of the conformance statement", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the conformance statement
- * Type: string
- * Path: Conformance.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: The current status of the conformance statement
- * Type: token
- * Path: Conformance.status
- *

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

- * Description: The current status of the conformance statement
- * Type: token
- * Path: Conformance.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The conformance statement publication date
- * Type: date
- * Path: Conformance.date
- *

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

- * Description: The conformance statement publication date
- * Type: date
- * Path: Conformance.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for software - *

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

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

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

- */ - public static final StringClientParam SOFTWARE = new StringClientParam(SP_SOFTWARE); - - /** - * Search parameter constant for fhirversion - *

- * Description: The version of FHIR
- * Type: token
- * Path: Conformance.version
- *

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

- * Description: The version of FHIR
- * Type: token
- * Path: Conformance.version
- *

- */ - public static final TokenClientParam FHIRVERSION = new TokenClientParam(SP_FHIRVERSION); - - /** - * Search parameter constant for resource - *

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

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

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

- */ - public static final TokenClientParam RESOURCE = new TokenClientParam(SP_RESOURCE); - - /** - * Search parameter constant for event - *

- * Description: Event code in a conformance statement
- * Type: token
- * Path: Conformance.messaging.event.code
- *

- */ - @SearchParamDefinition(name="event", path="Conformance.messaging.event.code", description="Event code in a conformance statement", type="token" ) - public static final String SP_EVENT = "event"; - - /** - * Fluent Client search parameter constant for event - *

- * Description: Event code in a conformance statement
- * Type: token
- * Path: Conformance.messaging.event.code
- *

- */ - public static final TokenClientParam EVENT = new TokenClientParam(SP_EVENT); - - /** - * Search parameter constant for mode - *

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

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

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

- */ - public static final TokenClientParam MODE = new TokenClientParam(SP_MODE); - - /** - * Search parameter constant for profile - *

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

- */ - @SearchParamDefinition(name="profile", path="Conformance.rest.resource.profile", description="A profile id invoked in a conformance statement", type="reference" ) - public static final String SP_PROFILE = "profile"; - - /** - * Fluent Client search parameter constant for profile - *

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

- */ - public static final ReferenceClientParam PROFILE = new ReferenceClientParam(SP_PROFILE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.rest.resource.profile". - */ - public static final Include INCLUDE_REST_RESOURCE_PROFILE = new Include("Conformance.rest.resource.profile"); - - /** - * Search parameter constant for format - *

- * Description:
- * Type: token
- * Path: Conformance.format
- *

- */ - @SearchParamDefinition(name="format", path="Conformance.format", description="", type="token" ) - public static final String SP_FORMAT = "format"; - - /** - * Fluent Client search parameter constant for format - *

- * Description:
- * Type: token
- * Path: Conformance.format
- *

- */ - public static final TokenClientParam FORMAT = new TokenClientParam(SP_FORMAT); - - /** - * Search parameter constant for security - *

- * Description:
- * Type: token
- * Path: Conformance.rest.security
- *

- */ - @SearchParamDefinition(name="security", path="Conformance.rest.security", description="", type="token" ) - public static final String SP_SECURITY = "security"; - - /** - * Fluent Client search parameter constant for security - *

- * Description:
- * Type: token
- * Path: Conformance.rest.security
- *

- */ - public static final TokenClientParam SECURITY = new TokenClientParam(SP_SECURITY); - - /** - * Search parameter constant for supported-profile - *

- * Description:
- * Type: reference
- * Path: Conformance.profile
- *

- */ - @SearchParamDefinition(name="supported-profile", path="Conformance.profile", description="", type="reference" ) - public static final String SP_SUPPORTED_PROFILE = "supported-profile"; - - /** - * Fluent Client search parameter constant for supported-profile - *

- * Description:
- * Type: reference
- * Path: Conformance.profile
- *

- */ - public static final ReferenceClientParam SUPPORTED_PROFILE = new ReferenceClientParam(SP_SUPPORTED_PROFILE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Conformance.profile". - */ - public static final Include INCLUDE_PROFILE = new Include("Conformance.profile"); - - - @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Logical id to reference this statement", - formalDefinition="The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" - ) - private StringDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Logical id for this version of the statement", - formalDefinition="The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" - ) - private StringDt myVersion; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Informal name for this conformance statement", - formalDefinition="A free text natural language name identifying the conformance statement" - ) - private StringDt myName; - - @Child(name="publisher", type=StringDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Publishing Organization", - formalDefinition="Name of Organization publishing this conformance statement" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Contacts for Organization", - formalDefinition="Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc." - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Human description of the conformance statement", - formalDefinition="A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP" - ) - private StringDt myDescription; - - @Child(name="status", type=CodeDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="draft | active | retired", - formalDefinition="The status of this conformance statement" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="If for testing purposes, not real usage", - formalDefinition="A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="date", type=DateTimeDt.class, order=8, min=1, max=1) - @Description( - shortDefinition="Publication Date", - formalDefinition="The date when the conformance statement was published" - ) - private DateTimeDt myDate; - - @Child(name="software", order=9, min=0, max=1) - @Description( - shortDefinition="Software that is covered by this conformance statement", - formalDefinition="Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation." - ) - private Software mySoftware; - - @Child(name="implementation", order=10, min=0, max=1) - @Description( - shortDefinition="If this describes a specific instance", - formalDefinition="Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program" - ) - private Implementation myImplementation; - - @Child(name="fhirVersion", type=IdDt.class, order=11, min=1, max=1) - @Description( - shortDefinition="FHIR Version", - formalDefinition="The version of the FHIR specification on which this conformance statement is based" - ) - private IdDt myFhirVersion; - - @Child(name="acceptUnknown", type=BooleanDt.class, order=12, min=1, max=1) - @Description( - shortDefinition="True if application accepts unknown elements", - formalDefinition="A flag that indicates whether the application accepts unknown elements as part of a resource." - ) - private BooleanDt myAcceptUnknown; - - @Child(name="format", type=CodeDt.class, order=13, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="formats supported (xml | json | mime type)", - formalDefinition="A list of the formats supported by this implementation" - ) - private java.util.List myFormat; - - @Child(name="profile", order=14, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Profile.class }) - @Description( - shortDefinition="Profiles supported by the system", - formalDefinition="A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of recourses, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile." - ) - private java.util.List myProfile; - - @Child(name="rest", order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="If the endpoint is a RESTful one", - formalDefinition="A definition of the restful capabilities of the solution, if any" - ) - private java.util.List myRest; - - @Child(name="messaging", order=16, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="If messaging is supported", - formalDefinition="A description of the messaging capabilities of the solution" - ) - private java.util.List myMessaging; - - @Child(name="document", order=17, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Document definition", - formalDefinition="A document definition" - ) - private java.util.List myDocument; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myStatus, myExperimental, myDate, mySoftware, myImplementation, myFhirVersion, myAcceptUnknown, myFormat, myProfile, myRest, myMessaging, myDocument); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myStatus, myExperimental, myDate, mySoftware, myImplementation, myFhirVersion, myAcceptUnknown, myFormat, myProfile, myRest, myMessaging, myDocument); - } - - /** - * Gets the value(s) for identifier (Logical id to reference this statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Logical id to reference this statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Logical id to reference this statement) - * - *

- * Definition: - * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public Conformance setIdentifier(StringDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Logical id to reference this statement) - * - *

- * Definition: - * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public Conformance setIdentifier( String theString) { - myIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (Logical id for this version of the statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Logical id for this version of the statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Logical id for this version of the statement) - * - *

- * Definition: - * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public Conformance setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Logical id for this version of the statement) - * - *

- * Definition: - * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public Conformance setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (Informal name for this conformance statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the conformance statement - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Informal name for this conformance statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the conformance statement - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Informal name for this conformance statement) - * - *

- * Definition: - * A free text natural language name identifying the conformance statement - *

- */ - public Conformance setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Informal name for this conformance statement) - * - *

- * Definition: - * A free text natural language name identifying the conformance statement - *

- */ - public Conformance setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publisher (Publishing Organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of Organization publishing this conformance statement - *

- */ - public StringDt getPublisher() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (Publishing Organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of Organization publishing this conformance statement - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Sets the value(s) for publisher (Publishing Organization) - * - *

- * Definition: - * Name of Organization publishing this conformance statement - *

- */ - public Conformance setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - /** - * Sets the value for publisher (Publishing Organization) - * - *

- * Definition: - * Name of Organization publishing this conformance statement - *

- */ - public Conformance setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (Contacts for Organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (Contacts for Organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (Contacts for Organization) - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public Conformance setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (Contacts for Organization) - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (Contacts for Organization), - * creating it if it does not already exist. - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (Contacts for Organization) - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Conformance addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (Contacts for Organization) - * - *

- * Definition: - * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Conformance addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for description (Human description of the conformance statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Human description of the conformance statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Human description of the conformance statement) - * - *

- * Definition: - * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP - *

- */ - public Conformance setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Human description of the conformance statement) - * - *

- * Definition: - * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP - *

- */ - public Conformance setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (draft | active | retired). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this conformance statement - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ConformanceStatementStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (draft | active | retired). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this conformance statement - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ConformanceStatementStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (draft | active | retired) - * - *

- * Definition: - * The status of this conformance statement - *

- */ - public Conformance setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (draft | active | retired) - * - *

- * Definition: - * The status of this conformance statement - *

- */ - public Conformance setStatus(ConformanceStatementStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (If for testing purposes, not real usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimental() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (If for testing purposes, not real usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Sets the value(s) for experimental (If for testing purposes, not real usage) - * - *

- * Definition: - * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Conformance setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - /** - * Sets the value for experimental (If for testing purposes, not real usage) - * - *

- * Definition: - * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Conformance setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (Publication Date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date when the conformance statement was published - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Publication Date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date when the conformance statement was published - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Publication Date) - * - *

- * Definition: - * The date when the conformance statement was published - *

- */ - public Conformance setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Publication Date) - * - *

- * Definition: - * The date when the conformance statement was published - *

- */ - public Conformance setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Publication Date) - * - *

- * Definition: - * The date when the conformance statement was published - *

- */ - public Conformance setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for software (Software that is covered by this conformance statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation. - *

- */ - public Software getSoftware() { - if (mySoftware == null) { - mySoftware = new Software(); - } - return mySoftware; - } - - - /** - * Gets the value(s) for software (Software that is covered by this conformance statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation. - *

- */ - public Software getSoftwareElement() { - if (mySoftware == null) { - mySoftware = new Software(); - } - return mySoftware; - } - - - /** - * Sets the value(s) for software (Software that is covered by this conformance statement) - * - *

- * Definition: - * Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation. - *

- */ - public Conformance setSoftware(Software theValue) { - mySoftware = theValue; - return this; - } - - - /** - * Gets the value(s) for implementation (If this describes a specific instance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program - *

- */ - public Implementation getImplementation() { - if (myImplementation == null) { - myImplementation = new Implementation(); - } - return myImplementation; - } - - - /** - * Gets the value(s) for implementation (If this describes a specific instance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program - *

- */ - public Implementation getImplementationElement() { - if (myImplementation == null) { - myImplementation = new Implementation(); - } - return myImplementation; - } - - - /** - * Sets the value(s) for implementation (If this describes a specific instance) - * - *

- * Definition: - * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program - *

- */ - public Conformance setImplementation(Implementation theValue) { - myImplementation = theValue; - return this; - } - - - /** - * Gets the value(s) for fhirVersion (FHIR Version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the FHIR specification on which this conformance statement is based - *

- */ - public IdDt getFhirVersion() { - if (myFhirVersion == null) { - myFhirVersion = new IdDt(); - } - return myFhirVersion; - } - - - /** - * Gets the value(s) for fhirVersion (FHIR Version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the FHIR specification on which this conformance statement is based - *

- */ - public IdDt getFhirVersionElement() { - if (myFhirVersion == null) { - myFhirVersion = new IdDt(); - } - return myFhirVersion; - } - - - /** - * Sets the value(s) for fhirVersion (FHIR Version) - * - *

- * Definition: - * The version of the FHIR specification on which this conformance statement is based - *

- */ - public Conformance setFhirVersion(IdDt theValue) { - myFhirVersion = theValue; - return this; - } - - /** - * Sets the value for fhirVersion (FHIR Version) - * - *

- * Definition: - * The version of the FHIR specification on which this conformance statement is based - *

- */ - public Conformance setFhirVersion( String theId) { - myFhirVersion = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for acceptUnknown (True if application accepts unknown elements). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag that indicates whether the application accepts unknown elements as part of a resource. - *

- */ - public BooleanDt getAcceptUnknown() { - if (myAcceptUnknown == null) { - myAcceptUnknown = new BooleanDt(); - } - return myAcceptUnknown; - } - - - /** - * Gets the value(s) for acceptUnknown (True if application accepts unknown elements). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag that indicates whether the application accepts unknown elements as part of a resource. - *

- */ - public BooleanDt getAcceptUnknownElement() { - if (myAcceptUnknown == null) { - myAcceptUnknown = new BooleanDt(); - } - return myAcceptUnknown; - } - - - /** - * Sets the value(s) for acceptUnknown (True if application accepts unknown elements) - * - *

- * Definition: - * A flag that indicates whether the application accepts unknown elements as part of a resource. - *

- */ - public Conformance setAcceptUnknown(BooleanDt theValue) { - myAcceptUnknown = theValue; - return this; - } - - /** - * Sets the value for acceptUnknown (True if application accepts unknown elements) - * - *

- * Definition: - * A flag that indicates whether the application accepts unknown elements as part of a resource. - *

- */ - public Conformance setAcceptUnknown( boolean theBoolean) { - myAcceptUnknown = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for format (formats supported (xml | json | mime type)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public java.util.List getFormat() { - if (myFormat == null) { - myFormat = new java.util.ArrayList(); - } - return myFormat; - } - - - /** - * Gets the value(s) for format (formats supported (xml | json | mime type)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public java.util.List getFormatElement() { - if (myFormat == null) { - myFormat = new java.util.ArrayList(); - } - return myFormat; - } - - - /** - * Sets the value(s) for format (formats supported (xml | json | mime type)) - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public Conformance setFormat(java.util.List theValue) { - myFormat = theValue; - return this; - } - - /** - * Adds and returns a new value for format (formats supported (xml | json | mime type)) - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public CodeDt addFormat() { - CodeDt newType = new CodeDt(); - getFormat().add(newType); - return newType; - } - - /** - * Gets the first repetition for format (formats supported (xml | json | mime type)), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- */ - public CodeDt getFormatFirstRep() { - if (getFormat().isEmpty()) { - return addFormat(); - } - return getFormat().get(0); - } - /** - * Adds a new value for format (formats supported (xml | json | mime type)) - * - *

- * Definition: - * A list of the formats supported by this implementation - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Conformance addFormat( String theCode) { - if (myFormat == null) { - myFormat = new java.util.ArrayList(); - } - myFormat.add(new CodeDt(theCode)); - return this; - } - - - /** - * Gets the value(s) for profile (Profiles supported by the system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of recourses, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. - *

- */ - public java.util.List getProfile() { - if (myProfile == null) { - myProfile = new java.util.ArrayList(); - } - return myProfile; - } - - - /** - * Gets the value(s) for profile (Profiles supported by the system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of recourses, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. - *

- */ - public java.util.List getProfileElement() { - if (myProfile == null) { - myProfile = new java.util.ArrayList(); - } - return myProfile; - } - - - /** - * Sets the value(s) for profile (Profiles supported by the system) - * - *

- * Definition: - * A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of recourses, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. - *

- */ - public Conformance setProfile(java.util.List theValue) { - myProfile = theValue; - return this; - } - - /** - * Adds and returns a new value for profile (Profiles supported by the system) - * - *

- * Definition: - * A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of recourses, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. - *

- */ - public ResourceReferenceDt addProfile() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getProfile().add(newType); - return newType; - } - - /** - * Gets the value(s) for rest (If the endpoint is a RESTful one). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public java.util.List getRest() { - if (myRest == null) { - myRest = new java.util.ArrayList(); - } - return myRest; - } - - - /** - * Gets the value(s) for rest (If the endpoint is a RESTful one). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public java.util.List getRestElement() { - if (myRest == null) { - myRest = new java.util.ArrayList(); - } - return myRest; - } - - - /** - * Sets the value(s) for rest (If the endpoint is a RESTful one) - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public Conformance setRest(java.util.List theValue) { - myRest = theValue; - return this; - } - - /** - * Adds and returns a new value for rest (If the endpoint is a RESTful one) - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public Rest addRest() { - Rest newType = new Rest(); - getRest().add(newType); - return newType; - } - - /** - * Gets the first repetition for rest (If the endpoint is a RESTful one), - * creating it if it does not already exist. - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - public Rest getRestFirstRep() { - if (getRest().isEmpty()) { - return addRest(); - } - return getRest().get(0); - } - - /** - * Gets the value(s) for messaging (If messaging is supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public java.util.List getMessaging() { - if (myMessaging == null) { - myMessaging = new java.util.ArrayList(); - } - return myMessaging; - } - - - /** - * Gets the value(s) for messaging (If messaging is supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public java.util.List getMessagingElement() { - if (myMessaging == null) { - myMessaging = new java.util.ArrayList(); - } - return myMessaging; - } - - - /** - * Sets the value(s) for messaging (If messaging is supported) - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public Conformance setMessaging(java.util.List theValue) { - myMessaging = theValue; - return this; - } - - /** - * Adds and returns a new value for messaging (If messaging is supported) - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public Messaging addMessaging() { - Messaging newType = new Messaging(); - getMessaging().add(newType); - return newType; - } - - /** - * Gets the first repetition for messaging (If messaging is supported), - * creating it if it does not already exist. - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - public Messaging getMessagingFirstRep() { - if (getMessaging().isEmpty()) { - return addMessaging(); - } - return getMessaging().get(0); - } - - /** - * Gets the value(s) for document (Document definition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A document definition - *

- */ - public java.util.List getDocument() { - if (myDocument == null) { - myDocument = new java.util.ArrayList(); - } - return myDocument; - } - - - /** - * Gets the value(s) for document (Document definition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A document definition - *

- */ - public java.util.List getDocumentElement() { - if (myDocument == null) { - myDocument = new java.util.ArrayList(); - } - return myDocument; - } - - - /** - * Sets the value(s) for document (Document definition) - * - *

- * Definition: - * A document definition - *

- */ - public Conformance setDocument(java.util.List theValue) { - myDocument = theValue; - return this; - } - - /** - * Adds and returns a new value for document (Document definition) - * - *

- * Definition: - * A document definition - *

- */ - public Document addDocument() { - Document newType = new Document(); - getDocument().add(newType); - return newType; - } - - /** - * Gets the first repetition for document (Document definition), - * creating it if it does not already exist. - * - *

- * Definition: - * A document definition - *

- */ - public Document getDocumentFirstRep() { - if (getDocument().isEmpty()) { - return addDocument(); - } - return getDocument().get(0); - } - - /** - * Block class for child element: Conformance.software (Software that is covered by this conformance statement) - * - *

- * Definition: - * Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation. - *

- */ - @Block() - public static class Software - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="A name the software is known by", - formalDefinition="Name software is known by" - ) - private StringDt myName; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Version covered by this statement", - formalDefinition="The version identifier for the software covered by this statement" - ) - private StringDt myVersion; - - @Child(name="releaseDate", type=DateTimeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Date this version released", - formalDefinition="Date this version of the software released" - ) - private DateTimeDt myReleaseDate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myVersion, myReleaseDate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myVersion, myReleaseDate); - } - - /** - * Gets the value(s) for name (A name the software is known by). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name software is known by - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (A name the software is known by). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name software is known by - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (A name the software is known by) - * - *

- * Definition: - * Name software is known by - *

- */ - public Software setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (A name the software is known by) - * - *

- * Definition: - * Name software is known by - *

- */ - public Software setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (Version covered by this statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version identifier for the software covered by this statement - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Version covered by this statement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version identifier for the software covered by this statement - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Version covered by this statement) - * - *

- * Definition: - * The version identifier for the software covered by this statement - *

- */ - public Software setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Version covered by this statement) - * - *

- * Definition: - * The version identifier for the software covered by this statement - *

- */ - public Software setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for releaseDate (Date this version released). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date this version of the software released - *

- */ - public DateTimeDt getReleaseDate() { - if (myReleaseDate == null) { - myReleaseDate = new DateTimeDt(); - } - return myReleaseDate; - } - - - /** - * Gets the value(s) for releaseDate (Date this version released). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date this version of the software released - *

- */ - public DateTimeDt getReleaseDateElement() { - if (myReleaseDate == null) { - myReleaseDate = new DateTimeDt(); - } - return myReleaseDate; - } - - - /** - * Sets the value(s) for releaseDate (Date this version released) - * - *

- * Definition: - * Date this version of the software released - *

- */ - public Software setReleaseDate(DateTimeDt theValue) { - myReleaseDate = theValue; - return this; - } - - /** - * Sets the value for releaseDate (Date this version released) - * - *

- * Definition: - * Date this version of the software released - *

- */ - public Software setReleaseDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myReleaseDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for releaseDate (Date this version released) - * - *

- * Definition: - * Date this version of the software released - *

- */ - public Software setReleaseDateWithSecondsPrecision( Date theDate) { - myReleaseDate = new DateTimeDt(theDate); - return this; - } - - - - } - - - /** - * Block class for child element: Conformance.implementation (If this describes a specific instance) - * - *

- * Definition: - * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program - *

- */ - @Block() - public static class Implementation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="description", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Describes this specific instance", - formalDefinition="Information about the specific installation that this conformance statement relates to" - ) - private StringDt myDescription; - - @Child(name="url", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Base URL for the installation", - formalDefinition="A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces." - ) - private UriDt myUrl; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDescription, myUrl); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDescription, myUrl); - } - - /** - * Gets the value(s) for description (Describes this specific instance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the specific installation that this conformance statement relates to - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Describes this specific instance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the specific installation that this conformance statement relates to - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Describes this specific instance) - * - *

- * Definition: - * Information about the specific installation that this conformance statement relates to - *

- */ - public Implementation setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Describes this specific instance) - * - *

- * Definition: - * Information about the specific installation that this conformance statement relates to - *

- */ - public Implementation setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for url (Base URL for the installation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. - *

- */ - public UriDt getUrl() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (Base URL for the installation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Sets the value(s) for url (Base URL for the installation) - * - *

- * Definition: - * A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. - *

- */ - public Implementation setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - /** - * Sets the value for url (Base URL for the installation) - * - *

- * Definition: - * A base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces. - *

- */ - public Implementation setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - - } - - - /** - * Block class for child element: Conformance.rest (If the endpoint is a RESTful one) - * - *

- * Definition: - * A definition of the restful capabilities of the solution, if any - *

- */ - @Block() - public static class Rest - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="mode", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="client | server", - formalDefinition="Identifies whether this portion of the statement is describing ability to initiate or receive restful operations" - ) - private BoundCodeDt myMode; - - @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="General description of implementation", - formalDefinition="Information about the system's restful capabilities that apply across all applications, such as security" - ) - private StringDt myDocumentation; - - @Child(name="security", order=2, min=0, max=1) - @Description( - shortDefinition="Information about security of implementation", - formalDefinition="Information about security of implementation" - ) - private RestSecurity mySecurity; - - @Child(name="resource", order=3, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Resource served on the REST interface", - formalDefinition="A specification of the restful capabilities of the solution for a specific resource type" - ) - private java.util.List myResource; - - @Child(name="operation", order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="What operations are supported?", - formalDefinition="A specification of restful operations supported by the system" - ) - private java.util.List myOperation; - - @Child(name="query", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Definition of a named query", - formalDefinition="Definition of a named query and its parameters and their meaning" - ) - private java.util.List myQuery; - - @Child(name="documentMailbox", type=UriDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="How documents are accepted in /Mailbox", - formalDefinition="A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose" - ) - private java.util.List myDocumentMailbox; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myDocumentation, mySecurity, myResource, myOperation, myQuery, myDocumentMailbox); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myDocumentation, mySecurity, myResource, myOperation, myQuery, myDocumentMailbox); - } - - /** - * Gets the value(s) for mode (client | server). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations - *

- */ - public BoundCodeDt getMode() { - if (myMode == null) { - myMode = new BoundCodeDt(RestfulConformanceModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (client | server). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations - *

- */ - public BoundCodeDt getModeElement() { - if (myMode == null) { - myMode = new BoundCodeDt(RestfulConformanceModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Sets the value(s) for mode (client | server) - * - *

- * Definition: - * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations - *

- */ - public Rest setMode(BoundCodeDt theValue) { - myMode = theValue; - return this; - } - - /** - * Sets the value(s) for mode (client | server) - * - *

- * Definition: - * Identifies whether this portion of the statement is describing ability to initiate or receive restful operations - *

- */ - public Rest setMode(RestfulConformanceModeEnum theValue) { - getMode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (General description of implementation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the system's restful capabilities that apply across all applications, such as security - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (General description of implementation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the system's restful capabilities that apply across all applications, such as security - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (General description of implementation) - * - *

- * Definition: - * Information about the system's restful capabilities that apply across all applications, such as security - *

- */ - public Rest setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (General description of implementation) - * - *

- * Definition: - * Information about the system's restful capabilities that apply across all applications, such as security - *

- */ - public Rest setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for security (Information about security of implementation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about security of implementation - *

- */ - public RestSecurity getSecurity() { - if (mySecurity == null) { - mySecurity = new RestSecurity(); - } - return mySecurity; - } - - - /** - * Gets the value(s) for security (Information about security of implementation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about security of implementation - *

- */ - public RestSecurity getSecurityElement() { - if (mySecurity == null) { - mySecurity = new RestSecurity(); - } - return mySecurity; - } - - - /** - * Sets the value(s) for security (Information about security of implementation) - * - *

- * Definition: - * Information about security of implementation - *

- */ - public Rest setSecurity(RestSecurity theValue) { - mySecurity = theValue; - return this; - } - - - /** - * Gets the value(s) for resource (Resource served on the REST interface). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public java.util.List getResource() { - if (myResource == null) { - myResource = new java.util.ArrayList(); - } - return myResource; - } - - - /** - * Gets the value(s) for resource (Resource served on the REST interface). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public java.util.List getResourceElement() { - if (myResource == null) { - myResource = new java.util.ArrayList(); - } - return myResource; - } - - - /** - * Sets the value(s) for resource (Resource served on the REST interface) - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public Rest setResource(java.util.List theValue) { - myResource = theValue; - return this; - } - - /** - * Adds and returns a new value for resource (Resource served on the REST interface) - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public RestResource addResource() { - RestResource newType = new RestResource(); - getResource().add(newType); - return newType; - } - - /** - * Gets the first repetition for resource (Resource served on the REST interface), - * creating it if it does not already exist. - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - public RestResource getResourceFirstRep() { - if (getResource().isEmpty()) { - return addResource(); - } - return getResource().get(0); - } - - /** - * Gets the value(s) for operation (What operations are supported?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public java.util.List getOperation() { - if (myOperation == null) { - myOperation = new java.util.ArrayList(); - } - return myOperation; - } - - - /** - * Gets the value(s) for operation (What operations are supported?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public java.util.List getOperationElement() { - if (myOperation == null) { - myOperation = new java.util.ArrayList(); - } - return myOperation; - } - - - /** - * Sets the value(s) for operation (What operations are supported?) - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public Rest setOperation(java.util.List theValue) { - myOperation = theValue; - return this; - } - - /** - * Adds and returns a new value for operation (What operations are supported?) - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public RestOperation addOperation() { - RestOperation newType = new RestOperation(); - getOperation().add(newType); - return newType; - } - - /** - * Gets the first repetition for operation (What operations are supported?), - * creating it if it does not already exist. - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - public RestOperation getOperationFirstRep() { - if (getOperation().isEmpty()) { - return addOperation(); - } - return getOperation().get(0); - } - - /** - * Gets the value(s) for query (Definition of a named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public java.util.List getQuery() { - if (myQuery == null) { - myQuery = new java.util.ArrayList(); - } - return myQuery; - } - - - /** - * Gets the value(s) for query (Definition of a named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public java.util.List getQueryElement() { - if (myQuery == null) { - myQuery = new java.util.ArrayList(); - } - return myQuery; - } - - - /** - * Sets the value(s) for query (Definition of a named query) - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public Rest setQuery(java.util.List theValue) { - myQuery = theValue; - return this; - } - - /** - * Adds and returns a new value for query (Definition of a named query) - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public RestQuery addQuery() { - RestQuery newType = new RestQuery(); - getQuery().add(newType); - return newType; - } - - /** - * Gets the first repetition for query (Definition of a named query), - * creating it if it does not already exist. - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public RestQuery getQueryFirstRep() { - if (getQuery().isEmpty()) { - return addQuery(); - } - return getQuery().get(0); - } - - /** - * Gets the value(s) for documentMailbox (How documents are accepted in /Mailbox). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public java.util.List getDocumentMailbox() { - if (myDocumentMailbox == null) { - myDocumentMailbox = new java.util.ArrayList(); - } - return myDocumentMailbox; - } - - - /** - * Gets the value(s) for documentMailbox (How documents are accepted in /Mailbox). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public java.util.List getDocumentMailboxElement() { - if (myDocumentMailbox == null) { - myDocumentMailbox = new java.util.ArrayList(); - } - return myDocumentMailbox; - } - - - /** - * Sets the value(s) for documentMailbox (How documents are accepted in /Mailbox) - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public Rest setDocumentMailbox(java.util.List theValue) { - myDocumentMailbox = theValue; - return this; - } - - /** - * Adds and returns a new value for documentMailbox (How documents are accepted in /Mailbox) - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public UriDt addDocumentMailbox() { - UriDt newType = new UriDt(); - getDocumentMailbox().add(newType); - return newType; - } - - /** - * Gets the first repetition for documentMailbox (How documents are accepted in /Mailbox), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- */ - public UriDt getDocumentMailboxFirstRep() { - if (getDocumentMailbox().isEmpty()) { - return addDocumentMailbox(); - } - return getDocumentMailbox().get(0); - } - /** - * Adds a new value for documentMailbox (How documents are accepted in /Mailbox) - * - *

- * Definition: - * A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Rest addDocumentMailbox( String theUri) { - if (myDocumentMailbox == null) { - myDocumentMailbox = new java.util.ArrayList(); - } - myDocumentMailbox.add(new UriDt(theUri)); - return this; - } - - - - } - - /** - * Block class for child element: Conformance.rest.security (Information about security of implementation) - * - *

- * Definition: - * Information about security of implementation - *

- */ - @Block() - public static class RestSecurity - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="cors", type=BooleanDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Adds CORS Headers (http://enable-cors.org/)", - formalDefinition="Server adds CORS headers when responding to requests - this enables javascript applications to yuse the server" - ) - private BooleanDt myCors; - - @Child(name="service", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="OAuth | OAuth2 | NTLM | Basic | Kerberos", - formalDefinition="Types of security services are supported/required by the system" - ) - private java.util.List> myService; - - @Child(name="description", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="General description of how security works", - formalDefinition="General description of how security works" - ) - private StringDt myDescription; - - @Child(name="certificate", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Certificates associated with security profiles", - formalDefinition="Certificates associated with security profiles" - ) - private java.util.List myCertificate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCors, myService, myDescription, myCertificate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCors, myService, myDescription, myCertificate); - } - - /** - * Gets the value(s) for cors (Adds CORS Headers (http://enable-cors.org/)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Server adds CORS headers when responding to requests - this enables javascript applications to yuse the server - *

- */ - public BooleanDt getCors() { - if (myCors == null) { - myCors = new BooleanDt(); - } - return myCors; - } - - - /** - * Gets the value(s) for cors (Adds CORS Headers (http://enable-cors.org/)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Server adds CORS headers when responding to requests - this enables javascript applications to yuse the server - *

- */ - public BooleanDt getCorsElement() { - if (myCors == null) { - myCors = new BooleanDt(); - } - return myCors; - } - - - /** - * Sets the value(s) for cors (Adds CORS Headers (http://enable-cors.org/)) - * - *

- * Definition: - * Server adds CORS headers when responding to requests - this enables javascript applications to yuse the server - *

- */ - public RestSecurity setCors(BooleanDt theValue) { - myCors = theValue; - return this; - } - - /** - * Sets the value for cors (Adds CORS Headers (http://enable-cors.org/)) - * - *

- * Definition: - * Server adds CORS headers when responding to requests - this enables javascript applications to yuse the server - *

- */ - public RestSecurity setCors( boolean theBoolean) { - myCors = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for service (OAuth | OAuth2 | NTLM | Basic | Kerberos). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public java.util.List> getService() { - if (myService == null) { - myService = new java.util.ArrayList>(); - } - return myService; - } - - - /** - * Gets the value(s) for service (OAuth | OAuth2 | NTLM | Basic | Kerberos). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public java.util.List> getServiceElement() { - if (myService == null) { - myService = new java.util.ArrayList>(); - } - return myService; - } - - - /** - * Sets the value(s) for service (OAuth | OAuth2 | NTLM | Basic | Kerberos) - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public RestSecurity setService(java.util.List> theValue) { - myService = theValue; - return this; - } - - /** - * Add a value for service (OAuth | OAuth2 | NTLM | Basic | Kerberos) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addService()} method. - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public BoundCodeableConceptDt addService(RestfulSecurityServiceEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(RestfulSecurityServiceEnum.VALUESET_BINDER, theValue); - getService().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for service (OAuth | OAuth2 | NTLM | Basic | Kerberos), - * creating it if it does not already exist. - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public BoundCodeableConceptDt getServiceFirstRep() { - if (getService().size() == 0) { - addService(); - } - return getService().get(0); - } - - /** - * Add a value for service (OAuth | OAuth2 | NTLM | Basic | Kerberos) - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public BoundCodeableConceptDt addService() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(RestfulSecurityServiceEnum.VALUESET_BINDER); - getService().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for service (OAuth | OAuth2 | NTLM | Basic | Kerberos) - * - *

- * Definition: - * Types of security services are supported/required by the system - *

- */ - public RestSecurity setService(RestfulSecurityServiceEnum theValue) { - getService().clear(); - addService(theValue); - return this; - } - - - /** - * Gets the value(s) for description (General description of how security works). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * General description of how security works - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (General description of how security works). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * General description of how security works - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (General description of how security works) - * - *

- * Definition: - * General description of how security works - *

- */ - public RestSecurity setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (General description of how security works) - * - *

- * Definition: - * General description of how security works - *

- */ - public RestSecurity setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for certificate (Certificates associated with security profiles). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public java.util.List getCertificate() { - if (myCertificate == null) { - myCertificate = new java.util.ArrayList(); - } - return myCertificate; - } - - - /** - * Gets the value(s) for certificate (Certificates associated with security profiles). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public java.util.List getCertificateElement() { - if (myCertificate == null) { - myCertificate = new java.util.ArrayList(); - } - return myCertificate; - } - - - /** - * Sets the value(s) for certificate (Certificates associated with security profiles) - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public RestSecurity setCertificate(java.util.List theValue) { - myCertificate = theValue; - return this; - } - - /** - * Adds and returns a new value for certificate (Certificates associated with security profiles) - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public RestSecurityCertificate addCertificate() { - RestSecurityCertificate newType = new RestSecurityCertificate(); - getCertificate().add(newType); - return newType; - } - - /** - * Gets the first repetition for certificate (Certificates associated with security profiles), - * creating it if it does not already exist. - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - public RestSecurityCertificate getCertificateFirstRep() { - if (getCertificate().isEmpty()) { - return addCertificate(); - } - return getCertificate().get(0); - } - - - } - - /** - * Block class for child element: Conformance.rest.security.certificate (Certificates associated with security profiles) - * - *

- * Definition: - * Certificates associated with security profiles - *

- */ - @Block() - public static class RestSecurityCertificate - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Mime type for certificate", - formalDefinition="Mime type for certificate" - ) - private CodeDt myType; - - @Child(name="blob", type=Base64BinaryDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Actual certificate", - formalDefinition="Actual certificate" - ) - private Base64BinaryDt myBlob; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myBlob); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myBlob); - } - - /** - * Gets the value(s) for type (Mime type for certificate). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Mime type for certificate - *

- */ - public CodeDt getType() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Mime type for certificate). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Mime type for certificate - *

- */ - public CodeDt getTypeElement() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Mime type for certificate) - * - *

- * Definition: - * Mime type for certificate - *

- */ - public RestSecurityCertificate setType(CodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value for type (Mime type for certificate) - * - *

- * Definition: - * Mime type for certificate - *

- */ - public RestSecurityCertificate setType( String theCode) { - myType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for blob (Actual certificate). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Actual certificate - *

- */ - public Base64BinaryDt getBlob() { - if (myBlob == null) { - myBlob = new Base64BinaryDt(); - } - return myBlob; - } - - - /** - * Gets the value(s) for blob (Actual certificate). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Actual certificate - *

- */ - public Base64BinaryDt getBlobElement() { - if (myBlob == null) { - myBlob = new Base64BinaryDt(); - } - return myBlob; - } - - - /** - * Sets the value(s) for blob (Actual certificate) - * - *

- * Definition: - * Actual certificate - *

- */ - public RestSecurityCertificate setBlob(Base64BinaryDt theValue) { - myBlob = theValue; - return this; - } - - /** - * Sets the value for blob (Actual certificate) - * - *

- * Definition: - * Actual certificate - *

- */ - public RestSecurityCertificate setBlob( byte[] theBytes) { - myBlob = new Base64BinaryDt(theBytes); - return this; - } - - - - } - - - - /** - * Block class for child element: Conformance.rest.resource (Resource served on the REST interface) - * - *

- * Definition: - * A specification of the restful capabilities of the solution for a specific resource type - *

- */ - @Block() - public static class RestResource - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="A resource type that is supported", - formalDefinition="A type of resource exposed via the restful interface" - ) - private BoundCodeDt myType; - - @Child(name="profile", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Profile.class }) - @Description( - shortDefinition="What structural features are supported", - formalDefinition="A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations" - ) - private ResourceReferenceDt myProfile; - - @Child(name="operation", order=2, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="What operations are supported?", - formalDefinition="Identifies a restful operation supported by the solution" - ) - private java.util.List myOperation; - - @Child(name="readHistory", type=BooleanDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Whether vRead can return past versions", - formalDefinition="A flag for whether the server is able to return past versions as part of the vRead operation" - ) - private BooleanDt myReadHistory; - - @Child(name="updateCreate", type=BooleanDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="If allows/uses update to a new location", - formalDefinition="A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server" - ) - private BooleanDt myUpdateCreate; - - @Child(name="searchInclude", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="_include values supported by the server", - formalDefinition="A list of _include values supported by the server" - ) - private java.util.List mySearchInclude; - - @Child(name="searchParam", order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Additional search params defined", - formalDefinition="Additional search parameters for implementations to support and/or make use of" - ) - private java.util.List mySearchParam; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myProfile, myOperation, myReadHistory, myUpdateCreate, mySearchInclude, mySearchParam); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myProfile, myOperation, myReadHistory, myUpdateCreate, mySearchInclude, mySearchParam); - } - - /** - * Gets the value(s) for type (A resource type that is supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A type of resource exposed via the restful interface - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (A resource type that is supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A type of resource exposed via the restful interface - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (A resource type that is supported) - * - *

- * Definition: - * A type of resource exposed via the restful interface - *

- */ - public RestResource setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (A resource type that is supported) - * - *

- * Definition: - * A type of resource exposed via the restful interface - *

- */ - public RestResource setType(ResourceTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for profile (What structural features are supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations - *

- */ - public ResourceReferenceDt getProfile() { - if (myProfile == null) { - myProfile = new ResourceReferenceDt(); - } - return myProfile; - } - - - /** - * Gets the value(s) for profile (What structural features are supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations - *

- */ - public ResourceReferenceDt getProfileElement() { - if (myProfile == null) { - myProfile = new ResourceReferenceDt(); - } - return myProfile; - } - - - /** - * Sets the value(s) for profile (What structural features are supported) - * - *

- * Definition: - * A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations - *

- */ - public RestResource setProfile(ResourceReferenceDt theValue) { - myProfile = theValue; - return this; - } - - - /** - * Gets the value(s) for operation (What operations are supported?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public java.util.List getOperation() { - if (myOperation == null) { - myOperation = new java.util.ArrayList(); - } - return myOperation; - } - - - /** - * Gets the value(s) for operation (What operations are supported?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public java.util.List getOperationElement() { - if (myOperation == null) { - myOperation = new java.util.ArrayList(); - } - return myOperation; - } - - - /** - * Sets the value(s) for operation (What operations are supported?) - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public RestResource setOperation(java.util.List theValue) { - myOperation = theValue; - return this; - } - - /** - * Adds and returns a new value for operation (What operations are supported?) - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public RestResourceOperation addOperation() { - RestResourceOperation newType = new RestResourceOperation(); - getOperation().add(newType); - return newType; - } - - /** - * Gets the first repetition for operation (What operations are supported?), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - public RestResourceOperation getOperationFirstRep() { - if (getOperation().isEmpty()) { - return addOperation(); - } - return getOperation().get(0); - } - - /** - * Gets the value(s) for readHistory (Whether vRead can return past versions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag for whether the server is able to return past versions as part of the vRead operation - *

- */ - public BooleanDt getReadHistory() { - if (myReadHistory == null) { - myReadHistory = new BooleanDt(); - } - return myReadHistory; - } - - - /** - * Gets the value(s) for readHistory (Whether vRead can return past versions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag for whether the server is able to return past versions as part of the vRead operation - *

- */ - public BooleanDt getReadHistoryElement() { - if (myReadHistory == null) { - myReadHistory = new BooleanDt(); - } - return myReadHistory; - } - - - /** - * Sets the value(s) for readHistory (Whether vRead can return past versions) - * - *

- * Definition: - * A flag for whether the server is able to return past versions as part of the vRead operation - *

- */ - public RestResource setReadHistory(BooleanDt theValue) { - myReadHistory = theValue; - return this; - } - - /** - * Sets the value for readHistory (Whether vRead can return past versions) - * - *

- * Definition: - * A flag for whether the server is able to return past versions as part of the vRead operation - *

- */ - public RestResource setReadHistory( boolean theBoolean) { - myReadHistory = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for updateCreate (If allows/uses update to a new location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server - *

- */ - public BooleanDt getUpdateCreate() { - if (myUpdateCreate == null) { - myUpdateCreate = new BooleanDt(); - } - return myUpdateCreate; - } - - - /** - * Gets the value(s) for updateCreate (If allows/uses update to a new location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server - *

- */ - public BooleanDt getUpdateCreateElement() { - if (myUpdateCreate == null) { - myUpdateCreate = new BooleanDt(); - } - return myUpdateCreate; - } - - - /** - * Sets the value(s) for updateCreate (If allows/uses update to a new location) - * - *

- * Definition: - * A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server - *

- */ - public RestResource setUpdateCreate(BooleanDt theValue) { - myUpdateCreate = theValue; - return this; - } - - /** - * Sets the value for updateCreate (If allows/uses update to a new location) - * - *

- * Definition: - * A flag to indicate that the server allows the client to create new identities on the server. If the update operation is used (client) or allowed (server) to a new location where a resource doesn't already exist. This means that the server allows the client to create new identities on the server - *

- */ - public RestResource setUpdateCreate( boolean theBoolean) { - myUpdateCreate = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for searchInclude (_include values supported by the server). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public java.util.List getSearchInclude() { - if (mySearchInclude == null) { - mySearchInclude = new java.util.ArrayList(); - } - return mySearchInclude; - } - - - /** - * Gets the value(s) for searchInclude (_include values supported by the server). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public java.util.List getSearchIncludeElement() { - if (mySearchInclude == null) { - mySearchInclude = new java.util.ArrayList(); - } - return mySearchInclude; - } - - - /** - * Sets the value(s) for searchInclude (_include values supported by the server) - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public RestResource setSearchInclude(java.util.List theValue) { - mySearchInclude = theValue; - return this; - } - - /** - * Adds and returns a new value for searchInclude (_include values supported by the server) - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public StringDt addSearchInclude() { - StringDt newType = new StringDt(); - getSearchInclude().add(newType); - return newType; - } - - /** - * Gets the first repetition for searchInclude (_include values supported by the server), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of _include values supported by the server - *

- */ - public StringDt getSearchIncludeFirstRep() { - if (getSearchInclude().isEmpty()) { - return addSearchInclude(); - } - return getSearchInclude().get(0); - } - /** - * Adds a new value for searchInclude (_include values supported by the server) - * - *

- * Definition: - * A list of _include values supported by the server - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public RestResource addSearchInclude( String theString) { - if (mySearchInclude == null) { - mySearchInclude = new java.util.ArrayList(); - } - mySearchInclude.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for searchParam (Additional search params defined). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public java.util.List getSearchParam() { - if (mySearchParam == null) { - mySearchParam = new java.util.ArrayList(); - } - return mySearchParam; - } - - - /** - * Gets the value(s) for searchParam (Additional search params defined). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public java.util.List getSearchParamElement() { - if (mySearchParam == null) { - mySearchParam = new java.util.ArrayList(); - } - return mySearchParam; - } - - - /** - * Sets the value(s) for searchParam (Additional search params defined) - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public RestResource setSearchParam(java.util.List theValue) { - mySearchParam = theValue; - return this; - } - - /** - * Adds and returns a new value for searchParam (Additional search params defined) - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public RestResourceSearchParam addSearchParam() { - RestResourceSearchParam newType = new RestResourceSearchParam(); - getSearchParam().add(newType); - return newType; - } - - /** - * Gets the first repetition for searchParam (Additional search params defined), - * creating it if it does not already exist. - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public RestResourceSearchParam getSearchParamFirstRep() { - if (getSearchParam().isEmpty()) { - return addSearchParam(); - } - return getSearchParam().get(0); - } - - - } - - /** - * Block class for child element: Conformance.rest.resource.operation (What operations are supported?) - * - *

- * Definition: - * Identifies a restful operation supported by the solution - *

- */ - @Block() - public static class RestResourceOperation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="read | vread | update | delete | history-instance | validate | history-type | create | search-type", - formalDefinition="Coded identifier of the operation, supported by the system resource" - ) - private BoundCodeDt myCode; - - @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Anything special about operation behavior", - formalDefinition="Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'" - ) - private StringDt myDocumentation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDocumentation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDocumentation); - } - - /** - * Gets the value(s) for code (read | vread | update | delete | history-instance | validate | history-type | create | search-type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coded identifier of the operation, supported by the system resource - *

- */ - public BoundCodeDt getCode() { - if (myCode == null) { - myCode = new BoundCodeDt(RestfulOperationTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (read | vread | update | delete | history-instance | validate | history-type | create | search-type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coded identifier of the operation, supported by the system resource - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(RestfulOperationTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Sets the value(s) for code (read | vread | update | delete | history-instance | validate | history-type | create | search-type) - * - *

- * Definition: - * Coded identifier of the operation, supported by the system resource - *

- */ - public RestResourceOperation setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value(s) for code (read | vread | update | delete | history-instance | validate | history-type | create | search-type) - * - *

- * Definition: - * Coded identifier of the operation, supported by the system resource - *

- */ - public RestResourceOperation setCode(RestfulOperationTypeEnum theValue) { - getCode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (Anything special about operation behavior). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Anything special about operation behavior). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Anything special about operation behavior) - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' - *

- */ - public RestResourceOperation setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Anything special about operation behavior) - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only' - *

- */ - public RestResourceOperation setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Conformance.rest.resource.searchParam (Additional search params defined) - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - @Block() - public static class RestResourceSearchParam - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Name of search parameter", - formalDefinition="The name of the search parameter used in the interface" - ) - private StringDt myName; - - @Child(name="definition", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Source of definition for parameter", - formalDefinition="A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter" - ) - private UriDt myDefinition; - - @Child(name="type", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="number | date | string | token | reference | composite | quantity", - formalDefinition="The type of value a search parameter refers to, and how the content is interpreted" - ) - private BoundCodeDt myType; - - @Child(name="documentation", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Server-specific usage", - formalDefinition="This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms." - ) - private StringDt myDocumentation; - - @Child(name="target", type=CodeDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Types of resource (if a resource reference)", - formalDefinition="Types of resource (if a resource is referenced)" - ) - private java.util.List> myTarget; - - @Child(name="chain", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Chained names supported", - formalDefinition="" - ) - private java.util.List myChain; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDefinition, myType, myDocumentation, myTarget, myChain); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myDefinition, myType, myDocumentation, myTarget, myChain); - } - - /** - * Gets the value(s) for name (Name of search parameter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the search parameter used in the interface - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name of search parameter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the search parameter used in the interface - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name of search parameter) - * - *

- * Definition: - * The name of the search parameter used in the interface - *

- */ - public RestResourceSearchParam setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name of search parameter) - * - *

- * Definition: - * The name of the search parameter used in the interface - *

- */ - public RestResourceSearchParam setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for definition (Source of definition for parameter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter - *

- */ - public UriDt getDefinition() { - if (myDefinition == null) { - myDefinition = new UriDt(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (Source of definition for parameter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter - *

- */ - public UriDt getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new UriDt(); - } - return myDefinition; - } - - - /** - * Sets the value(s) for definition (Source of definition for parameter) - * - *

- * Definition: - * A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter - *

- */ - public RestResourceSearchParam setDefinition(UriDt theValue) { - myDefinition = theValue; - return this; - } - - /** - * Sets the value for definition (Source of definition for parameter) - * - *

- * Definition: - * A formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter - *

- */ - public RestResourceSearchParam setDefinition( String theUri) { - myDefinition = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for type (number | date | string | token | reference | composite | quantity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(SearchParamTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (number | date | string | token | reference | composite | quantity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(SearchParamTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (number | date | string | token | reference | composite | quantity) - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public RestResourceSearchParam setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (number | date | string | token | reference | composite | quantity) - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public RestResourceSearchParam setType(SearchParamTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (Server-specific usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Server-specific usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Server-specific usage) - * - *

- * Definition: - * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. - *

- */ - public RestResourceSearchParam setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Server-specific usage) - * - *

- * Definition: - * This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms. - *

- */ - public RestResourceSearchParam setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for target (Types of resource (if a resource reference)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public java.util.List> getTarget() { - if (myTarget == null) { - myTarget = new java.util.ArrayList>(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Types of resource (if a resource reference)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public java.util.List> getTargetElement() { - if (myTarget == null) { - myTarget = new java.util.ArrayList>(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Types of resource (if a resource reference)) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public RestResourceSearchParam setTarget(java.util.List> theValue) { - myTarget = theValue; - return this; - } - - /** - * Add a value for target (Types of resource (if a resource reference)) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addTarget()} method. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt addTarget(ResourceTypeEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER, theValue); - getTarget().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for target (Types of resource (if a resource reference)), - * creating it if it does not already exist. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt getTargetFirstRep() { - if (getTarget().size() == 0) { - addTarget(); - } - return getTarget().get(0); - } - - /** - * Add a value for target (Types of resource (if a resource reference)) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt addTarget() { - BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - getTarget().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for target (Types of resource (if a resource reference)) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public RestResourceSearchParam setTarget(ResourceTypeEnum theValue) { - getTarget().clear(); - addTarget(theValue); - return this; - } - - - /** - * Gets the value(s) for chain (Chained names supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getChain() { - if (myChain == null) { - myChain = new java.util.ArrayList(); - } - return myChain; - } - - - /** - * Gets the value(s) for chain (Chained names supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getChainElement() { - if (myChain == null) { - myChain = new java.util.ArrayList(); - } - return myChain; - } - - - /** - * Sets the value(s) for chain (Chained names supported) - * - *

- * Definition: - * - *

- */ - public RestResourceSearchParam setChain(java.util.List theValue) { - myChain = theValue; - return this; - } - - /** - * Adds and returns a new value for chain (Chained names supported) - * - *

- * Definition: - * - *

- */ - public StringDt addChain() { - StringDt newType = new StringDt(); - getChain().add(newType); - return newType; - } - - /** - * Gets the first repetition for chain (Chained names supported), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public StringDt getChainFirstRep() { - if (getChain().isEmpty()) { - return addChain(); - } - return getChain().get(0); - } - /** - * Adds a new value for chain (Chained names supported) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public RestResourceSearchParam addChain( String theString) { - if (myChain == null) { - myChain = new java.util.ArrayList(); - } - myChain.add(new StringDt(theString)); - return this; - } - - - - } - - - - /** - * Block class for child element: Conformance.rest.operation (What operations are supported?) - * - *

- * Definition: - * A specification of restful operations supported by the system - *

- */ - @Block() - public static class RestOperation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="transaction | search-system | history-system", - formalDefinition="A coded identifier of the operation, supported by the system" - ) - private BoundCodeDt myCode; - - @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Anything special about operation behavior", - formalDefinition="Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented" - ) - private StringDt myDocumentation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDocumentation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDocumentation); - } - - /** - * Gets the value(s) for code (transaction | search-system | history-system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded identifier of the operation, supported by the system - *

- */ - public BoundCodeDt getCode() { - if (myCode == null) { - myCode = new BoundCodeDt(RestfulOperationSystemEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (transaction | search-system | history-system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded identifier of the operation, supported by the system - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(RestfulOperationSystemEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Sets the value(s) for code (transaction | search-system | history-system) - * - *

- * Definition: - * A coded identifier of the operation, supported by the system - *

- */ - public RestOperation setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value(s) for code (transaction | search-system | history-system) - * - *

- * Definition: - * A coded identifier of the operation, supported by the system - *

- */ - public RestOperation setCode(RestfulOperationSystemEnum theValue) { - getCode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (Anything special about operation behavior). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Anything special about operation behavior). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Anything special about operation behavior) - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented - *

- */ - public RestOperation setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Anything special about operation behavior) - * - *

- * Definition: - * Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented - *

- */ - public RestOperation setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Conformance.rest.query (Definition of a named query) - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - @Block() - public static class RestQuery - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Special named queries (_query=)", - formalDefinition="The name of a query, which is used in the _query parameter when the query is called" - ) - private StringDt myName; - - @Child(name="definition", type=UriDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Where query is defined", - formalDefinition="Identifies the custom query, defined either in FHIR core or another profile" - ) - private UriDt myDefinition; - - @Child(name="documentation", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Additional usage guidance", - formalDefinition="Additional information about how the query functions in this particular implementation" - ) - private StringDt myDocumentation; - - @Child(name="parameter", type=RestResourceSearchParam.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Parameter for the named query", - formalDefinition="Identifies which of the parameters for the named query are supported" - ) - private java.util.List myParameter; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDefinition, myDocumentation, myParameter); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myDefinition, myDocumentation, myParameter); - } - - /** - * Gets the value(s) for name (Special named queries (_query=)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of a query, which is used in the _query parameter when the query is called - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Special named queries (_query=)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of a query, which is used in the _query parameter when the query is called - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Special named queries (_query=)) - * - *

- * Definition: - * The name of a query, which is used in the _query parameter when the query is called - *

- */ - public RestQuery setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Special named queries (_query=)) - * - *

- * Definition: - * The name of a query, which is used in the _query parameter when the query is called - *

- */ - public RestQuery setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for definition (Where query is defined). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the custom query, defined either in FHIR core or another profile - *

- */ - public UriDt getDefinition() { - if (myDefinition == null) { - myDefinition = new UriDt(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (Where query is defined). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the custom query, defined either in FHIR core or another profile - *

- */ - public UriDt getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new UriDt(); - } - return myDefinition; - } - - - /** - * Sets the value(s) for definition (Where query is defined) - * - *

- * Definition: - * Identifies the custom query, defined either in FHIR core or another profile - *

- */ - public RestQuery setDefinition(UriDt theValue) { - myDefinition = theValue; - return this; - } - - /** - * Sets the value for definition (Where query is defined) - * - *

- * Definition: - * Identifies the custom query, defined either in FHIR core or another profile - *

- */ - public RestQuery setDefinition( String theUri) { - myDefinition = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for documentation (Additional usage guidance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional information about how the query functions in this particular implementation - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Additional usage guidance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional information about how the query functions in this particular implementation - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Additional usage guidance) - * - *

- * Definition: - * Additional information about how the query functions in this particular implementation - *

- */ - public RestQuery setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Additional usage guidance) - * - *

- * Definition: - * Additional information about how the query functions in this particular implementation - *

- */ - public RestQuery setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for parameter (Parameter for the named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies which of the parameters for the named query are supported - *

- */ - public java.util.List getParameter() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Gets the value(s) for parameter (Parameter for the named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies which of the parameters for the named query are supported - *

- */ - public java.util.List getParameterElement() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Sets the value(s) for parameter (Parameter for the named query) - * - *

- * Definition: - * Identifies which of the parameters for the named query are supported - *

- */ - public RestQuery setParameter(java.util.List theValue) { - myParameter = theValue; - return this; - } - - /** - * Adds and returns a new value for parameter (Parameter for the named query) - * - *

- * Definition: - * Identifies which of the parameters for the named query are supported - *

- */ - public RestResourceSearchParam addParameter() { - RestResourceSearchParam newType = new RestResourceSearchParam(); - getParameter().add(newType); - return newType; - } - - /** - * Gets the first repetition for parameter (Parameter for the named query), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies which of the parameters for the named query are supported - *

- */ - public RestResourceSearchParam getParameterFirstRep() { - if (getParameter().isEmpty()) { - return addParameter(); - } - return getParameter().get(0); - } - - - } - - - - /** - * Block class for child element: Conformance.messaging (If messaging is supported) - * - *

- * Definition: - * A description of the messaging capabilities of the solution - *

- */ - @Block() - public static class Messaging - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="endpoint", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Actual endpoint being described", - formalDefinition="An address to which messages and/or replies are to be sent." - ) - private UriDt myEndpoint; - - @Child(name="reliableCache", type=IntegerDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Reliable Message Cache Length", - formalDefinition="Length if the receiver's reliable messaging cache (if a receiver) or how long the cache length on the receiver should be (if a sender)" - ) - private IntegerDt myReliableCache; - - @Child(name="documentation", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Messaging interface behavior details", - formalDefinition="Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner." - ) - private StringDt myDocumentation; - - @Child(name="event", order=3, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Declare support for this event", - formalDefinition="A description of the solution's support for an event at this end point." - ) - private java.util.List myEvent; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEndpoint, myReliableCache, myDocumentation, myEvent); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEndpoint, myReliableCache, myDocumentation, myEvent); - } - - /** - * Gets the value(s) for endpoint (Actual endpoint being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An address to which messages and/or replies are to be sent. - *

- */ - public UriDt getEndpoint() { - if (myEndpoint == null) { - myEndpoint = new UriDt(); - } - return myEndpoint; - } - - - /** - * Gets the value(s) for endpoint (Actual endpoint being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An address to which messages and/or replies are to be sent. - *

- */ - public UriDt getEndpointElement() { - if (myEndpoint == null) { - myEndpoint = new UriDt(); - } - return myEndpoint; - } - - - /** - * Sets the value(s) for endpoint (Actual endpoint being described) - * - *

- * Definition: - * An address to which messages and/or replies are to be sent. - *

- */ - public Messaging setEndpoint(UriDt theValue) { - myEndpoint = theValue; - return this; - } - - /** - * Sets the value for endpoint (Actual endpoint being described) - * - *

- * Definition: - * An address to which messages and/or replies are to be sent. - *

- */ - public Messaging setEndpoint( String theUri) { - myEndpoint = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for reliableCache (Reliable Message Cache Length). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Length if the receiver's reliable messaging cache (if a receiver) or how long the cache length on the receiver should be (if a sender) - *

- */ - public IntegerDt getReliableCache() { - if (myReliableCache == null) { - myReliableCache = new IntegerDt(); - } - return myReliableCache; - } - - - /** - * Gets the value(s) for reliableCache (Reliable Message Cache Length). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Length if the receiver's reliable messaging cache (if a receiver) or how long the cache length on the receiver should be (if a sender) - *

- */ - public IntegerDt getReliableCacheElement() { - if (myReliableCache == null) { - myReliableCache = new IntegerDt(); - } - return myReliableCache; - } - - - /** - * Sets the value(s) for reliableCache (Reliable Message Cache Length) - * - *

- * Definition: - * Length if the receiver's reliable messaging cache (if a receiver) or how long the cache length on the receiver should be (if a sender) - *

- */ - public Messaging setReliableCache(IntegerDt theValue) { - myReliableCache = theValue; - return this; - } - - /** - * Sets the value for reliableCache (Reliable Message Cache Length) - * - *

- * Definition: - * Length if the receiver's reliable messaging cache (if a receiver) or how long the cache length on the receiver should be (if a sender) - *

- */ - public Messaging setReliableCache( int theInteger) { - myReliableCache = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for documentation (Messaging interface behavior details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Messaging interface behavior details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Messaging interface behavior details) - * - *

- * Definition: - * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. - *

- */ - public Messaging setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Messaging interface behavior details) - * - *

- * Definition: - * Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the conformance statement. For example, process for becoming an authorized messaging exchange partner. - *

- */ - public Messaging setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for event (Declare support for this event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public java.util.List getEvent() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Gets the value(s) for event (Declare support for this event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public java.util.List getEventElement() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Sets the value(s) for event (Declare support for this event) - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public Messaging setEvent(java.util.List theValue) { - myEvent = theValue; - return this; - } - - /** - * Adds and returns a new value for event (Declare support for this event) - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public MessagingEvent addEvent() { - MessagingEvent newType = new MessagingEvent(); - getEvent().add(newType); - return newType; - } - - /** - * Gets the first repetition for event (Declare support for this event), - * creating it if it does not already exist. - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - public MessagingEvent getEventFirstRep() { - if (getEvent().isEmpty()) { - return addEvent(); - } - return getEvent().get(0); - } - - - } - - /** - * Block class for child element: Conformance.messaging.event (Declare support for this event) - * - *

- * Definition: - * A description of the solution's support for an event at this end point. - *

- */ - @Block() - public static class MessagingEvent - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodingDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Event type", - formalDefinition="A coded identifier of a supported messaging event" - ) - private CodingDt myCode; - - @Child(name="category", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Consequence | Currency | Notification", - formalDefinition="The impact of the content of the message" - ) - private BoundCodeDt myCategory; - - @Child(name="mode", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="sender | receiver", - formalDefinition="The mode of this event declaration - whether application is sender or receiver" - ) - private BoundCodeDt myMode; - - @Child(name="protocol", type=CodingDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="http | ftp | mllp +", - formalDefinition="A list of the messaging transport protocol(s) identifiers, supported by this endpoint" - ) - private java.util.List myProtocol; - - @Child(name="focus", type=CodeDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Resource that's focus of message", - formalDefinition="A resource associated with the event. This is the resource that defines the event." - ) - private BoundCodeDt myFocus; - - @Child(name="request", order=5, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Profile.class }) - @Description( - shortDefinition="Profile that describes the request", - formalDefinition="Information about the request for this event" - ) - private ResourceReferenceDt myRequest; - - @Child(name="response", order=6, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Profile.class }) - @Description( - shortDefinition="Profile that describes the response", - formalDefinition="Information about the response for this event" - ) - private ResourceReferenceDt myResponse; - - @Child(name="documentation", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Endpoint-specific event documentation", - formalDefinition="Guidance on how this event is handled, such as internal system trigger points, business rules, etc." - ) - private StringDt myDocumentation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myCategory, myMode, myProtocol, myFocus, myRequest, myResponse, myDocumentation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myCategory, myMode, myProtocol, myFocus, myRequest, myResponse, myDocumentation); - } - - /** - * Gets the value(s) for code (Event type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded identifier of a supported messaging event - *

- */ - public CodingDt getCode() { - if (myCode == null) { - myCode = new CodingDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Event type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded identifier of a supported messaging event - *

- */ - public CodingDt getCodeElement() { - if (myCode == null) { - myCode = new CodingDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Event type) - * - *

- * Definition: - * A coded identifier of a supported messaging event - *

- */ - public MessagingEvent setCode(CodingDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for category (Consequence | Currency | Notification). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The impact of the content of the message - *

- */ - public BoundCodeDt getCategory() { - if (myCategory == null) { - myCategory = new BoundCodeDt(MessageSignificanceCategoryEnum.VALUESET_BINDER); - } - return myCategory; - } - - - /** - * Gets the value(s) for category (Consequence | Currency | Notification). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The impact of the content of the message - *

- */ - public BoundCodeDt getCategoryElement() { - if (myCategory == null) { - myCategory = new BoundCodeDt(MessageSignificanceCategoryEnum.VALUESET_BINDER); - } - return myCategory; - } - - - /** - * Sets the value(s) for category (Consequence | Currency | Notification) - * - *

- * Definition: - * The impact of the content of the message - *

- */ - public MessagingEvent setCategory(BoundCodeDt theValue) { - myCategory = theValue; - return this; - } - - /** - * Sets the value(s) for category (Consequence | Currency | Notification) - * - *

- * Definition: - * The impact of the content of the message - *

- */ - public MessagingEvent setCategory(MessageSignificanceCategoryEnum theValue) { - getCategory().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for mode (sender | receiver). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mode of this event declaration - whether application is sender or receiver - *

- */ - public BoundCodeDt getMode() { - if (myMode == null) { - myMode = new BoundCodeDt(ConformanceEventModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (sender | receiver). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mode of this event declaration - whether application is sender or receiver - *

- */ - public BoundCodeDt getModeElement() { - if (myMode == null) { - myMode = new BoundCodeDt(ConformanceEventModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Sets the value(s) for mode (sender | receiver) - * - *

- * Definition: - * The mode of this event declaration - whether application is sender or receiver - *

- */ - public MessagingEvent setMode(BoundCodeDt theValue) { - myMode = theValue; - return this; - } - - /** - * Sets the value(s) for mode (sender | receiver) - * - *

- * Definition: - * The mode of this event declaration - whether application is sender or receiver - *

- */ - public MessagingEvent setMode(ConformanceEventModeEnum theValue) { - getMode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for protocol (http | ftp | mllp +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public java.util.List getProtocol() { - if (myProtocol == null) { - myProtocol = new java.util.ArrayList(); - } - return myProtocol; - } - - - /** - * Gets the value(s) for protocol (http | ftp | mllp +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public java.util.List getProtocolElement() { - if (myProtocol == null) { - myProtocol = new java.util.ArrayList(); - } - return myProtocol; - } - - - /** - * Sets the value(s) for protocol (http | ftp | mllp +) - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public MessagingEvent setProtocol(java.util.List theValue) { - myProtocol = theValue; - return this; - } - - /** - * Adds and returns a new value for protocol (http | ftp | mllp +) - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public CodingDt addProtocol() { - CodingDt newType = new CodingDt(); - getProtocol().add(newType); - return newType; - } - - /** - * Gets the first repetition for protocol (http | ftp | mllp +), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of the messaging transport protocol(s) identifiers, supported by this endpoint - *

- */ - public CodingDt getProtocolFirstRep() { - if (getProtocol().isEmpty()) { - return addProtocol(); - } - return getProtocol().get(0); - } - - /** - * Gets the value(s) for focus (Resource that's focus of message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A resource associated with the event. This is the resource that defines the event. - *

- */ - public BoundCodeDt getFocus() { - if (myFocus == null) { - myFocus = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - } - return myFocus; - } - - - /** - * Gets the value(s) for focus (Resource that's focus of message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A resource associated with the event. This is the resource that defines the event. - *

- */ - public BoundCodeDt getFocusElement() { - if (myFocus == null) { - myFocus = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - } - return myFocus; - } - - - /** - * Sets the value(s) for focus (Resource that's focus of message) - * - *

- * Definition: - * A resource associated with the event. This is the resource that defines the event. - *

- */ - public MessagingEvent setFocus(BoundCodeDt theValue) { - myFocus = theValue; - return this; - } - - /** - * Sets the value(s) for focus (Resource that's focus of message) - * - *

- * Definition: - * A resource associated with the event. This is the resource that defines the event. - *

- */ - public MessagingEvent setFocus(ResourceTypeEnum theValue) { - getFocus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for request (Profile that describes the request). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the request for this event - *

- */ - public ResourceReferenceDt getRequest() { - if (myRequest == null) { - myRequest = new ResourceReferenceDt(); - } - return myRequest; - } - - - /** - * Gets the value(s) for request (Profile that describes the request). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the request for this event - *

- */ - public ResourceReferenceDt getRequestElement() { - if (myRequest == null) { - myRequest = new ResourceReferenceDt(); - } - return myRequest; - } - - - /** - * Sets the value(s) for request (Profile that describes the request) - * - *

- * Definition: - * Information about the request for this event - *

- */ - public MessagingEvent setRequest(ResourceReferenceDt theValue) { - myRequest = theValue; - return this; - } - - - /** - * Gets the value(s) for response (Profile that describes the response). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the response for this event - *

- */ - public ResourceReferenceDt getResponse() { - if (myResponse == null) { - myResponse = new ResourceReferenceDt(); - } - return myResponse; - } - - - /** - * Gets the value(s) for response (Profile that describes the response). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the response for this event - *

- */ - public ResourceReferenceDt getResponseElement() { - if (myResponse == null) { - myResponse = new ResourceReferenceDt(); - } - return myResponse; - } - - - /** - * Sets the value(s) for response (Profile that describes the response) - * - *

- * Definition: - * Information about the response for this event - *

- */ - public MessagingEvent setResponse(ResourceReferenceDt theValue) { - myResponse = theValue; - return this; - } - - - /** - * Gets the value(s) for documentation (Endpoint-specific event documentation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Endpoint-specific event documentation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Endpoint-specific event documentation) - * - *

- * Definition: - * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. - *

- */ - public MessagingEvent setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Endpoint-specific event documentation) - * - *

- * Definition: - * Guidance on how this event is handled, such as internal system trigger points, business rules, etc. - *

- */ - public MessagingEvent setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - - } - - - - /** - * Block class for child element: Conformance.document (Document definition) - * - *

- * Definition: - * A document definition - *

- */ - @Block() - public static class Document - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="mode", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="producer | consumer", - formalDefinition="Mode of this document declaration - whether application is producer or consumer" - ) - private BoundCodeDt myMode; - - @Child(name="documentation", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Description of document support", - formalDefinition="A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc." - ) - private StringDt myDocumentation; - - @Child(name="profile", order=2, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Profile.class }) - @Description( - shortDefinition="Constraint on a resource used in the document", - formalDefinition="A constraint on a resource used in the document" - ) - private ResourceReferenceDt myProfile; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myDocumentation, myProfile); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMode, myDocumentation, myProfile); - } - - /** - * Gets the value(s) for mode (producer | consumer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Mode of this document declaration - whether application is producer or consumer - *

- */ - public BoundCodeDt getMode() { - if (myMode == null) { - myMode = new BoundCodeDt(DocumentModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (producer | consumer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Mode of this document declaration - whether application is producer or consumer - *

- */ - public BoundCodeDt getModeElement() { - if (myMode == null) { - myMode = new BoundCodeDt(DocumentModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Sets the value(s) for mode (producer | consumer) - * - *

- * Definition: - * Mode of this document declaration - whether application is producer or consumer - *

- */ - public Document setMode(BoundCodeDt theValue) { - myMode = theValue; - return this; - } - - /** - * Sets the value(s) for mode (producer | consumer) - * - *

- * Definition: - * Mode of this document declaration - whether application is producer or consumer - *

- */ - public Document setMode(DocumentModeEnum theValue) { - getMode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (Description of document support). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Description of document support). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Description of document support) - * - *

- * Definition: - * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. - *

- */ - public Document setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Description of document support) - * - *

- * Definition: - * A description of how the application supports or uses the specified document profile. For example, when are documents created, what action is taken with consumed documents, etc. - *

- */ - public Document setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for profile (Constraint on a resource used in the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A constraint on a resource used in the document - *

- */ - public ResourceReferenceDt getProfile() { - if (myProfile == null) { - myProfile = new ResourceReferenceDt(); - } - return myProfile; - } - - - /** - * Gets the value(s) for profile (Constraint on a resource used in the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A constraint on a resource used in the document - *

- */ - public ResourceReferenceDt getProfileElement() { - if (myProfile == null) { - myProfile = new ResourceReferenceDt(); - } - return myProfile; - } - - - /** - * Sets the value(s) for profile (Constraint on a resource used in the document) - * - *

- * Definition: - * A constraint on a resource used in the document - *

- */ - public Document setProfile(ResourceReferenceDt theValue) { - myProfile = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Conformance"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Coverage.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Coverage.java deleted file mode 100644 index fad4d9b3a28..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Coverage.java +++ /dev/null @@ -1,1379 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Coverage Resource - * (Insurance or medical plan) - * - *

- * Definition: - * Financial instrument by which payment information for health care - *

- * - *

- * Requirements: - * Health care programs and insurers are significant payors of health service costs - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Coverage - *

- * - */ -@ResourceDef(name="Coverage", profile="http://hl7.org/fhir/profiles/Coverage", id="coverage") -public class Coverage - extends BaseResource implements IResource { - - /** - * Search parameter constant for issuer - *

- * Description: The identity of the insurer
- * Type: reference
- * Path: Coverage.issuer
- *

- */ - @SearchParamDefinition(name="issuer", path="Coverage.issuer", description="The identity of the insurer", type="reference" ) - public static final String SP_ISSUER = "issuer"; - - /** - * Fluent Client search parameter constant for issuer - *

- * Description: The identity of the insurer
- * Type: reference
- * Path: Coverage.issuer
- *

- */ - public static final ReferenceClientParam ISSUER = new ReferenceClientParam(SP_ISSUER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Coverage.issuer". - */ - public static final Include INCLUDE_ISSUER = new Include("Coverage.issuer"); - - /** - * Search parameter constant for identifier - *

- * Description: The primary identifier of the insured
- * Type: token
- * Path: Coverage.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Coverage.identifier", description="The primary identifier of the insured", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: The primary identifier of the insured
- * Type: token
- * Path: Coverage.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for type - *

- * Description: The kind of coverage
- * Type: token
- * Path: Coverage.type
- *

- */ - @SearchParamDefinition(name="type", path="Coverage.type", description="The kind of coverage", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: The kind of coverage
- * Type: token
- * Path: Coverage.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for plan - *

- * Description: A plan or policy identifier
- * Type: token
- * Path: Coverage.plan
- *

- */ - @SearchParamDefinition(name="plan", path="Coverage.plan", description="A plan or policy identifier", type="token" ) - public static final String SP_PLAN = "plan"; - - /** - * Fluent Client search parameter constant for plan - *

- * Description: A plan or policy identifier
- * Type: token
- * Path: Coverage.plan
- *

- */ - public static final TokenClientParam PLAN = new TokenClientParam(SP_PLAN); - - /** - * Search parameter constant for subplan - *

- * Description: Sub-plan identifier
- * Type: token
- * Path: Coverage.subplan
- *

- */ - @SearchParamDefinition(name="subplan", path="Coverage.subplan", description="Sub-plan identifier", type="token" ) - public static final String SP_SUBPLAN = "subplan"; - - /** - * Fluent Client search parameter constant for subplan - *

- * Description: Sub-plan identifier
- * Type: token
- * Path: Coverage.subplan
- *

- */ - public static final TokenClientParam SUBPLAN = new TokenClientParam(SP_SUBPLAN); - - /** - * Search parameter constant for group - *

- * Description: Group identifier
- * Type: token
- * Path: Coverage.group
- *

- */ - @SearchParamDefinition(name="group", path="Coverage.group", description="Group identifier", type="token" ) - public static final String SP_GROUP = "group"; - - /** - * Fluent Client search parameter constant for group - *

- * Description: Group identifier
- * Type: token
- * Path: Coverage.group
- *

- */ - public static final TokenClientParam GROUP = new TokenClientParam(SP_GROUP); - - /** - * Search parameter constant for dependent - *

- * Description: Dependent number
- * Type: token
- * Path: Coverage.dependent
- *

- */ - @SearchParamDefinition(name="dependent", path="Coverage.dependent", description="Dependent number", type="token" ) - public static final String SP_DEPENDENT = "dependent"; - - /** - * Fluent Client search parameter constant for dependent - *

- * Description: Dependent number
- * Type: token
- * Path: Coverage.dependent
- *

- */ - public static final TokenClientParam DEPENDENT = new TokenClientParam(SP_DEPENDENT); - - /** - * Search parameter constant for sequence - *

- * Description: Sequence number
- * Type: token
- * Path: Coverage.sequence
- *

- */ - @SearchParamDefinition(name="sequence", path="Coverage.sequence", description="Sequence number", type="token" ) - public static final String SP_SEQUENCE = "sequence"; - - /** - * Fluent Client search parameter constant for sequence - *

- * Description: Sequence number
- * Type: token
- * Path: Coverage.sequence
- *

- */ - public static final TokenClientParam SEQUENCE = new TokenClientParam(SP_SEQUENCE); - - /** - * Search parameter constant for name - *

- * Description: The name of the subscriber
- * Type: token
- * Path: Coverage.subscriber.name
- *

- */ - @SearchParamDefinition(name="name", path="Coverage.subscriber.name", description="The name of the subscriber", type="token" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: The name of the subscriber
- * Type: token
- * Path: Coverage.subscriber.name
- *

- */ - public static final TokenClientParam NAME = new TokenClientParam(SP_NAME); - - - @Child(name="issuer", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="An identifier for the plan issuer", - formalDefinition="The program or plan underwriter or payor." - ) - private ResourceReferenceDt myIssuer; - - @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Coverage start and end dates", - formalDefinition="Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force." - ) - private PeriodDt myPeriod; - - @Child(name="type", type=CodingDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Type of coverage", - formalDefinition="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health." - ) - private CodingDt myType; - - @Child(name="identifier", type=IdentifierDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="The primary coverage ID", - formalDefinition="The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID." - ) - private IdentifierDt myIdentifier; - - @Child(name="group", type=IdentifierDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="An identifier for the group", - formalDefinition="Todo" - ) - private IdentifierDt myGroup; - - @Child(name="plan", type=IdentifierDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="An identifier for the plan", - formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID." - ) - private IdentifierDt myPlan; - - @Child(name="subplan", type=IdentifierDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="An identifier for the subsection of the plan", - formalDefinition="Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID." - ) - private IdentifierDt mySubplan; - - @Child(name="dependent", type=IntegerDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="The dependent number", - formalDefinition="A unique identifier for a dependent under the coverage." - ) - private IntegerDt myDependent; - - @Child(name="sequence", type=IntegerDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="The plan instance or sequence counter", - formalDefinition="An optional counter for a particular instance of the identified coverage which increments upon each renewal." - ) - private IntegerDt mySequence; - - @Child(name="subscriber", order=9, min=0, max=1) - @Description( - shortDefinition="Planholder information", - formalDefinition="" - ) - private Subscriber mySubscriber; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIssuer, myPeriod, myType, myIdentifier, myGroup, myPlan, mySubplan, myDependent, mySequence, mySubscriber); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIssuer, myPeriod, myType, myIdentifier, myGroup, myPlan, mySubplan, myDependent, mySequence, mySubscriber); - } - - /** - * Gets the value(s) for issuer (An identifier for the plan issuer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The program or plan underwriter or payor. - *

- */ - public ResourceReferenceDt getIssuer() { - if (myIssuer == null) { - myIssuer = new ResourceReferenceDt(); - } - return myIssuer; - } - - - /** - * Gets the value(s) for issuer (An identifier for the plan issuer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The program or plan underwriter or payor. - *

- */ - public ResourceReferenceDt getIssuerElement() { - if (myIssuer == null) { - myIssuer = new ResourceReferenceDt(); - } - return myIssuer; - } - - - /** - * Sets the value(s) for issuer (An identifier for the plan issuer) - * - *

- * Definition: - * The program or plan underwriter or payor. - *

- */ - public Coverage setIssuer(ResourceReferenceDt theValue) { - myIssuer = theValue; - return this; - } - - - /** - * Gets the value(s) for period (Coverage start and end dates). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Coverage start and end dates). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Coverage start and end dates) - * - *

- * Definition: - * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. - *

- */ - public Coverage setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for type (Type of coverage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. - *

- */ - public CodingDt getType() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Type of coverage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. - *

- */ - public CodingDt getTypeElement() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Type of coverage) - * - *

- * Definition: - * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. - *

- */ - public Coverage setType(CodingDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for identifier (The primary coverage ID). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (The primary coverage ID). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (The primary coverage ID) - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public Coverage setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (The primary coverage ID) - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public Coverage setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (The primary coverage ID) - * - *

- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *

- */ - public Coverage setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for group (An identifier for the group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Todo - *

- */ - public IdentifierDt getGroup() { - if (myGroup == null) { - myGroup = new IdentifierDt(); - } - return myGroup; - } - - - /** - * Gets the value(s) for group (An identifier for the group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Todo - *

- */ - public IdentifierDt getGroupElement() { - if (myGroup == null) { - myGroup = new IdentifierDt(); - } - return myGroup; - } - - - /** - * Sets the value(s) for group (An identifier for the group) - * - *

- * Definition: - * Todo - *

- */ - public Coverage setGroup(IdentifierDt theValue) { - myGroup = theValue; - return this; - } - - /** - * Sets the value for group (An identifier for the group) - * - *

- * Definition: - * Todo - *

- */ - public Coverage setGroup( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myGroup = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for group (An identifier for the group) - * - *

- * Definition: - * Todo - *

- */ - public Coverage setGroup( String theSystem, String theValue) { - myGroup = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for plan (An identifier for the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public IdentifierDt getPlan() { - if (myPlan == null) { - myPlan = new IdentifierDt(); - } - return myPlan; - } - - - /** - * Gets the value(s) for plan (An identifier for the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public IdentifierDt getPlanElement() { - if (myPlan == null) { - myPlan = new IdentifierDt(); - } - return myPlan; - } - - - /** - * Sets the value(s) for plan (An identifier for the plan) - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public Coverage setPlan(IdentifierDt theValue) { - myPlan = theValue; - return this; - } - - /** - * Sets the value for plan (An identifier for the plan) - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public Coverage setPlan( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myPlan = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for plan (An identifier for the plan) - * - *

- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *

- */ - public Coverage setPlan( String theSystem, String theValue) { - myPlan = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for subplan (An identifier for the subsection of the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public IdentifierDt getSubplan() { - if (mySubplan == null) { - mySubplan = new IdentifierDt(); - } - return mySubplan; - } - - - /** - * Gets the value(s) for subplan (An identifier for the subsection of the plan). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public IdentifierDt getSubplanElement() { - if (mySubplan == null) { - mySubplan = new IdentifierDt(); - } - return mySubplan; - } - - - /** - * Sets the value(s) for subplan (An identifier for the subsection of the plan) - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public Coverage setSubplan(IdentifierDt theValue) { - mySubplan = theValue; - return this; - } - - /** - * Sets the value for subplan (An identifier for the subsection of the plan) - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public Coverage setSubplan( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - mySubplan = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for subplan (An identifier for the subsection of the plan) - * - *

- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *

- */ - public Coverage setSubplan( String theSystem, String theValue) { - mySubplan = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for dependent (The dependent number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier for a dependent under the coverage. - *

- */ - public IntegerDt getDependent() { - if (myDependent == null) { - myDependent = new IntegerDt(); - } - return myDependent; - } - - - /** - * Gets the value(s) for dependent (The dependent number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier for a dependent under the coverage. - *

- */ - public IntegerDt getDependentElement() { - if (myDependent == null) { - myDependent = new IntegerDt(); - } - return myDependent; - } - - - /** - * Sets the value(s) for dependent (The dependent number) - * - *

- * Definition: - * A unique identifier for a dependent under the coverage. - *

- */ - public Coverage setDependent(IntegerDt theValue) { - myDependent = theValue; - return this; - } - - /** - * Sets the value for dependent (The dependent number) - * - *

- * Definition: - * A unique identifier for a dependent under the coverage. - *

- */ - public Coverage setDependent( int theInteger) { - myDependent = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for sequence (The plan instance or sequence counter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *

- */ - public IntegerDt getSequence() { - if (mySequence == null) { - mySequence = new IntegerDt(); - } - return mySequence; - } - - - /** - * Gets the value(s) for sequence (The plan instance or sequence counter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *

- */ - public IntegerDt getSequenceElement() { - if (mySequence == null) { - mySequence = new IntegerDt(); - } - return mySequence; - } - - - /** - * Sets the value(s) for sequence (The plan instance or sequence counter) - * - *

- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *

- */ - public Coverage setSequence(IntegerDt theValue) { - mySequence = theValue; - return this; - } - - /** - * Sets the value for sequence (The plan instance or sequence counter) - * - *

- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *

- */ - public Coverage setSequence( int theInteger) { - mySequence = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for subscriber (Planholder information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Subscriber getSubscriber() { - if (mySubscriber == null) { - mySubscriber = new Subscriber(); - } - return mySubscriber; - } - - - /** - * Gets the value(s) for subscriber (Planholder information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Subscriber getSubscriberElement() { - if (mySubscriber == null) { - mySubscriber = new Subscriber(); - } - return mySubscriber; - } - - - /** - * Sets the value(s) for subscriber (Planholder information) - * - *

- * Definition: - * - *

- */ - public Coverage setSubscriber(Subscriber theValue) { - mySubscriber = theValue; - return this; - } - - - /** - * Block class for child element: Coverage.subscriber (Planholder information) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Subscriber - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=HumanNameDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="PolicyHolder name", - formalDefinition="The name of the PolicyHolder" - ) - private HumanNameDt myName; - - @Child(name="address", type=AddressDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="PolicyHolder address", - formalDefinition="The mailing address, typically home, of the PolicyHolder" - ) - private AddressDt myAddress; - - @Child(name="birthdate", type=DateDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="PolicyHolder date of birth", - formalDefinition="The date of birth of the PolicyHolder" - ) - private DateDt myBirthdate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myAddress, myBirthdate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myAddress, myBirthdate); - } - - /** - * Gets the value(s) for name (PolicyHolder name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (PolicyHolder name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public HumanNameDt getNameElement() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (PolicyHolder name) - * - *

- * Definition: - * The name of the PolicyHolder - *

- */ - public Subscriber setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for address (PolicyHolder address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (PolicyHolder address). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public AddressDt getAddressElement() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (PolicyHolder address) - * - *

- * Definition: - * The mailing address, typically home, of the PolicyHolder - *

- */ - public Subscriber setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for birthdate (PolicyHolder date of birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public DateDt getBirthdate() { - if (myBirthdate == null) { - myBirthdate = new DateDt(); - } - return myBirthdate; - } - - - /** - * Gets the value(s) for birthdate (PolicyHolder date of birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public DateDt getBirthdateElement() { - if (myBirthdate == null) { - myBirthdate = new DateDt(); - } - return myBirthdate; - } - - - /** - * Sets the value(s) for birthdate (PolicyHolder date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public Subscriber setBirthdate(DateDt theValue) { - myBirthdate = theValue; - return this; - } - - /** - * Sets the value for birthdate (PolicyHolder date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public Subscriber setBirthdate( Date theDate, TemporalPrecisionEnum thePrecision) { - myBirthdate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for birthdate (PolicyHolder date of birth) - * - *

- * Definition: - * The date of birth of the PolicyHolder - *

- */ - public Subscriber setBirthdateWithDayPrecision( Date theDate) { - myBirthdate = new DateDt(theDate); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Coverage"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Device.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Device.java deleted file mode 100644 index f92dbcd95bf..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Device.java +++ /dev/null @@ -1,1423 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Device Resource - * (An instance of a manufactured thing that is used in the provision of healthcare) - * - *

- * Definition: - * This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. - *

- * - *

- * Requirements: - * Allows institutions to track their devices. - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Device - *

- * - */ -@ResourceDef(name="Device", profile="http://hl7.org/fhir/profiles/Device", id="device") -public class Device - extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *

- * Description: The type of the device
- * Type: token
- * Path: Device.type
- *

- */ - @SearchParamDefinition(name="type", path="Device.type", description="The type of the device", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: The type of the device
- * Type: token
- * Path: Device.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for manufacturer - *

- * Description: The manufacturer of the device
- * Type: string
- * Path: Device.manufacturer
- *

- */ - @SearchParamDefinition(name="manufacturer", path="Device.manufacturer", description="The manufacturer of the device", type="string" ) - public static final String SP_MANUFACTURER = "manufacturer"; - - /** - * Fluent Client search parameter constant for manufacturer - *

- * Description: The manufacturer of the device
- * Type: string
- * Path: Device.manufacturer
- *

- */ - public static final StringClientParam MANUFACTURER = new StringClientParam(SP_MANUFACTURER); - - /** - * Search parameter constant for model - *

- * Description: The model of the device
- * Type: string
- * Path: Device.model
- *

- */ - @SearchParamDefinition(name="model", path="Device.model", description="The model of the device", type="string" ) - public static final String SP_MODEL = "model"; - - /** - * Fluent Client search parameter constant for model - *

- * Description: The model of the device
- * Type: string
- * Path: Device.model
- *

- */ - public static final StringClientParam MODEL = new StringClientParam(SP_MODEL); - - /** - * Search parameter constant for organization - *

- * Description: The organization responsible for the device
- * Type: reference
- * Path: Device.owner
- *

- */ - @SearchParamDefinition(name="organization", path="Device.owner", description="The organization responsible for the device", type="reference" ) - public static final String SP_ORGANIZATION = "organization"; - - /** - * Fluent Client search parameter constant for organization - *

- * Description: The organization responsible for the device
- * Type: reference
- * Path: Device.owner
- *

- */ - public static final ReferenceClientParam ORGANIZATION = new ReferenceClientParam(SP_ORGANIZATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Device.owner". - */ - public static final Include INCLUDE_OWNER = new Include("Device.owner"); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Device.identifier
- *

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

- * Description:
- * Type: token
- * Path: Device.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for location - *

- * Description: A location, where the resource is found
- * Type: reference
- * Path: Device.location
- *

- */ - @SearchParamDefinition(name="location", path="Device.location", description="A location, where the resource is found", type="reference" ) - public static final String SP_LOCATION = "location"; - - /** - * Fluent Client search parameter constant for location - *

- * Description: A location, where the resource is found
- * Type: reference
- * Path: Device.location
- *

- */ - public static final ReferenceClientParam LOCATION = new ReferenceClientParam(SP_LOCATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Device.location". - */ - public static final Include INCLUDE_LOCATION = new Include("Device.location"); - - /** - * Search parameter constant for patient - *

- * Description: Patient information, if the resource is affixed to a person
- * Type: reference
- * Path: Device.patient
- *

- */ - @SearchParamDefinition(name="patient", path="Device.patient", description="Patient information, if the resource is affixed to a person", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: Patient information, if the resource is affixed to a person
- * Type: reference
- * Path: Device.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Device.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("Device.patient"); - - /** - * Search parameter constant for udi - *

- * Description:
- * Type: string
- * Path: Device.udi
- *

- */ - @SearchParamDefinition(name="udi", path="Device.udi", description="", type="string" ) - public static final String SP_UDI = "udi"; - - /** - * Fluent Client search parameter constant for udi - *

- * Description:
- * Type: string
- * Path: Device.udi
- *

- */ - public static final StringClientParam UDI = new StringClientParam(SP_UDI); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Instance id from manufacturer, owner and others", - formalDefinition="Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device" - ) - private java.util.List myIdentifier; - - @Child(name="type", type=CodeableConceptDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="What kind of device this is", - formalDefinition="A kind of this device" - ) - private CodeableConceptDt myType; - - @Child(name="manufacturer", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Name of device manufacturer", - formalDefinition="A name of the manufacturer" - ) - private StringDt myManufacturer; - - @Child(name="model", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Model id assigned by the manufacturer", - formalDefinition="The \"model\" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type" - ) - private StringDt myModel; - - @Child(name="version", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Version number (i.e. software)", - formalDefinition="The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware" - ) - private StringDt myVersion; - - @Child(name="expiry", type=DateDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Date of expiry of this device (if applicable)", - formalDefinition="Date of expiry of this device (if applicable)" - ) - private DateDt myExpiry; - - @Child(name="udi", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="FDA Mandated Unique Device Identifier", - formalDefinition="FDA Mandated Unique Device Identifier. Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm" - ) - private StringDt myUdi; - - @Child(name="lotNumber", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Lot number of manufacture", - formalDefinition="Lot number assigned by the manufacturer" - ) - private StringDt myLotNumber; - - @Child(name="owner", order=8, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Organization responsible for device", - formalDefinition="An organization that is responsible for the provision and ongoing maintenance of the device" - ) - private ResourceReferenceDt myOwner; - - @Child(name="location", order=9, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Where the resource is found", - formalDefinition="The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. \"in/with the patient\"), or a coded location" - ) - private ResourceReferenceDt myLocation; - - @Child(name="patient", order=10, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="If the resource is affixed to a person", - formalDefinition="Patient information, if the resource is affixed to a person" - ) - private ResourceReferenceDt myPatient; - - @Child(name="contact", type=ContactDt.class, order=11, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Details for human/organization for support", - formalDefinition="Contact details for an organization or a particular human that is responsible for the device" - ) - private java.util.List myContact; - - @Child(name="url", type=UriDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="Network address to contact device", - formalDefinition="A network address on which the device may be contacted directly" - ) - private UriDt myUrl; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myManufacturer, myModel, myVersion, myExpiry, myUdi, myLotNumber, myOwner, myLocation, myPatient, myContact, myUrl); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myManufacturer, myModel, myVersion, myExpiry, myUdi, myLotNumber, myOwner, myLocation, myPatient, myContact, myUrl); - } - - /** - * Gets the value(s) for identifier (Instance id from manufacturer, owner and others). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Instance id from manufacturer, owner and others). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Instance id from manufacturer, owner and others) - * - *

- * Definition: - * Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device - *

- */ - public Device setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Instance id from manufacturer, owner and others) - * - *

- * Definition: - * Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Instance id from manufacturer, owner and others), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Instance id from manufacturer, owner and others) - * - *

- * Definition: - * Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Device addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Instance id from manufacturer, owner and others) - * - *

- * Definition: - * Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Device addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for type (What kind of device this is). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A kind of this device - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (What kind of device this is). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A kind of this device - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (What kind of device this is) - * - *

- * Definition: - * A kind of this device - *

- */ - public Device setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for manufacturer (Name of device manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name of the manufacturer - *

- */ - public StringDt getManufacturer() { - if (myManufacturer == null) { - myManufacturer = new StringDt(); - } - return myManufacturer; - } - - - /** - * Gets the value(s) for manufacturer (Name of device manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name of the manufacturer - *

- */ - public StringDt getManufacturerElement() { - if (myManufacturer == null) { - myManufacturer = new StringDt(); - } - return myManufacturer; - } - - - /** - * Sets the value(s) for manufacturer (Name of device manufacturer) - * - *

- * Definition: - * A name of the manufacturer - *

- */ - public Device setManufacturer(StringDt theValue) { - myManufacturer = theValue; - return this; - } - - /** - * Sets the value for manufacturer (Name of device manufacturer) - * - *

- * Definition: - * A name of the manufacturer - *

- */ - public Device setManufacturer( String theString) { - myManufacturer = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for model (Model id assigned by the manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The \"model\" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type - *

- */ - public StringDt getModel() { - if (myModel == null) { - myModel = new StringDt(); - } - return myModel; - } - - - /** - * Gets the value(s) for model (Model id assigned by the manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The \"model\" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type - *

- */ - public StringDt getModelElement() { - if (myModel == null) { - myModel = new StringDt(); - } - return myModel; - } - - - /** - * Sets the value(s) for model (Model id assigned by the manufacturer) - * - *

- * Definition: - * The \"model\" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type - *

- */ - public Device setModel(StringDt theValue) { - myModel = theValue; - return this; - } - - /** - * Sets the value for model (Model id assigned by the manufacturer) - * - *

- * Definition: - * The \"model\" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type - *

- */ - public Device setModel( String theString) { - myModel = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (Version number (i.e. software)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Version number (i.e. software)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Version number (i.e. software)) - * - *

- * Definition: - * The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware - *

- */ - public Device setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Version number (i.e. software)) - * - *

- * Definition: - * The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware - *

- */ - public Device setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for expiry (Date of expiry of this device (if applicable)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date of expiry of this device (if applicable) - *

- */ - public DateDt getExpiry() { - if (myExpiry == null) { - myExpiry = new DateDt(); - } - return myExpiry; - } - - - /** - * Gets the value(s) for expiry (Date of expiry of this device (if applicable)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date of expiry of this device (if applicable) - *

- */ - public DateDt getExpiryElement() { - if (myExpiry == null) { - myExpiry = new DateDt(); - } - return myExpiry; - } - - - /** - * Sets the value(s) for expiry (Date of expiry of this device (if applicable)) - * - *

- * Definition: - * Date of expiry of this device (if applicable) - *

- */ - public Device setExpiry(DateDt theValue) { - myExpiry = theValue; - return this; - } - - /** - * Sets the value for expiry (Date of expiry of this device (if applicable)) - * - *

- * Definition: - * Date of expiry of this device (if applicable) - *

- */ - public Device setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) { - myExpiry = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for expiry (Date of expiry of this device (if applicable)) - * - *

- * Definition: - * Date of expiry of this device (if applicable) - *

- */ - public Device setExpiryWithDayPrecision( Date theDate) { - myExpiry = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for udi (FDA Mandated Unique Device Identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * FDA Mandated Unique Device Identifier. Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm - *

- */ - public StringDt getUdi() { - if (myUdi == null) { - myUdi = new StringDt(); - } - return myUdi; - } - - - /** - * Gets the value(s) for udi (FDA Mandated Unique Device Identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * FDA Mandated Unique Device Identifier. Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm - *

- */ - public StringDt getUdiElement() { - if (myUdi == null) { - myUdi = new StringDt(); - } - return myUdi; - } - - - /** - * Sets the value(s) for udi (FDA Mandated Unique Device Identifier) - * - *

- * Definition: - * FDA Mandated Unique Device Identifier. Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm - *

- */ - public Device setUdi(StringDt theValue) { - myUdi = theValue; - return this; - } - - /** - * Sets the value for udi (FDA Mandated Unique Device Identifier) - * - *

- * Definition: - * FDA Mandated Unique Device Identifier. Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm - *

- */ - public Device setUdi( String theString) { - myUdi = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for lotNumber (Lot number of manufacture). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Lot number assigned by the manufacturer - *

- */ - public StringDt getLotNumber() { - if (myLotNumber == null) { - myLotNumber = new StringDt(); - } - return myLotNumber; - } - - - /** - * Gets the value(s) for lotNumber (Lot number of manufacture). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Lot number assigned by the manufacturer - *

- */ - public StringDt getLotNumberElement() { - if (myLotNumber == null) { - myLotNumber = new StringDt(); - } - return myLotNumber; - } - - - /** - * Sets the value(s) for lotNumber (Lot number of manufacture) - * - *

- * Definition: - * Lot number assigned by the manufacturer - *

- */ - public Device setLotNumber(StringDt theValue) { - myLotNumber = theValue; - return this; - } - - /** - * Sets the value for lotNumber (Lot number of manufacture) - * - *

- * Definition: - * Lot number assigned by the manufacturer - *

- */ - public Device setLotNumber( String theString) { - myLotNumber = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for owner (Organization responsible for device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An organization that is responsible for the provision and ongoing maintenance of the device - *

- */ - public ResourceReferenceDt getOwner() { - if (myOwner == null) { - myOwner = new ResourceReferenceDt(); - } - return myOwner; - } - - - /** - * Gets the value(s) for owner (Organization responsible for device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An organization that is responsible for the provision and ongoing maintenance of the device - *

- */ - public ResourceReferenceDt getOwnerElement() { - if (myOwner == null) { - myOwner = new ResourceReferenceDt(); - } - return myOwner; - } - - - /** - * Sets the value(s) for owner (Organization responsible for device) - * - *

- * Definition: - * An organization that is responsible for the provision and ongoing maintenance of the device - *

- */ - public Device setOwner(ResourceReferenceDt theValue) { - myOwner = theValue; - return this; - } - - - /** - * Gets the value(s) for location (Where the resource is found). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. \"in/with the patient\"), or a coded location - *

- */ - public ResourceReferenceDt getLocation() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Where the resource is found). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. \"in/with the patient\"), or a coded location - *

- */ - public ResourceReferenceDt getLocationElement() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Where the resource is found) - * - *

- * Definition: - * The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. \"in/with the patient\"), or a coded location - *

- */ - public Device setLocation(ResourceReferenceDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for patient (If the resource is affixed to a person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient information, if the resource is affixed to a person - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (If the resource is affixed to a person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient information, if the resource is affixed to a person - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (If the resource is affixed to a person) - * - *

- * Definition: - * Patient information, if the resource is affixed to a person - *

- */ - public Device setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for contact (Details for human/organization for support). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contact details for an organization or a particular human that is responsible for the device - *

- */ - public java.util.List getContact() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - - /** - * Gets the value(s) for contact (Details for human/organization for support). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contact details for an organization or a particular human that is responsible for the device - *

- */ - public java.util.List getContactElement() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - - /** - * Sets the value(s) for contact (Details for human/organization for support) - * - *

- * Definition: - * Contact details for an organization or a particular human that is responsible for the device - *

- */ - public Device setContact(java.util.List theValue) { - myContact = theValue; - return this; - } - - /** - * Adds and returns a new value for contact (Details for human/organization for support) - * - *

- * Definition: - * Contact details for an organization or a particular human that is responsible for the device - *

- */ - public ContactDt addContact() { - ContactDt newType = new ContactDt(); - getContact().add(newType); - return newType; - } - - /** - * Gets the first repetition for contact (Details for human/organization for support), - * creating it if it does not already exist. - * - *

- * Definition: - * Contact details for an organization or a particular human that is responsible for the device - *

- */ - public ContactDt getContactFirstRep() { - if (getContact().isEmpty()) { - return addContact(); - } - return getContact().get(0); - } - /** - * Adds a new value for contact (Details for human/organization for support) - * - *

- * Definition: - * Contact details for an organization or a particular human that is responsible for the device - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Device addContact( ContactUseEnum theContactUse, String theValue) { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - myContact.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for contact (Details for human/organization for support) - * - *

- * Definition: - * Contact details for an organization or a particular human that is responsible for the device - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Device addContact( String theValue) { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - myContact.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for url (Network address to contact device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A network address on which the device may be contacted directly - *

- */ - public UriDt getUrl() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (Network address to contact device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A network address on which the device may be contacted directly - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Sets the value(s) for url (Network address to contact device) - * - *

- * Definition: - * A network address on which the device may be contacted directly - *

- */ - public Device setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - /** - * Sets the value for url (Network address to contact device) - * - *

- * Definition: - * A network address on which the device may be contacted directly - *

- */ - public Device setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - - - @Override - public String getResourceName() { - return "Device"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DeviceObservationReport.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DeviceObservationReport.java deleted file mode 100644 index 1a7acd909f4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DeviceObservationReport.java +++ /dev/null @@ -1,1175 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR DeviceObservationReport Resource - * (Describes the data produced by a device at a point in time) - * - *

- * Definition: - * Describes the data produced by a device at a point in time - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/DeviceObservationReport - *

- * - */ -@ResourceDef(name="DeviceObservationReport", profile="http://hl7.org/fhir/profiles/DeviceObservationReport", id="deviceobservationreport") -public class DeviceObservationReport - extends BaseResource implements IResource { - - /** - * Search parameter constant for source - *

- * Description:
- * Type: reference
- * Path: DeviceObservationReport.source
- *

- */ - @SearchParamDefinition(name="source", path="DeviceObservationReport.source", description="", type="reference" ) - public static final String SP_SOURCE = "source"; - - /** - * Fluent Client search parameter constant for source - *

- * Description:
- * Type: reference
- * Path: DeviceObservationReport.source
- *

- */ - public static final ReferenceClientParam SOURCE = new ReferenceClientParam(SP_SOURCE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DeviceObservationReport.source". - */ - public static final Include INCLUDE_SOURCE = new Include("DeviceObservationReport.source"); - - /** - * Search parameter constant for code - *

- * Description: The compatment code
- * Type: token
- * Path: DeviceObservationReport.virtualDevice.code
- *

- */ - @SearchParamDefinition(name="code", path="DeviceObservationReport.virtualDevice.code", description="The compatment code", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description: The compatment code
- * Type: token
- * Path: DeviceObservationReport.virtualDevice.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for channel - *

- * Description: The channel code
- * Type: token
- * Path: DeviceObservationReport.virtualDevice.channel.code
- *

- */ - @SearchParamDefinition(name="channel", path="DeviceObservationReport.virtualDevice.channel.code", description="The channel code", type="token" ) - public static final String SP_CHANNEL = "channel"; - - /** - * Fluent Client search parameter constant for channel - *

- * Description: The channel code
- * Type: token
- * Path: DeviceObservationReport.virtualDevice.channel.code
- *

- */ - public static final TokenClientParam CHANNEL = new TokenClientParam(SP_CHANNEL); - - /** - * Search parameter constant for observation - *

- * Description:
- * Type: reference
- * Path: DeviceObservationReport.virtualDevice.channel.metric.observation
- *

- */ - @SearchParamDefinition(name="observation", path="DeviceObservationReport.virtualDevice.channel.metric.observation", description="", type="reference" ) - public static final String SP_OBSERVATION = "observation"; - - /** - * Fluent Client search parameter constant for observation - *

- * Description:
- * Type: reference
- * Path: DeviceObservationReport.virtualDevice.channel.metric.observation
- *

- */ - public static final ReferenceClientParam OBSERVATION = new ReferenceClientParam(SP_OBSERVATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DeviceObservationReport.virtualDevice.channel.metric.observation". - */ - public static final Include INCLUDE_VIRTUALDEVICE_CHANNEL_METRIC_OBSERVATION = new Include("DeviceObservationReport.virtualDevice.channel.metric.observation"); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: DeviceObservationReport.subject
- *

- */ - @SearchParamDefinition(name="subject", path="DeviceObservationReport.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: DeviceObservationReport.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DeviceObservationReport.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("DeviceObservationReport.subject"); - - - @Child(name="instant", type=InstantDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="When the data values are reported", - formalDefinition="The point in time that the values are reported" - ) - private InstantDt myInstant; - - @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="As assigned by the source device", - formalDefinition="An identifier assigned to this observation bu the source device that made the observation" - ) - private IdentifierDt myIdentifier; - - @Child(name="source", order=2, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Identifies/describes where the data came from", - formalDefinition="Identification information for the device that is the source of the data" - ) - private ResourceReferenceDt mySource; - - @Child(name="subject", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Subject of the measurement", - formalDefinition="The subject of the measurement" - ) - private ResourceReferenceDt mySubject; - - @Child(name="virtualDevice", order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A medical-related subsystem of a medical device", - formalDefinition="A medical-related subsystem of a medical device" - ) - private java.util.List myVirtualDevice; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myInstant, myIdentifier, mySource, mySubject, myVirtualDevice); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myInstant, myIdentifier, mySource, mySubject, myVirtualDevice); - } - - /** - * Gets the value(s) for instant (When the data values are reported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The point in time that the values are reported - *

- */ - public InstantDt getInstant() { - if (myInstant == null) { - myInstant = new InstantDt(); - } - return myInstant; - } - - - /** - * Gets the value(s) for instant (When the data values are reported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The point in time that the values are reported - *

- */ - public InstantDt getInstantElement() { - if (myInstant == null) { - myInstant = new InstantDt(); - } - return myInstant; - } - - - /** - * Sets the value(s) for instant (When the data values are reported) - * - *

- * Definition: - * The point in time that the values are reported - *

- */ - public DeviceObservationReport setInstant(InstantDt theValue) { - myInstant = theValue; - return this; - } - - /** - * Sets the value for instant (When the data values are reported) - * - *

- * Definition: - * The point in time that the values are reported - *

- */ - public DeviceObservationReport setInstantWithMillisPrecision( Date theDate) { - myInstant = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for instant (When the data values are reported) - * - *

- * Definition: - * The point in time that the values are reported - *

- */ - public DeviceObservationReport setInstant( Date theDate, TemporalPrecisionEnum thePrecision) { - myInstant = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for identifier (As assigned by the source device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier assigned to this observation bu the source device that made the observation - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (As assigned by the source device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier assigned to this observation bu the source device that made the observation - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (As assigned by the source device) - * - *

- * Definition: - * An identifier assigned to this observation bu the source device that made the observation - *

- */ - public DeviceObservationReport setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (As assigned by the source device) - * - *

- * Definition: - * An identifier assigned to this observation bu the source device that made the observation - *

- */ - public DeviceObservationReport setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (As assigned by the source device) - * - *

- * Definition: - * An identifier assigned to this observation bu the source device that made the observation - *

- */ - public DeviceObservationReport setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for source (Identifies/describes where the data came from). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identification information for the device that is the source of the data - *

- */ - public ResourceReferenceDt getSource() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Identifies/describes where the data came from). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identification information for the device that is the source of the data - *

- */ - public ResourceReferenceDt getSourceElement() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Identifies/describes where the data came from) - * - *

- * Definition: - * Identification information for the device that is the source of the data - *

- */ - public DeviceObservationReport setSource(ResourceReferenceDt theValue) { - mySource = theValue; - return this; - } - - - /** - * Gets the value(s) for subject (Subject of the measurement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The subject of the measurement - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Subject of the measurement). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The subject of the measurement - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Subject of the measurement) - * - *

- * Definition: - * The subject of the measurement - *

- */ - public DeviceObservationReport setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for virtualDevice (A medical-related subsystem of a medical device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A medical-related subsystem of a medical device - *

- */ - public java.util.List getVirtualDevice() { - if (myVirtualDevice == null) { - myVirtualDevice = new java.util.ArrayList(); - } - return myVirtualDevice; - } - - - /** - * Gets the value(s) for virtualDevice (A medical-related subsystem of a medical device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A medical-related subsystem of a medical device - *

- */ - public java.util.List getVirtualDeviceElement() { - if (myVirtualDevice == null) { - myVirtualDevice = new java.util.ArrayList(); - } - return myVirtualDevice; - } - - - /** - * Sets the value(s) for virtualDevice (A medical-related subsystem of a medical device) - * - *

- * Definition: - * A medical-related subsystem of a medical device - *

- */ - public DeviceObservationReport setVirtualDevice(java.util.List theValue) { - myVirtualDevice = theValue; - return this; - } - - /** - * Adds and returns a new value for virtualDevice (A medical-related subsystem of a medical device) - * - *

- * Definition: - * A medical-related subsystem of a medical device - *

- */ - public VirtualDevice addVirtualDevice() { - VirtualDevice newType = new VirtualDevice(); - getVirtualDevice().add(newType); - return newType; - } - - /** - * Gets the first repetition for virtualDevice (A medical-related subsystem of a medical device), - * creating it if it does not already exist. - * - *

- * Definition: - * A medical-related subsystem of a medical device - *

- */ - public VirtualDevice getVirtualDeviceFirstRep() { - if (getVirtualDevice().isEmpty()) { - return addVirtualDevice(); - } - return getVirtualDevice().get(0); - } - - /** - * Block class for child element: DeviceObservationReport.virtualDevice (A medical-related subsystem of a medical device) - * - *

- * Definition: - * A medical-related subsystem of a medical device - *

- */ - @Block() - public static class VirtualDevice - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Describes the compartment", - formalDefinition="Describes the compartment" - ) - private CodeableConceptDt myCode; - - @Child(name="channel", order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Groups related data items", - formalDefinition="Groups together physiological measurement data and derived data" - ) - private java.util.List myChannel; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myChannel); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myChannel); - } - - /** - * Gets the value(s) for code (Describes the compartment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the compartment - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Describes the compartment). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the compartment - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Describes the compartment) - * - *

- * Definition: - * Describes the compartment - *

- */ - public VirtualDevice setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for channel (Groups related data items). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Groups together physiological measurement data and derived data - *

- */ - public java.util.List getChannel() { - if (myChannel == null) { - myChannel = new java.util.ArrayList(); - } - return myChannel; - } - - - /** - * Gets the value(s) for channel (Groups related data items). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Groups together physiological measurement data and derived data - *

- */ - public java.util.List getChannelElement() { - if (myChannel == null) { - myChannel = new java.util.ArrayList(); - } - return myChannel; - } - - - /** - * Sets the value(s) for channel (Groups related data items) - * - *

- * Definition: - * Groups together physiological measurement data and derived data - *

- */ - public VirtualDevice setChannel(java.util.List theValue) { - myChannel = theValue; - return this; - } - - /** - * Adds and returns a new value for channel (Groups related data items) - * - *

- * Definition: - * Groups together physiological measurement data and derived data - *

- */ - public VirtualDeviceChannel addChannel() { - VirtualDeviceChannel newType = new VirtualDeviceChannel(); - getChannel().add(newType); - return newType; - } - - /** - * Gets the first repetition for channel (Groups related data items), - * creating it if it does not already exist. - * - *

- * Definition: - * Groups together physiological measurement data and derived data - *

- */ - public VirtualDeviceChannel getChannelFirstRep() { - if (getChannel().isEmpty()) { - return addChannel(); - } - return getChannel().get(0); - } - - - } - - /** - * Block class for child element: DeviceObservationReport.virtualDevice.channel (Groups related data items) - * - *

- * Definition: - * Groups together physiological measurement data and derived data - *

- */ - @Block() - public static class VirtualDeviceChannel - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Describes the channel", - formalDefinition="Describes the channel" - ) - private CodeableConceptDt myCode; - - @Child(name="metric", order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Piece of data reported by device", - formalDefinition="A piece of measured or derived data that is reported by the machine" - ) - private java.util.List myMetric; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myMetric); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myMetric); - } - - /** - * Gets the value(s) for code (Describes the channel). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the channel - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Describes the channel). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the channel - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Describes the channel) - * - *

- * Definition: - * Describes the channel - *

- */ - public VirtualDeviceChannel setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for metric (Piece of data reported by device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A piece of measured or derived data that is reported by the machine - *

- */ - public java.util.List getMetric() { - if (myMetric == null) { - myMetric = new java.util.ArrayList(); - } - return myMetric; - } - - - /** - * Gets the value(s) for metric (Piece of data reported by device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A piece of measured or derived data that is reported by the machine - *

- */ - public java.util.List getMetricElement() { - if (myMetric == null) { - myMetric = new java.util.ArrayList(); - } - return myMetric; - } - - - /** - * Sets the value(s) for metric (Piece of data reported by device) - * - *

- * Definition: - * A piece of measured or derived data that is reported by the machine - *

- */ - public VirtualDeviceChannel setMetric(java.util.List theValue) { - myMetric = theValue; - return this; - } - - /** - * Adds and returns a new value for metric (Piece of data reported by device) - * - *

- * Definition: - * A piece of measured or derived data that is reported by the machine - *

- */ - public VirtualDeviceChannelMetric addMetric() { - VirtualDeviceChannelMetric newType = new VirtualDeviceChannelMetric(); - getMetric().add(newType); - return newType; - } - - /** - * Gets the first repetition for metric (Piece of data reported by device), - * creating it if it does not already exist. - * - *

- * Definition: - * A piece of measured or derived data that is reported by the machine - *

- */ - public VirtualDeviceChannelMetric getMetricFirstRep() { - if (getMetric().isEmpty()) { - return addMetric(); - } - return getMetric().get(0); - } - - - } - - /** - * Block class for child element: DeviceObservationReport.virtualDevice.channel.metric (Piece of data reported by device) - * - *

- * Definition: - * A piece of measured or derived data that is reported by the machine - *

- */ - @Block() - public static class VirtualDeviceChannelMetric - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="observation", order=0, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Observation.class }) - @Description( - shortDefinition="The data for the metric", - formalDefinition="The data for the metric" - ) - private ResourceReferenceDt myObservation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myObservation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myObservation); - } - - /** - * Gets the value(s) for observation (The data for the metric). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The data for the metric - *

- */ - public ResourceReferenceDt getObservation() { - if (myObservation == null) { - myObservation = new ResourceReferenceDt(); - } - return myObservation; - } - - - /** - * Gets the value(s) for observation (The data for the metric). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The data for the metric - *

- */ - public ResourceReferenceDt getObservationElement() { - if (myObservation == null) { - myObservation = new ResourceReferenceDt(); - } - return myObservation; - } - - - /** - * Sets the value(s) for observation (The data for the metric) - * - *

- * Definition: - * The data for the metric - *

- */ - public VirtualDeviceChannelMetric setObservation(ResourceReferenceDt theValue) { - myObservation = theValue; - return this; - } - - - - } - - - - - - - @Override - public String getResourceName() { - return "DeviceObservationReport"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DiagnosticOrder.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DiagnosticOrder.java deleted file mode 100644 index 677ec6b9b09..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DiagnosticOrder.java +++ /dev/null @@ -1,2049 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR DiagnosticOrder Resource - * (A request for a diagnostic service) - * - *

- * Definition: - * A request for a diagnostic investigation service to be performed - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/DiagnosticOrder - *

- * - */ -@ResourceDef(name="DiagnosticOrder", profile="http://hl7.org/fhir/profiles/DiagnosticOrder", id="diagnosticorder") -public class DiagnosticOrder - extends BaseResource implements IResource { - - /** - * Search parameter constant for actor - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.event.actor | DiagnosticOrder.item.event.actor
- *

- */ - @SearchParamDefinition(name="actor", path="DiagnosticOrder.event.actor | DiagnosticOrder.item.event.actor", description="", type="reference" ) - public static final String SP_ACTOR = "actor"; - - /** - * Fluent Client search parameter constant for actor - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.event.actor | DiagnosticOrder.item.event.actor
- *

- */ - public static final ReferenceClientParam ACTOR = new ReferenceClientParam(SP_ACTOR); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticOrder.event.actor". - */ - public static final Include INCLUDE_EVENT_ACTOR = new Include("DiagnosticOrder.event.actor"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticOrder.item.event.actor". - */ - public static final Include INCLUDE_ITEM_EVENT_ACTOR = new Include("DiagnosticOrder.item.event.actor"); - - /** - * Search parameter constant for bodysite - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.item.bodySite
- *

- */ - @SearchParamDefinition(name="bodysite", path="DiagnosticOrder.item.bodySite", description="", type="token" ) - public static final String SP_BODYSITE = "bodysite"; - - /** - * Fluent Client search parameter constant for bodysite - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.item.bodySite
- *

- */ - public static final TokenClientParam BODYSITE = new TokenClientParam(SP_BODYSITE); - - /** - * Search parameter constant for code - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.item.code
- *

- */ - @SearchParamDefinition(name="code", path="DiagnosticOrder.item.code", description="", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.item.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for event-date - *

- * Description:
- * Type: date
- * Path: DiagnosticOrder.event.dateTime
- *

- */ - @SearchParamDefinition(name="event-date", path="DiagnosticOrder.event.dateTime", description="", type="date" ) - public static final String SP_EVENT_DATE = "event-date"; - - /** - * Fluent Client search parameter constant for event-date - *

- * Description:
- * Type: date
- * Path: DiagnosticOrder.event.dateTime
- *

- */ - public static final DateClientParam EVENT_DATE = new DateClientParam(SP_EVENT_DATE); - - /** - * Search parameter constant for encounter - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="DiagnosticOrder.encounter", description="", type="reference" ) - public static final String SP_ENCOUNTER = "encounter"; - - /** - * Fluent Client search parameter constant for encounter - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.encounter
- *

- */ - public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticOrder.encounter". - */ - public static final Include INCLUDE_ENCOUNTER = new Include("DiagnosticOrder.encounter"); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.identifier
- *

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

- * Description:
- * Type: token
- * Path: DiagnosticOrder.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for item-date - *

- * Description:
- * Type: date
- * Path: DiagnosticOrder.item.event.dateTime
- *

- */ - @SearchParamDefinition(name="item-date", path="DiagnosticOrder.item.event.dateTime", description="", type="date" ) - public static final String SP_ITEM_DATE = "item-date"; - - /** - * Fluent Client search parameter constant for item-date - *

- * Description:
- * Type: date
- * Path: DiagnosticOrder.item.event.dateTime
- *

- */ - public static final DateClientParam ITEM_DATE = new DateClientParam(SP_ITEM_DATE); - - /** - * Search parameter constant for item-past-status - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.item.event.status
- *

- */ - @SearchParamDefinition(name="item-past-status", path="DiagnosticOrder.item.event.status", description="", type="token" ) - public static final String SP_ITEM_PAST_STATUS = "item-past-status"; - - /** - * Fluent Client search parameter constant for item-past-status - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.item.event.status
- *

- */ - public static final TokenClientParam ITEM_PAST_STATUS = new TokenClientParam(SP_ITEM_PAST_STATUS); - - /** - * Search parameter constant for item-status - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.item.status
- *

- */ - @SearchParamDefinition(name="item-status", path="DiagnosticOrder.item.status", description="", type="token" ) - public static final String SP_ITEM_STATUS = "item-status"; - - /** - * Fluent Client search parameter constant for item-status - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.item.status
- *

- */ - public static final TokenClientParam ITEM_STATUS = new TokenClientParam(SP_ITEM_STATUS); - - /** - * Search parameter constant for orderer - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.orderer
- *

- */ - @SearchParamDefinition(name="orderer", path="DiagnosticOrder.orderer", description="", type="reference" ) - public static final String SP_ORDERER = "orderer"; - - /** - * Fluent Client search parameter constant for orderer - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.orderer
- *

- */ - public static final ReferenceClientParam ORDERER = new ReferenceClientParam(SP_ORDERER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticOrder.orderer". - */ - public static final Include INCLUDE_ORDERER = new Include("DiagnosticOrder.orderer"); - - /** - * Search parameter constant for event-status - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.event.status
- *

- */ - @SearchParamDefinition(name="event-status", path="DiagnosticOrder.event.status", description="", type="token" ) - public static final String SP_EVENT_STATUS = "event-status"; - - /** - * Fluent Client search parameter constant for event-status - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.event.status
- *

- */ - public static final TokenClientParam EVENT_STATUS = new TokenClientParam(SP_EVENT_STATUS); - - /** - * Search parameter constant for specimen - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.specimen | DiagnosticOrder.item.specimen
- *

- */ - @SearchParamDefinition(name="specimen", path="DiagnosticOrder.specimen | DiagnosticOrder.item.specimen", description="", type="reference" ) - public static final String SP_SPECIMEN = "specimen"; - - /** - * Fluent Client search parameter constant for specimen - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.specimen | DiagnosticOrder.item.specimen
- *

- */ - public static final ReferenceClientParam SPECIMEN = new ReferenceClientParam(SP_SPECIMEN); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticOrder.specimen". - */ - public static final Include INCLUDE_SPECIMEN = new Include("DiagnosticOrder.specimen"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticOrder.item.specimen". - */ - public static final Include INCLUDE_ITEM_SPECIMEN = new Include("DiagnosticOrder.item.specimen"); - - /** - * Search parameter constant for status - *

- * Description:
- * Type: token
- * Path: DiagnosticOrder.status
- *

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

- * Description:
- * Type: token
- * Path: DiagnosticOrder.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.subject
- *

- */ - @SearchParamDefinition(name="subject", path="DiagnosticOrder.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: DiagnosticOrder.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticOrder.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("DiagnosticOrder.subject"); - - /** - * Search parameter constant for item-past-status-item-date - *

- * Description: A combination of item-past-status and item-date
- * Type: composite
- * Path: item-past-status & item-date
- *

- */ - @SearchParamDefinition(name="item-past-status-item-date", path="item-past-status & item-date", description="A combination of item-past-status and item-date", type="composite" , compositeOf={ "item-past-status", "item-date" } ) - public static final String SP_ITEM_PAST_STATUS_ITEM_DATE = "item-past-status-item-date"; - - /** - * Fluent Client search parameter constant for item-past-status-item-date - *

- * Description: A combination of item-past-status and item-date
- * Type: composite
- * Path: item-past-status & item-date
- *

- */ - public static final CompositeClientParam ITEM_PAST_STATUS_ITEM_DATE = new CompositeClientParam(SP_ITEM_PAST_STATUS_ITEM_DATE); - - /** - * Search parameter constant for event-status-event-date - *

- * Description: A combination of past-status and date
- * Type: composite
- * Path: event-status & event-date
- *

- */ - @SearchParamDefinition(name="event-status-event-date", path="event-status & event-date", description="A combination of past-status and date", type="composite" , compositeOf={ "event-status", "event-date" } ) - public static final String SP_EVENT_STATUS_EVENT_DATE = "event-status-event-date"; - - /** - * Fluent Client search parameter constant for event-status-event-date - *

- * Description: A combination of past-status and date
- * Type: composite
- * Path: event-status & event-date
- *

- */ - public static final CompositeClientParam EVENT_STATUS_EVENT_DATE = new CompositeClientParam(SP_EVENT_STATUS_EVENT_DATE); - - - @Child(name="subject", order=0, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Location.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Who and/or what test is about", - formalDefinition="Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans)" - ) - private ResourceReferenceDt mySubject; - - @Child(name="orderer", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who ordered the test", - formalDefinition="The practitioner that holds legal responsibility for ordering the investigation" - ) - private ResourceReferenceDt myOrderer; - - @Child(name="identifier", type=IdentifierDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Identifiers assigned to this order", - formalDefinition="Identifiers assigned to this order by the order or by the receiver" - ) - private java.util.List myIdentifier; - - @Child(name="encounter", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="The encounter that this diagnostic order is associated with", - formalDefinition="An encounter that provides additional informaton about the healthcare context in which this request is made" - ) - private ResourceReferenceDt myEncounter; - - @Child(name="clinicalNotes", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Explanation/Justification for test", - formalDefinition="An explanation or justification for why this diagnostic investigation is being requested" - ) - private StringDt myClinicalNotes; - - @Child(name="specimen", order=5, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Specimen.class }) - @Description( - shortDefinition="If the whole order relates to specific specimens", - formalDefinition="One or more specimens that the diagnostic investigation is about" - ) - private java.util.List mySpecimen; - - @Child(name="status", type=CodeDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="requested | received | accepted | in progress | review | completed | suspended | rejected | failed", - formalDefinition="The status of the order" - ) - private BoundCodeDt myStatus; - - @Child(name="priority", type=CodeDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="routine | urgent | stat | asap", - formalDefinition="The clinical priority associated with this order" - ) - private BoundCodeDt myPriority; - - @Child(name="event", order=8, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A list of events of interest in the lifecycle", - formalDefinition="A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed" - ) - private java.util.List myEvent; - - @Child(name="item", order=9, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="The items the orderer requested", - formalDefinition="The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested" - ) - private java.util.List myItem; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myOrderer, myIdentifier, myEncounter, myClinicalNotes, mySpecimen, myStatus, myPriority, myEvent, myItem); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myOrderer, myIdentifier, myEncounter, myClinicalNotes, mySpecimen, myStatus, myPriority, myEvent, myItem); - } - - /** - * Gets the value(s) for subject (Who and/or what test is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans) - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who and/or what test is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans) - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who and/or what test is about) - * - *

- * Definition: - * Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans) - *

- */ - public DiagnosticOrder setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for orderer (Who ordered the test). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The practitioner that holds legal responsibility for ordering the investigation - *

- */ - public ResourceReferenceDt getOrderer() { - if (myOrderer == null) { - myOrderer = new ResourceReferenceDt(); - } - return myOrderer; - } - - - /** - * Gets the value(s) for orderer (Who ordered the test). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The practitioner that holds legal responsibility for ordering the investigation - *

- */ - public ResourceReferenceDt getOrdererElement() { - if (myOrderer == null) { - myOrderer = new ResourceReferenceDt(); - } - return myOrderer; - } - - - /** - * Sets the value(s) for orderer (Who ordered the test) - * - *

- * Definition: - * The practitioner that holds legal responsibility for ordering the investigation - *

- */ - public DiagnosticOrder setOrderer(ResourceReferenceDt theValue) { - myOrderer = theValue; - return this; - } - - - /** - * Gets the value(s) for identifier (Identifiers assigned to this order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifiers assigned to this order by the order or by the receiver - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifiers assigned to this order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifiers assigned to this order by the order or by the receiver - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifiers assigned to this order) - * - *

- * Definition: - * Identifiers assigned to this order by the order or by the receiver - *

- */ - public DiagnosticOrder setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Identifiers assigned to this order) - * - *

- * Definition: - * Identifiers assigned to this order by the order or by the receiver - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Identifiers assigned to this order), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifiers assigned to this order by the order or by the receiver - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Identifiers assigned to this order) - * - *

- * Definition: - * Identifiers assigned to this order by the order or by the receiver - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public DiagnosticOrder addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Identifiers assigned to this order) - * - *

- * Definition: - * Identifiers assigned to this order by the order or by the receiver - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public DiagnosticOrder addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for encounter (The encounter that this diagnostic order is associated with). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An encounter that provides additional informaton about the healthcare context in which this request is made - *

- */ - public ResourceReferenceDt getEncounter() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Gets the value(s) for encounter (The encounter that this diagnostic order is associated with). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An encounter that provides additional informaton about the healthcare context in which this request is made - *

- */ - public ResourceReferenceDt getEncounterElement() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Sets the value(s) for encounter (The encounter that this diagnostic order is associated with) - * - *

- * Definition: - * An encounter that provides additional informaton about the healthcare context in which this request is made - *

- */ - public DiagnosticOrder setEncounter(ResourceReferenceDt theValue) { - myEncounter = theValue; - return this; - } - - - /** - * Gets the value(s) for clinicalNotes (Explanation/Justification for test). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An explanation or justification for why this diagnostic investigation is being requested - *

- */ - public StringDt getClinicalNotes() { - if (myClinicalNotes == null) { - myClinicalNotes = new StringDt(); - } - return myClinicalNotes; - } - - - /** - * Gets the value(s) for clinicalNotes (Explanation/Justification for test). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An explanation or justification for why this diagnostic investigation is being requested - *

- */ - public StringDt getClinicalNotesElement() { - if (myClinicalNotes == null) { - myClinicalNotes = new StringDt(); - } - return myClinicalNotes; - } - - - /** - * Sets the value(s) for clinicalNotes (Explanation/Justification for test) - * - *

- * Definition: - * An explanation or justification for why this diagnostic investigation is being requested - *

- */ - public DiagnosticOrder setClinicalNotes(StringDt theValue) { - myClinicalNotes = theValue; - return this; - } - - /** - * Sets the value for clinicalNotes (Explanation/Justification for test) - * - *

- * Definition: - * An explanation or justification for why this diagnostic investigation is being requested - *

- */ - public DiagnosticOrder setClinicalNotes( String theString) { - myClinicalNotes = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for specimen (If the whole order relates to specific specimens). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * One or more specimens that the diagnostic investigation is about - *

- */ - public java.util.List getSpecimen() { - if (mySpecimen == null) { - mySpecimen = new java.util.ArrayList(); - } - return mySpecimen; - } - - - /** - * Gets the value(s) for specimen (If the whole order relates to specific specimens). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * One or more specimens that the diagnostic investigation is about - *

- */ - public java.util.List getSpecimenElement() { - if (mySpecimen == null) { - mySpecimen = new java.util.ArrayList(); - } - return mySpecimen; - } - - - /** - * Sets the value(s) for specimen (If the whole order relates to specific specimens) - * - *

- * Definition: - * One or more specimens that the diagnostic investigation is about - *

- */ - public DiagnosticOrder setSpecimen(java.util.List theValue) { - mySpecimen = theValue; - return this; - } - - /** - * Adds and returns a new value for specimen (If the whole order relates to specific specimens) - * - *

- * Definition: - * One or more specimens that the diagnostic investigation is about - *

- */ - public ResourceReferenceDt addSpecimen() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSpecimen().add(newType); - return newType; - } - - /** - * Gets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the order - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DiagnosticOrderStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the order - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DiagnosticOrderStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed) - * - *

- * Definition: - * The status of the order - *

- */ - public DiagnosticOrder setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed) - * - *

- * Definition: - * The status of the order - *

- */ - public DiagnosticOrder setStatus(DiagnosticOrderStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for priority (routine | urgent | stat | asap). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The clinical priority associated with this order - *

- */ - public BoundCodeDt getPriority() { - if (myPriority == null) { - myPriority = new BoundCodeDt(DiagnosticOrderPriorityEnum.VALUESET_BINDER); - } - return myPriority; - } - - - /** - * Gets the value(s) for priority (routine | urgent | stat | asap). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The clinical priority associated with this order - *

- */ - public BoundCodeDt getPriorityElement() { - if (myPriority == null) { - myPriority = new BoundCodeDt(DiagnosticOrderPriorityEnum.VALUESET_BINDER); - } - return myPriority; - } - - - /** - * Sets the value(s) for priority (routine | urgent | stat | asap) - * - *

- * Definition: - * The clinical priority associated with this order - *

- */ - public DiagnosticOrder setPriority(BoundCodeDt theValue) { - myPriority = theValue; - return this; - } - - /** - * Sets the value(s) for priority (routine | urgent | stat | asap) - * - *

- * Definition: - * The clinical priority associated with this order - *

- */ - public DiagnosticOrder setPriority(DiagnosticOrderPriorityEnum theValue) { - getPriority().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for event (A list of events of interest in the lifecycle). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed - *

- */ - public java.util.List getEvent() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Gets the value(s) for event (A list of events of interest in the lifecycle). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed - *

- */ - public java.util.List getEventElement() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Sets the value(s) for event (A list of events of interest in the lifecycle) - * - *

- * Definition: - * A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed - *

- */ - public DiagnosticOrder setEvent(java.util.List theValue) { - myEvent = theValue; - return this; - } - - /** - * Adds and returns a new value for event (A list of events of interest in the lifecycle) - * - *

- * Definition: - * A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed - *

- */ - public Event addEvent() { - Event newType = new Event(); - getEvent().add(newType); - return newType; - } - - /** - * Gets the first repetition for event (A list of events of interest in the lifecycle), - * creating it if it does not already exist. - * - *

- * Definition: - * A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed - *

- */ - public Event getEventFirstRep() { - if (getEvent().isEmpty()) { - return addEvent(); - } - return getEvent().get(0); - } - - /** - * Gets the value(s) for item (The items the orderer requested). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested - *

- */ - public java.util.List getItem() { - if (myItem == null) { - myItem = new java.util.ArrayList(); - } - return myItem; - } - - - /** - * Gets the value(s) for item (The items the orderer requested). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested - *

- */ - public java.util.List getItemElement() { - if (myItem == null) { - myItem = new java.util.ArrayList(); - } - return myItem; - } - - - /** - * Sets the value(s) for item (The items the orderer requested) - * - *

- * Definition: - * The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested - *

- */ - public DiagnosticOrder setItem(java.util.List theValue) { - myItem = theValue; - return this; - } - - /** - * Adds and returns a new value for item (The items the orderer requested) - * - *

- * Definition: - * The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested - *

- */ - public Item addItem() { - Item newType = new Item(); - getItem().add(newType); - return newType; - } - - /** - * Gets the first repetition for item (The items the orderer requested), - * creating it if it does not already exist. - * - *

- * Definition: - * The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested - *

- */ - public Item getItemFirstRep() { - if (getItem().isEmpty()) { - return addItem(); - } - return getItem().get(0); - } - - /** - * Block class for child element: DiagnosticOrder.event (A list of events of interest in the lifecycle) - * - *

- * Definition: - * A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed - *

- */ - @Block() - public static class Event - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="status", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="requested | received | accepted | in progress | review | completed | suspended | rejected | failed", - formalDefinition="The status for the event" - ) - private BoundCodeDt myStatus; - - @Child(name="description", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="More information about the event and it's context", - formalDefinition="Additional information about the event that occurred - e.g. if the status remained unchanged" - ) - private CodeableConceptDt myDescription; - - @Child(name="dateTime", type=DateTimeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="The date at which the event happened", - formalDefinition="The date/time at which the event occurred" - ) - private DateTimeDt myDateTime; - - @Child(name="actor", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Who recorded or did this", - formalDefinition="The person who was responsible for performing or recording the action" - ) - private ResourceReferenceDt myActor; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myDescription, myDateTime, myActor); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStatus, myDescription, myDateTime, myActor); - } - - /** - * Gets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status for the event - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DiagnosticOrderStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status for the event - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DiagnosticOrderStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed) - * - *

- * Definition: - * The status for the event - *

- */ - public Event setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed) - * - *

- * Definition: - * The status for the event - *

- */ - public Event setStatus(DiagnosticOrderStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for description (More information about the event and it's context). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional information about the event that occurred - e.g. if the status remained unchanged - *

- */ - public CodeableConceptDt getDescription() { - if (myDescription == null) { - myDescription = new CodeableConceptDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (More information about the event and it's context). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional information about the event that occurred - e.g. if the status remained unchanged - *

- */ - public CodeableConceptDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new CodeableConceptDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (More information about the event and it's context) - * - *

- * Definition: - * Additional information about the event that occurred - e.g. if the status remained unchanged - *

- */ - public Event setDescription(CodeableConceptDt theValue) { - myDescription = theValue; - return this; - } - - - /** - * Gets the value(s) for dateTime (The date at which the event happened). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date/time at which the event occurred - *

- */ - public DateTimeDt getDateTime() { - if (myDateTime == null) { - myDateTime = new DateTimeDt(); - } - return myDateTime; - } - - - /** - * Gets the value(s) for dateTime (The date at which the event happened). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date/time at which the event occurred - *

- */ - public DateTimeDt getDateTimeElement() { - if (myDateTime == null) { - myDateTime = new DateTimeDt(); - } - return myDateTime; - } - - - /** - * Sets the value(s) for dateTime (The date at which the event happened) - * - *

- * Definition: - * The date/time at which the event occurred - *

- */ - public Event setDateTime(DateTimeDt theValue) { - myDateTime = theValue; - return this; - } - - /** - * Sets the value for dateTime (The date at which the event happened) - * - *

- * Definition: - * The date/time at which the event occurred - *

- */ - public Event setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) { - myDateTime = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for dateTime (The date at which the event happened) - * - *

- * Definition: - * The date/time at which the event occurred - *

- */ - public Event setDateTimeWithSecondsPrecision( Date theDate) { - myDateTime = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for actor (Who recorded or did this). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who was responsible for performing or recording the action - *

- */ - public ResourceReferenceDt getActor() { - if (myActor == null) { - myActor = new ResourceReferenceDt(); - } - return myActor; - } - - - /** - * Gets the value(s) for actor (Who recorded or did this). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who was responsible for performing or recording the action - *

- */ - public ResourceReferenceDt getActorElement() { - if (myActor == null) { - myActor = new ResourceReferenceDt(); - } - return myActor; - } - - - /** - * Sets the value(s) for actor (Who recorded or did this) - * - *

- * Definition: - * The person who was responsible for performing or recording the action - *

- */ - public Event setActor(ResourceReferenceDt theValue) { - myActor = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: DiagnosticOrder.item (The items the orderer requested) - * - *

- * Definition: - * The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested - *

- */ - @Block() - public static class Item - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Code to indicate the item (test or panel) being ordered", - formalDefinition="A code that identifies a particular diagnostic investigation, or panel of investigations, that have been requested" - ) - private CodeableConceptDt myCode; - - @Child(name="specimen", order=1, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Specimen.class }) - @Description( - shortDefinition="If this item relates to specific specimens", - formalDefinition="If the item is related to a specific speciment" - ) - private java.util.List mySpecimen; - - @Child(name="bodySite", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Location of requested test (if applicable)", - formalDefinition="Anatomical location where the request test should be performed" - ) - private CodeableConceptDt myBodySite; - - @Child(name="status", type=CodeDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="requested | received | accepted | in progress | review | completed | suspended | rejected | failed", - formalDefinition="The status of this individual item within the order" - ) - private BoundCodeDt myStatus; - - @Child(name="event", type=Event.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Events specific to this item", - formalDefinition="A summary of the events of interest that have occurred as this item of the request is processed" - ) - private java.util.List myEvent; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, mySpecimen, myBodySite, myStatus, myEvent); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, mySpecimen, myBodySite, myStatus, myEvent); - } - - /** - * Gets the value(s) for code (Code to indicate the item (test or panel) being ordered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies a particular diagnostic investigation, or panel of investigations, that have been requested - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Code to indicate the item (test or panel) being ordered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies a particular diagnostic investigation, or panel of investigations, that have been requested - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Code to indicate the item (test or panel) being ordered) - * - *

- * Definition: - * A code that identifies a particular diagnostic investigation, or panel of investigations, that have been requested - *

- */ - public Item setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for specimen (If this item relates to specific specimens). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the item is related to a specific speciment - *

- */ - public java.util.List getSpecimen() { - if (mySpecimen == null) { - mySpecimen = new java.util.ArrayList(); - } - return mySpecimen; - } - - - /** - * Gets the value(s) for specimen (If this item relates to specific specimens). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the item is related to a specific speciment - *

- */ - public java.util.List getSpecimenElement() { - if (mySpecimen == null) { - mySpecimen = new java.util.ArrayList(); - } - return mySpecimen; - } - - - /** - * Sets the value(s) for specimen (If this item relates to specific specimens) - * - *

- * Definition: - * If the item is related to a specific speciment - *

- */ - public Item setSpecimen(java.util.List theValue) { - mySpecimen = theValue; - return this; - } - - /** - * Adds and returns a new value for specimen (If this item relates to specific specimens) - * - *

- * Definition: - * If the item is related to a specific speciment - *

- */ - public ResourceReferenceDt addSpecimen() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSpecimen().add(newType); - return newType; - } - - /** - * Gets the value(s) for bodySite (Location of requested test (if applicable)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Anatomical location where the request test should be performed - *

- */ - public CodeableConceptDt getBodySite() { - if (myBodySite == null) { - myBodySite = new CodeableConceptDt(); - } - return myBodySite; - } - - - /** - * Gets the value(s) for bodySite (Location of requested test (if applicable)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Anatomical location where the request test should be performed - *

- */ - public CodeableConceptDt getBodySiteElement() { - if (myBodySite == null) { - myBodySite = new CodeableConceptDt(); - } - return myBodySite; - } - - - /** - * Sets the value(s) for bodySite (Location of requested test (if applicable)) - * - *

- * Definition: - * Anatomical location where the request test should be performed - *

- */ - public Item setBodySite(CodeableConceptDt theValue) { - myBodySite = theValue; - return this; - } - - - /** - * Gets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this individual item within the order - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DiagnosticOrderStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this individual item within the order - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DiagnosticOrderStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed) - * - *

- * Definition: - * The status of this individual item within the order - *

- */ - public Item setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (requested | received | accepted | in progress | review | completed | suspended | rejected | failed) - * - *

- * Definition: - * The status of this individual item within the order - *

- */ - public Item setStatus(DiagnosticOrderStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for event (Events specific to this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A summary of the events of interest that have occurred as this item of the request is processed - *

- */ - public java.util.List getEvent() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Gets the value(s) for event (Events specific to this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A summary of the events of interest that have occurred as this item of the request is processed - *

- */ - public java.util.List getEventElement() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Sets the value(s) for event (Events specific to this item) - * - *

- * Definition: - * A summary of the events of interest that have occurred as this item of the request is processed - *

- */ - public Item setEvent(java.util.List theValue) { - myEvent = theValue; - return this; - } - - /** - * Adds and returns a new value for event (Events specific to this item) - * - *

- * Definition: - * A summary of the events of interest that have occurred as this item of the request is processed - *

- */ - public Event addEvent() { - Event newType = new Event(); - getEvent().add(newType); - return newType; - } - - /** - * Gets the first repetition for event (Events specific to this item), - * creating it if it does not already exist. - * - *

- * Definition: - * A summary of the events of interest that have occurred as this item of the request is processed - *

- */ - public Event getEventFirstRep() { - if (getEvent().isEmpty()) { - return addEvent(); - } - return getEvent().get(0); - } - - - } - - - - - @Override - public String getResourceName() { - return "DiagnosticOrder"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DiagnosticReport.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DiagnosticReport.java deleted file mode 100644 index af2d11d06bb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DiagnosticReport.java +++ /dev/null @@ -1,1853 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR DiagnosticReport Resource - * (A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports) - * - *

- * Definition: - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports - *

- * - *

- * Requirements: - * To support reporting for any diagnostic report into a clinical data repository. - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/DiagnosticReport - *

- * - */ -@ResourceDef(name="DiagnosticReport", profile="http://hl7.org/fhir/profiles/DiagnosticReport", id="diagnosticreport") -public class DiagnosticReport - extends BaseResource implements IResource { - - /** - * Search parameter constant for status - *

- * Description: The status of the report
- * Type: token
- * Path: DiagnosticReport.status
- *

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

- * Description: The status of the report
- * Type: token
- * Path: DiagnosticReport.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for issued - *

- * Description: When the report was issued
- * Type: date
- * Path: DiagnosticReport.issued
- *

- */ - @SearchParamDefinition(name="issued", path="DiagnosticReport.issued", description="When the report was issued", type="date" ) - public static final String SP_ISSUED = "issued"; - - /** - * Fluent Client search parameter constant for issued - *

- * Description: When the report was issued
- * Type: date
- * Path: DiagnosticReport.issued
- *

- */ - public static final DateClientParam ISSUED = new DateClientParam(SP_ISSUED); - - /** - * Search parameter constant for subject - *

- * Description: The subject of the report
- * Type: reference
- * Path: DiagnosticReport.subject
- *

- */ - @SearchParamDefinition(name="subject", path="DiagnosticReport.subject", description="The subject of the report", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject of the report
- * Type: reference
- * Path: DiagnosticReport.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticReport.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("DiagnosticReport.subject"); - - /** - * Search parameter constant for performer - *

- * Description: Who was the source of the report (organization)
- * Type: reference
- * Path: DiagnosticReport.performer
- *

- */ - @SearchParamDefinition(name="performer", path="DiagnosticReport.performer", description="Who was the source of the report (organization)", type="reference" ) - public static final String SP_PERFORMER = "performer"; - - /** - * Fluent Client search parameter constant for performer - *

- * Description: Who was the source of the report (organization)
- * Type: reference
- * Path: DiagnosticReport.performer
- *

- */ - public static final ReferenceClientParam PERFORMER = new ReferenceClientParam(SP_PERFORMER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticReport.performer". - */ - public static final Include INCLUDE_PERFORMER = new Include("DiagnosticReport.performer"); - - /** - * Search parameter constant for identifier - *

- * Description: An identifier for the report
- * Type: token
- * Path: DiagnosticReport.identifier
- *

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

- * Description: An identifier for the report
- * Type: token
- * Path: DiagnosticReport.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for service - *

- * Description: Which diagnostic discipline/department created the report
- * Type: token
- * Path: DiagnosticReport.serviceCategory
- *

- */ - @SearchParamDefinition(name="service", path="DiagnosticReport.serviceCategory", description="Which diagnostic discipline/department created the report", type="token" ) - public static final String SP_SERVICE = "service"; - - /** - * Fluent Client search parameter constant for service - *

- * Description: Which diagnostic discipline/department created the report
- * Type: token
- * Path: DiagnosticReport.serviceCategory
- *

- */ - public static final TokenClientParam SERVICE = new TokenClientParam(SP_SERVICE); - - /** - * Search parameter constant for date - *

- * Description: The clinically relevant time of the report
- * Type: date
- * Path: DiagnosticReport.diagnostic[x]
- *

- */ - @SearchParamDefinition(name="date", path="DiagnosticReport.diagnostic[x]", description="The clinically relevant time of the report", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: The clinically relevant time of the report
- * Type: date
- * Path: DiagnosticReport.diagnostic[x]
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for specimen - *

- * Description: The specimen details
- * Type: reference
- * Path: DiagnosticReport.specimen
- *

- */ - @SearchParamDefinition(name="specimen", path="DiagnosticReport.specimen", description="The specimen details", type="reference" ) - public static final String SP_SPECIMEN = "specimen"; - - /** - * Fluent Client search parameter constant for specimen - *

- * Description: The specimen details
- * Type: reference
- * Path: DiagnosticReport.specimen
- *

- */ - public static final ReferenceClientParam SPECIMEN = new ReferenceClientParam(SP_SPECIMEN); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticReport.specimen". - */ - public static final Include INCLUDE_SPECIMEN = new Include("DiagnosticReport.specimen"); - - /** - * Search parameter constant for name - *

- * Description: The name of the report (e.g. the code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result)
- * Type: token
- * Path: DiagnosticReport.name
- *

- */ - @SearchParamDefinition(name="name", path="DiagnosticReport.name", description="The name of the report (e.g. the code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result)", type="token" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: The name of the report (e.g. the code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result)
- * Type: token
- * Path: DiagnosticReport.name
- *

- */ - public static final TokenClientParam NAME = new TokenClientParam(SP_NAME); - - /** - * Search parameter constant for result - *

- * Description: Link to an atomic result (observation resource)
- * Type: reference
- * Path: DiagnosticReport.result
- *

- */ - @SearchParamDefinition(name="result", path="DiagnosticReport.result", description="Link to an atomic result (observation resource)", type="reference" ) - public static final String SP_RESULT = "result"; - - /** - * Fluent Client search parameter constant for result - *

- * Description: Link to an atomic result (observation resource)
- * Type: reference
- * Path: DiagnosticReport.result
- *

- */ - public static final ReferenceClientParam RESULT = new ReferenceClientParam(SP_RESULT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticReport.result". - */ - public static final Include INCLUDE_RESULT = new Include("DiagnosticReport.result"); - - /** - * Search parameter constant for diagnosis - *

- * Description: A coded diagnosis on the report
- * Type: token
- * Path: DiagnosticReport.codedDiagnosis
- *

- */ - @SearchParamDefinition(name="diagnosis", path="DiagnosticReport.codedDiagnosis", description="A coded diagnosis on the report", type="token" ) - public static final String SP_DIAGNOSIS = "diagnosis"; - - /** - * Fluent Client search parameter constant for diagnosis - *

- * Description: A coded diagnosis on the report
- * Type: token
- * Path: DiagnosticReport.codedDiagnosis
- *

- */ - public static final TokenClientParam DIAGNOSIS = new TokenClientParam(SP_DIAGNOSIS); - - /** - * Search parameter constant for image - *

- * Description:
- * Type: reference
- * Path: DiagnosticReport.image.link
- *

- */ - @SearchParamDefinition(name="image", path="DiagnosticReport.image.link", description="", type="reference" ) - public static final String SP_IMAGE = "image"; - - /** - * Fluent Client search parameter constant for image - *

- * Description:
- * Type: reference
- * Path: DiagnosticReport.image.link
- *

- */ - public static final ReferenceClientParam IMAGE = new ReferenceClientParam(SP_IMAGE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticReport.image.link". - */ - public static final Include INCLUDE_IMAGE_LINK = new Include("DiagnosticReport.image.link"); - - /** - * Search parameter constant for request - *

- * Description:
- * Type: reference
- * Path: DiagnosticReport.requestDetail
- *

- */ - @SearchParamDefinition(name="request", path="DiagnosticReport.requestDetail", description="", type="reference" ) - public static final String SP_REQUEST = "request"; - - /** - * Fluent Client search parameter constant for request - *

- * Description:
- * Type: reference
- * Path: DiagnosticReport.requestDetail
- *

- */ - public static final ReferenceClientParam REQUEST = new ReferenceClientParam(SP_REQUEST); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticReport.requestDetail". - */ - public static final Include INCLUDE_REQUESTDETAIL = new Include("DiagnosticReport.requestDetail"); - - - @Child(name="name", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Name/Code for this diagnostic report", - formalDefinition="A code or name that describes this diagnostic report" - ) - private CodeableConceptDt myName; - - @Child(name="status", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="registered | partial | final | corrected +", - formalDefinition="The status of the diagnostic report as a whole" - ) - private BoundCodeDt myStatus; - - @Child(name="issued", type=DateTimeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Date this version was released", - formalDefinition="The date and/or time that this version of the report was released from the source diagnostic service" - ) - private DateTimeDt myIssued; - - @Child(name="subject", order=3, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="The subject of the report, usually, but not always, the patient", - formalDefinition="The subject of the report. Usually, but not always, this is a patient. However diagnostic services also perform analyses on specimens collected from a variety of other sources" - ) - private ResourceReferenceDt mySubject; - - @Child(name="performer", order=4, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Responsible Diagnostic Service", - formalDefinition="The diagnostic service that is responsible for issuing the report" - ) - private ResourceReferenceDt myPerformer; - - @Child(name="identifier", type=IdentifierDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Id for external references to this report", - formalDefinition="The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider" - ) - private IdentifierDt myIdentifier; - - @Child(name="requestDetail", order=6, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.DiagnosticOrder.class }) - @Description( - shortDefinition="What was requested", - formalDefinition="Details concerning a test requested." - ) - private java.util.List myRequestDetail; - - @Child(name="serviceCategory", type=CodeableConceptDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Biochemistry, Hematology etc.", - formalDefinition="The section of the diagnostic service that performs the examination e.g. biochemistry, hematology, MRI" - ) - private CodeableConceptDt myServiceCategory; - - @Child(name="diagnostic", order=8, min=1, max=1, type={ - DateTimeDt.class, PeriodDt.class }) - @Description( - shortDefinition="Physiologically Relevant time/time-period for report", - formalDefinition="The time or time-period the observed values are related to. This is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself" - ) - private IDatatype myDiagnostic; - - @Child(name="specimen", order=9, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Specimen.class }) - @Description( - shortDefinition="Specimens this report is based on", - formalDefinition="Details about the specimens on which this Disagnostic report is based" - ) - private java.util.List mySpecimen; - - @Child(name="result", order=10, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Observation.class }) - @Description( - shortDefinition="Observations - simple, or complex nested groups", - formalDefinition="Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\")" - ) - private java.util.List myResult; - - @Child(name="imagingStudy", order=11, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.ImagingStudy.class }) - @Description( - shortDefinition="Reference to full details of imaging associated with the diagnostic report", - formalDefinition="One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images" - ) - private java.util.List myImagingStudy; - - @Child(name="image", order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Key images associated with this report", - formalDefinition="A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)" - ) - private java.util.List myImage; - - @Child(name="conclusion", type=StringDt.class, order=13, min=0, max=1) - @Description( - shortDefinition="Clinical Interpretation of test results", - formalDefinition="Concise and clinically contextualized narrative interpretation of the diagnostic report" - ) - private StringDt myConclusion; - - @Child(name="codedDiagnosis", type=CodeableConceptDt.class, order=14, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Codes for the conclusion", - formalDefinition="" - ) - private java.util.List myCodedDiagnosis; - - @Child(name="presentedForm", type=AttachmentDt.class, order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Entire Report as issued", - formalDefinition="Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent." - ) - private java.util.List myPresentedForm; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myStatus, myIssued, mySubject, myPerformer, myIdentifier, myRequestDetail, myServiceCategory, myDiagnostic, mySpecimen, myResult, myImagingStudy, myImage, myConclusion, myCodedDiagnosis, myPresentedForm); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myStatus, myIssued, mySubject, myPerformer, myIdentifier, myRequestDetail, myServiceCategory, myDiagnostic, mySpecimen, myResult, myImagingStudy, myImage, myConclusion, myCodedDiagnosis, myPresentedForm); - } - - /** - * Gets the value(s) for name (Name/Code for this diagnostic report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code or name that describes this diagnostic report - *

- */ - public CodeableConceptDt getName() { - if (myName == null) { - myName = new CodeableConceptDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name/Code for this diagnostic report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code or name that describes this diagnostic report - *

- */ - public CodeableConceptDt getNameElement() { - if (myName == null) { - myName = new CodeableConceptDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name/Code for this diagnostic report) - * - *

- * Definition: - * A code or name that describes this diagnostic report - *

- */ - public DiagnosticReport setName(CodeableConceptDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for status (registered | partial | final | corrected +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the diagnostic report as a whole - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DiagnosticReportStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (registered | partial | final | corrected +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the diagnostic report as a whole - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DiagnosticReportStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (registered | partial | final | corrected +) - * - *

- * Definition: - * The status of the diagnostic report as a whole - *

- */ - public DiagnosticReport setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (registered | partial | final | corrected +) - * - *

- * Definition: - * The status of the diagnostic report as a whole - *

- */ - public DiagnosticReport setStatus(DiagnosticReportStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for issued (Date this version was released). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and/or time that this version of the report was released from the source diagnostic service - *

- */ - public DateTimeDt getIssued() { - if (myIssued == null) { - myIssued = new DateTimeDt(); - } - return myIssued; - } - - - /** - * Gets the value(s) for issued (Date this version was released). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and/or time that this version of the report was released from the source diagnostic service - *

- */ - public DateTimeDt getIssuedElement() { - if (myIssued == null) { - myIssued = new DateTimeDt(); - } - return myIssued; - } - - - /** - * Sets the value(s) for issued (Date this version was released) - * - *

- * Definition: - * The date and/or time that this version of the report was released from the source diagnostic service - *

- */ - public DiagnosticReport setIssued(DateTimeDt theValue) { - myIssued = theValue; - return this; - } - - /** - * Sets the value for issued (Date this version was released) - * - *

- * Definition: - * The date and/or time that this version of the report was released from the source diagnostic service - *

- */ - public DiagnosticReport setIssued( Date theDate, TemporalPrecisionEnum thePrecision) { - myIssued = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for issued (Date this version was released) - * - *

- * Definition: - * The date and/or time that this version of the report was released from the source diagnostic service - *

- */ - public DiagnosticReport setIssuedWithSecondsPrecision( Date theDate) { - myIssued = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for subject (The subject of the report, usually, but not always, the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The subject of the report. Usually, but not always, this is a patient. However diagnostic services also perform analyses on specimens collected from a variety of other sources - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (The subject of the report, usually, but not always, the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The subject of the report. Usually, but not always, this is a patient. However diagnostic services also perform analyses on specimens collected from a variety of other sources - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (The subject of the report, usually, but not always, the patient) - * - *

- * Definition: - * The subject of the report. Usually, but not always, this is a patient. However diagnostic services also perform analyses on specimens collected from a variety of other sources - *

- */ - public DiagnosticReport setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for performer (Responsible Diagnostic Service). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The diagnostic service that is responsible for issuing the report - *

- */ - public ResourceReferenceDt getPerformer() { - if (myPerformer == null) { - myPerformer = new ResourceReferenceDt(); - } - return myPerformer; - } - - - /** - * Gets the value(s) for performer (Responsible Diagnostic Service). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The diagnostic service that is responsible for issuing the report - *

- */ - public ResourceReferenceDt getPerformerElement() { - if (myPerformer == null) { - myPerformer = new ResourceReferenceDt(); - } - return myPerformer; - } - - - /** - * Sets the value(s) for performer (Responsible Diagnostic Service) - * - *

- * Definition: - * The diagnostic service that is responsible for issuing the report - *

- */ - public DiagnosticReport setPerformer(ResourceReferenceDt theValue) { - myPerformer = theValue; - return this; - } - - - /** - * Gets the value(s) for identifier (Id for external references to this report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Id for external references to this report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Id for external references to this report) - * - *

- * Definition: - * The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider - *

- */ - public DiagnosticReport setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Id for external references to this report) - * - *

- * Definition: - * The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider - *

- */ - public DiagnosticReport setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Id for external references to this report) - * - *

- * Definition: - * The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider - *

- */ - public DiagnosticReport setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for requestDetail (What was requested). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details concerning a test requested. - *

- */ - public java.util.List getRequestDetail() { - if (myRequestDetail == null) { - myRequestDetail = new java.util.ArrayList(); - } - return myRequestDetail; - } - - - /** - * Gets the value(s) for requestDetail (What was requested). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details concerning a test requested. - *

- */ - public java.util.List getRequestDetailElement() { - if (myRequestDetail == null) { - myRequestDetail = new java.util.ArrayList(); - } - return myRequestDetail; - } - - - /** - * Sets the value(s) for requestDetail (What was requested) - * - *

- * Definition: - * Details concerning a test requested. - *

- */ - public DiagnosticReport setRequestDetail(java.util.List theValue) { - myRequestDetail = theValue; - return this; - } - - /** - * Adds and returns a new value for requestDetail (What was requested) - * - *

- * Definition: - * Details concerning a test requested. - *

- */ - public ResourceReferenceDt addRequestDetail() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getRequestDetail().add(newType); - return newType; - } - - /** - * Gets the value(s) for serviceCategory (Biochemistry, Hematology etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The section of the diagnostic service that performs the examination e.g. biochemistry, hematology, MRI - *

- */ - public CodeableConceptDt getServiceCategory() { - if (myServiceCategory == null) { - myServiceCategory = new CodeableConceptDt(); - } - return myServiceCategory; - } - - - /** - * Gets the value(s) for serviceCategory (Biochemistry, Hematology etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The section of the diagnostic service that performs the examination e.g. biochemistry, hematology, MRI - *

- */ - public CodeableConceptDt getServiceCategoryElement() { - if (myServiceCategory == null) { - myServiceCategory = new CodeableConceptDt(); - } - return myServiceCategory; - } - - - /** - * Sets the value(s) for serviceCategory (Biochemistry, Hematology etc.) - * - *

- * Definition: - * The section of the diagnostic service that performs the examination e.g. biochemistry, hematology, MRI - *

- */ - public DiagnosticReport setServiceCategory(CodeableConceptDt theValue) { - myServiceCategory = theValue; - return this; - } - - - /** - * Gets the value(s) for diagnostic[x] (Physiologically Relevant time/time-period for report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time or time-period the observed values are related to. This is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself - *

- */ - public IDatatype getDiagnostic() { - return myDiagnostic; - } - - - /** - * Gets the value(s) for diagnostic[x] (Physiologically Relevant time/time-period for report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time or time-period the observed values are related to. This is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself - *

- */ - public IDatatype getDiagnosticElement() { - return myDiagnostic; - } - - - /** - * Sets the value(s) for diagnostic[x] (Physiologically Relevant time/time-period for report) - * - *

- * Definition: - * The time or time-period the observed values are related to. This is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself - *

- */ - public DiagnosticReport setDiagnostic(IDatatype theValue) { - myDiagnostic = theValue; - return this; - } - - - /** - * Gets the value(s) for specimen (Specimens this report is based on). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details about the specimens on which this Disagnostic report is based - *

- */ - public java.util.List getSpecimen() { - if (mySpecimen == null) { - mySpecimen = new java.util.ArrayList(); - } - return mySpecimen; - } - - - /** - * Gets the value(s) for specimen (Specimens this report is based on). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details about the specimens on which this Disagnostic report is based - *

- */ - public java.util.List getSpecimenElement() { - if (mySpecimen == null) { - mySpecimen = new java.util.ArrayList(); - } - return mySpecimen; - } - - - /** - * Sets the value(s) for specimen (Specimens this report is based on) - * - *

- * Definition: - * Details about the specimens on which this Disagnostic report is based - *

- */ - public DiagnosticReport setSpecimen(java.util.List theValue) { - mySpecimen = theValue; - return this; - } - - /** - * Adds and returns a new value for specimen (Specimens this report is based on) - * - *

- * Definition: - * Details about the specimens on which this Disagnostic report is based - *

- */ - public ResourceReferenceDt addSpecimen() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSpecimen().add(newType); - return newType; - } - - /** - * Gets the value(s) for result (Observations - simple, or complex nested groups). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\") - *

- */ - public java.util.List getResult() { - if (myResult == null) { - myResult = new java.util.ArrayList(); - } - return myResult; - } - - - /** - * Gets the value(s) for result (Observations - simple, or complex nested groups). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\") - *

- */ - public java.util.List getResultElement() { - if (myResult == null) { - myResult = new java.util.ArrayList(); - } - return myResult; - } - - - /** - * Sets the value(s) for result (Observations - simple, or complex nested groups) - * - *

- * Definition: - * Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\") - *

- */ - public DiagnosticReport setResult(java.util.List theValue) { - myResult = theValue; - return this; - } - - /** - * Adds and returns a new value for result (Observations - simple, or complex nested groups) - * - *

- * Definition: - * Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\") - *

- */ - public ResourceReferenceDt addResult() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getResult().add(newType); - return newType; - } - - /** - * Gets the value(s) for imagingStudy (Reference to full details of imaging associated with the diagnostic report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images - *

- */ - public java.util.List getImagingStudy() { - if (myImagingStudy == null) { - myImagingStudy = new java.util.ArrayList(); - } - return myImagingStudy; - } - - - /** - * Gets the value(s) for imagingStudy (Reference to full details of imaging associated with the diagnostic report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images - *

- */ - public java.util.List getImagingStudyElement() { - if (myImagingStudy == null) { - myImagingStudy = new java.util.ArrayList(); - } - return myImagingStudy; - } - - - /** - * Sets the value(s) for imagingStudy (Reference to full details of imaging associated with the diagnostic report) - * - *

- * Definition: - * One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images - *

- */ - public DiagnosticReport setImagingStudy(java.util.List theValue) { - myImagingStudy = theValue; - return this; - } - - /** - * Adds and returns a new value for imagingStudy (Reference to full details of imaging associated with the diagnostic report) - * - *

- * Definition: - * One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images - *

- */ - public ResourceReferenceDt addImagingStudy() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getImagingStudy().add(newType); - return newType; - } - - /** - * Gets the value(s) for image (Key images associated with this report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest) - *

- */ - public java.util.List getImage() { - if (myImage == null) { - myImage = new java.util.ArrayList(); - } - return myImage; - } - - - /** - * Gets the value(s) for image (Key images associated with this report). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest) - *

- */ - public java.util.List getImageElement() { - if (myImage == null) { - myImage = new java.util.ArrayList(); - } - return myImage; - } - - - /** - * Sets the value(s) for image (Key images associated with this report) - * - *

- * Definition: - * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest) - *

- */ - public DiagnosticReport setImage(java.util.List theValue) { - myImage = theValue; - return this; - } - - /** - * Adds and returns a new value for image (Key images associated with this report) - * - *

- * Definition: - * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest) - *

- */ - public Image addImage() { - Image newType = new Image(); - getImage().add(newType); - return newType; - } - - /** - * Gets the first repetition for image (Key images associated with this report), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest) - *

- */ - public Image getImageFirstRep() { - if (getImage().isEmpty()) { - return addImage(); - } - return getImage().get(0); - } - - /** - * Gets the value(s) for conclusion (Clinical Interpretation of test results). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Concise and clinically contextualized narrative interpretation of the diagnostic report - *

- */ - public StringDt getConclusion() { - if (myConclusion == null) { - myConclusion = new StringDt(); - } - return myConclusion; - } - - - /** - * Gets the value(s) for conclusion (Clinical Interpretation of test results). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Concise and clinically contextualized narrative interpretation of the diagnostic report - *

- */ - public StringDt getConclusionElement() { - if (myConclusion == null) { - myConclusion = new StringDt(); - } - return myConclusion; - } - - - /** - * Sets the value(s) for conclusion (Clinical Interpretation of test results) - * - *

- * Definition: - * Concise and clinically contextualized narrative interpretation of the diagnostic report - *

- */ - public DiagnosticReport setConclusion(StringDt theValue) { - myConclusion = theValue; - return this; - } - - /** - * Sets the value for conclusion (Clinical Interpretation of test results) - * - *

- * Definition: - * Concise and clinically contextualized narrative interpretation of the diagnostic report - *

- */ - public DiagnosticReport setConclusion( String theString) { - myConclusion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for codedDiagnosis (Codes for the conclusion). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getCodedDiagnosis() { - if (myCodedDiagnosis == null) { - myCodedDiagnosis = new java.util.ArrayList(); - } - return myCodedDiagnosis; - } - - - /** - * Gets the value(s) for codedDiagnosis (Codes for the conclusion). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getCodedDiagnosisElement() { - if (myCodedDiagnosis == null) { - myCodedDiagnosis = new java.util.ArrayList(); - } - return myCodedDiagnosis; - } - - - /** - * Sets the value(s) for codedDiagnosis (Codes for the conclusion) - * - *

- * Definition: - * - *

- */ - public DiagnosticReport setCodedDiagnosis(java.util.List theValue) { - myCodedDiagnosis = theValue; - return this; - } - - /** - * Adds and returns a new value for codedDiagnosis (Codes for the conclusion) - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt addCodedDiagnosis() { - CodeableConceptDt newType = new CodeableConceptDt(); - getCodedDiagnosis().add(newType); - return newType; - } - - /** - * Gets the first repetition for codedDiagnosis (Codes for the conclusion), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getCodedDiagnosisFirstRep() { - if (getCodedDiagnosis().isEmpty()) { - return addCodedDiagnosis(); - } - return getCodedDiagnosis().get(0); - } - - /** - * Gets the value(s) for presentedForm (Entire Report as issued). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent. - *

- */ - public java.util.List getPresentedForm() { - if (myPresentedForm == null) { - myPresentedForm = new java.util.ArrayList(); - } - return myPresentedForm; - } - - - /** - * Gets the value(s) for presentedForm (Entire Report as issued). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent. - *

- */ - public java.util.List getPresentedFormElement() { - if (myPresentedForm == null) { - myPresentedForm = new java.util.ArrayList(); - } - return myPresentedForm; - } - - - /** - * Sets the value(s) for presentedForm (Entire Report as issued) - * - *

- * Definition: - * Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent. - *

- */ - public DiagnosticReport setPresentedForm(java.util.List theValue) { - myPresentedForm = theValue; - return this; - } - - /** - * Adds and returns a new value for presentedForm (Entire Report as issued) - * - *

- * Definition: - * Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent. - *

- */ - public AttachmentDt addPresentedForm() { - AttachmentDt newType = new AttachmentDt(); - getPresentedForm().add(newType); - return newType; - } - - /** - * Gets the first repetition for presentedForm (Entire Report as issued), - * creating it if it does not already exist. - * - *

- * Definition: - * Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent. - *

- */ - public AttachmentDt getPresentedFormFirstRep() { - if (getPresentedForm().isEmpty()) { - return addPresentedForm(); - } - return getPresentedForm().get(0); - } - - /** - * Block class for child element: DiagnosticReport.image (Key images associated with this report) - * - *

- * Definition: - * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest) - *

- */ - @Block() - public static class Image - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="comment", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Comment about the image (e.g. explanation)", - formalDefinition="A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features" - ) - private StringDt myComment; - - @Child(name="link", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Media.class }) - @Description( - shortDefinition="Reference to the image source", - formalDefinition="" - ) - private ResourceReferenceDt myLink; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myComment, myLink); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myComment, myLink); - } - - /** - * Gets the value(s) for comment (Comment about the image (e.g. explanation)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features - *

- */ - public StringDt getComment() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Gets the value(s) for comment (Comment about the image (e.g. explanation)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features - *

- */ - public StringDt getCommentElement() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Sets the value(s) for comment (Comment about the image (e.g. explanation)) - * - *

- * Definition: - * A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features - *

- */ - public Image setComment(StringDt theValue) { - myComment = theValue; - return this; - } - - /** - * Sets the value for comment (Comment about the image (e.g. explanation)) - * - *

- * Definition: - * A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features - *

- */ - public Image setComment( String theString) { - myComment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for link (Reference to the image source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getLink() { - if (myLink == null) { - myLink = new ResourceReferenceDt(); - } - return myLink; - } - - - /** - * Gets the value(s) for link (Reference to the image source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getLinkElement() { - if (myLink == null) { - myLink = new ResourceReferenceDt(); - } - return myLink; - } - - - /** - * Sets the value(s) for link (Reference to the image source) - * - *

- * Definition: - * - *

- */ - public Image setLink(ResourceReferenceDt theValue) { - myLink = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "DiagnosticReport"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DocumentManifest.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DocumentManifest.java deleted file mode 100644 index 162741e9be9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DocumentManifest.java +++ /dev/null @@ -1,1474 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR DocumentManifest Resource - * (A manifest that defines a set of documents) - * - *

- * Definition: - * A manifest that defines a set of documents - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/DocumentManifest - *

- * - */ -@ResourceDef(name="DocumentManifest", profile="http://hl7.org/fhir/profiles/DocumentManifest", id="documentmanifest") -public class DocumentManifest - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: DocumentManifest.masterIdentifier | DocumentManifest.identifier
- *

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

- * Description:
- * Type: token
- * Path: DocumentManifest.masterIdentifier | DocumentManifest.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.subject
- *

- */ - @SearchParamDefinition(name="subject", path="DocumentManifest.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentManifest.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("DocumentManifest.subject"); - - /** - * Search parameter constant for type - *

- * Description:
- * Type: token
- * Path: DocumentManifest.type
- *

- */ - @SearchParamDefinition(name="type", path="DocumentManifest.type", description="", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description:
- * Type: token
- * Path: DocumentManifest.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for recipient - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.recipient
- *

- */ - @SearchParamDefinition(name="recipient", path="DocumentManifest.recipient", description="", type="reference" ) - public static final String SP_RECIPIENT = "recipient"; - - /** - * Fluent Client search parameter constant for recipient - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.recipient
- *

- */ - public static final ReferenceClientParam RECIPIENT = new ReferenceClientParam(SP_RECIPIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentManifest.recipient". - */ - public static final Include INCLUDE_RECIPIENT = new Include("DocumentManifest.recipient"); - - /** - * Search parameter constant for author - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.author
- *

- */ - @SearchParamDefinition(name="author", path="DocumentManifest.author", description="", type="reference" ) - public static final String SP_AUTHOR = "author"; - - /** - * Fluent Client search parameter constant for author - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.author
- *

- */ - public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentManifest.author". - */ - public static final Include INCLUDE_AUTHOR = new Include("DocumentManifest.author"); - - /** - * Search parameter constant for created - *

- * Description:
- * Type: date
- * Path: DocumentManifest.created
- *

- */ - @SearchParamDefinition(name="created", path="DocumentManifest.created", description="", type="date" ) - public static final String SP_CREATED = "created"; - - /** - * Fluent Client search parameter constant for created - *

- * Description:
- * Type: date
- * Path: DocumentManifest.created
- *

- */ - public static final DateClientParam CREATED = new DateClientParam(SP_CREATED); - - /** - * Search parameter constant for status - *

- * Description:
- * Type: token
- * Path: DocumentManifest.status
- *

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

- * Description:
- * Type: token
- * Path: DocumentManifest.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for supersedes - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.supercedes
- *

- */ - @SearchParamDefinition(name="supersedes", path="DocumentManifest.supercedes", description="", type="reference" ) - public static final String SP_SUPERSEDES = "supersedes"; - - /** - * Fluent Client search parameter constant for supersedes - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.supercedes
- *

- */ - public static final ReferenceClientParam SUPERSEDES = new ReferenceClientParam(SP_SUPERSEDES); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentManifest.supercedes". - */ - public static final Include INCLUDE_SUPERCEDES = new Include("DocumentManifest.supercedes"); - - /** - * Search parameter constant for description - *

- * Description:
- * Type: string
- * Path: DocumentManifest.description
- *

- */ - @SearchParamDefinition(name="description", path="DocumentManifest.description", description="", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description:
- * Type: string
- * Path: DocumentManifest.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for confidentiality - *

- * Description:
- * Type: token
- * Path: DocumentManifest.confidentiality
- *

- */ - @SearchParamDefinition(name="confidentiality", path="DocumentManifest.confidentiality", description="", type="token" ) - public static final String SP_CONFIDENTIALITY = "confidentiality"; - - /** - * Fluent Client search parameter constant for confidentiality - *

- * Description:
- * Type: token
- * Path: DocumentManifest.confidentiality
- *

- */ - public static final TokenClientParam CONFIDENTIALITY = new TokenClientParam(SP_CONFIDENTIALITY); - - /** - * Search parameter constant for content - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.content
- *

- */ - @SearchParamDefinition(name="content", path="DocumentManifest.content", description="", type="reference" ) - public static final String SP_CONTENT = "content"; - - /** - * Fluent Client search parameter constant for content - *

- * Description:
- * Type: reference
- * Path: DocumentManifest.content
- *

- */ - public static final ReferenceClientParam CONTENT = new ReferenceClientParam(SP_CONTENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentManifest.content". - */ - public static final Include INCLUDE_CONTENT = new Include("DocumentManifest.content"); - - - @Child(name="masterIdentifier", type=IdentifierDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Unique Identifier for the set of documents", - formalDefinition="A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts" - ) - private IdentifierDt myMasterIdentifier; - - @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Other identifiers for the manifest", - formalDefinition="Other identifiers associated with the document, including version independent, source record and workflow related identifiers" - ) - private java.util.List myIdentifier; - - @Child(name="subject", order=2, min=1, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="The subject of the set of documents", - formalDefinition="Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case)" - ) - private java.util.List mySubject; - - @Child(name="recipient", order=3, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Intended to get notified about this set of documents", - formalDefinition="A patient, practitioner, or organization for which this set of documents is intended" - ) - private java.util.List myRecipient; - - @Child(name="type", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="What kind of document set this is", - formalDefinition="Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider" - ) - private CodeableConceptDt myType; - - @Child(name="author", order=5, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Who and/or what authored the document", - formalDefinition="Identifies who is responsible for adding the information to the document" - ) - private java.util.List myAuthor; - - @Child(name="created", type=DateTimeDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="When this document manifest created", - formalDefinition="When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated etc)" - ) - private DateTimeDt myCreated; - - @Child(name="source", type=UriDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="The source system/application/software", - formalDefinition="Identifies the source system, application, or software that produced the document manifest" - ) - private UriDt mySource; - - @Child(name="status", type=CodeDt.class, order=8, min=1, max=1) - @Description( - shortDefinition="current | superceded | entered in error", - formalDefinition="The status of this document manifest" - ) - private BoundCodeDt myStatus; - - @Child(name="supercedes", order=9, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.DocumentManifest.class }) - @Description( - shortDefinition="If this document manifest replaces another", - formalDefinition="Whether this document manifest replaces another" - ) - private ResourceReferenceDt mySupercedes; - - @Child(name="description", type=StringDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Human-readable description (title)", - formalDefinition="Human-readable description of the source document. This is sometimes known as the \"title\"" - ) - private StringDt myDescription; - - @Child(name="confidentiality", type=CodeableConceptDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Sensitivity of set of documents", - formalDefinition="A code specifying the level of confidentiality of this set of Documents" - ) - private CodeableConceptDt myConfidentiality; - - @Child(name="content", order=12, min=1, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.DocumentReference.class, ca.uhn.fhir.model.dstu.resource.Binary.class, ca.uhn.fhir.model.dstu.resource.Media.class }) - @Description( - shortDefinition="Contents of this set of documents", - formalDefinition="The list of resources that describe the parts of this document reference. Usually, these would be document references, but direct references to binary attachments and images are also allowed" - ) - private java.util.List myContent; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMasterIdentifier, myIdentifier, mySubject, myRecipient, myType, myAuthor, myCreated, mySource, myStatus, mySupercedes, myDescription, myConfidentiality, myContent); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMasterIdentifier, myIdentifier, mySubject, myRecipient, myType, myAuthor, myCreated, mySource, myStatus, mySupercedes, myDescription, myConfidentiality, myContent); - } - - /** - * Gets the value(s) for masterIdentifier (Unique Identifier for the set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts - *

- */ - public IdentifierDt getMasterIdentifier() { - if (myMasterIdentifier == null) { - myMasterIdentifier = new IdentifierDt(); - } - return myMasterIdentifier; - } - - - /** - * Gets the value(s) for masterIdentifier (Unique Identifier for the set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts - *

- */ - public IdentifierDt getMasterIdentifierElement() { - if (myMasterIdentifier == null) { - myMasterIdentifier = new IdentifierDt(); - } - return myMasterIdentifier; - } - - - /** - * Sets the value(s) for masterIdentifier (Unique Identifier for the set of documents) - * - *

- * Definition: - * A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts - *

- */ - public DocumentManifest setMasterIdentifier(IdentifierDt theValue) { - myMasterIdentifier = theValue; - return this; - } - - /** - * Sets the value for masterIdentifier (Unique Identifier for the set of documents) - * - *

- * Definition: - * A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts - *

- */ - public DocumentManifest setMasterIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myMasterIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for masterIdentifier (Unique Identifier for the set of documents) - * - *

- * Definition: - * A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts - *

- */ - public DocumentManifest setMasterIdentifier( String theSystem, String theValue) { - myMasterIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for identifier (Other identifiers for the manifest). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Other identifiers for the manifest). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Other identifiers for the manifest) - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public DocumentManifest setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Other identifiers for the manifest) - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Other identifiers for the manifest), - * creating it if it does not already exist. - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Other identifiers for the manifest) - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public DocumentManifest addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Other identifiers for the manifest) - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public DocumentManifest addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for subject (The subject of the set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case) - *

- */ - public java.util.List getSubject() { - if (mySubject == null) { - mySubject = new java.util.ArrayList(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (The subject of the set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case) - *

- */ - public java.util.List getSubjectElement() { - if (mySubject == null) { - mySubject = new java.util.ArrayList(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (The subject of the set of documents) - * - *

- * Definition: - * Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case) - *

- */ - public DocumentManifest setSubject(java.util.List theValue) { - mySubject = theValue; - return this; - } - - /** - * Adds and returns a new value for subject (The subject of the set of documents) - * - *

- * Definition: - * Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case) - *

- */ - public ResourceReferenceDt addSubject() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSubject().add(newType); - return newType; - } - - /** - * Gets the value(s) for recipient (Intended to get notified about this set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A patient, practitioner, or organization for which this set of documents is intended - *

- */ - public java.util.List getRecipient() { - if (myRecipient == null) { - myRecipient = new java.util.ArrayList(); - } - return myRecipient; - } - - - /** - * Gets the value(s) for recipient (Intended to get notified about this set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A patient, practitioner, or organization for which this set of documents is intended - *

- */ - public java.util.List getRecipientElement() { - if (myRecipient == null) { - myRecipient = new java.util.ArrayList(); - } - return myRecipient; - } - - - /** - * Sets the value(s) for recipient (Intended to get notified about this set of documents) - * - *

- * Definition: - * A patient, practitioner, or organization for which this set of documents is intended - *

- */ - public DocumentManifest setRecipient(java.util.List theValue) { - myRecipient = theValue; - return this; - } - - /** - * Adds and returns a new value for recipient (Intended to get notified about this set of documents) - * - *

- * Definition: - * A patient, practitioner, or organization for which this set of documents is intended - *

- */ - public ResourceReferenceDt addRecipient() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getRecipient().add(newType); - return newType; - } - - /** - * Gets the value(s) for type (What kind of document set this is). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (What kind of document set this is). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (What kind of document set this is) - * - *

- * Definition: - * Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider - *

- */ - public DocumentManifest setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Who and/or what authored the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies who is responsible for adding the information to the document - *

- */ - public java.util.List getAuthor() { - if (myAuthor == null) { - myAuthor = new java.util.ArrayList(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Who and/or what authored the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies who is responsible for adding the information to the document - *

- */ - public java.util.List getAuthorElement() { - if (myAuthor == null) { - myAuthor = new java.util.ArrayList(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Who and/or what authored the document) - * - *

- * Definition: - * Identifies who is responsible for adding the information to the document - *

- */ - public DocumentManifest setAuthor(java.util.List theValue) { - myAuthor = theValue; - return this; - } - - /** - * Adds and returns a new value for author (Who and/or what authored the document) - * - *

- * Definition: - * Identifies who is responsible for adding the information to the document - *

- */ - public ResourceReferenceDt addAuthor() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getAuthor().add(newType); - return newType; - } - - /** - * Gets the value(s) for created (When this document manifest created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated etc) - *

- */ - public DateTimeDt getCreated() { - if (myCreated == null) { - myCreated = new DateTimeDt(); - } - return myCreated; - } - - - /** - * Gets the value(s) for created (When this document manifest created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated etc) - *

- */ - public DateTimeDt getCreatedElement() { - if (myCreated == null) { - myCreated = new DateTimeDt(); - } - return myCreated; - } - - - /** - * Sets the value(s) for created (When this document manifest created) - * - *

- * Definition: - * When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated etc) - *

- */ - public DocumentManifest setCreated(DateTimeDt theValue) { - myCreated = theValue; - return this; - } - - /** - * Sets the value for created (When this document manifest created) - * - *

- * Definition: - * When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated etc) - *

- */ - public DocumentManifest setCreated( Date theDate, TemporalPrecisionEnum thePrecision) { - myCreated = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for created (When this document manifest created) - * - *

- * Definition: - * When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated etc) - *

- */ - public DocumentManifest setCreatedWithSecondsPrecision( Date theDate) { - myCreated = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for source (The source system/application/software). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the source system, application, or software that produced the document manifest - *

- */ - public UriDt getSource() { - if (mySource == null) { - mySource = new UriDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (The source system/application/software). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the source system, application, or software that produced the document manifest - *

- */ - public UriDt getSourceElement() { - if (mySource == null) { - mySource = new UriDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (The source system/application/software) - * - *

- * Definition: - * Identifies the source system, application, or software that produced the document manifest - *

- */ - public DocumentManifest setSource(UriDt theValue) { - mySource = theValue; - return this; - } - - /** - * Sets the value for source (The source system/application/software) - * - *

- * Definition: - * Identifies the source system, application, or software that produced the document manifest - *

- */ - public DocumentManifest setSource( String theUri) { - mySource = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for status (current | superceded | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this document manifest - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DocumentReferenceStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (current | superceded | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this document manifest - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DocumentReferenceStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (current | superceded | entered in error) - * - *

- * Definition: - * The status of this document manifest - *

- */ - public DocumentManifest setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (current | superceded | entered in error) - * - *

- * Definition: - * The status of this document manifest - *

- */ - public DocumentManifest setStatus(DocumentReferenceStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for supercedes (If this document manifest replaces another). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this document manifest replaces another - *

- */ - public ResourceReferenceDt getSupercedes() { - if (mySupercedes == null) { - mySupercedes = new ResourceReferenceDt(); - } - return mySupercedes; - } - - - /** - * Gets the value(s) for supercedes (If this document manifest replaces another). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this document manifest replaces another - *

- */ - public ResourceReferenceDt getSupercedesElement() { - if (mySupercedes == null) { - mySupercedes = new ResourceReferenceDt(); - } - return mySupercedes; - } - - - /** - * Sets the value(s) for supercedes (If this document manifest replaces another) - * - *

- * Definition: - * Whether this document manifest replaces another - *

- */ - public DocumentManifest setSupercedes(ResourceReferenceDt theValue) { - mySupercedes = theValue; - return this; - } - - - /** - * Gets the value(s) for description (Human-readable description (title)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of the source document. This is sometimes known as the \"title\" - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Human-readable description (title)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of the source document. This is sometimes known as the \"title\" - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Human-readable description (title)) - * - *

- * Definition: - * Human-readable description of the source document. This is sometimes known as the \"title\" - *

- */ - public DocumentManifest setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Human-readable description (title)) - * - *

- * Definition: - * Human-readable description of the source document. This is sometimes known as the \"title\" - *

- */ - public DocumentManifest setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for confidentiality (Sensitivity of set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the level of confidentiality of this set of Documents - *

- */ - public CodeableConceptDt getConfidentiality() { - if (myConfidentiality == null) { - myConfidentiality = new CodeableConceptDt(); - } - return myConfidentiality; - } - - - /** - * Gets the value(s) for confidentiality (Sensitivity of set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the level of confidentiality of this set of Documents - *

- */ - public CodeableConceptDt getConfidentialityElement() { - if (myConfidentiality == null) { - myConfidentiality = new CodeableConceptDt(); - } - return myConfidentiality; - } - - - /** - * Sets the value(s) for confidentiality (Sensitivity of set of documents) - * - *

- * Definition: - * A code specifying the level of confidentiality of this set of Documents - *

- */ - public DocumentManifest setConfidentiality(CodeableConceptDt theValue) { - myConfidentiality = theValue; - return this; - } - - - /** - * Gets the value(s) for content (Contents of this set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The list of resources that describe the parts of this document reference. Usually, these would be document references, but direct references to binary attachments and images are also allowed - *

- */ - public java.util.List getContent() { - if (myContent == null) { - myContent = new java.util.ArrayList(); - } - return myContent; - } - - - /** - * Gets the value(s) for content (Contents of this set of documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The list of resources that describe the parts of this document reference. Usually, these would be document references, but direct references to binary attachments and images are also allowed - *

- */ - public java.util.List getContentElement() { - if (myContent == null) { - myContent = new java.util.ArrayList(); - } - return myContent; - } - - - /** - * Sets the value(s) for content (Contents of this set of documents) - * - *

- * Definition: - * The list of resources that describe the parts of this document reference. Usually, these would be document references, but direct references to binary attachments and images are also allowed - *

- */ - public DocumentManifest setContent(java.util.List theValue) { - myContent = theValue; - return this; - } - - /** - * Adds and returns a new value for content (Contents of this set of documents) - * - *

- * Definition: - * The list of resources that describe the parts of this document reference. Usually, these would be document references, but direct references to binary attachments and images are also allowed - *

- */ - public ResourceReferenceDt addContent() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getContent().add(newType); - return newType; - } - - - - @Override - public String getResourceName() { - return "DocumentManifest"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DocumentReference.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DocumentReference.java deleted file mode 100644 index 79a1535373d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/DocumentReference.java +++ /dev/null @@ -1,3277 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR DocumentReference Resource - * (A reference to a document) - * - *

- * Definition: - * A reference to a document - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/DocumentReference - *

- * - */ -@ResourceDef(name="DocumentReference", profile="http://hl7.org/fhir/profiles/DocumentReference", id="documentreference") -public class DocumentReference - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: DocumentReference.masterIdentifier | DocumentReference.identifier
- *

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

- * Description:
- * Type: token
- * Path: DocumentReference.masterIdentifier | DocumentReference.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: DocumentReference.subject
- *

- */ - @SearchParamDefinition(name="subject", path="DocumentReference.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: DocumentReference.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentReference.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("DocumentReference.subject"); - - /** - * Search parameter constant for type - *

- * Description:
- * Type: token
- * Path: DocumentReference.type
- *

- */ - @SearchParamDefinition(name="type", path="DocumentReference.type", description="", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description:
- * Type: token
- * Path: DocumentReference.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for class - *

- * Description:
- * Type: token
- * Path: DocumentReference.class
- *

- */ - @SearchParamDefinition(name="class", path="DocumentReference.class", description="", type="token" ) - public static final String SP_CLASS = "class"; - - /** - * Fluent Client search parameter constant for class - *

- * Description:
- * Type: token
- * Path: DocumentReference.class
- *

- */ - public static final TokenClientParam CLASS = new TokenClientParam(SP_CLASS); - - /** - * Search parameter constant for author - *

- * Description:
- * Type: reference
- * Path: DocumentReference.author
- *

- */ - @SearchParamDefinition(name="author", path="DocumentReference.author", description="", type="reference" ) - public static final String SP_AUTHOR = "author"; - - /** - * Fluent Client search parameter constant for author - *

- * Description:
- * Type: reference
- * Path: DocumentReference.author
- *

- */ - public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentReference.author". - */ - public static final Include INCLUDE_AUTHOR = new Include("DocumentReference.author"); - - /** - * Search parameter constant for custodian - *

- * Description:
- * Type: reference
- * Path: DocumentReference.custodian
- *

- */ - @SearchParamDefinition(name="custodian", path="DocumentReference.custodian", description="", type="reference" ) - public static final String SP_CUSTODIAN = "custodian"; - - /** - * Fluent Client search parameter constant for custodian - *

- * Description:
- * Type: reference
- * Path: DocumentReference.custodian
- *

- */ - public static final ReferenceClientParam CUSTODIAN = new ReferenceClientParam(SP_CUSTODIAN); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentReference.custodian". - */ - public static final Include INCLUDE_CUSTODIAN = new Include("DocumentReference.custodian"); - - /** - * Search parameter constant for authenticator - *

- * Description:
- * Type: reference
- * Path: DocumentReference.authenticator
- *

- */ - @SearchParamDefinition(name="authenticator", path="DocumentReference.authenticator", description="", type="reference" ) - public static final String SP_AUTHENTICATOR = "authenticator"; - - /** - * Fluent Client search parameter constant for authenticator - *

- * Description:
- * Type: reference
- * Path: DocumentReference.authenticator
- *

- */ - public static final ReferenceClientParam AUTHENTICATOR = new ReferenceClientParam(SP_AUTHENTICATOR); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentReference.authenticator". - */ - public static final Include INCLUDE_AUTHENTICATOR = new Include("DocumentReference.authenticator"); - - /** - * Search parameter constant for created - *

- * Description:
- * Type: date
- * Path: DocumentReference.created
- *

- */ - @SearchParamDefinition(name="created", path="DocumentReference.created", description="", type="date" ) - public static final String SP_CREATED = "created"; - - /** - * Fluent Client search parameter constant for created - *

- * Description:
- * Type: date
- * Path: DocumentReference.created
- *

- */ - public static final DateClientParam CREATED = new DateClientParam(SP_CREATED); - - /** - * Search parameter constant for indexed - *

- * Description:
- * Type: date
- * Path: DocumentReference.indexed
- *

- */ - @SearchParamDefinition(name="indexed", path="DocumentReference.indexed", description="", type="date" ) - public static final String SP_INDEXED = "indexed"; - - /** - * Fluent Client search parameter constant for indexed - *

- * Description:
- * Type: date
- * Path: DocumentReference.indexed
- *

- */ - public static final DateClientParam INDEXED = new DateClientParam(SP_INDEXED); - - /** - * Search parameter constant for status - *

- * Description:
- * Type: token
- * Path: DocumentReference.status
- *

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

- * Description:
- * Type: token
- * Path: DocumentReference.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for relatesto - *

- * Description:
- * Type: reference
- * Path: DocumentReference.relatesTo.target
- *

- */ - @SearchParamDefinition(name="relatesto", path="DocumentReference.relatesTo.target", description="", type="reference" ) - public static final String SP_RELATESTO = "relatesto"; - - /** - * Fluent Client search parameter constant for relatesto - *

- * Description:
- * Type: reference
- * Path: DocumentReference.relatesTo.target
- *

- */ - public static final ReferenceClientParam RELATESTO = new ReferenceClientParam(SP_RELATESTO); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentReference.relatesTo.target". - */ - public static final Include INCLUDE_RELATESTO_TARGET = new Include("DocumentReference.relatesTo.target"); - - /** - * Search parameter constant for relation - *

- * Description:
- * Type: token
- * Path: DocumentReference.relatesTo.code
- *

- */ - @SearchParamDefinition(name="relation", path="DocumentReference.relatesTo.code", description="", type="token" ) - public static final String SP_RELATION = "relation"; - - /** - * Fluent Client search parameter constant for relation - *

- * Description:
- * Type: token
- * Path: DocumentReference.relatesTo.code
- *

- */ - public static final TokenClientParam RELATION = new TokenClientParam(SP_RELATION); - - /** - * Search parameter constant for description - *

- * Description:
- * Type: string
- * Path: DocumentReference.description
- *

- */ - @SearchParamDefinition(name="description", path="DocumentReference.description", description="", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description:
- * Type: string
- * Path: DocumentReference.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for confidentiality - *

- * Description:
- * Type: token
- * Path: DocumentReference.confidentiality
- *

- */ - @SearchParamDefinition(name="confidentiality", path="DocumentReference.confidentiality", description="", type="token" ) - public static final String SP_CONFIDENTIALITY = "confidentiality"; - - /** - * Fluent Client search parameter constant for confidentiality - *

- * Description:
- * Type: token
- * Path: DocumentReference.confidentiality
- *

- */ - public static final TokenClientParam CONFIDENTIALITY = new TokenClientParam(SP_CONFIDENTIALITY); - - /** - * Search parameter constant for language - *

- * Description:
- * Type: token
- * Path: DocumentReference.primaryLanguage
- *

- */ - @SearchParamDefinition(name="language", path="DocumentReference.primaryLanguage", description="", type="token" ) - public static final String SP_LANGUAGE = "language"; - - /** - * Fluent Client search parameter constant for language - *

- * Description:
- * Type: token
- * Path: DocumentReference.primaryLanguage
- *

- */ - public static final TokenClientParam LANGUAGE = new TokenClientParam(SP_LANGUAGE); - - /** - * Search parameter constant for format - *

- * Description:
- * Type: token
- * Path: DocumentReference.format
- *

- */ - @SearchParamDefinition(name="format", path="DocumentReference.format", description="", type="token" ) - public static final String SP_FORMAT = "format"; - - /** - * Fluent Client search parameter constant for format - *

- * Description:
- * Type: token
- * Path: DocumentReference.format
- *

- */ - public static final TokenClientParam FORMAT = new TokenClientParam(SP_FORMAT); - - /** - * Search parameter constant for size - *

- * Description:
- * Type: number
- * Path: DocumentReference.size
- *

- */ - @SearchParamDefinition(name="size", path="DocumentReference.size", description="", type="number" ) - public static final String SP_SIZE = "size"; - - /** - * Fluent Client search parameter constant for size - *

- * Description:
- * Type: number
- * Path: DocumentReference.size
- *

- */ - public static final NumberClientParam SIZE = new NumberClientParam(SP_SIZE); - - /** - * Search parameter constant for location - *

- * Description:
- * Type: string
- * Path: DocumentReference.location
- *

- */ - @SearchParamDefinition(name="location", path="DocumentReference.location", description="", type="string" ) - public static final String SP_LOCATION = "location"; - - /** - * Fluent Client search parameter constant for location - *

- * Description:
- * Type: string
- * Path: DocumentReference.location
- *

- */ - public static final StringClientParam LOCATION = new StringClientParam(SP_LOCATION); - - /** - * Search parameter constant for event - *

- * Description:
- * Type: token
- * Path: DocumentReference.context.event
- *

- */ - @SearchParamDefinition(name="event", path="DocumentReference.context.event", description="", type="token" ) - public static final String SP_EVENT = "event"; - - /** - * Fluent Client search parameter constant for event - *

- * Description:
- * Type: token
- * Path: DocumentReference.context.event
- *

- */ - public static final TokenClientParam EVENT = new TokenClientParam(SP_EVENT); - - /** - * Search parameter constant for period - *

- * Description:
- * Type: date
- * Path: DocumentReference.context.period
- *

- */ - @SearchParamDefinition(name="period", path="DocumentReference.context.period", description="", type="date" ) - public static final String SP_PERIOD = "period"; - - /** - * Fluent Client search parameter constant for period - *

- * Description:
- * Type: date
- * Path: DocumentReference.context.period
- *

- */ - public static final DateClientParam PERIOD = new DateClientParam(SP_PERIOD); - - /** - * Search parameter constant for facility - *

- * Description:
- * Type: token
- * Path: DocumentReference.context.facilityType
- *

- */ - @SearchParamDefinition(name="facility", path="DocumentReference.context.facilityType", description="", type="token" ) - public static final String SP_FACILITY = "facility"; - - /** - * Fluent Client search parameter constant for facility - *

- * Description:
- * Type: token
- * Path: DocumentReference.context.facilityType
- *

- */ - public static final TokenClientParam FACILITY = new TokenClientParam(SP_FACILITY); - - /** - * Search parameter constant for relatesto-relation - *

- * Description: Combination of relation and relatesTo
- * Type: composite
- * Path: relatesto & relation
- *

- */ - @SearchParamDefinition(name="relatesto-relation", path="relatesto & relation", description="Combination of relation and relatesTo", type="composite" , compositeOf={ "relatesto", "relation" } ) - public static final String SP_RELATESTO_RELATION = "relatesto-relation"; - - /** - * Fluent Client search parameter constant for relatesto-relation - *

- * Description: Combination of relation and relatesTo
- * Type: composite
- * Path: relatesto & relation
- *

- */ - public static final CompositeClientParam RELATESTO_RELATION = new CompositeClientParam(SP_RELATESTO_RELATION); - - - @Child(name="masterIdentifier", type=IdentifierDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Master Version Specific Identifier", - formalDefinition="Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document" - ) - private IdentifierDt myMasterIdentifier; - - @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Other identifiers for the document", - formalDefinition="Other identifiers associated with the document, including version independent, source record and workflow related identifiers" - ) - private java.util.List myIdentifier; - - @Child(name="subject", order=2, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Who|what is the subject of the document", - formalDefinition="Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)" - ) - private ResourceReferenceDt mySubject; - - @Child(name="type", type=CodeableConceptDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="What kind of document this is (LOINC if possible)", - formalDefinition="Specifies the particular kind of document (e.g. Patient Summary, Discharge Summary, Prescription, etc.)" - ) - private CodeableConceptDt myType; - - @Child(name="class", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Categorization of Document", - formalDefinition="A categorization for the type of the document. This may be implied by or derived from the code specified in the Document Type" - ) - private CodeableConceptDt myClassElement; - - @Child(name="author", order=5, min=1, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Who and/or what authored the document", - formalDefinition="Identifies who is responsible for adding the information to the document" - ) - private java.util.List myAuthor; - - @Child(name="custodian", order=6, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Org which maintains the document", - formalDefinition="Identifies the organization or group who is responsible for ongoing maintenance of and access to the document" - ) - private ResourceReferenceDt myCustodian; - - @Child(name="policyManager", type=UriDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Manages access policies for the document", - formalDefinition="A reference to a domain or server that manages policies under which the document is accessed and/or made available" - ) - private UriDt myPolicyManager; - - @Child(name="authenticator", order=8, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Who/What authenticated the document", - formalDefinition="Which person or organization authenticates that this document is valid" - ) - private ResourceReferenceDt myAuthenticator; - - @Child(name="created", type=DateTimeDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Document creation time", - formalDefinition="When the document was created" - ) - private DateTimeDt myCreated; - - @Child(name="indexed", type=InstantDt.class, order=10, min=1, max=1) - @Description( - shortDefinition="When this document reference created", - formalDefinition="When the document reference was created" - ) - private InstantDt myIndexed; - - @Child(name="status", type=CodeDt.class, order=11, min=1, max=1) - @Description( - shortDefinition="current | superceded | entered in error", - formalDefinition="The status of this document reference" - ) - private BoundCodeDt myStatus; - - @Child(name="docStatus", type=CodeableConceptDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="preliminary | final | appended | amended | entered in error", - formalDefinition="The status of the underlying document" - ) - private CodeableConceptDt myDocStatus; - - @Child(name="relatesTo", order=13, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Relationships to other documents", - formalDefinition="Relationships that this document has with other document references that already exist" - ) - private java.util.List myRelatesTo; - - @Child(name="description", type=StringDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="Human-readable description (title)", - formalDefinition="Human-readable description of the source document. This is sometimes known as the \"title\"" - ) - private StringDt myDescription; - - @Child(name="confidentiality", type=CodeableConceptDt.class, order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Sensitivity of source document", - formalDefinition="A code specifying the level of confidentiality of the XDS Document" - ) - private java.util.List myConfidentiality; - - @Child(name="primaryLanguage", type=CodeDt.class, order=16, min=0, max=1) - @Description( - shortDefinition="The marked primary language for the document", - formalDefinition="The primary language in which the source document is written" - ) - private CodeDt myPrimaryLanguage; - - @Child(name="mimeType", type=CodeDt.class, order=17, min=1, max=1) - @Description( - shortDefinition="Mime type, + maybe character encoding", - formalDefinition="The mime type of the source document" - ) - private CodeDt myMimeType; - - @Child(name="format", type=UriDt.class, order=18, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Format/content rules for the document", - formalDefinition="An identifier that identifies that the format and content of the document conforms to additional rules beyond the base format indicated in the mimeType" - ) - private java.util.List myFormat; - - @Child(name="size", type=IntegerDt.class, order=19, min=0, max=1) - @Description( - shortDefinition="Size of the document in bytes", - formalDefinition="The size of the source document this reference refers to in bytes" - ) - private IntegerDt mySize; - - @Child(name="hash", type=StringDt.class, order=20, min=0, max=1) - @Description( - shortDefinition="HexBinary representation of SHA1", - formalDefinition="A hash of the source document to ensure that changes have not occurred" - ) - private StringDt myHash; - - @Child(name="location", type=UriDt.class, order=21, min=0, max=1) - @Description( - shortDefinition="Where to access the document", - formalDefinition="A url at which the document can be accessed" - ) - private UriDt myLocation; - - @Child(name="service", order=22, min=0, max=1) - @Description( - shortDefinition="If access is not fully described by location", - formalDefinition="A description of a service call that can be used to retrieve the document" - ) - private Service myService; - - @Child(name="context", order=23, min=0, max=1) - @Description( - shortDefinition="Clinical context of document", - formalDefinition="The clinical context in which the document was prepared" - ) - private Context myContext; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMasterIdentifier, myIdentifier, mySubject, myType, myClassElement, myAuthor, myCustodian, myPolicyManager, myAuthenticator, myCreated, myIndexed, myStatus, myDocStatus, myRelatesTo, myDescription, myConfidentiality, myPrimaryLanguage, myMimeType, myFormat, mySize, myHash, myLocation, myService, myContext); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMasterIdentifier, myIdentifier, mySubject, myType, myClassElement, myAuthor, myCustodian, myPolicyManager, myAuthenticator, myCreated, myIndexed, myStatus, myDocStatus, myRelatesTo, myDescription, myConfidentiality, myPrimaryLanguage, myMimeType, myFormat, mySize, myHash, myLocation, myService, myContext); - } - - /** - * Gets the value(s) for masterIdentifier (Master Version Specific Identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document - *

- */ - public IdentifierDt getMasterIdentifier() { - if (myMasterIdentifier == null) { - myMasterIdentifier = new IdentifierDt(); - } - return myMasterIdentifier; - } - - - /** - * Gets the value(s) for masterIdentifier (Master Version Specific Identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document - *

- */ - public IdentifierDt getMasterIdentifierElement() { - if (myMasterIdentifier == null) { - myMasterIdentifier = new IdentifierDt(); - } - return myMasterIdentifier; - } - - - /** - * Sets the value(s) for masterIdentifier (Master Version Specific Identifier) - * - *

- * Definition: - * Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document - *

- */ - public DocumentReference setMasterIdentifier(IdentifierDt theValue) { - myMasterIdentifier = theValue; - return this; - } - - /** - * Sets the value for masterIdentifier (Master Version Specific Identifier) - * - *

- * Definition: - * Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document - *

- */ - public DocumentReference setMasterIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myMasterIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for masterIdentifier (Master Version Specific Identifier) - * - *

- * Definition: - * Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document - *

- */ - public DocumentReference setMasterIdentifier( String theSystem, String theValue) { - myMasterIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for identifier (Other identifiers for the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Other identifiers for the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Other identifiers for the document) - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public DocumentReference setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Other identifiers for the document) - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Other identifiers for the document), - * creating it if it does not already exist. - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Other identifiers for the document) - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public DocumentReference addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Other identifiers for the document) - * - *

- * Definition: - * Other identifiers associated with the document, including version independent, source record and workflow related identifiers - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public DocumentReference addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for subject (Who|what is the subject of the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure) - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who|what is the subject of the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure) - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who|what is the subject of the document) - * - *

- * Definition: - * Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure) - *

- */ - public DocumentReference setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for type (What kind of document this is (LOINC if possible)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies the particular kind of document (e.g. Patient Summary, Discharge Summary, Prescription, etc.) - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (What kind of document this is (LOINC if possible)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies the particular kind of document (e.g. Patient Summary, Discharge Summary, Prescription, etc.) - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (What kind of document this is (LOINC if possible)) - * - *

- * Definition: - * Specifies the particular kind of document (e.g. Patient Summary, Discharge Summary, Prescription, etc.) - *

- */ - public DocumentReference setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for class (Categorization of Document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A categorization for the type of the document. This may be implied by or derived from the code specified in the Document Type - *

- */ - public CodeableConceptDt getClassElement() { - if (myClassElement == null) { - myClassElement = new CodeableConceptDt(); - } - return myClassElement; - } - - - /** - * Gets the value(s) for class (Categorization of Document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A categorization for the type of the document. This may be implied by or derived from the code specified in the Document Type - *

- */ - public CodeableConceptDt getClassElementElement() { - if (myClassElement == null) { - myClassElement = new CodeableConceptDt(); - } - return myClassElement; - } - - - /** - * Sets the value(s) for class (Categorization of Document) - * - *

- * Definition: - * A categorization for the type of the document. This may be implied by or derived from the code specified in the Document Type - *

- */ - public DocumentReference setClassElement(CodeableConceptDt theValue) { - myClassElement = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Who and/or what authored the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies who is responsible for adding the information to the document - *

- */ - public java.util.List getAuthor() { - if (myAuthor == null) { - myAuthor = new java.util.ArrayList(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Who and/or what authored the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies who is responsible for adding the information to the document - *

- */ - public java.util.List getAuthorElement() { - if (myAuthor == null) { - myAuthor = new java.util.ArrayList(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Who and/or what authored the document) - * - *

- * Definition: - * Identifies who is responsible for adding the information to the document - *

- */ - public DocumentReference setAuthor(java.util.List theValue) { - myAuthor = theValue; - return this; - } - - /** - * Adds and returns a new value for author (Who and/or what authored the document) - * - *

- * Definition: - * Identifies who is responsible for adding the information to the document - *

- */ - public ResourceReferenceDt addAuthor() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getAuthor().add(newType); - return newType; - } - - /** - * Gets the value(s) for custodian (Org which maintains the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the organization or group who is responsible for ongoing maintenance of and access to the document - *

- */ - public ResourceReferenceDt getCustodian() { - if (myCustodian == null) { - myCustodian = new ResourceReferenceDt(); - } - return myCustodian; - } - - - /** - * Gets the value(s) for custodian (Org which maintains the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the organization or group who is responsible for ongoing maintenance of and access to the document - *

- */ - public ResourceReferenceDt getCustodianElement() { - if (myCustodian == null) { - myCustodian = new ResourceReferenceDt(); - } - return myCustodian; - } - - - /** - * Sets the value(s) for custodian (Org which maintains the document) - * - *

- * Definition: - * Identifies the organization or group who is responsible for ongoing maintenance of and access to the document - *

- */ - public DocumentReference setCustodian(ResourceReferenceDt theValue) { - myCustodian = theValue; - return this; - } - - - /** - * Gets the value(s) for policyManager (Manages access policies for the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a domain or server that manages policies under which the document is accessed and/or made available - *

- */ - public UriDt getPolicyManager() { - if (myPolicyManager == null) { - myPolicyManager = new UriDt(); - } - return myPolicyManager; - } - - - /** - * Gets the value(s) for policyManager (Manages access policies for the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a domain or server that manages policies under which the document is accessed and/or made available - *

- */ - public UriDt getPolicyManagerElement() { - if (myPolicyManager == null) { - myPolicyManager = new UriDt(); - } - return myPolicyManager; - } - - - /** - * Sets the value(s) for policyManager (Manages access policies for the document) - * - *

- * Definition: - * A reference to a domain or server that manages policies under which the document is accessed and/or made available - *

- */ - public DocumentReference setPolicyManager(UriDt theValue) { - myPolicyManager = theValue; - return this; - } - - /** - * Sets the value for policyManager (Manages access policies for the document) - * - *

- * Definition: - * A reference to a domain or server that manages policies under which the document is accessed and/or made available - *

- */ - public DocumentReference setPolicyManager( String theUri) { - myPolicyManager = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for authenticator (Who/What authenticated the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Which person or organization authenticates that this document is valid - *

- */ - public ResourceReferenceDt getAuthenticator() { - if (myAuthenticator == null) { - myAuthenticator = new ResourceReferenceDt(); - } - return myAuthenticator; - } - - - /** - * Gets the value(s) for authenticator (Who/What authenticated the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Which person or organization authenticates that this document is valid - *

- */ - public ResourceReferenceDt getAuthenticatorElement() { - if (myAuthenticator == null) { - myAuthenticator = new ResourceReferenceDt(); - } - return myAuthenticator; - } - - - /** - * Sets the value(s) for authenticator (Who/What authenticated the document) - * - *

- * Definition: - * Which person or organization authenticates that this document is valid - *

- */ - public DocumentReference setAuthenticator(ResourceReferenceDt theValue) { - myAuthenticator = theValue; - return this; - } - - - /** - * Gets the value(s) for created (Document creation time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the document was created - *

- */ - public DateTimeDt getCreated() { - if (myCreated == null) { - myCreated = new DateTimeDt(); - } - return myCreated; - } - - - /** - * Gets the value(s) for created (Document creation time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the document was created - *

- */ - public DateTimeDt getCreatedElement() { - if (myCreated == null) { - myCreated = new DateTimeDt(); - } - return myCreated; - } - - - /** - * Sets the value(s) for created (Document creation time) - * - *

- * Definition: - * When the document was created - *

- */ - public DocumentReference setCreated(DateTimeDt theValue) { - myCreated = theValue; - return this; - } - - /** - * Sets the value for created (Document creation time) - * - *

- * Definition: - * When the document was created - *

- */ - public DocumentReference setCreated( Date theDate, TemporalPrecisionEnum thePrecision) { - myCreated = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for created (Document creation time) - * - *

- * Definition: - * When the document was created - *

- */ - public DocumentReference setCreatedWithSecondsPrecision( Date theDate) { - myCreated = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for indexed (When this document reference created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the document reference was created - *

- */ - public InstantDt getIndexed() { - if (myIndexed == null) { - myIndexed = new InstantDt(); - } - return myIndexed; - } - - - /** - * Gets the value(s) for indexed (When this document reference created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the document reference was created - *

- */ - public InstantDt getIndexedElement() { - if (myIndexed == null) { - myIndexed = new InstantDt(); - } - return myIndexed; - } - - - /** - * Sets the value(s) for indexed (When this document reference created) - * - *

- * Definition: - * When the document reference was created - *

- */ - public DocumentReference setIndexed(InstantDt theValue) { - myIndexed = theValue; - return this; - } - - /** - * Sets the value for indexed (When this document reference created) - * - *

- * Definition: - * When the document reference was created - *

- */ - public DocumentReference setIndexedWithMillisPrecision( Date theDate) { - myIndexed = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for indexed (When this document reference created) - * - *

- * Definition: - * When the document reference was created - *

- */ - public DocumentReference setIndexed( Date theDate, TemporalPrecisionEnum thePrecision) { - myIndexed = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for status (current | superceded | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this document reference - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DocumentReferenceStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (current | superceded | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of this document reference - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(DocumentReferenceStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (current | superceded | entered in error) - * - *

- * Definition: - * The status of this document reference - *

- */ - public DocumentReference setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (current | superceded | entered in error) - * - *

- * Definition: - * The status of this document reference - *

- */ - public DocumentReference setStatus(DocumentReferenceStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for docStatus (preliminary | final | appended | amended | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the underlying document - *

- */ - public CodeableConceptDt getDocStatus() { - if (myDocStatus == null) { - myDocStatus = new CodeableConceptDt(); - } - return myDocStatus; - } - - - /** - * Gets the value(s) for docStatus (preliminary | final | appended | amended | entered in error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the underlying document - *

- */ - public CodeableConceptDt getDocStatusElement() { - if (myDocStatus == null) { - myDocStatus = new CodeableConceptDt(); - } - return myDocStatus; - } - - - /** - * Sets the value(s) for docStatus (preliminary | final | appended | amended | entered in error) - * - *

- * Definition: - * The status of the underlying document - *

- */ - public DocumentReference setDocStatus(CodeableConceptDt theValue) { - myDocStatus = theValue; - return this; - } - - - /** - * Gets the value(s) for relatesTo (Relationships to other documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Relationships that this document has with other document references that already exist - *

- */ - public java.util.List getRelatesTo() { - if (myRelatesTo == null) { - myRelatesTo = new java.util.ArrayList(); - } - return myRelatesTo; - } - - - /** - * Gets the value(s) for relatesTo (Relationships to other documents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Relationships that this document has with other document references that already exist - *

- */ - public java.util.List getRelatesToElement() { - if (myRelatesTo == null) { - myRelatesTo = new java.util.ArrayList(); - } - return myRelatesTo; - } - - - /** - * Sets the value(s) for relatesTo (Relationships to other documents) - * - *

- * Definition: - * Relationships that this document has with other document references that already exist - *

- */ - public DocumentReference setRelatesTo(java.util.List theValue) { - myRelatesTo = theValue; - return this; - } - - /** - * Adds and returns a new value for relatesTo (Relationships to other documents) - * - *

- * Definition: - * Relationships that this document has with other document references that already exist - *

- */ - public RelatesTo addRelatesTo() { - RelatesTo newType = new RelatesTo(); - getRelatesTo().add(newType); - return newType; - } - - /** - * Gets the first repetition for relatesTo (Relationships to other documents), - * creating it if it does not already exist. - * - *

- * Definition: - * Relationships that this document has with other document references that already exist - *

- */ - public RelatesTo getRelatesToFirstRep() { - if (getRelatesTo().isEmpty()) { - return addRelatesTo(); - } - return getRelatesTo().get(0); - } - - /** - * Gets the value(s) for description (Human-readable description (title)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of the source document. This is sometimes known as the \"title\" - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Human-readable description (title)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of the source document. This is sometimes known as the \"title\" - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Human-readable description (title)) - * - *

- * Definition: - * Human-readable description of the source document. This is sometimes known as the \"title\" - *

- */ - public DocumentReference setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Human-readable description (title)) - * - *

- * Definition: - * Human-readable description of the source document. This is sometimes known as the \"title\" - *

- */ - public DocumentReference setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for confidentiality (Sensitivity of source document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the level of confidentiality of the XDS Document - *

- */ - public java.util.List getConfidentiality() { - if (myConfidentiality == null) { - myConfidentiality = new java.util.ArrayList(); - } - return myConfidentiality; - } - - - /** - * Gets the value(s) for confidentiality (Sensitivity of source document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the level of confidentiality of the XDS Document - *

- */ - public java.util.List getConfidentialityElement() { - if (myConfidentiality == null) { - myConfidentiality = new java.util.ArrayList(); - } - return myConfidentiality; - } - - - /** - * Sets the value(s) for confidentiality (Sensitivity of source document) - * - *

- * Definition: - * A code specifying the level of confidentiality of the XDS Document - *

- */ - public DocumentReference setConfidentiality(java.util.List theValue) { - myConfidentiality = theValue; - return this; - } - - /** - * Adds and returns a new value for confidentiality (Sensitivity of source document) - * - *

- * Definition: - * A code specifying the level of confidentiality of the XDS Document - *

- */ - public CodeableConceptDt addConfidentiality() { - CodeableConceptDt newType = new CodeableConceptDt(); - getConfidentiality().add(newType); - return newType; - } - - /** - * Gets the first repetition for confidentiality (Sensitivity of source document), - * creating it if it does not already exist. - * - *

- * Definition: - * A code specifying the level of confidentiality of the XDS Document - *

- */ - public CodeableConceptDt getConfidentialityFirstRep() { - if (getConfidentiality().isEmpty()) { - return addConfidentiality(); - } - return getConfidentiality().get(0); - } - - /** - * Gets the value(s) for primaryLanguage (The marked primary language for the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The primary language in which the source document is written - *

- */ - public CodeDt getPrimaryLanguage() { - if (myPrimaryLanguage == null) { - myPrimaryLanguage = new CodeDt(); - } - return myPrimaryLanguage; - } - - - /** - * Gets the value(s) for primaryLanguage (The marked primary language for the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The primary language in which the source document is written - *

- */ - public CodeDt getPrimaryLanguageElement() { - if (myPrimaryLanguage == null) { - myPrimaryLanguage = new CodeDt(); - } - return myPrimaryLanguage; - } - - - /** - * Sets the value(s) for primaryLanguage (The marked primary language for the document) - * - *

- * Definition: - * The primary language in which the source document is written - *

- */ - public DocumentReference setPrimaryLanguage(CodeDt theValue) { - myPrimaryLanguage = theValue; - return this; - } - - /** - * Sets the value for primaryLanguage (The marked primary language for the document) - * - *

- * Definition: - * The primary language in which the source document is written - *

- */ - public DocumentReference setPrimaryLanguage( String theCode) { - myPrimaryLanguage = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for mimeType (Mime type, + maybe character encoding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mime type of the source document - *

- */ - public CodeDt getMimeType() { - if (myMimeType == null) { - myMimeType = new CodeDt(); - } - return myMimeType; - } - - - /** - * Gets the value(s) for mimeType (Mime type, + maybe character encoding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The mime type of the source document - *

- */ - public CodeDt getMimeTypeElement() { - if (myMimeType == null) { - myMimeType = new CodeDt(); - } - return myMimeType; - } - - - /** - * Sets the value(s) for mimeType (Mime type, + maybe character encoding) - * - *

- * Definition: - * The mime type of the source document - *

- */ - public DocumentReference setMimeType(CodeDt theValue) { - myMimeType = theValue; - return this; - } - - /** - * Sets the value for mimeType (Mime type, + maybe character encoding) - * - *

- * Definition: - * The mime type of the source document - *

- */ - public DocumentReference setMimeType( String theCode) { - myMimeType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for format (Format/content rules for the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that identifies that the format and content of the document conforms to additional rules beyond the base format indicated in the mimeType - *

- */ - public java.util.List getFormat() { - if (myFormat == null) { - myFormat = new java.util.ArrayList(); - } - return myFormat; - } - - - /** - * Gets the value(s) for format (Format/content rules for the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that identifies that the format and content of the document conforms to additional rules beyond the base format indicated in the mimeType - *

- */ - public java.util.List getFormatElement() { - if (myFormat == null) { - myFormat = new java.util.ArrayList(); - } - return myFormat; - } - - - /** - * Sets the value(s) for format (Format/content rules for the document) - * - *

- * Definition: - * An identifier that identifies that the format and content of the document conforms to additional rules beyond the base format indicated in the mimeType - *

- */ - public DocumentReference setFormat(java.util.List theValue) { - myFormat = theValue; - return this; - } - - /** - * Adds and returns a new value for format (Format/content rules for the document) - * - *

- * Definition: - * An identifier that identifies that the format and content of the document conforms to additional rules beyond the base format indicated in the mimeType - *

- */ - public UriDt addFormat() { - UriDt newType = new UriDt(); - getFormat().add(newType); - return newType; - } - - /** - * Gets the first repetition for format (Format/content rules for the document), - * creating it if it does not already exist. - * - *

- * Definition: - * An identifier that identifies that the format and content of the document conforms to additional rules beyond the base format indicated in the mimeType - *

- */ - public UriDt getFormatFirstRep() { - if (getFormat().isEmpty()) { - return addFormat(); - } - return getFormat().get(0); - } - /** - * Adds a new value for format (Format/content rules for the document) - * - *

- * Definition: - * An identifier that identifies that the format and content of the document conforms to additional rules beyond the base format indicated in the mimeType - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public DocumentReference addFormat( String theUri) { - if (myFormat == null) { - myFormat = new java.util.ArrayList(); - } - myFormat.add(new UriDt(theUri)); - return this; - } - - - /** - * Gets the value(s) for size (Size of the document in bytes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The size of the source document this reference refers to in bytes - *

- */ - public IntegerDt getSize() { - if (mySize == null) { - mySize = new IntegerDt(); - } - return mySize; - } - - - /** - * Gets the value(s) for size (Size of the document in bytes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The size of the source document this reference refers to in bytes - *

- */ - public IntegerDt getSizeElement() { - if (mySize == null) { - mySize = new IntegerDt(); - } - return mySize; - } - - - /** - * Sets the value(s) for size (Size of the document in bytes) - * - *

- * Definition: - * The size of the source document this reference refers to in bytes - *

- */ - public DocumentReference setSize(IntegerDt theValue) { - mySize = theValue; - return this; - } - - /** - * Sets the value for size (Size of the document in bytes) - * - *

- * Definition: - * The size of the source document this reference refers to in bytes - *

- */ - public DocumentReference setSize( int theInteger) { - mySize = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for hash (HexBinary representation of SHA1). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A hash of the source document to ensure that changes have not occurred - *

- */ - public StringDt getHash() { - if (myHash == null) { - myHash = new StringDt(); - } - return myHash; - } - - - /** - * Gets the value(s) for hash (HexBinary representation of SHA1). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A hash of the source document to ensure that changes have not occurred - *

- */ - public StringDt getHashElement() { - if (myHash == null) { - myHash = new StringDt(); - } - return myHash; - } - - - /** - * Sets the value(s) for hash (HexBinary representation of SHA1) - * - *

- * Definition: - * A hash of the source document to ensure that changes have not occurred - *

- */ - public DocumentReference setHash(StringDt theValue) { - myHash = theValue; - return this; - } - - /** - * Sets the value for hash (HexBinary representation of SHA1) - * - *

- * Definition: - * A hash of the source document to ensure that changes have not occurred - *

- */ - public DocumentReference setHash( String theString) { - myHash = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for location (Where to access the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A url at which the document can be accessed - *

- */ - public UriDt getLocation() { - if (myLocation == null) { - myLocation = new UriDt(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Where to access the document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A url at which the document can be accessed - *

- */ - public UriDt getLocationElement() { - if (myLocation == null) { - myLocation = new UriDt(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Where to access the document) - * - *

- * Definition: - * A url at which the document can be accessed - *

- */ - public DocumentReference setLocation(UriDt theValue) { - myLocation = theValue; - return this; - } - - /** - * Sets the value for location (Where to access the document) - * - *

- * Definition: - * A url at which the document can be accessed - *

- */ - public DocumentReference setLocation( String theUri) { - myLocation = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for service (If access is not fully described by location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of a service call that can be used to retrieve the document - *

- */ - public Service getService() { - if (myService == null) { - myService = new Service(); - } - return myService; - } - - - /** - * Gets the value(s) for service (If access is not fully described by location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of a service call that can be used to retrieve the document - *

- */ - public Service getServiceElement() { - if (myService == null) { - myService = new Service(); - } - return myService; - } - - - /** - * Sets the value(s) for service (If access is not fully described by location) - * - *

- * Definition: - * A description of a service call that can be used to retrieve the document - *

- */ - public DocumentReference setService(Service theValue) { - myService = theValue; - return this; - } - - - /** - * Gets the value(s) for context (Clinical context of document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The clinical context in which the document was prepared - *

- */ - public Context getContext() { - if (myContext == null) { - myContext = new Context(); - } - return myContext; - } - - - /** - * Gets the value(s) for context (Clinical context of document). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The clinical context in which the document was prepared - *

- */ - public Context getContextElement() { - if (myContext == null) { - myContext = new Context(); - } - return myContext; - } - - - /** - * Sets the value(s) for context (Clinical context of document) - * - *

- * Definition: - * The clinical context in which the document was prepared - *

- */ - public DocumentReference setContext(Context theValue) { - myContext = theValue; - return this; - } - - - /** - * Block class for child element: DocumentReference.relatesTo (Relationships to other documents) - * - *

- * Definition: - * Relationships that this document has with other document references that already exist - *

- */ - @Block() - public static class RelatesTo - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="replaces | transforms | signs | appends", - formalDefinition="The type of relationship that this document has with anther document" - ) - private BoundCodeDt myCode; - - @Child(name="target", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.DocumentReference.class }) - @Description( - shortDefinition="Target of the relationship", - formalDefinition="The target document of this relationship" - ) - private ResourceReferenceDt myTarget; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myTarget); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myTarget); - } - - /** - * Gets the value(s) for code (replaces | transforms | signs | appends). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of relationship that this document has with anther document - *

- */ - public BoundCodeDt getCode() { - if (myCode == null) { - myCode = new BoundCodeDt(DocumentRelationshipTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (replaces | transforms | signs | appends). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of relationship that this document has with anther document - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(DocumentRelationshipTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Sets the value(s) for code (replaces | transforms | signs | appends) - * - *

- * Definition: - * The type of relationship that this document has with anther document - *

- */ - public RelatesTo setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value(s) for code (replaces | transforms | signs | appends) - * - *

- * Definition: - * The type of relationship that this document has with anther document - *

- */ - public RelatesTo setCode(DocumentRelationshipTypeEnum theValue) { - getCode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for target (Target of the relationship). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The target document of this relationship - *

- */ - public ResourceReferenceDt getTarget() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Target of the relationship). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The target document of this relationship - *

- */ - public ResourceReferenceDt getTargetElement() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Target of the relationship) - * - *

- * Definition: - * The target document of this relationship - *

- */ - public RelatesTo setTarget(ResourceReferenceDt theValue) { - myTarget = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: DocumentReference.service (If access is not fully described by location) - * - *

- * Definition: - * A description of a service call that can be used to retrieve the document - *

- */ - @Block() - public static class Service - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Type of service (i.e. XDS.b)", - formalDefinition="The type of the service that can be used to access the documents" - ) - private CodeableConceptDt myType; - - @Child(name="address", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Where service is located (usually a URL)", - formalDefinition="Where the service end-point is located" - ) - private StringDt myAddress; - - @Child(name="parameter", order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Service call parameters", - formalDefinition="A list of named parameters that is used in the service call" - ) - private java.util.List myParameter; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myAddress, myParameter); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myAddress, myParameter); - } - - /** - * Gets the value(s) for type (Type of service (i.e. XDS.b)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of the service that can be used to access the documents - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Type of service (i.e. XDS.b)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of the service that can be used to access the documents - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Type of service (i.e. XDS.b)) - * - *

- * Definition: - * The type of the service that can be used to access the documents - *

- */ - public Service setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for address (Where service is located (usually a URL)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Where the service end-point is located - *

- */ - public StringDt getAddress() { - if (myAddress == null) { - myAddress = new StringDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (Where service is located (usually a URL)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Where the service end-point is located - *

- */ - public StringDt getAddressElement() { - if (myAddress == null) { - myAddress = new StringDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (Where service is located (usually a URL)) - * - *

- * Definition: - * Where the service end-point is located - *

- */ - public Service setAddress(StringDt theValue) { - myAddress = theValue; - return this; - } - - /** - * Sets the value for address (Where service is located (usually a URL)) - * - *

- * Definition: - * Where the service end-point is located - *

- */ - public Service setAddress( String theString) { - myAddress = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for parameter (Service call parameters). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of named parameters that is used in the service call - *

- */ - public java.util.List getParameter() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Gets the value(s) for parameter (Service call parameters). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of named parameters that is used in the service call - *

- */ - public java.util.List getParameterElement() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Sets the value(s) for parameter (Service call parameters) - * - *

- * Definition: - * A list of named parameters that is used in the service call - *

- */ - public Service setParameter(java.util.List theValue) { - myParameter = theValue; - return this; - } - - /** - * Adds and returns a new value for parameter (Service call parameters) - * - *

- * Definition: - * A list of named parameters that is used in the service call - *

- */ - public ServiceParameter addParameter() { - ServiceParameter newType = new ServiceParameter(); - getParameter().add(newType); - return newType; - } - - /** - * Gets the first repetition for parameter (Service call parameters), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of named parameters that is used in the service call - *

- */ - public ServiceParameter getParameterFirstRep() { - if (getParameter().isEmpty()) { - return addParameter(); - } - return getParameter().get(0); - } - - - } - - /** - * Block class for child element: DocumentReference.service.parameter (Service call parameters) - * - *

- * Definition: - * A list of named parameters that is used in the service call - *

- */ - @Block() - public static class ServiceParameter - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Parameter name in service call", - formalDefinition="The name of a parameter" - ) - private StringDt myName; - - @Child(name="value", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Parameter value for the name", - formalDefinition="The value of the named parameter" - ) - private StringDt myValue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myValue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myValue); - } - - /** - * Gets the value(s) for name (Parameter name in service call). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of a parameter - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Parameter name in service call). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of a parameter - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Parameter name in service call) - * - *

- * Definition: - * The name of a parameter - *

- */ - public ServiceParameter setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Parameter name in service call) - * - *

- * Definition: - * The name of a parameter - *

- */ - public ServiceParameter setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for value (Parameter value for the name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the named parameter - *

- */ - public StringDt getValue() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Parameter value for the name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the named parameter - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Sets the value(s) for value (Parameter value for the name) - * - *

- * Definition: - * The value of the named parameter - *

- */ - public ServiceParameter setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - /** - * Sets the value for value (Parameter value for the name) - * - *

- * Definition: - * The value of the named parameter - *

- */ - public ServiceParameter setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - - } - - - - /** - * Block class for child element: DocumentReference.context (Clinical context of document) - * - *

- * Definition: - * The clinical context in which the document was prepared - *

- */ - @Block() - public static class Context - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="event", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Main Clinical Acts Documented", - formalDefinition="This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act" - ) - private java.util.List myEvent; - - @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Time of service that is being documented", - formalDefinition="The time period over which the service that is described by the document was provided" - ) - private PeriodDt myPeriod; - - @Child(name="facilityType", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Kind of facility where patient was seen", - formalDefinition="The kind of facility where the patient was seen" - ) - private CodeableConceptDt myFacilityType; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myPeriod, myFacilityType); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEvent, myPeriod, myFacilityType); - } - - /** - * Gets the value(s) for event (Main Clinical Acts Documented). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act - *

- */ - public java.util.List getEvent() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Gets the value(s) for event (Main Clinical Acts Documented). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act - *

- */ - public java.util.List getEventElement() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - - /** - * Sets the value(s) for event (Main Clinical Acts Documented) - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act - *

- */ - public Context setEvent(java.util.List theValue) { - myEvent = theValue; - return this; - } - - /** - * Adds and returns a new value for event (Main Clinical Acts Documented) - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act - *

- */ - public CodeableConceptDt addEvent() { - CodeableConceptDt newType = new CodeableConceptDt(); - getEvent().add(newType); - return newType; - } - - /** - * Gets the first repetition for event (Main Clinical Acts Documented), - * creating it if it does not already exist. - * - *

- * Definition: - * This list of codes represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which the procedure being documented is necessarily a \"History and Physical\" act - *

- */ - public CodeableConceptDt getEventFirstRep() { - if (getEvent().isEmpty()) { - return addEvent(); - } - return getEvent().get(0); - } - - /** - * Gets the value(s) for period (Time of service that is being documented). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time period over which the service that is described by the document was provided - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Time of service that is being documented). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time period over which the service that is described by the document was provided - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Time of service that is being documented) - * - *

- * Definition: - * The time period over which the service that is described by the document was provided - *

- */ - public Context setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for facilityType (Kind of facility where patient was seen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of facility where the patient was seen - *

- */ - public CodeableConceptDt getFacilityType() { - if (myFacilityType == null) { - myFacilityType = new CodeableConceptDt(); - } - return myFacilityType; - } - - - /** - * Gets the value(s) for facilityType (Kind of facility where patient was seen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of facility where the patient was seen - *

- */ - public CodeableConceptDt getFacilityTypeElement() { - if (myFacilityType == null) { - myFacilityType = new CodeableConceptDt(); - } - return myFacilityType; - } - - - /** - * Sets the value(s) for facilityType (Kind of facility where patient was seen) - * - *

- * Definition: - * The kind of facility where the patient was seen - *

- */ - public Context setFacilityType(CodeableConceptDt theValue) { - myFacilityType = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "DocumentReference"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Encounter.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Encounter.java deleted file mode 100644 index cfd93a198ec..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Encounter.java +++ /dev/null @@ -1,2867 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Encounter Resource - * (An interaction during which services are provided to the patient) - * - *

- * Definition: - * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Encounter - *

- * - */ -@ResourceDef(name="Encounter", profile="http://hl7.org/fhir/profiles/Encounter", id="encounter") -public class Encounter - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Encounter.identifier
- *

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

- * Description:
- * Type: token
- * Path: Encounter.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for status - *

- * Description:
- * Type: token
- * Path: Encounter.status
- *

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

- * Description:
- * Type: token
- * Path: Encounter.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: A date within the period the Encounter lasted
- * Type: date
- * Path: Encounter.period
- *

- */ - @SearchParamDefinition(name="date", path="Encounter.period", description="A date within the period the Encounter lasted", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: A date within the period the Encounter lasted
- * Type: date
- * Path: Encounter.period
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Encounter.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Encounter.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Encounter.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Encounter.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Encounter.subject"); - - /** - * Search parameter constant for length - *

- * Description: Length of encounter in days
- * Type: number
- * Path: Encounter.length
- *

- */ - @SearchParamDefinition(name="length", path="Encounter.length", description="Length of encounter in days", type="number" ) - public static final String SP_LENGTH = "length"; - - /** - * Fluent Client search parameter constant for length - *

- * Description: Length of encounter in days
- * Type: number
- * Path: Encounter.length
- *

- */ - public static final NumberClientParam LENGTH = new NumberClientParam(SP_LENGTH); - - /** - * Search parameter constant for indication - *

- * Description:
- * Type: reference
- * Path: Encounter.indication
- *

- */ - @SearchParamDefinition(name="indication", path="Encounter.indication", description="", type="reference" ) - public static final String SP_INDICATION = "indication"; - - /** - * Fluent Client search parameter constant for indication - *

- * Description:
- * Type: reference
- * Path: Encounter.indication
- *

- */ - public static final ReferenceClientParam INDICATION = new ReferenceClientParam(SP_INDICATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Encounter.indication". - */ - public static final Include INCLUDE_INDICATION = new Include("Encounter.indication"); - - /** - * Search parameter constant for location - *

- * Description:
- * Type: reference
- * Path: Encounter.location.location
- *

- */ - @SearchParamDefinition(name="location", path="Encounter.location.location", description="", type="reference" ) - public static final String SP_LOCATION = "location"; - - /** - * Fluent Client search parameter constant for location - *

- * Description:
- * Type: reference
- * Path: Encounter.location.location
- *

- */ - public static final ReferenceClientParam LOCATION = new ReferenceClientParam(SP_LOCATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Encounter.location.location". - */ - public static final Include INCLUDE_LOCATION_LOCATION = new Include("Encounter.location.location"); - - /** - * Search parameter constant for location-period - *

- * Description:
- * Type: date
- * Path: Encounter.location.period
- *

- */ - @SearchParamDefinition(name="location-period", path="Encounter.location.period", description="", type="date" ) - public static final String SP_LOCATION_PERIOD = "location-period"; - - /** - * Fluent Client search parameter constant for location-period - *

- * Description:
- * Type: date
- * Path: Encounter.location.period
- *

- */ - public static final DateClientParam LOCATION_PERIOD = new DateClientParam(SP_LOCATION_PERIOD); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Identifier(s) by which this encounter is known", - formalDefinition="" - ) - private java.util.List myIdentifier; - - @Child(name="status", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="planned | in progress | onleave | finished | cancelled", - formalDefinition="" - ) - private BoundCodeDt myStatus; - - @Child(name="class", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="inpatient | outpatient | ambulatory | emergency +", - formalDefinition="" - ) - private BoundCodeDt myClassElement; - - @Child(name="type", type=CodeableConceptDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Specific type of encounter", - formalDefinition="Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)" - ) - private java.util.List> myType; - - @Child(name="subject", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="The patient present at the encounter", - formalDefinition="" - ) - private ResourceReferenceDt mySubject; - - @Child(name="participant", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="List of participants involved in the encounter", - formalDefinition="The main practitioner responsible for providing the service" - ) - private java.util.List myParticipant; - - @Child(name="period", type=PeriodDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="The start and end time of the encounter", - formalDefinition="The start and end time of the encounter" - ) - private PeriodDt myPeriod; - - @Child(name="length", type=DurationDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Quantity of time the encounter lasted", - formalDefinition="Quantity of time the encounter lasted. This excludes the time during leaves of absence." - ) - private DurationDt myLength; - - @Child(name="reason", type=CodeableConceptDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Reason the encounter takes place (code)", - formalDefinition="Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis." - ) - private BoundCodeableConceptDt myReason; - - @Child(name="indication", order=9, min=0, max=1, type={ - IResource.class }) - @Description( - shortDefinition="Reason the encounter takes place (resource)", - formalDefinition="Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis." - ) - private ResourceReferenceDt myIndication; - - @Child(name="priority", type=CodeableConceptDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Indicates the urgency of the encounter", - formalDefinition="" - ) - private CodeableConceptDt myPriority; - - @Child(name="hospitalization", order=11, min=0, max=1) - @Description( - shortDefinition="Details about an admission to a clinic", - formalDefinition="Details about an admission to a clinic" - ) - private Hospitalization myHospitalization; - - @Child(name="location", order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="List of locations the patient has been at", - formalDefinition="List of locations at which the patient has been" - ) - private java.util.List myLocation; - - @Child(name="serviceProvider", order=13, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Department or team providing care", - formalDefinition="" - ) - private ResourceReferenceDt myServiceProvider; - - @Child(name="partOf", order=14, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="Another Encounter this encounter is part of", - formalDefinition="Another Encounter of which this encounter is a part of (administratively or in time)." - ) - private ResourceReferenceDt myPartOf; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myStatus, myClassElement, myType, mySubject, myParticipant, myPeriod, myLength, myReason, myIndication, myPriority, myHospitalization, myLocation, myServiceProvider, myPartOf); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myClassElement, myType, mySubject, myParticipant, myPeriod, myLength, myReason, myIndication, myPriority, myHospitalization, myLocation, myServiceProvider, myPartOf); - } - - /** - * Gets the value(s) for identifier (Identifier(s) by which this encounter is known). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifier(s) by which this encounter is known). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifier(s) by which this encounter is known) - * - *

- * Definition: - * - *

- */ - public Encounter setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Identifier(s) by which this encounter is known) - * - *

- * Definition: - * - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Identifier(s) by which this encounter is known), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Identifier(s) by which this encounter is known) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Encounter addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Identifier(s) by which this encounter is known) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Encounter addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for status (planned | in progress | onleave | finished | cancelled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(EncounterStateEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (planned | in progress | onleave | finished | cancelled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(EncounterStateEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (planned | in progress | onleave | finished | cancelled) - * - *

- * Definition: - * - *

- */ - public Encounter setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (planned | in progress | onleave | finished | cancelled) - * - *

- * Definition: - * - *

- */ - public Encounter setStatus(EncounterStateEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for class (inpatient | outpatient | ambulatory | emergency +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getClassElement() { - if (myClassElement == null) { - myClassElement = new BoundCodeDt(EncounterClassEnum.VALUESET_BINDER); - } - return myClassElement; - } - - - /** - * Gets the value(s) for class (inpatient | outpatient | ambulatory | emergency +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getClassElementElement() { - if (myClassElement == null) { - myClassElement = new BoundCodeDt(EncounterClassEnum.VALUESET_BINDER); - } - return myClassElement; - } - - - /** - * Sets the value(s) for class (inpatient | outpatient | ambulatory | emergency +) - * - *

- * Definition: - * - *

- */ - public Encounter setClassElement(BoundCodeDt theValue) { - myClassElement = theValue; - return this; - } - - /** - * Sets the value(s) for class (inpatient | outpatient | ambulatory | emergency +) - * - *

- * Definition: - * - *

- */ - public Encounter setClassElement(EncounterClassEnum theValue) { - getClassElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for type (Specific type of encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) - *

- */ - public java.util.List> getType() { - if (myType == null) { - myType = new java.util.ArrayList>(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Specific type of encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) - *

- */ - public java.util.List> getTypeElement() { - if (myType == null) { - myType = new java.util.ArrayList>(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Specific type of encounter) - * - *

- * Definition: - * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) - *

- */ - public Encounter setType(java.util.List> theValue) { - myType = theValue; - return this; - } - - /** - * Add a value for type (Specific type of encounter) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addType()} method. - * - *

- * Definition: - * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) - *

- */ - public BoundCodeableConceptDt addType(EncounterTypeEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(EncounterTypeEnum.VALUESET_BINDER, theValue); - getType().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for type (Specific type of encounter), - * creating it if it does not already exist. - * - *

- * Definition: - * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) - *

- */ - public BoundCodeableConceptDt getTypeFirstRep() { - if (getType().size() == 0) { - addType(); - } - return getType().get(0); - } - - /** - * Add a value for type (Specific type of encounter) - * - *

- * Definition: - * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) - *

- */ - public BoundCodeableConceptDt addType() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(EncounterTypeEnum.VALUESET_BINDER); - getType().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for type (Specific type of encounter) - * - *

- * Definition: - * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation) - *

- */ - public Encounter setType(EncounterTypeEnum theValue) { - getType().clear(); - addType(theValue); - return this; - } - - - /** - * Gets the value(s) for subject (The patient present at the encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (The patient present at the encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (The patient present at the encounter) - * - *

- * Definition: - * - *

- */ - public Encounter setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for participant (List of participants involved in the encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The main practitioner responsible for providing the service - *

- */ - public java.util.List getParticipant() { - if (myParticipant == null) { - myParticipant = new java.util.ArrayList(); - } - return myParticipant; - } - - - /** - * Gets the value(s) for participant (List of participants involved in the encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The main practitioner responsible for providing the service - *

- */ - public java.util.List getParticipantElement() { - if (myParticipant == null) { - myParticipant = new java.util.ArrayList(); - } - return myParticipant; - } - - - /** - * Sets the value(s) for participant (List of participants involved in the encounter) - * - *

- * Definition: - * The main practitioner responsible for providing the service - *

- */ - public Encounter setParticipant(java.util.List theValue) { - myParticipant = theValue; - return this; - } - - /** - * Adds and returns a new value for participant (List of participants involved in the encounter) - * - *

- * Definition: - * The main practitioner responsible for providing the service - *

- */ - public Participant addParticipant() { - Participant newType = new Participant(); - getParticipant().add(newType); - return newType; - } - - /** - * Gets the first repetition for participant (List of participants involved in the encounter), - * creating it if it does not already exist. - * - *

- * Definition: - * The main practitioner responsible for providing the service - *

- */ - public Participant getParticipantFirstRep() { - if (getParticipant().isEmpty()) { - return addParticipant(); - } - return getParticipant().get(0); - } - - /** - * Gets the value(s) for period (The start and end time of the encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The start and end time of the encounter - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (The start and end time of the encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The start and end time of the encounter - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (The start and end time of the encounter) - * - *

- * Definition: - * The start and end time of the encounter - *

- */ - public Encounter setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for length (Quantity of time the encounter lasted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Quantity of time the encounter lasted. This excludes the time during leaves of absence. - *

- */ - public DurationDt getLength() { - if (myLength == null) { - myLength = new DurationDt(); - } - return myLength; - } - - - /** - * Gets the value(s) for length (Quantity of time the encounter lasted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Quantity of time the encounter lasted. This excludes the time during leaves of absence. - *

- */ - public DurationDt getLengthElement() { - if (myLength == null) { - myLength = new DurationDt(); - } - return myLength; - } - - - /** - * Sets the value(s) for length (Quantity of time the encounter lasted) - * - *

- * Definition: - * Quantity of time the encounter lasted. This excludes the time during leaves of absence. - *

- */ - public Encounter setLength(DurationDt theValue) { - myLength = theValue; - return this; - } - - - /** - * Gets the value(s) for reason (Reason the encounter takes place (code)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis. - *

- */ - public BoundCodeableConceptDt getReason() { - if (myReason == null) { - myReason = new BoundCodeableConceptDt(EncounterReasonCodesEnum.VALUESET_BINDER); - } - return myReason; - } - - - /** - * Gets the value(s) for reason (Reason the encounter takes place (code)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis. - *

- */ - public BoundCodeableConceptDt getReasonElement() { - if (myReason == null) { - myReason = new BoundCodeableConceptDt(EncounterReasonCodesEnum.VALUESET_BINDER); - } - return myReason; - } - - - /** - * Sets the value(s) for reason (Reason the encounter takes place (code)) - * - *

- * Definition: - * Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis. - *

- */ - public Encounter setReason(BoundCodeableConceptDt theValue) { - myReason = theValue; - return this; - } - - /** - * Sets the value(s) for reason (Reason the encounter takes place (code)) - * - *

- * Definition: - * Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis. - *

- */ - public Encounter setReason(EncounterReasonCodesEnum theValue) { - getReason().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for indication (Reason the encounter takes place (resource)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. - *

- */ - public ResourceReferenceDt getIndication() { - if (myIndication == null) { - myIndication = new ResourceReferenceDt(); - } - return myIndication; - } - - - /** - * Gets the value(s) for indication (Reason the encounter takes place (resource)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. - *

- */ - public ResourceReferenceDt getIndicationElement() { - if (myIndication == null) { - myIndication = new ResourceReferenceDt(); - } - return myIndication; - } - - - /** - * Sets the value(s) for indication (Reason the encounter takes place (resource)) - * - *

- * Definition: - * Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. - *

- */ - public Encounter setIndication(ResourceReferenceDt theValue) { - myIndication = theValue; - return this; - } - - - /** - * Gets the value(s) for priority (Indicates the urgency of the encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getPriority() { - if (myPriority == null) { - myPriority = new CodeableConceptDt(); - } - return myPriority; - } - - - /** - * Gets the value(s) for priority (Indicates the urgency of the encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getPriorityElement() { - if (myPriority == null) { - myPriority = new CodeableConceptDt(); - } - return myPriority; - } - - - /** - * Sets the value(s) for priority (Indicates the urgency of the encounter) - * - *

- * Definition: - * - *

- */ - public Encounter setPriority(CodeableConceptDt theValue) { - myPriority = theValue; - return this; - } - - - /** - * Gets the value(s) for hospitalization (Details about an admission to a clinic). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details about an admission to a clinic - *

- */ - public Hospitalization getHospitalization() { - if (myHospitalization == null) { - myHospitalization = new Hospitalization(); - } - return myHospitalization; - } - - - /** - * Gets the value(s) for hospitalization (Details about an admission to a clinic). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details about an admission to a clinic - *

- */ - public Hospitalization getHospitalizationElement() { - if (myHospitalization == null) { - myHospitalization = new Hospitalization(); - } - return myHospitalization; - } - - - /** - * Sets the value(s) for hospitalization (Details about an admission to a clinic) - * - *

- * Definition: - * Details about an admission to a clinic - *

- */ - public Encounter setHospitalization(Hospitalization theValue) { - myHospitalization = theValue; - return this; - } - - - /** - * Gets the value(s) for location (List of locations the patient has been at). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * List of locations at which the patient has been - *

- */ - public java.util.List getLocation() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (List of locations the patient has been at). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * List of locations at which the patient has been - *

- */ - public java.util.List getLocationElement() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (List of locations the patient has been at) - * - *

- * Definition: - * List of locations at which the patient has been - *

- */ - public Encounter setLocation(java.util.List theValue) { - myLocation = theValue; - return this; - } - - /** - * Adds and returns a new value for location (List of locations the patient has been at) - * - *

- * Definition: - * List of locations at which the patient has been - *

- */ - public Location addLocation() { - Location newType = new Location(); - getLocation().add(newType); - return newType; - } - - /** - * Gets the first repetition for location (List of locations the patient has been at), - * creating it if it does not already exist. - * - *

- * Definition: - * List of locations at which the patient has been - *

- */ - public Location getLocationFirstRep() { - if (getLocation().isEmpty()) { - return addLocation(); - } - return getLocation().get(0); - } - - /** - * Gets the value(s) for serviceProvider (Department or team providing care). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getServiceProvider() { - if (myServiceProvider == null) { - myServiceProvider = new ResourceReferenceDt(); - } - return myServiceProvider; - } - - - /** - * Gets the value(s) for serviceProvider (Department or team providing care). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getServiceProviderElement() { - if (myServiceProvider == null) { - myServiceProvider = new ResourceReferenceDt(); - } - return myServiceProvider; - } - - - /** - * Sets the value(s) for serviceProvider (Department or team providing care) - * - *

- * Definition: - * - *

- */ - public Encounter setServiceProvider(ResourceReferenceDt theValue) { - myServiceProvider = theValue; - return this; - } - - - /** - * Gets the value(s) for partOf (Another Encounter this encounter is part of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Another Encounter of which this encounter is a part of (administratively or in time). - *

- */ - public ResourceReferenceDt getPartOf() { - if (myPartOf == null) { - myPartOf = new ResourceReferenceDt(); - } - return myPartOf; - } - - - /** - * Gets the value(s) for partOf (Another Encounter this encounter is part of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Another Encounter of which this encounter is a part of (administratively or in time). - *

- */ - public ResourceReferenceDt getPartOfElement() { - if (myPartOf == null) { - myPartOf = new ResourceReferenceDt(); - } - return myPartOf; - } - - - /** - * Sets the value(s) for partOf (Another Encounter this encounter is part of) - * - *

- * Definition: - * Another Encounter of which this encounter is a part of (administratively or in time). - *

- */ - public Encounter setPartOf(ResourceReferenceDt theValue) { - myPartOf = theValue; - return this; - } - - - /** - * Block class for child element: Encounter.participant (List of participants involved in the encounter) - * - *

- * Definition: - * The main practitioner responsible for providing the service - *

- */ - @Block() - public static class Participant - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Role of participant in encounter", - formalDefinition="" - ) - private java.util.List> myType; - - @Child(name="individual", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Persons involved in the encounter other than the patient", - formalDefinition="" - ) - private ResourceReferenceDt myIndividual; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myIndividual); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myIndividual); - } - - /** - * Gets the value(s) for type (Role of participant in encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List> getType() { - if (myType == null) { - myType = new java.util.ArrayList>(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Role of participant in encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List> getTypeElement() { - if (myType == null) { - myType = new java.util.ArrayList>(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Role of participant in encounter) - * - *

- * Definition: - * - *

- */ - public Participant setType(java.util.List> theValue) { - myType = theValue; - return this; - } - - /** - * Add a value for type (Role of participant in encounter) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addType()} method. - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt addType(ParticipantTypeEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER, theValue); - getType().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for type (Role of participant in encounter), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt getTypeFirstRep() { - if (getType().size() == 0) { - addType(); - } - return getType().get(0); - } - - /** - * Add a value for type (Role of participant in encounter) - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt addType() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ParticipantTypeEnum.VALUESET_BINDER); - getType().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for type (Role of participant in encounter) - * - *

- * Definition: - * - *

- */ - public Participant setType(ParticipantTypeEnum theValue) { - getType().clear(); - addType(theValue); - return this; - } - - - /** - * Gets the value(s) for individual (Persons involved in the encounter other than the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getIndividual() { - if (myIndividual == null) { - myIndividual = new ResourceReferenceDt(); - } - return myIndividual; - } - - - /** - * Gets the value(s) for individual (Persons involved in the encounter other than the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getIndividualElement() { - if (myIndividual == null) { - myIndividual = new ResourceReferenceDt(); - } - return myIndividual; - } - - - /** - * Sets the value(s) for individual (Persons involved in the encounter other than the patient) - * - *

- * Definition: - * - *

- */ - public Participant setIndividual(ResourceReferenceDt theValue) { - myIndividual = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Encounter.hospitalization (Details about an admission to a clinic) - * - *

- * Definition: - * Details about an admission to a clinic - *

- */ - @Block() - public static class Hospitalization - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="preAdmissionIdentifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Pre-admission identifier", - formalDefinition="" - ) - private IdentifierDt myPreAdmissionIdentifier; - - @Child(name="origin", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="The location from which the patient came before admission", - formalDefinition="" - ) - private ResourceReferenceDt myOrigin; - - @Child(name="admitSource", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="From where patient was admitted (physician referral, transfer)", - formalDefinition="" - ) - private BoundCodeableConceptDt myAdmitSource; - - @Child(name="period", type=PeriodDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Period during which the patient was admitted", - formalDefinition="Period during which the patient was admitted" - ) - private PeriodDt myPeriod; - - @Child(name="accomodation", order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Where the patient stays during this encounter", - formalDefinition="" - ) - private java.util.List myAccomodation; - - @Child(name="diet", type=CodeableConceptDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Dietary restrictions for the patient", - formalDefinition="Dietary restrictions for the patient" - ) - private CodeableConceptDt myDiet; - - @Child(name="specialCourtesy", type=CodeableConceptDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Special courtesies (VIP, board member)", - formalDefinition="" - ) - private java.util.List mySpecialCourtesy; - - @Child(name="specialArrangement", type=CodeableConceptDt.class, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Wheelchair, translator, stretcher, etc", - formalDefinition="" - ) - private java.util.List mySpecialArrangement; - - @Child(name="destination", order=8, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Location to which the patient is discharged", - formalDefinition="" - ) - private ResourceReferenceDt myDestination; - - @Child(name="dischargeDisposition", type=CodeableConceptDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Category or kind of location after discharge", - formalDefinition="" - ) - private CodeableConceptDt myDischargeDisposition; - - @Child(name="dischargeDiagnosis", order=10, min=0, max=1, type={ - IResource.class }) - @Description( - shortDefinition="The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete", - formalDefinition="" - ) - private ResourceReferenceDt myDischargeDiagnosis; - - @Child(name="reAdmission", type=BooleanDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Is this hospitalization a readmission?", - formalDefinition="Whether this hospitalization is a readmission" - ) - private BooleanDt myReAdmission; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPreAdmissionIdentifier, myOrigin, myAdmitSource, myPeriod, myAccomodation, myDiet, mySpecialCourtesy, mySpecialArrangement, myDestination, myDischargeDisposition, myDischargeDiagnosis, myReAdmission); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPreAdmissionIdentifier, myOrigin, myAdmitSource, myPeriod, myAccomodation, myDiet, mySpecialCourtesy, mySpecialArrangement, myDestination, myDischargeDisposition, myDischargeDiagnosis, myReAdmission); - } - - /** - * Gets the value(s) for preAdmissionIdentifier (Pre-admission identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IdentifierDt getPreAdmissionIdentifier() { - if (myPreAdmissionIdentifier == null) { - myPreAdmissionIdentifier = new IdentifierDt(); - } - return myPreAdmissionIdentifier; - } - - - /** - * Gets the value(s) for preAdmissionIdentifier (Pre-admission identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IdentifierDt getPreAdmissionIdentifierElement() { - if (myPreAdmissionIdentifier == null) { - myPreAdmissionIdentifier = new IdentifierDt(); - } - return myPreAdmissionIdentifier; - } - - - /** - * Sets the value(s) for preAdmissionIdentifier (Pre-admission identifier) - * - *

- * Definition: - * - *

- */ - public Hospitalization setPreAdmissionIdentifier(IdentifierDt theValue) { - myPreAdmissionIdentifier = theValue; - return this; - } - - /** - * Sets the value for preAdmissionIdentifier (Pre-admission identifier) - * - *

- * Definition: - * - *

- */ - public Hospitalization setPreAdmissionIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myPreAdmissionIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for preAdmissionIdentifier (Pre-admission identifier) - * - *

- * Definition: - * - *

- */ - public Hospitalization setPreAdmissionIdentifier( String theSystem, String theValue) { - myPreAdmissionIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for origin (The location from which the patient came before admission). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getOrigin() { - if (myOrigin == null) { - myOrigin = new ResourceReferenceDt(); - } - return myOrigin; - } - - - /** - * Gets the value(s) for origin (The location from which the patient came before admission). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getOriginElement() { - if (myOrigin == null) { - myOrigin = new ResourceReferenceDt(); - } - return myOrigin; - } - - - /** - * Sets the value(s) for origin (The location from which the patient came before admission) - * - *

- * Definition: - * - *

- */ - public Hospitalization setOrigin(ResourceReferenceDt theValue) { - myOrigin = theValue; - return this; - } - - - /** - * Gets the value(s) for admitSource (From where patient was admitted (physician referral, transfer)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt getAdmitSource() { - if (myAdmitSource == null) { - myAdmitSource = new BoundCodeableConceptDt(AdmitSourceEnum.VALUESET_BINDER); - } - return myAdmitSource; - } - - - /** - * Gets the value(s) for admitSource (From where patient was admitted (physician referral, transfer)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeableConceptDt getAdmitSourceElement() { - if (myAdmitSource == null) { - myAdmitSource = new BoundCodeableConceptDt(AdmitSourceEnum.VALUESET_BINDER); - } - return myAdmitSource; - } - - - /** - * Sets the value(s) for admitSource (From where patient was admitted (physician referral, transfer)) - * - *

- * Definition: - * - *

- */ - public Hospitalization setAdmitSource(BoundCodeableConceptDt theValue) { - myAdmitSource = theValue; - return this; - } - - /** - * Sets the value(s) for admitSource (From where patient was admitted (physician referral, transfer)) - * - *

- * Definition: - * - *

- */ - public Hospitalization setAdmitSource(AdmitSourceEnum theValue) { - getAdmitSource().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for period (Period during which the patient was admitted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Period during which the patient was admitted - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Period during which the patient was admitted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Period during which the patient was admitted - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Period during which the patient was admitted) - * - *

- * Definition: - * Period during which the patient was admitted - *

- */ - public Hospitalization setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for accomodation (Where the patient stays during this encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getAccomodation() { - if (myAccomodation == null) { - myAccomodation = new java.util.ArrayList(); - } - return myAccomodation; - } - - - /** - * Gets the value(s) for accomodation (Where the patient stays during this encounter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getAccomodationElement() { - if (myAccomodation == null) { - myAccomodation = new java.util.ArrayList(); - } - return myAccomodation; - } - - - /** - * Sets the value(s) for accomodation (Where the patient stays during this encounter) - * - *

- * Definition: - * - *

- */ - public Hospitalization setAccomodation(java.util.List theValue) { - myAccomodation = theValue; - return this; - } - - /** - * Adds and returns a new value for accomodation (Where the patient stays during this encounter) - * - *

- * Definition: - * - *

- */ - public HospitalizationAccomodation addAccomodation() { - HospitalizationAccomodation newType = new HospitalizationAccomodation(); - getAccomodation().add(newType); - return newType; - } - - /** - * Gets the first repetition for accomodation (Where the patient stays during this encounter), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public HospitalizationAccomodation getAccomodationFirstRep() { - if (getAccomodation().isEmpty()) { - return addAccomodation(); - } - return getAccomodation().get(0); - } - - /** - * Gets the value(s) for diet (Dietary restrictions for the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Dietary restrictions for the patient - *

- */ - public CodeableConceptDt getDiet() { - if (myDiet == null) { - myDiet = new CodeableConceptDt(); - } - return myDiet; - } - - - /** - * Gets the value(s) for diet (Dietary restrictions for the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Dietary restrictions for the patient - *

- */ - public CodeableConceptDt getDietElement() { - if (myDiet == null) { - myDiet = new CodeableConceptDt(); - } - return myDiet; - } - - - /** - * Sets the value(s) for diet (Dietary restrictions for the patient) - * - *

- * Definition: - * Dietary restrictions for the patient - *

- */ - public Hospitalization setDiet(CodeableConceptDt theValue) { - myDiet = theValue; - return this; - } - - - /** - * Gets the value(s) for specialCourtesy (Special courtesies (VIP, board member)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getSpecialCourtesy() { - if (mySpecialCourtesy == null) { - mySpecialCourtesy = new java.util.ArrayList(); - } - return mySpecialCourtesy; - } - - - /** - * Gets the value(s) for specialCourtesy (Special courtesies (VIP, board member)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getSpecialCourtesyElement() { - if (mySpecialCourtesy == null) { - mySpecialCourtesy = new java.util.ArrayList(); - } - return mySpecialCourtesy; - } - - - /** - * Sets the value(s) for specialCourtesy (Special courtesies (VIP, board member)) - * - *

- * Definition: - * - *

- */ - public Hospitalization setSpecialCourtesy(java.util.List theValue) { - mySpecialCourtesy = theValue; - return this; - } - - /** - * Adds and returns a new value for specialCourtesy (Special courtesies (VIP, board member)) - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt addSpecialCourtesy() { - CodeableConceptDt newType = new CodeableConceptDt(); - getSpecialCourtesy().add(newType); - return newType; - } - - /** - * Gets the first repetition for specialCourtesy (Special courtesies (VIP, board member)), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getSpecialCourtesyFirstRep() { - if (getSpecialCourtesy().isEmpty()) { - return addSpecialCourtesy(); - } - return getSpecialCourtesy().get(0); - } - - /** - * Gets the value(s) for specialArrangement (Wheelchair, translator, stretcher, etc). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getSpecialArrangement() { - if (mySpecialArrangement == null) { - mySpecialArrangement = new java.util.ArrayList(); - } - return mySpecialArrangement; - } - - - /** - * Gets the value(s) for specialArrangement (Wheelchair, translator, stretcher, etc). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getSpecialArrangementElement() { - if (mySpecialArrangement == null) { - mySpecialArrangement = new java.util.ArrayList(); - } - return mySpecialArrangement; - } - - - /** - * Sets the value(s) for specialArrangement (Wheelchair, translator, stretcher, etc) - * - *

- * Definition: - * - *

- */ - public Hospitalization setSpecialArrangement(java.util.List theValue) { - mySpecialArrangement = theValue; - return this; - } - - /** - * Adds and returns a new value for specialArrangement (Wheelchair, translator, stretcher, etc) - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt addSpecialArrangement() { - CodeableConceptDt newType = new CodeableConceptDt(); - getSpecialArrangement().add(newType); - return newType; - } - - /** - * Gets the first repetition for specialArrangement (Wheelchair, translator, stretcher, etc), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getSpecialArrangementFirstRep() { - if (getSpecialArrangement().isEmpty()) { - return addSpecialArrangement(); - } - return getSpecialArrangement().get(0); - } - - /** - * Gets the value(s) for destination (Location to which the patient is discharged). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getDestination() { - if (myDestination == null) { - myDestination = new ResourceReferenceDt(); - } - return myDestination; - } - - - /** - * Gets the value(s) for destination (Location to which the patient is discharged). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getDestinationElement() { - if (myDestination == null) { - myDestination = new ResourceReferenceDt(); - } - return myDestination; - } - - - /** - * Sets the value(s) for destination (Location to which the patient is discharged) - * - *

- * Definition: - * - *

- */ - public Hospitalization setDestination(ResourceReferenceDt theValue) { - myDestination = theValue; - return this; - } - - - /** - * Gets the value(s) for dischargeDisposition (Category or kind of location after discharge). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getDischargeDisposition() { - if (myDischargeDisposition == null) { - myDischargeDisposition = new CodeableConceptDt(); - } - return myDischargeDisposition; - } - - - /** - * Gets the value(s) for dischargeDisposition (Category or kind of location after discharge). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getDischargeDispositionElement() { - if (myDischargeDisposition == null) { - myDischargeDisposition = new CodeableConceptDt(); - } - return myDischargeDisposition; - } - - - /** - * Sets the value(s) for dischargeDisposition (Category or kind of location after discharge) - * - *

- * Definition: - * - *

- */ - public Hospitalization setDischargeDisposition(CodeableConceptDt theValue) { - myDischargeDisposition = theValue; - return this; - } - - - /** - * Gets the value(s) for dischargeDiagnosis (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getDischargeDiagnosis() { - if (myDischargeDiagnosis == null) { - myDischargeDiagnosis = new ResourceReferenceDt(); - } - return myDischargeDiagnosis; - } - - - /** - * Gets the value(s) for dischargeDiagnosis (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getDischargeDiagnosisElement() { - if (myDischargeDiagnosis == null) { - myDischargeDiagnosis = new ResourceReferenceDt(); - } - return myDischargeDiagnosis; - } - - - /** - * Sets the value(s) for dischargeDiagnosis (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete) - * - *

- * Definition: - * - *

- */ - public Hospitalization setDischargeDiagnosis(ResourceReferenceDt theValue) { - myDischargeDiagnosis = theValue; - return this; - } - - - /** - * Gets the value(s) for reAdmission (Is this hospitalization a readmission?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this hospitalization is a readmission - *

- */ - public BooleanDt getReAdmission() { - if (myReAdmission == null) { - myReAdmission = new BooleanDt(); - } - return myReAdmission; - } - - - /** - * Gets the value(s) for reAdmission (Is this hospitalization a readmission?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this hospitalization is a readmission - *

- */ - public BooleanDt getReAdmissionElement() { - if (myReAdmission == null) { - myReAdmission = new BooleanDt(); - } - return myReAdmission; - } - - - /** - * Sets the value(s) for reAdmission (Is this hospitalization a readmission?) - * - *

- * Definition: - * Whether this hospitalization is a readmission - *

- */ - public Hospitalization setReAdmission(BooleanDt theValue) { - myReAdmission = theValue; - return this; - } - - /** - * Sets the value for reAdmission (Is this hospitalization a readmission?) - * - *

- * Definition: - * Whether this hospitalization is a readmission - *

- */ - public Hospitalization setReAdmission( boolean theBoolean) { - myReAdmission = new BooleanDt(theBoolean); - return this; - } - - - - } - - /** - * Block class for child element: Encounter.hospitalization.accomodation (Where the patient stays during this encounter) - * - *

- * Definition: - * - *

- */ - @Block() - public static class HospitalizationAccomodation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="bed", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="The bed that is assigned to the patient", - formalDefinition="" - ) - private ResourceReferenceDt myBed; - - @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Period during which the patient was assigned the bed", - formalDefinition="" - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myBed, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myBed, myPeriod); - } - - /** - * Gets the value(s) for bed (The bed that is assigned to the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getBed() { - if (myBed == null) { - myBed = new ResourceReferenceDt(); - } - return myBed; - } - - - /** - * Gets the value(s) for bed (The bed that is assigned to the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getBedElement() { - if (myBed == null) { - myBed = new ResourceReferenceDt(); - } - return myBed; - } - - - /** - * Sets the value(s) for bed (The bed that is assigned to the patient) - * - *

- * Definition: - * - *

- */ - public HospitalizationAccomodation setBed(ResourceReferenceDt theValue) { - myBed = theValue; - return this; - } - - - /** - * Gets the value(s) for period (Period during which the patient was assigned the bed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Period during which the patient was assigned the bed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Period during which the patient was assigned the bed) - * - *

- * Definition: - * - *

- */ - public HospitalizationAccomodation setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - } - - - - /** - * Block class for child element: Encounter.location (List of locations the patient has been at) - * - *

- * Definition: - * List of locations at which the patient has been - *

- */ - @Block() - public static class Location - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="location", order=0, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Location the encounter takes place", - formalDefinition="The location where the encounter takes place" - ) - private ResourceReferenceDt myLocation; - - @Child(name="period", type=PeriodDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Time period during which the patient was present at the location", - formalDefinition="" - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLocation, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLocation, myPeriod); - } - - /** - * Gets the value(s) for location (Location the encounter takes place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The location where the encounter takes place - *

- */ - public ResourceReferenceDt getLocation() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Location the encounter takes place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The location where the encounter takes place - *

- */ - public ResourceReferenceDt getLocationElement() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Location the encounter takes place) - * - *

- * Definition: - * The location where the encounter takes place - *

- */ - public Location setLocation(ResourceReferenceDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for period (Time period during which the patient was present at the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Time period during which the patient was present at the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Time period during which the patient was present at the location) - * - *

- * Definition: - * - *

- */ - public Location setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Encounter"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/FamilyHistory.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/FamilyHistory.java deleted file mode 100644 index 4f99311a5df..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/FamilyHistory.java +++ /dev/null @@ -1,1299 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR FamilyHistory Resource - * (Information about patient's relatives, relevant for patient) - * - *

- * Definition: - * Significant health events and conditions for people related to the subject relevant in the context of care for the subject - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/FamilyHistory - *

- * - */ -@ResourceDef(name="FamilyHistory", profile="http://hl7.org/fhir/profiles/FamilyHistory", id="familyhistory") -public class FamilyHistory - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description: The identity of a subject to list family history items for
- * Type: reference
- * Path: FamilyHistory.subject
- *

- */ - @SearchParamDefinition(name="subject", path="FamilyHistory.subject", description="The identity of a subject to list family history items for", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The identity of a subject to list family history items for
- * Type: reference
- * Path: FamilyHistory.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "FamilyHistory.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("FamilyHistory.subject"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Id(s) for this record", - formalDefinition="This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="subject", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Patient history is about", - formalDefinition="The person who this history concerns" - ) - private ResourceReferenceDt mySubject; - - @Child(name="note", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Additional details not covered elsewhere", - formalDefinition="Conveys information about family history not specific to individual relations." - ) - private StringDt myNote; - - @Child(name="relation", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Relative described by history", - formalDefinition="The related person. Each FamilyHistory resource contains the entire family history for a single person." - ) - private java.util.List myRelation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, mySubject, myNote, myRelation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, mySubject, myNote, myRelation); - } - - /** - * Gets the value(s) for identifier (External Id(s) for this record). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Id(s) for this record). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Id(s) for this record) - * - *

- * Definition: - * This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public FamilyHistory setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Id(s) for this record) - * - *

- * Definition: - * This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Id(s) for this record), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Id(s) for this record) - * - *

- * Definition: - * This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public FamilyHistory addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Id(s) for this record) - * - *

- * Definition: - * This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public FamilyHistory addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for subject (Patient history is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who this history concerns - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Patient history is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who this history concerns - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Patient history is about) - * - *

- * Definition: - * The person who this history concerns - *

- */ - public FamilyHistory setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for note (Additional details not covered elsewhere). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Conveys information about family history not specific to individual relations. - *

- */ - public StringDt getNote() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - - /** - * Gets the value(s) for note (Additional details not covered elsewhere). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Conveys information about family history not specific to individual relations. - *

- */ - public StringDt getNoteElement() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - - /** - * Sets the value(s) for note (Additional details not covered elsewhere) - * - *

- * Definition: - * Conveys information about family history not specific to individual relations. - *

- */ - public FamilyHistory setNote(StringDt theValue) { - myNote = theValue; - return this; - } - - /** - * Sets the value for note (Additional details not covered elsewhere) - * - *

- * Definition: - * Conveys information about family history not specific to individual relations. - *

- */ - public FamilyHistory setNote( String theString) { - myNote = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for relation (Relative described by history). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The related person. Each FamilyHistory resource contains the entire family history for a single person. - *

- */ - public java.util.List getRelation() { - if (myRelation == null) { - myRelation = new java.util.ArrayList(); - } - return myRelation; - } - - - /** - * Gets the value(s) for relation (Relative described by history). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The related person. Each FamilyHistory resource contains the entire family history for a single person. - *

- */ - public java.util.List getRelationElement() { - if (myRelation == null) { - myRelation = new java.util.ArrayList(); - } - return myRelation; - } - - - /** - * Sets the value(s) for relation (Relative described by history) - * - *

- * Definition: - * The related person. Each FamilyHistory resource contains the entire family history for a single person. - *

- */ - public FamilyHistory setRelation(java.util.List theValue) { - myRelation = theValue; - return this; - } - - /** - * Adds and returns a new value for relation (Relative described by history) - * - *

- * Definition: - * The related person. Each FamilyHistory resource contains the entire family history for a single person. - *

- */ - public Relation addRelation() { - Relation newType = new Relation(); - getRelation().add(newType); - return newType; - } - - /** - * Gets the first repetition for relation (Relative described by history), - * creating it if it does not already exist. - * - *

- * Definition: - * The related person. Each FamilyHistory resource contains the entire family history for a single person. - *

- */ - public Relation getRelationFirstRep() { - if (getRelation().isEmpty()) { - return addRelation(); - } - return getRelation().get(0); - } - - /** - * Block class for child element: FamilyHistory.relation (Relative described by history) - * - *

- * Definition: - * The related person. Each FamilyHistory resource contains the entire family history for a single person. - *

- */ - @Block() - public static class Relation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="The family member described", - formalDefinition="This will either be a name or a description. E.g. \"Aunt Susan\", \"my cousin with the red hair\"" - ) - private StringDt myName; - - @Child(name="relationship", type=CodeableConceptDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Relationship to the subject", - formalDefinition="The type of relationship this person has to the patient (father, mother, brother etc.)" - ) - private CodeableConceptDt myRelationship; - - @Child(name="born", order=2, min=0, max=1, type={ - PeriodDt.class, DateDt.class, StringDt.class }) - @Description( - shortDefinition="(approximate) date of birth", - formalDefinition="The actual or approximate date of birth of the relative" - ) - private IDatatype myBorn; - - @Child(name="deceased", order=3, min=0, max=1, type={ - BooleanDt.class, AgeDt.class, RangeDt.class, DateDt.class, StringDt.class }) - @Description( - shortDefinition="Dead? How old/when?", - formalDefinition="If this resource is indicating that the related person is deceased, then an indicator of whether the person is deceased (yes) or not (no) or the age or age range or description of age at death - can be indicated here. If the reason for death is known, then it can be indicated in the outcome code of the condition - in this case the deceased property should still be set." - ) - private IDatatype myDeceased; - - @Child(name="note", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="General note about related person", - formalDefinition="This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible." - ) - private StringDt myNote; - - @Child(name="condition", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Condition that the related person had", - formalDefinition="The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition." - ) - private java.util.List myCondition; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myRelationship, myBorn, myDeceased, myNote, myCondition); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myRelationship, myBorn, myDeceased, myNote, myCondition); - } - - /** - * Gets the value(s) for name (The family member described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This will either be a name or a description. E.g. \"Aunt Susan\", \"my cousin with the red hair\" - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (The family member described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This will either be a name or a description. E.g. \"Aunt Susan\", \"my cousin with the red hair\" - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (The family member described) - * - *

- * Definition: - * This will either be a name or a description. E.g. \"Aunt Susan\", \"my cousin with the red hair\" - *

- */ - public Relation setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (The family member described) - * - *

- * Definition: - * This will either be a name or a description. E.g. \"Aunt Susan\", \"my cousin with the red hair\" - *

- */ - public Relation setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for relationship (Relationship to the subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of relationship this person has to the patient (father, mother, brother etc.) - *

- */ - public CodeableConceptDt getRelationship() { - if (myRelationship == null) { - myRelationship = new CodeableConceptDt(); - } - return myRelationship; - } - - - /** - * Gets the value(s) for relationship (Relationship to the subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of relationship this person has to the patient (father, mother, brother etc.) - *

- */ - public CodeableConceptDt getRelationshipElement() { - if (myRelationship == null) { - myRelationship = new CodeableConceptDt(); - } - return myRelationship; - } - - - /** - * Sets the value(s) for relationship (Relationship to the subject) - * - *

- * Definition: - * The type of relationship this person has to the patient (father, mother, brother etc.) - *

- */ - public Relation setRelationship(CodeableConceptDt theValue) { - myRelationship = theValue; - return this; - } - - - /** - * Gets the value(s) for born[x] ((approximate) date of birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual or approximate date of birth of the relative - *

- */ - public IDatatype getBorn() { - return myBorn; - } - - - /** - * Gets the value(s) for born[x] ((approximate) date of birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual or approximate date of birth of the relative - *

- */ - public IDatatype getBornElement() { - return myBorn; - } - - - /** - * Sets the value(s) for born[x] ((approximate) date of birth) - * - *

- * Definition: - * The actual or approximate date of birth of the relative - *

- */ - public Relation setBorn(IDatatype theValue) { - myBorn = theValue; - return this; - } - - - /** - * Gets the value(s) for deceased[x] (Dead? How old/when?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this resource is indicating that the related person is deceased, then an indicator of whether the person is deceased (yes) or not (no) or the age or age range or description of age at death - can be indicated here. If the reason for death is known, then it can be indicated in the outcome code of the condition - in this case the deceased property should still be set. - *

- */ - public IDatatype getDeceased() { - return myDeceased; - } - - - /** - * Gets the value(s) for deceased[x] (Dead? How old/when?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this resource is indicating that the related person is deceased, then an indicator of whether the person is deceased (yes) or not (no) or the age or age range or description of age at death - can be indicated here. If the reason for death is known, then it can be indicated in the outcome code of the condition - in this case the deceased property should still be set. - *

- */ - public IDatatype getDeceasedElement() { - return myDeceased; - } - - - /** - * Sets the value(s) for deceased[x] (Dead? How old/when?) - * - *

- * Definition: - * If this resource is indicating that the related person is deceased, then an indicator of whether the person is deceased (yes) or not (no) or the age or age range or description of age at death - can be indicated here. If the reason for death is known, then it can be indicated in the outcome code of the condition - in this case the deceased property should still be set. - *

- */ - public Relation setDeceased(IDatatype theValue) { - myDeceased = theValue; - return this; - } - - - /** - * Gets the value(s) for note (General note about related person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible. - *

- */ - public StringDt getNote() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - - /** - * Gets the value(s) for note (General note about related person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible. - *

- */ - public StringDt getNoteElement() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - - /** - * Sets the value(s) for note (General note about related person) - * - *

- * Definition: - * This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible. - *

- */ - public Relation setNote(StringDt theValue) { - myNote = theValue; - return this; - } - - /** - * Sets the value for note (General note about related person) - * - *

- * Definition: - * This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible. - *

- */ - public Relation setNote( String theString) { - myNote = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for condition (Condition that the related person had). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition. - *

- */ - public java.util.List getCondition() { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - return myCondition; - } - - - /** - * Gets the value(s) for condition (Condition that the related person had). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition. - *

- */ - public java.util.List getConditionElement() { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - return myCondition; - } - - - /** - * Sets the value(s) for condition (Condition that the related person had) - * - *

- * Definition: - * The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition. - *

- */ - public Relation setCondition(java.util.List theValue) { - myCondition = theValue; - return this; - } - - /** - * Adds and returns a new value for condition (Condition that the related person had) - * - *

- * Definition: - * The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition. - *

- */ - public RelationCondition addCondition() { - RelationCondition newType = new RelationCondition(); - getCondition().add(newType); - return newType; - } - - /** - * Gets the first repetition for condition (Condition that the related person had), - * creating it if it does not already exist. - * - *

- * Definition: - * The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition. - *

- */ - public RelationCondition getConditionFirstRep() { - if (getCondition().isEmpty()) { - return addCondition(); - } - return getCondition().get(0); - } - - - } - - /** - * Block class for child element: FamilyHistory.relation.condition (Condition that the related person had) - * - *

- * Definition: - * The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition. - *

- */ - @Block() - public static class RelationCondition - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Condition suffered by relation", - formalDefinition="The actual condition specified. Could be a coded condition (like MI or Diabetes) or a less specific string like 'cancer' depending on how much is known about the condition and the capabilities of the creating system" - ) - private CodeableConceptDt myType; - - @Child(name="outcome", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="deceased | permanent disability | etc.", - formalDefinition="Indicates what happened as a result of this condition. If the condition resulted in death, deceased date is captured on the relation." - ) - private CodeableConceptDt myOutcome; - - @Child(name="onset", order=2, min=0, max=1, type={ - AgeDt.class, RangeDt.class, StringDt.class }) - @Description( - shortDefinition="When condition first manifested", - formalDefinition="Either the age of onset, range of approximate age or descriptive string can be recorded. For conditions with multiple occurrences, this describes the first known occurrence." - ) - private IDatatype myOnset; - - @Child(name="note", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Extra information about condition", - formalDefinition="An area where general notes can be placed about this specific condition." - ) - private StringDt myNote; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myOutcome, myOnset, myNote); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myOutcome, myOnset, myNote); - } - - /** - * Gets the value(s) for type (Condition suffered by relation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual condition specified. Could be a coded condition (like MI or Diabetes) or a less specific string like 'cancer' depending on how much is known about the condition and the capabilities of the creating system - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Condition suffered by relation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual condition specified. Could be a coded condition (like MI or Diabetes) or a less specific string like 'cancer' depending on how much is known about the condition and the capabilities of the creating system - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Condition suffered by relation) - * - *

- * Definition: - * The actual condition specified. Could be a coded condition (like MI or Diabetes) or a less specific string like 'cancer' depending on how much is known about the condition and the capabilities of the creating system - *

- */ - public RelationCondition setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for outcome (deceased | permanent disability | etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates what happened as a result of this condition. If the condition resulted in death, deceased date is captured on the relation. - *

- */ - public CodeableConceptDt getOutcome() { - if (myOutcome == null) { - myOutcome = new CodeableConceptDt(); - } - return myOutcome; - } - - - /** - * Gets the value(s) for outcome (deceased | permanent disability | etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates what happened as a result of this condition. If the condition resulted in death, deceased date is captured on the relation. - *

- */ - public CodeableConceptDt getOutcomeElement() { - if (myOutcome == null) { - myOutcome = new CodeableConceptDt(); - } - return myOutcome; - } - - - /** - * Sets the value(s) for outcome (deceased | permanent disability | etc.) - * - *

- * Definition: - * Indicates what happened as a result of this condition. If the condition resulted in death, deceased date is captured on the relation. - *

- */ - public RelationCondition setOutcome(CodeableConceptDt theValue) { - myOutcome = theValue; - return this; - } - - - /** - * Gets the value(s) for onset[x] (When condition first manifested). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Either the age of onset, range of approximate age or descriptive string can be recorded. For conditions with multiple occurrences, this describes the first known occurrence. - *

- */ - public IDatatype getOnset() { - return myOnset; - } - - - /** - * Gets the value(s) for onset[x] (When condition first manifested). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Either the age of onset, range of approximate age or descriptive string can be recorded. For conditions with multiple occurrences, this describes the first known occurrence. - *

- */ - public IDatatype getOnsetElement() { - return myOnset; - } - - - /** - * Sets the value(s) for onset[x] (When condition first manifested) - * - *

- * Definition: - * Either the age of onset, range of approximate age or descriptive string can be recorded. For conditions with multiple occurrences, this describes the first known occurrence. - *

- */ - public RelationCondition setOnset(IDatatype theValue) { - myOnset = theValue; - return this; - } - - - /** - * Gets the value(s) for note (Extra information about condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An area where general notes can be placed about this specific condition. - *

- */ - public StringDt getNote() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - - /** - * Gets the value(s) for note (Extra information about condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An area where general notes can be placed about this specific condition. - *

- */ - public StringDt getNoteElement() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - - /** - * Sets the value(s) for note (Extra information about condition) - * - *

- * Definition: - * An area where general notes can be placed about this specific condition. - *

- */ - public RelationCondition setNote(StringDt theValue) { - myNote = theValue; - return this; - } - - /** - * Sets the value for note (Extra information about condition) - * - *

- * Definition: - * An area where general notes can be placed about this specific condition. - *

- */ - public RelationCondition setNote( String theString) { - myNote = new StringDt(theString); - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "FamilyHistory"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GVFMeta.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GVFMeta.java deleted file mode 100644 index 0ba0b8068a0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GVFMeta.java +++ /dev/null @@ -1,2206 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR GVFMeta Resource - * (Meta data of a GVF file) - * - *

- * Definition: - * Pragmas from a GVF - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/GVFMeta - *

- * - */ -@ResourceDef(name="GVFMeta", profile="http://hl7.org/fhir/profiles/GVFMeta", id="gvfmeta") -public class GVFMeta - extends BaseResource implements IResource { - - /** - * Search parameter constant for patient - *

- * Description: Patient being described in the file
- * Type: reference
- * Path: GVFMeta.subject.patient
- *

- */ - @SearchParamDefinition(name="patient", path="GVFMeta.subject.patient", description="Patient being described in the file", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: Patient being described in the file
- * Type: reference
- * Path: GVFMeta.subject.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "GVFMeta.subject.patient". - */ - public static final Include INCLUDE_SUBJECT_PATIENT = new Include("GVFMeta.subject.patient"); - - /** - * Search parameter constant for file - *

- * Description: URL to source file of the resource
- * Type: string
- * Path: GVFMeta.sourceFile
- *

- */ - @SearchParamDefinition(name="file", path="GVFMeta.sourceFile", description="URL to source file of the resource", type="string" ) - public static final String SP_FILE = "file"; - - /** - * Fluent Client search parameter constant for file - *

- * Description: URL to source file of the resource
- * Type: string
- * Path: GVFMeta.sourceFile
- *

- */ - public static final StringClientParam FILE = new StringClientParam(SP_FILE); - - - @Child(name="subject", order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Subject being described by the file", - formalDefinition="Subject being described by the file" - ) - private java.util.List mySubject; - - @Child(name="sourceFile", type=AttachmentDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Source GVF file", - formalDefinition="GVF file from which data of the resource is extracted" - ) - private AttachmentDt mySourceFile; - - @Child(name="gvfVersion", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Version of the GVF file", - formalDefinition="Valid version of the GVF file" - ) - private CodeDt myGvfVersion; - - @Child(name="referenceFasta", type=UriDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="FASTA file used as reference assembly", - formalDefinition="URL to FASTA file used as reference assembly" - ) - private UriDt myReferenceFasta; - - @Child(name="featureGFF3", type=UriDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="GFF3 file containing feature being described in the file", - formalDefinition="GFF3 file containing feature being described in the file" - ) - private UriDt myFeatureGFF3; - - @Child(name="fileDate", type=DateDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Date when the file is updated", - formalDefinition="Date when the file is updated" - ) - private DateDt myFileDate; - - @Child(name="individual", type=StringDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Id of individual being described in the file", - formalDefinition="Id of individual being described in the file" - ) - private java.util.List myIndividual; - - @Child(name="population", type=CodeDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Code for population which the individual can be categorized into", - formalDefinition="Code for population which the individual can be categorized into" - ) - private CodeDt myPopulation; - - @Child(name="platform", order=8, min=0, max=1) - @Description( - shortDefinition="Sequencing platform", - formalDefinition="Technology platform used in the sequencing" - ) - private Platform myPlatform; - - @Child(name="sequencingScope", type=CodeDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Sequencing scope", - formalDefinition="Scope of the sequencing" - ) - private CodeDt mySequencingScope; - - @Child(name="captureMethod", type=CodeDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Capture method", - formalDefinition="Capture method used in the sequencing" - ) - private CodeDt myCaptureMethod; - - @Child(name="captureRegions", type=UriDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Region captured in the file", - formalDefinition="Region captured in the file" - ) - private UriDt myCaptureRegions; - - @Child(name="sequenceAlignment", type=StringDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="Sequence alignment algorithm/pipline used", - formalDefinition="Sequence alignment algorithm/pipline used" - ) - private StringDt mySequenceAlignment; - - @Child(name="variantCalling", type=StringDt.class, order=13, min=0, max=1) - @Description( - shortDefinition="Pipline used for variant calling", - formalDefinition="Pipline used for variant calling" - ) - private StringDt myVariantCalling; - - @Child(name="sampleDescription", type=StringDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="Description of sample used in the sequencing", - formalDefinition="Description of sample used in the sequencing" - ) - private StringDt mySampleDescription; - - @Child(name="genomicSource", type=CodeDt.class, order=15, min=0, max=1) - @Description( - shortDefinition="Source of the sample", - formalDefinition="Source of the sample" - ) - private CodeDt myGenomicSource; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, mySourceFile, myGvfVersion, myReferenceFasta, myFeatureGFF3, myFileDate, myIndividual, myPopulation, myPlatform, mySequencingScope, myCaptureMethod, myCaptureRegions, mySequenceAlignment, myVariantCalling, mySampleDescription, myGenomicSource); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, mySourceFile, myGvfVersion, myReferenceFasta, myFeatureGFF3, myFileDate, myIndividual, myPopulation, myPlatform, mySequencingScope, myCaptureMethod, myCaptureRegions, mySequenceAlignment, myVariantCalling, mySampleDescription, myGenomicSource); - } - - /** - * Gets the value(s) for subject (Subject being described by the file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject being described by the file - *

- */ - public java.util.List getSubject() { - if (mySubject == null) { - mySubject = new java.util.ArrayList(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Subject being described by the file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject being described by the file - *

- */ - public java.util.List getSubjectElement() { - if (mySubject == null) { - mySubject = new java.util.ArrayList(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Subject being described by the file) - * - *

- * Definition: - * Subject being described by the file - *

- */ - public GVFMeta setSubject(java.util.List theValue) { - mySubject = theValue; - return this; - } - - /** - * Adds and returns a new value for subject (Subject being described by the file) - * - *

- * Definition: - * Subject being described by the file - *

- */ - public Subject addSubject() { - Subject newType = new Subject(); - getSubject().add(newType); - return newType; - } - - /** - * Gets the first repetition for subject (Subject being described by the file), - * creating it if it does not already exist. - * - *

- * Definition: - * Subject being described by the file - *

- */ - public Subject getSubjectFirstRep() { - if (getSubject().isEmpty()) { - return addSubject(); - } - return getSubject().get(0); - } - - /** - * Gets the value(s) for sourceFile (Source GVF file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * GVF file from which data of the resource is extracted - *

- */ - public AttachmentDt getSourceFile() { - if (mySourceFile == null) { - mySourceFile = new AttachmentDt(); - } - return mySourceFile; - } - - - /** - * Gets the value(s) for sourceFile (Source GVF file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * GVF file from which data of the resource is extracted - *

- */ - public AttachmentDt getSourceFileElement() { - if (mySourceFile == null) { - mySourceFile = new AttachmentDt(); - } - return mySourceFile; - } - - - /** - * Sets the value(s) for sourceFile (Source GVF file) - * - *

- * Definition: - * GVF file from which data of the resource is extracted - *

- */ - public GVFMeta setSourceFile(AttachmentDt theValue) { - mySourceFile = theValue; - return this; - } - - - /** - * Gets the value(s) for gvfVersion (Version of the GVF file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Valid version of the GVF file - *

- */ - public CodeDt getGvfVersion() { - if (myGvfVersion == null) { - myGvfVersion = new CodeDt(); - } - return myGvfVersion; - } - - - /** - * Gets the value(s) for gvfVersion (Version of the GVF file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Valid version of the GVF file - *

- */ - public CodeDt getGvfVersionElement() { - if (myGvfVersion == null) { - myGvfVersion = new CodeDt(); - } - return myGvfVersion; - } - - - /** - * Sets the value(s) for gvfVersion (Version of the GVF file) - * - *

- * Definition: - * Valid version of the GVF file - *

- */ - public GVFMeta setGvfVersion(CodeDt theValue) { - myGvfVersion = theValue; - return this; - } - - /** - * Sets the value for gvfVersion (Version of the GVF file) - * - *

- * Definition: - * Valid version of the GVF file - *

- */ - public GVFMeta setGvfVersion( String theCode) { - myGvfVersion = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for referenceFasta (FASTA file used as reference assembly). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * URL to FASTA file used as reference assembly - *

- */ - public UriDt getReferenceFasta() { - if (myReferenceFasta == null) { - myReferenceFasta = new UriDt(); - } - return myReferenceFasta; - } - - - /** - * Gets the value(s) for referenceFasta (FASTA file used as reference assembly). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * URL to FASTA file used as reference assembly - *

- */ - public UriDt getReferenceFastaElement() { - if (myReferenceFasta == null) { - myReferenceFasta = new UriDt(); - } - return myReferenceFasta; - } - - - /** - * Sets the value(s) for referenceFasta (FASTA file used as reference assembly) - * - *

- * Definition: - * URL to FASTA file used as reference assembly - *

- */ - public GVFMeta setReferenceFasta(UriDt theValue) { - myReferenceFasta = theValue; - return this; - } - - /** - * Sets the value for referenceFasta (FASTA file used as reference assembly) - * - *

- * Definition: - * URL to FASTA file used as reference assembly - *

- */ - public GVFMeta setReferenceFasta( String theUri) { - myReferenceFasta = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for featureGFF3 (GFF3 file containing feature being described in the file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * GFF3 file containing feature being described in the file - *

- */ - public UriDt getFeatureGFF3() { - if (myFeatureGFF3 == null) { - myFeatureGFF3 = new UriDt(); - } - return myFeatureGFF3; - } - - - /** - * Gets the value(s) for featureGFF3 (GFF3 file containing feature being described in the file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * GFF3 file containing feature being described in the file - *

- */ - public UriDt getFeatureGFF3Element() { - if (myFeatureGFF3 == null) { - myFeatureGFF3 = new UriDt(); - } - return myFeatureGFF3; - } - - - /** - * Sets the value(s) for featureGFF3 (GFF3 file containing feature being described in the file) - * - *

- * Definition: - * GFF3 file containing feature being described in the file - *

- */ - public GVFMeta setFeatureGFF3(UriDt theValue) { - myFeatureGFF3 = theValue; - return this; - } - - /** - * Sets the value for featureGFF3 (GFF3 file containing feature being described in the file) - * - *

- * Definition: - * GFF3 file containing feature being described in the file - *

- */ - public GVFMeta setFeatureGFF3( String theUri) { - myFeatureGFF3 = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for fileDate (Date when the file is updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when the file is updated - *

- */ - public DateDt getFileDate() { - if (myFileDate == null) { - myFileDate = new DateDt(); - } - return myFileDate; - } - - - /** - * Gets the value(s) for fileDate (Date when the file is updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when the file is updated - *

- */ - public DateDt getFileDateElement() { - if (myFileDate == null) { - myFileDate = new DateDt(); - } - return myFileDate; - } - - - /** - * Sets the value(s) for fileDate (Date when the file is updated) - * - *

- * Definition: - * Date when the file is updated - *

- */ - public GVFMeta setFileDate(DateDt theValue) { - myFileDate = theValue; - return this; - } - - /** - * Sets the value for fileDate (Date when the file is updated) - * - *

- * Definition: - * Date when the file is updated - *

- */ - public GVFMeta setFileDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myFileDate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for fileDate (Date when the file is updated) - * - *

- * Definition: - * Date when the file is updated - *

- */ - public GVFMeta setFileDateWithDayPrecision( Date theDate) { - myFileDate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for individual (Id of individual being described in the file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of individual being described in the file - *

- */ - public java.util.List getIndividual() { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - return myIndividual; - } - - - /** - * Gets the value(s) for individual (Id of individual being described in the file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of individual being described in the file - *

- */ - public java.util.List getIndividualElement() { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - return myIndividual; - } - - - /** - * Sets the value(s) for individual (Id of individual being described in the file) - * - *

- * Definition: - * Id of individual being described in the file - *

- */ - public GVFMeta setIndividual(java.util.List theValue) { - myIndividual = theValue; - return this; - } - - /** - * Adds and returns a new value for individual (Id of individual being described in the file) - * - *

- * Definition: - * Id of individual being described in the file - *

- */ - public StringDt addIndividual() { - StringDt newType = new StringDt(); - getIndividual().add(newType); - return newType; - } - - /** - * Gets the first repetition for individual (Id of individual being described in the file), - * creating it if it does not already exist. - * - *

- * Definition: - * Id of individual being described in the file - *

- */ - public StringDt getIndividualFirstRep() { - if (getIndividual().isEmpty()) { - return addIndividual(); - } - return getIndividual().get(0); - } - /** - * Adds a new value for individual (Id of individual being described in the file) - * - *

- * Definition: - * Id of individual being described in the file - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFMeta addIndividual( String theString) { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - myIndividual.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for population (Code for population which the individual can be categorized into). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code for population which the individual can be categorized into - *

- */ - public CodeDt getPopulation() { - if (myPopulation == null) { - myPopulation = new CodeDt(); - } - return myPopulation; - } - - - /** - * Gets the value(s) for population (Code for population which the individual can be categorized into). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code for population which the individual can be categorized into - *

- */ - public CodeDt getPopulationElement() { - if (myPopulation == null) { - myPopulation = new CodeDt(); - } - return myPopulation; - } - - - /** - * Sets the value(s) for population (Code for population which the individual can be categorized into) - * - *

- * Definition: - * Code for population which the individual can be categorized into - *

- */ - public GVFMeta setPopulation(CodeDt theValue) { - myPopulation = theValue; - return this; - } - - /** - * Sets the value for population (Code for population which the individual can be categorized into) - * - *

- * Definition: - * Code for population which the individual can be categorized into - *

- */ - public GVFMeta setPopulation( String theCode) { - myPopulation = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for platform (Sequencing platform). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Technology platform used in the sequencing - *

- */ - public Platform getPlatform() { - if (myPlatform == null) { - myPlatform = new Platform(); - } - return myPlatform; - } - - - /** - * Gets the value(s) for platform (Sequencing platform). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Technology platform used in the sequencing - *

- */ - public Platform getPlatformElement() { - if (myPlatform == null) { - myPlatform = new Platform(); - } - return myPlatform; - } - - - /** - * Sets the value(s) for platform (Sequencing platform) - * - *

- * Definition: - * Technology platform used in the sequencing - *

- */ - public GVFMeta setPlatform(Platform theValue) { - myPlatform = theValue; - return this; - } - - - /** - * Gets the value(s) for sequencingScope (Sequencing scope). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Scope of the sequencing - *

- */ - public CodeDt getSequencingScope() { - if (mySequencingScope == null) { - mySequencingScope = new CodeDt(); - } - return mySequencingScope; - } - - - /** - * Gets the value(s) for sequencingScope (Sequencing scope). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Scope of the sequencing - *

- */ - public CodeDt getSequencingScopeElement() { - if (mySequencingScope == null) { - mySequencingScope = new CodeDt(); - } - return mySequencingScope; - } - - - /** - * Sets the value(s) for sequencingScope (Sequencing scope) - * - *

- * Definition: - * Scope of the sequencing - *

- */ - public GVFMeta setSequencingScope(CodeDt theValue) { - mySequencingScope = theValue; - return this; - } - - /** - * Sets the value for sequencingScope (Sequencing scope) - * - *

- * Definition: - * Scope of the sequencing - *

- */ - public GVFMeta setSequencingScope( String theCode) { - mySequencingScope = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for captureMethod (Capture method). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Capture method used in the sequencing - *

- */ - public CodeDt getCaptureMethod() { - if (myCaptureMethod == null) { - myCaptureMethod = new CodeDt(); - } - return myCaptureMethod; - } - - - /** - * Gets the value(s) for captureMethod (Capture method). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Capture method used in the sequencing - *

- */ - public CodeDt getCaptureMethodElement() { - if (myCaptureMethod == null) { - myCaptureMethod = new CodeDt(); - } - return myCaptureMethod; - } - - - /** - * Sets the value(s) for captureMethod (Capture method) - * - *

- * Definition: - * Capture method used in the sequencing - *

- */ - public GVFMeta setCaptureMethod(CodeDt theValue) { - myCaptureMethod = theValue; - return this; - } - - /** - * Sets the value for captureMethod (Capture method) - * - *

- * Definition: - * Capture method used in the sequencing - *

- */ - public GVFMeta setCaptureMethod( String theCode) { - myCaptureMethod = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for captureRegions (Region captured in the file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Region captured in the file - *

- */ - public UriDt getCaptureRegions() { - if (myCaptureRegions == null) { - myCaptureRegions = new UriDt(); - } - return myCaptureRegions; - } - - - /** - * Gets the value(s) for captureRegions (Region captured in the file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Region captured in the file - *

- */ - public UriDt getCaptureRegionsElement() { - if (myCaptureRegions == null) { - myCaptureRegions = new UriDt(); - } - return myCaptureRegions; - } - - - /** - * Sets the value(s) for captureRegions (Region captured in the file) - * - *

- * Definition: - * Region captured in the file - *

- */ - public GVFMeta setCaptureRegions(UriDt theValue) { - myCaptureRegions = theValue; - return this; - } - - /** - * Sets the value for captureRegions (Region captured in the file) - * - *

- * Definition: - * Region captured in the file - *

- */ - public GVFMeta setCaptureRegions( String theUri) { - myCaptureRegions = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for sequenceAlignment (Sequence alignment algorithm/pipline used). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence alignment algorithm/pipline used - *

- */ - public StringDt getSequenceAlignment() { - if (mySequenceAlignment == null) { - mySequenceAlignment = new StringDt(); - } - return mySequenceAlignment; - } - - - /** - * Gets the value(s) for sequenceAlignment (Sequence alignment algorithm/pipline used). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence alignment algorithm/pipline used - *

- */ - public StringDt getSequenceAlignmentElement() { - if (mySequenceAlignment == null) { - mySequenceAlignment = new StringDt(); - } - return mySequenceAlignment; - } - - - /** - * Sets the value(s) for sequenceAlignment (Sequence alignment algorithm/pipline used) - * - *

- * Definition: - * Sequence alignment algorithm/pipline used - *

- */ - public GVFMeta setSequenceAlignment(StringDt theValue) { - mySequenceAlignment = theValue; - return this; - } - - /** - * Sets the value for sequenceAlignment (Sequence alignment algorithm/pipline used) - * - *

- * Definition: - * Sequence alignment algorithm/pipline used - *

- */ - public GVFMeta setSequenceAlignment( String theString) { - mySequenceAlignment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for variantCalling (Pipline used for variant calling). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Pipline used for variant calling - *

- */ - public StringDt getVariantCalling() { - if (myVariantCalling == null) { - myVariantCalling = new StringDt(); - } - return myVariantCalling; - } - - - /** - * Gets the value(s) for variantCalling (Pipline used for variant calling). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Pipline used for variant calling - *

- */ - public StringDt getVariantCallingElement() { - if (myVariantCalling == null) { - myVariantCalling = new StringDt(); - } - return myVariantCalling; - } - - - /** - * Sets the value(s) for variantCalling (Pipline used for variant calling) - * - *

- * Definition: - * Pipline used for variant calling - *

- */ - public GVFMeta setVariantCalling(StringDt theValue) { - myVariantCalling = theValue; - return this; - } - - /** - * Sets the value for variantCalling (Pipline used for variant calling) - * - *

- * Definition: - * Pipline used for variant calling - *

- */ - public GVFMeta setVariantCalling( String theString) { - myVariantCalling = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for sampleDescription (Description of sample used in the sequencing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Description of sample used in the sequencing - *

- */ - public StringDt getSampleDescription() { - if (mySampleDescription == null) { - mySampleDescription = new StringDt(); - } - return mySampleDescription; - } - - - /** - * Gets the value(s) for sampleDescription (Description of sample used in the sequencing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Description of sample used in the sequencing - *

- */ - public StringDt getSampleDescriptionElement() { - if (mySampleDescription == null) { - mySampleDescription = new StringDt(); - } - return mySampleDescription; - } - - - /** - * Sets the value(s) for sampleDescription (Description of sample used in the sequencing) - * - *

- * Definition: - * Description of sample used in the sequencing - *

- */ - public GVFMeta setSampleDescription(StringDt theValue) { - mySampleDescription = theValue; - return this; - } - - /** - * Sets the value for sampleDescription (Description of sample used in the sequencing) - * - *

- * Definition: - * Description of sample used in the sequencing - *

- */ - public GVFMeta setSampleDescription( String theString) { - mySampleDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for genomicSource (Source of the sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Source of the sample - *

- */ - public CodeDt getGenomicSource() { - if (myGenomicSource == null) { - myGenomicSource = new CodeDt(); - } - return myGenomicSource; - } - - - /** - * Gets the value(s) for genomicSource (Source of the sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Source of the sample - *

- */ - public CodeDt getGenomicSourceElement() { - if (myGenomicSource == null) { - myGenomicSource = new CodeDt(); - } - return myGenomicSource; - } - - - /** - * Sets the value(s) for genomicSource (Source of the sample) - * - *

- * Definition: - * Source of the sample - *

- */ - public GVFMeta setGenomicSource(CodeDt theValue) { - myGenomicSource = theValue; - return this; - } - - /** - * Sets the value for genomicSource (Source of the sample) - * - *

- * Definition: - * Source of the sample - *

- */ - public GVFMeta setGenomicSource( String theCode) { - myGenomicSource = new CodeDt(theCode); - return this; - } - - - /** - * Block class for child element: GVFMeta.subject (Subject being described by the file) - * - *

- * Definition: - * Subject being described by the file - *

- */ - @Block() - public static class Subject - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="patient", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Identity of the subejct", - formalDefinition="Identity of the subejct" - ) - private ResourceReferenceDt myPatient; - - @Child(name="fieldId", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Id of individual field of the file that correspond to the subject", - formalDefinition="Id of individual field of the file that correspond to the subject" - ) - private StringDt myFieldId; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPatient, myFieldId); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPatient, myFieldId); - } - - /** - * Gets the value(s) for patient (Identity of the subejct). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identity of the subejct - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Identity of the subejct). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identity of the subejct - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Identity of the subejct) - * - *

- * Definition: - * Identity of the subejct - *

- */ - public Subject setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for fieldId (Id of individual field of the file that correspond to the subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of individual field of the file that correspond to the subject - *

- */ - public StringDt getFieldId() { - if (myFieldId == null) { - myFieldId = new StringDt(); - } - return myFieldId; - } - - - /** - * Gets the value(s) for fieldId (Id of individual field of the file that correspond to the subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of individual field of the file that correspond to the subject - *

- */ - public StringDt getFieldIdElement() { - if (myFieldId == null) { - myFieldId = new StringDt(); - } - return myFieldId; - } - - - /** - * Sets the value(s) for fieldId (Id of individual field of the file that correspond to the subject) - * - *

- * Definition: - * Id of individual field of the file that correspond to the subject - *

- */ - public Subject setFieldId(StringDt theValue) { - myFieldId = theValue; - return this; - } - - /** - * Sets the value for fieldId (Id of individual field of the file that correspond to the subject) - * - *

- * Definition: - * Id of individual field of the file that correspond to the subject - *

- */ - public Subject setFieldId( String theString) { - myFieldId = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: GVFMeta.platform (Sequencing platform) - * - *

- * Definition: - * Technology platform used in the sequencing - *

- */ - @Block() - public static class Platform - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="class", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Platform class", - formalDefinition="Class of the sequencing platform" - ) - private CodeDt myClassElement; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Platform version", - formalDefinition="Version of the platform being used" - ) - private StringDt myVersion; - - @Child(name="name", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Platform name", - formalDefinition="Name of the platform being used" - ) - private CodeDt myName; - - @Child(name="identity", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Platform id", - formalDefinition="Id of the platfrom being used" - ) - private StringDt myIdentity; - - @Child(name="readLength", type=IntegerDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Read length", - formalDefinition="Read length of the technology" - ) - private IntegerDt myReadLength; - - @Child(name="readType", type=CodeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Read type", - formalDefinition="Read type of the technology" - ) - private CodeDt myReadType; - - @Child(name="readPairSpan", type=IntegerDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Read pair span", - formalDefinition="Read pair span of the technology" - ) - private IntegerDt myReadPairSpan; - - @Child(name="averageCoverage", type=IntegerDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Average coverage", - formalDefinition="Average coverage of the technology" - ) - private IntegerDt myAverageCoverage; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myClassElement, myVersion, myName, myIdentity, myReadLength, myReadType, myReadPairSpan, myAverageCoverage); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myClassElement, myVersion, myName, myIdentity, myReadLength, myReadType, myReadPairSpan, myAverageCoverage); - } - - /** - * Gets the value(s) for class (Platform class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Class of the sequencing platform - *

- */ - public CodeDt getClassElement() { - if (myClassElement == null) { - myClassElement = new CodeDt(); - } - return myClassElement; - } - - - /** - * Gets the value(s) for class (Platform class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Class of the sequencing platform - *

- */ - public CodeDt getClassElementElement() { - if (myClassElement == null) { - myClassElement = new CodeDt(); - } - return myClassElement; - } - - - /** - * Sets the value(s) for class (Platform class) - * - *

- * Definition: - * Class of the sequencing platform - *

- */ - public Platform setClassElement(CodeDt theValue) { - myClassElement = theValue; - return this; - } - - /** - * Sets the value for class (Platform class) - * - *

- * Definition: - * Class of the sequencing platform - *

- */ - public Platform setClassElement( String theCode) { - myClassElement = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for version (Platform version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Version of the platform being used - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Platform version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Version of the platform being used - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Platform version) - * - *

- * Definition: - * Version of the platform being used - *

- */ - public Platform setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Platform version) - * - *

- * Definition: - * Version of the platform being used - *

- */ - public Platform setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (Platform name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the platform being used - *

- */ - public CodeDt getName() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Platform name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the platform being used - *

- */ - public CodeDt getNameElement() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Platform name) - * - *

- * Definition: - * Name of the platform being used - *

- */ - public Platform setName(CodeDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Platform name) - * - *

- * Definition: - * Name of the platform being used - *

- */ - public Platform setName( String theCode) { - myName = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for identity (Platform id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the platfrom being used - *

- */ - public StringDt getIdentity() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (Platform id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the platfrom being used - *

- */ - public StringDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Sets the value(s) for identity (Platform id) - * - *

- * Definition: - * Id of the platfrom being used - *

- */ - public Platform setIdentity(StringDt theValue) { - myIdentity = theValue; - return this; - } - - /** - * Sets the value for identity (Platform id) - * - *

- * Definition: - * Id of the platfrom being used - *

- */ - public Platform setIdentity( String theString) { - myIdentity = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for readLength (Read length). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Read length of the technology - *

- */ - public IntegerDt getReadLength() { - if (myReadLength == null) { - myReadLength = new IntegerDt(); - } - return myReadLength; - } - - - /** - * Gets the value(s) for readLength (Read length). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Read length of the technology - *

- */ - public IntegerDt getReadLengthElement() { - if (myReadLength == null) { - myReadLength = new IntegerDt(); - } - return myReadLength; - } - - - /** - * Sets the value(s) for readLength (Read length) - * - *

- * Definition: - * Read length of the technology - *

- */ - public Platform setReadLength(IntegerDt theValue) { - myReadLength = theValue; - return this; - } - - /** - * Sets the value for readLength (Read length) - * - *

- * Definition: - * Read length of the technology - *

- */ - public Platform setReadLength( int theInteger) { - myReadLength = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for readType (Read type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Read type of the technology - *

- */ - public CodeDt getReadType() { - if (myReadType == null) { - myReadType = new CodeDt(); - } - return myReadType; - } - - - /** - * Gets the value(s) for readType (Read type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Read type of the technology - *

- */ - public CodeDt getReadTypeElement() { - if (myReadType == null) { - myReadType = new CodeDt(); - } - return myReadType; - } - - - /** - * Sets the value(s) for readType (Read type) - * - *

- * Definition: - * Read type of the technology - *

- */ - public Platform setReadType(CodeDt theValue) { - myReadType = theValue; - return this; - } - - /** - * Sets the value for readType (Read type) - * - *

- * Definition: - * Read type of the technology - *

- */ - public Platform setReadType( String theCode) { - myReadType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for readPairSpan (Read pair span). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Read pair span of the technology - *

- */ - public IntegerDt getReadPairSpan() { - if (myReadPairSpan == null) { - myReadPairSpan = new IntegerDt(); - } - return myReadPairSpan; - } - - - /** - * Gets the value(s) for readPairSpan (Read pair span). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Read pair span of the technology - *

- */ - public IntegerDt getReadPairSpanElement() { - if (myReadPairSpan == null) { - myReadPairSpan = new IntegerDt(); - } - return myReadPairSpan; - } - - - /** - * Sets the value(s) for readPairSpan (Read pair span) - * - *

- * Definition: - * Read pair span of the technology - *

- */ - public Platform setReadPairSpan(IntegerDt theValue) { - myReadPairSpan = theValue; - return this; - } - - /** - * Sets the value for readPairSpan (Read pair span) - * - *

- * Definition: - * Read pair span of the technology - *

- */ - public Platform setReadPairSpan( int theInteger) { - myReadPairSpan = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for averageCoverage (Average coverage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Average coverage of the technology - *

- */ - public IntegerDt getAverageCoverage() { - if (myAverageCoverage == null) { - myAverageCoverage = new IntegerDt(); - } - return myAverageCoverage; - } - - - /** - * Gets the value(s) for averageCoverage (Average coverage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Average coverage of the technology - *

- */ - public IntegerDt getAverageCoverageElement() { - if (myAverageCoverage == null) { - myAverageCoverage = new IntegerDt(); - } - return myAverageCoverage; - } - - - /** - * Sets the value(s) for averageCoverage (Average coverage) - * - *

- * Definition: - * Average coverage of the technology - *

- */ - public Platform setAverageCoverage(IntegerDt theValue) { - myAverageCoverage = theValue; - return this; - } - - /** - * Sets the value for averageCoverage (Average coverage) - * - *

- * Definition: - * Average coverage of the technology - *

- */ - public Platform setAverageCoverage( int theInteger) { - myAverageCoverage = new IntegerDt(theInteger); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "GVFMeta"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GVFVariant.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GVFVariant.java deleted file mode 100644 index 1bff62322a2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GVFVariant.java +++ /dev/null @@ -1,4316 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR GVFVariant Resource - * (GVF Variant) - * - *

- * Definition: - * A segment of a GVF file - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/GVFVariant - *

- * - */ -@ResourceDef(name="GVFVariant", profile="http://hl7.org/fhir/profiles/GVFVariant", id="gvfvariant") -public class GVFVariant - extends BaseResource implements IResource { - - /** - * Search parameter constant for patient - *

- * Description: Patient being described
- * Type: reference
- * Path: GVFVariant.subject.patient
- *

- */ - @SearchParamDefinition(name="patient", path="GVFVariant.subject.patient", description="Patient being described ", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: Patient being described
- * Type: reference
- * Path: GVFVariant.subject.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "GVFVariant.subject.patient". - */ - public static final Include INCLUDE_SUBJECT_PATIENT = new Include("GVFVariant.subject.patient"); - - /** - * Search parameter constant for coordinate - *

- * Description: Coordinate of the variant being studied
- * Type: string
- * Path:
- *

- */ - @SearchParamDefinition(name="coordinate", path="", description="Coordinate of the variant being studied", type="string" ) - public static final String SP_COORDINATE = "coordinate"; - - /** - * Fluent Client search parameter constant for coordinate - *

- * Description: Coordinate of the variant being studied
- * Type: string
- * Path:
- *

- */ - public static final StringClientParam COORDINATE = new StringClientParam(SP_COORDINATE); - - - @Child(name="subject", order=0, min=0, max=1) - @Description( - shortDefinition="Subject described by this segment of GVF file", - formalDefinition="Subject described by this segment of GVF file" - ) - private Subject mySubject; - - @Child(name="meta", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.GVFMeta.class }) - @Description( - shortDefinition="GVF Meta", - formalDefinition="Meta information of a GVF file" - ) - private ResourceReferenceDt myMeta; - - @Child(name="sourceFile", type=AttachmentDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Source file", - formalDefinition="Source GVF file" - ) - private AttachmentDt mySourceFile; - - @Child(name="seqid", type=StringDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Sequence Id", - formalDefinition="Id the sequence being described" - ) - private StringDt mySeqid; - - @Child(name="source", type=StringDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Data source", - formalDefinition="Algorithm or software used to generate the data" - ) - private StringDt mySource; - - @Child(name="type", type=CodeDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Feature type", - formalDefinition="Type of the feature being described" - ) - private CodeDt myType; - - @Child(name="start", type=IntegerDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="Start position", - formalDefinition="Start position" - ) - private IntegerDt myStart; - - @Child(name="end", type=IntegerDt.class, order=7, min=1, max=1) - @Description( - shortDefinition="End position", - formalDefinition="End position" - ) - private IntegerDt myEnd; - - @Child(name="score", type=IntegerDt.class, order=8, min=1, max=1) - @Description( - shortDefinition="Sequence score", - formalDefinition="Phred scaled score of the sequence" - ) - private IntegerDt myScore; - - @Child(name="strand", type=CodeDt.class, order=9, min=1, max=1) - @Description( - shortDefinition="Strand", - formalDefinition="Direction of the strand" - ) - private CodeDt myStrand; - - @Child(name="featureId", type=StringDt.class, order=10, min=1, max=1) - @Description( - shortDefinition="Id of the feature", - formalDefinition="Id of the attribute, unique to other segments in the same source file" - ) - private StringDt myFeatureId; - - @Child(name="alias", type=StringDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Alias of the feature", - formalDefinition="Alias of the feature being described" - ) - private StringDt myAlias; - - @Child(name="dbxref", order=12, min=0, max=1) - @Description( - shortDefinition="Reference of the feature in a database", - formalDefinition="Reference of the feature in a database" - ) - private Dbxref myDbxref; - - @Child(name="variantSeq", type=StringDt.class, order=13, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Sequence presents in the variant", - formalDefinition="Sequence presents in the variant" - ) - private java.util.List myVariantSeq; - - @Child(name="referenceSeq", type=StringDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="Reference sequence", - formalDefinition="Reference sequence" - ) - private StringDt myReferenceSeq; - - @Child(name="variantFreq", type=DecimalDt.class, order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Variant frequency", - formalDefinition="Frequency of the variant" - ) - private java.util.List myVariantFreq; - - @Child(name="variantEffect", order=16, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Variant effect", - formalDefinition="Effect of the variant" - ) - private java.util.List myVariantEffect; - - @Child(name="startRange", order=17, min=0, max=1) - @Description( - shortDefinition="Start range", - formalDefinition="Attribute describing ambiguity of the start position of the feature" - ) - private StartRange myStartRange; - - @Child(name="endRange", order=18, min=0, max=1) - @Description( - shortDefinition="End range", - formalDefinition="Attribute describing ambiguity of the end position of the feature" - ) - private EndRange myEndRange; - - @Child(name="variantCodon", type=StringDt.class, order=19, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Codons that overlap with feature being described", - formalDefinition="Codons that overlap with the feature being described" - ) - private java.util.List myVariantCodon; - - @Child(name="referenceCodon", type=StringDt.class, order=20, min=0, max=1) - @Description( - shortDefinition="Codon that overlap with the reference sequence", - formalDefinition="Codon that overlap with the reference sequence" - ) - private StringDt myReferenceCodon; - - @Child(name="variantAA", type=StringDt.class, order=21, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Amino acids that overlap with the features being described", - formalDefinition="Amino acids that overlap with the features being described" - ) - private java.util.List myVariantAA; - - @Child(name="referenceAA", type=StringDt.class, order=22, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Amino acids that overlaps with the reference sequence", - formalDefinition="Amino acids that overlaps with the reference sequence" - ) - private java.util.List myReferenceAA; - - @Child(name="breakpointDetail", order=23, min=0, max=1) - @Description( - shortDefinition="Coordinate of a variant with zero length", - formalDefinition="Coordinate of a variant with zero length" - ) - private BreakpointDetail myBreakpointDetail; - - @Child(name="sequenceContext", order=24, min=0, max=1) - @Description( - shortDefinition="Context of features being described", - formalDefinition="Sequences adjacent to the feature" - ) - private SequenceContext mySequenceContext; - - @Child(name="individual", type=StringDt.class, order=25, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Individuals being described", - formalDefinition="Individuals for whom the feature is described" - ) - private java.util.List myIndividual; - - @Child(name="sample", order=26, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Individual genotypic information", - formalDefinition="Individual genotypic information" - ) - private java.util.List mySample; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myMeta, mySourceFile, mySeqid, mySource, myType, myStart, myEnd, myScore, myStrand, myFeatureId, myAlias, myDbxref, myVariantSeq, myReferenceSeq, myVariantFreq, myVariantEffect, myStartRange, myEndRange, myVariantCodon, myReferenceCodon, myVariantAA, myReferenceAA, myBreakpointDetail, mySequenceContext, myIndividual, mySample); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myMeta, mySourceFile, mySeqid, mySource, myType, myStart, myEnd, myScore, myStrand, myFeatureId, myAlias, myDbxref, myVariantSeq, myReferenceSeq, myVariantFreq, myVariantEffect, myStartRange, myEndRange, myVariantCodon, myReferenceCodon, myVariantAA, myReferenceAA, myBreakpointDetail, mySequenceContext, myIndividual, mySample); - } - - /** - * Gets the value(s) for subject (Subject described by this segment of GVF file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject described by this segment of GVF file - *

- */ - public Subject getSubject() { - if (mySubject == null) { - mySubject = new Subject(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Subject described by this segment of GVF file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject described by this segment of GVF file - *

- */ - public Subject getSubjectElement() { - if (mySubject == null) { - mySubject = new Subject(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Subject described by this segment of GVF file) - * - *

- * Definition: - * Subject described by this segment of GVF file - *

- */ - public GVFVariant setSubject(Subject theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for meta (GVF Meta). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Meta information of a GVF file - *

- */ - public ResourceReferenceDt getMeta() { - if (myMeta == null) { - myMeta = new ResourceReferenceDt(); - } - return myMeta; - } - - - /** - * Gets the value(s) for meta (GVF Meta). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Meta information of a GVF file - *

- */ - public ResourceReferenceDt getMetaElement() { - if (myMeta == null) { - myMeta = new ResourceReferenceDt(); - } - return myMeta; - } - - - /** - * Sets the value(s) for meta (GVF Meta) - * - *

- * Definition: - * Meta information of a GVF file - *

- */ - public GVFVariant setMeta(ResourceReferenceDt theValue) { - myMeta = theValue; - return this; - } - - - /** - * Gets the value(s) for sourceFile (Source file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Source GVF file - *

- */ - public AttachmentDt getSourceFile() { - if (mySourceFile == null) { - mySourceFile = new AttachmentDt(); - } - return mySourceFile; - } - - - /** - * Gets the value(s) for sourceFile (Source file). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Source GVF file - *

- */ - public AttachmentDt getSourceFileElement() { - if (mySourceFile == null) { - mySourceFile = new AttachmentDt(); - } - return mySourceFile; - } - - - /** - * Sets the value(s) for sourceFile (Source file) - * - *

- * Definition: - * Source GVF file - *

- */ - public GVFVariant setSourceFile(AttachmentDt theValue) { - mySourceFile = theValue; - return this; - } - - - /** - * Gets the value(s) for seqid (Sequence Id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id the sequence being described - *

- */ - public StringDt getSeqid() { - if (mySeqid == null) { - mySeqid = new StringDt(); - } - return mySeqid; - } - - - /** - * Gets the value(s) for seqid (Sequence Id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id the sequence being described - *

- */ - public StringDt getSeqidElement() { - if (mySeqid == null) { - mySeqid = new StringDt(); - } - return mySeqid; - } - - - /** - * Sets the value(s) for seqid (Sequence Id) - * - *

- * Definition: - * Id the sequence being described - *

- */ - public GVFVariant setSeqid(StringDt theValue) { - mySeqid = theValue; - return this; - } - - /** - * Sets the value for seqid (Sequence Id) - * - *

- * Definition: - * Id the sequence being described - *

- */ - public GVFVariant setSeqid( String theString) { - mySeqid = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for source (Data source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Algorithm or software used to generate the data - *

- */ - public StringDt getSource() { - if (mySource == null) { - mySource = new StringDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Data source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Algorithm or software used to generate the data - *

- */ - public StringDt getSourceElement() { - if (mySource == null) { - mySource = new StringDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Data source) - * - *

- * Definition: - * Algorithm or software used to generate the data - *

- */ - public GVFVariant setSource(StringDt theValue) { - mySource = theValue; - return this; - } - - /** - * Sets the value for source (Data source) - * - *

- * Definition: - * Algorithm or software used to generate the data - *

- */ - public GVFVariant setSource( String theString) { - mySource = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (Feature type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the feature being described - *

- */ - public CodeDt getType() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Feature type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the feature being described - *

- */ - public CodeDt getTypeElement() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Feature type) - * - *

- * Definition: - * Type of the feature being described - *

- */ - public GVFVariant setType(CodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value for type (Feature type) - * - *

- * Definition: - * Type of the feature being described - *

- */ - public GVFVariant setType( String theCode) { - myType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for start (Start position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position - *

- */ - public IntegerDt getStart() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Start position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position - *

- */ - public IntegerDt getStartElement() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Start position) - * - *

- * Definition: - * Start position - *

- */ - public GVFVariant setStart(IntegerDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Start position) - * - *

- * Definition: - * Start position - *

- */ - public GVFVariant setStart( int theInteger) { - myStart = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (End position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position - *

- */ - public IntegerDt getEnd() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (End position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position - *

- */ - public IntegerDt getEndElement() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (End position) - * - *

- * Definition: - * End position - *

- */ - public GVFVariant setEnd(IntegerDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (End position) - * - *

- * Definition: - * End position - *

- */ - public GVFVariant setEnd( int theInteger) { - myEnd = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for score (Sequence score). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Phred scaled score of the sequence - *

- */ - public IntegerDt getScore() { - if (myScore == null) { - myScore = new IntegerDt(); - } - return myScore; - } - - - /** - * Gets the value(s) for score (Sequence score). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Phred scaled score of the sequence - *

- */ - public IntegerDt getScoreElement() { - if (myScore == null) { - myScore = new IntegerDt(); - } - return myScore; - } - - - /** - * Sets the value(s) for score (Sequence score) - * - *

- * Definition: - * Phred scaled score of the sequence - *

- */ - public GVFVariant setScore(IntegerDt theValue) { - myScore = theValue; - return this; - } - - /** - * Sets the value for score (Sequence score) - * - *

- * Definition: - * Phred scaled score of the sequence - *

- */ - public GVFVariant setScore( int theInteger) { - myScore = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for strand (Strand). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Direction of the strand - *

- */ - public CodeDt getStrand() { - if (myStrand == null) { - myStrand = new CodeDt(); - } - return myStrand; - } - - - /** - * Gets the value(s) for strand (Strand). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Direction of the strand - *

- */ - public CodeDt getStrandElement() { - if (myStrand == null) { - myStrand = new CodeDt(); - } - return myStrand; - } - - - /** - * Sets the value(s) for strand (Strand) - * - *

- * Definition: - * Direction of the strand - *

- */ - public GVFVariant setStrand(CodeDt theValue) { - myStrand = theValue; - return this; - } - - /** - * Sets the value for strand (Strand) - * - *

- * Definition: - * Direction of the strand - *

- */ - public GVFVariant setStrand( String theCode) { - myStrand = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for featureId (Id of the feature). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the attribute, unique to other segments in the same source file - *

- */ - public StringDt getFeatureId() { - if (myFeatureId == null) { - myFeatureId = new StringDt(); - } - return myFeatureId; - } - - - /** - * Gets the value(s) for featureId (Id of the feature). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the attribute, unique to other segments in the same source file - *

- */ - public StringDt getFeatureIdElement() { - if (myFeatureId == null) { - myFeatureId = new StringDt(); - } - return myFeatureId; - } - - - /** - * Sets the value(s) for featureId (Id of the feature) - * - *

- * Definition: - * Id of the attribute, unique to other segments in the same source file - *

- */ - public GVFVariant setFeatureId(StringDt theValue) { - myFeatureId = theValue; - return this; - } - - /** - * Sets the value for featureId (Id of the feature) - * - *

- * Definition: - * Id of the attribute, unique to other segments in the same source file - *

- */ - public GVFVariant setFeatureId( String theString) { - myFeatureId = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for alias (Alias of the feature). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Alias of the feature being described - *

- */ - public StringDt getAlias() { - if (myAlias == null) { - myAlias = new StringDt(); - } - return myAlias; - } - - - /** - * Gets the value(s) for alias (Alias of the feature). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Alias of the feature being described - *

- */ - public StringDt getAliasElement() { - if (myAlias == null) { - myAlias = new StringDt(); - } - return myAlias; - } - - - /** - * Sets the value(s) for alias (Alias of the feature) - * - *

- * Definition: - * Alias of the feature being described - *

- */ - public GVFVariant setAlias(StringDt theValue) { - myAlias = theValue; - return this; - } - - /** - * Sets the value for alias (Alias of the feature) - * - *

- * Definition: - * Alias of the feature being described - *

- */ - public GVFVariant setAlias( String theString) { - myAlias = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for dbxref (Reference of the feature in a database). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference of the feature in a database - *

- */ - public Dbxref getDbxref() { - if (myDbxref == null) { - myDbxref = new Dbxref(); - } - return myDbxref; - } - - - /** - * Gets the value(s) for dbxref (Reference of the feature in a database). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference of the feature in a database - *

- */ - public Dbxref getDbxrefElement() { - if (myDbxref == null) { - myDbxref = new Dbxref(); - } - return myDbxref; - } - - - /** - * Sets the value(s) for dbxref (Reference of the feature in a database) - * - *

- * Definition: - * Reference of the feature in a database - *

- */ - public GVFVariant setDbxref(Dbxref theValue) { - myDbxref = theValue; - return this; - } - - - /** - * Gets the value(s) for variantSeq (Sequence presents in the variant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence presents in the variant - *

- */ - public java.util.List getVariantSeq() { - if (myVariantSeq == null) { - myVariantSeq = new java.util.ArrayList(); - } - return myVariantSeq; - } - - - /** - * Gets the value(s) for variantSeq (Sequence presents in the variant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence presents in the variant - *

- */ - public java.util.List getVariantSeqElement() { - if (myVariantSeq == null) { - myVariantSeq = new java.util.ArrayList(); - } - return myVariantSeq; - } - - - /** - * Sets the value(s) for variantSeq (Sequence presents in the variant) - * - *

- * Definition: - * Sequence presents in the variant - *

- */ - public GVFVariant setVariantSeq(java.util.List theValue) { - myVariantSeq = theValue; - return this; - } - - /** - * Adds and returns a new value for variantSeq (Sequence presents in the variant) - * - *

- * Definition: - * Sequence presents in the variant - *

- */ - public StringDt addVariantSeq() { - StringDt newType = new StringDt(); - getVariantSeq().add(newType); - return newType; - } - - /** - * Gets the first repetition for variantSeq (Sequence presents in the variant), - * creating it if it does not already exist. - * - *

- * Definition: - * Sequence presents in the variant - *

- */ - public StringDt getVariantSeqFirstRep() { - if (getVariantSeq().isEmpty()) { - return addVariantSeq(); - } - return getVariantSeq().get(0); - } - /** - * Adds a new value for variantSeq (Sequence presents in the variant) - * - *

- * Definition: - * Sequence presents in the variant - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFVariant addVariantSeq( String theString) { - if (myVariantSeq == null) { - myVariantSeq = new java.util.ArrayList(); - } - myVariantSeq.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for referenceSeq (Reference sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference sequence - *

- */ - public StringDt getReferenceSeq() { - if (myReferenceSeq == null) { - myReferenceSeq = new StringDt(); - } - return myReferenceSeq; - } - - - /** - * Gets the value(s) for referenceSeq (Reference sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference sequence - *

- */ - public StringDt getReferenceSeqElement() { - if (myReferenceSeq == null) { - myReferenceSeq = new StringDt(); - } - return myReferenceSeq; - } - - - /** - * Sets the value(s) for referenceSeq (Reference sequence) - * - *

- * Definition: - * Reference sequence - *

- */ - public GVFVariant setReferenceSeq(StringDt theValue) { - myReferenceSeq = theValue; - return this; - } - - /** - * Sets the value for referenceSeq (Reference sequence) - * - *

- * Definition: - * Reference sequence - *

- */ - public GVFVariant setReferenceSeq( String theString) { - myReferenceSeq = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for variantFreq (Variant frequency). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Frequency of the variant - *

- */ - public java.util.List getVariantFreq() { - if (myVariantFreq == null) { - myVariantFreq = new java.util.ArrayList(); - } - return myVariantFreq; - } - - - /** - * Gets the value(s) for variantFreq (Variant frequency). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Frequency of the variant - *

- */ - public java.util.List getVariantFreqElement() { - if (myVariantFreq == null) { - myVariantFreq = new java.util.ArrayList(); - } - return myVariantFreq; - } - - - /** - * Sets the value(s) for variantFreq (Variant frequency) - * - *

- * Definition: - * Frequency of the variant - *

- */ - public GVFVariant setVariantFreq(java.util.List theValue) { - myVariantFreq = theValue; - return this; - } - - /** - * Adds and returns a new value for variantFreq (Variant frequency) - * - *

- * Definition: - * Frequency of the variant - *

- */ - public DecimalDt addVariantFreq() { - DecimalDt newType = new DecimalDt(); - getVariantFreq().add(newType); - return newType; - } - - /** - * Gets the first repetition for variantFreq (Variant frequency), - * creating it if it does not already exist. - * - *

- * Definition: - * Frequency of the variant - *

- */ - public DecimalDt getVariantFreqFirstRep() { - if (getVariantFreq().isEmpty()) { - return addVariantFreq(); - } - return getVariantFreq().get(0); - } - /** - * Adds a new value for variantFreq (Variant frequency) - * - *

- * Definition: - * Frequency of the variant - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFVariant addVariantFreq( long theValue) { - if (myVariantFreq == null) { - myVariantFreq = new java.util.ArrayList(); - } - myVariantFreq.add(new DecimalDt(theValue)); - return this; - } - - /** - * Adds a new value for variantFreq (Variant frequency) - * - *

- * Definition: - * Frequency of the variant - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFVariant addVariantFreq( double theValue) { - if (myVariantFreq == null) { - myVariantFreq = new java.util.ArrayList(); - } - myVariantFreq.add(new DecimalDt(theValue)); - return this; - } - - /** - * Adds a new value for variantFreq (Variant frequency) - * - *

- * Definition: - * Frequency of the variant - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFVariant addVariantFreq( java.math.BigDecimal theValue) { - if (myVariantFreq == null) { - myVariantFreq = new java.util.ArrayList(); - } - myVariantFreq.add(new DecimalDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for variantEffect (Variant effect). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Effect of the variant - *

- */ - public java.util.List getVariantEffect() { - if (myVariantEffect == null) { - myVariantEffect = new java.util.ArrayList(); - } - return myVariantEffect; - } - - - /** - * Gets the value(s) for variantEffect (Variant effect). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Effect of the variant - *

- */ - public java.util.List getVariantEffectElement() { - if (myVariantEffect == null) { - myVariantEffect = new java.util.ArrayList(); - } - return myVariantEffect; - } - - - /** - * Sets the value(s) for variantEffect (Variant effect) - * - *

- * Definition: - * Effect of the variant - *

- */ - public GVFVariant setVariantEffect(java.util.List theValue) { - myVariantEffect = theValue; - return this; - } - - /** - * Adds and returns a new value for variantEffect (Variant effect) - * - *

- * Definition: - * Effect of the variant - *

- */ - public VariantEffect addVariantEffect() { - VariantEffect newType = new VariantEffect(); - getVariantEffect().add(newType); - return newType; - } - - /** - * Gets the first repetition for variantEffect (Variant effect), - * creating it if it does not already exist. - * - *

- * Definition: - * Effect of the variant - *

- */ - public VariantEffect getVariantEffectFirstRep() { - if (getVariantEffect().isEmpty()) { - return addVariantEffect(); - } - return getVariantEffect().get(0); - } - - /** - * Gets the value(s) for startRange (Start range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Attribute describing ambiguity of the start position of the feature - *

- */ - public StartRange getStartRange() { - if (myStartRange == null) { - myStartRange = new StartRange(); - } - return myStartRange; - } - - - /** - * Gets the value(s) for startRange (Start range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Attribute describing ambiguity of the start position of the feature - *

- */ - public StartRange getStartRangeElement() { - if (myStartRange == null) { - myStartRange = new StartRange(); - } - return myStartRange; - } - - - /** - * Sets the value(s) for startRange (Start range) - * - *

- * Definition: - * Attribute describing ambiguity of the start position of the feature - *

- */ - public GVFVariant setStartRange(StartRange theValue) { - myStartRange = theValue; - return this; - } - - - /** - * Gets the value(s) for endRange (End range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Attribute describing ambiguity of the end position of the feature - *

- */ - public EndRange getEndRange() { - if (myEndRange == null) { - myEndRange = new EndRange(); - } - return myEndRange; - } - - - /** - * Gets the value(s) for endRange (End range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Attribute describing ambiguity of the end position of the feature - *

- */ - public EndRange getEndRangeElement() { - if (myEndRange == null) { - myEndRange = new EndRange(); - } - return myEndRange; - } - - - /** - * Sets the value(s) for endRange (End range) - * - *

- * Definition: - * Attribute describing ambiguity of the end position of the feature - *

- */ - public GVFVariant setEndRange(EndRange theValue) { - myEndRange = theValue; - return this; - } - - - /** - * Gets the value(s) for variantCodon (Codons that overlap with feature being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Codons that overlap with the feature being described - *

- */ - public java.util.List getVariantCodon() { - if (myVariantCodon == null) { - myVariantCodon = new java.util.ArrayList(); - } - return myVariantCodon; - } - - - /** - * Gets the value(s) for variantCodon (Codons that overlap with feature being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Codons that overlap with the feature being described - *

- */ - public java.util.List getVariantCodonElement() { - if (myVariantCodon == null) { - myVariantCodon = new java.util.ArrayList(); - } - return myVariantCodon; - } - - - /** - * Sets the value(s) for variantCodon (Codons that overlap with feature being described) - * - *

- * Definition: - * Codons that overlap with the feature being described - *

- */ - public GVFVariant setVariantCodon(java.util.List theValue) { - myVariantCodon = theValue; - return this; - } - - /** - * Adds and returns a new value for variantCodon (Codons that overlap with feature being described) - * - *

- * Definition: - * Codons that overlap with the feature being described - *

- */ - public StringDt addVariantCodon() { - StringDt newType = new StringDt(); - getVariantCodon().add(newType); - return newType; - } - - /** - * Gets the first repetition for variantCodon (Codons that overlap with feature being described), - * creating it if it does not already exist. - * - *

- * Definition: - * Codons that overlap with the feature being described - *

- */ - public StringDt getVariantCodonFirstRep() { - if (getVariantCodon().isEmpty()) { - return addVariantCodon(); - } - return getVariantCodon().get(0); - } - /** - * Adds a new value for variantCodon (Codons that overlap with feature being described) - * - *

- * Definition: - * Codons that overlap with the feature being described - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFVariant addVariantCodon( String theString) { - if (myVariantCodon == null) { - myVariantCodon = new java.util.ArrayList(); - } - myVariantCodon.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for referenceCodon (Codon that overlap with the reference sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Codon that overlap with the reference sequence - *

- */ - public StringDt getReferenceCodon() { - if (myReferenceCodon == null) { - myReferenceCodon = new StringDt(); - } - return myReferenceCodon; - } - - - /** - * Gets the value(s) for referenceCodon (Codon that overlap with the reference sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Codon that overlap with the reference sequence - *

- */ - public StringDt getReferenceCodonElement() { - if (myReferenceCodon == null) { - myReferenceCodon = new StringDt(); - } - return myReferenceCodon; - } - - - /** - * Sets the value(s) for referenceCodon (Codon that overlap with the reference sequence) - * - *

- * Definition: - * Codon that overlap with the reference sequence - *

- */ - public GVFVariant setReferenceCodon(StringDt theValue) { - myReferenceCodon = theValue; - return this; - } - - /** - * Sets the value for referenceCodon (Codon that overlap with the reference sequence) - * - *

- * Definition: - * Codon that overlap with the reference sequence - *

- */ - public GVFVariant setReferenceCodon( String theString) { - myReferenceCodon = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for variantAA (Amino acids that overlap with the features being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Amino acids that overlap with the features being described - *

- */ - public java.util.List getVariantAA() { - if (myVariantAA == null) { - myVariantAA = new java.util.ArrayList(); - } - return myVariantAA; - } - - - /** - * Gets the value(s) for variantAA (Amino acids that overlap with the features being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Amino acids that overlap with the features being described - *

- */ - public java.util.List getVariantAAElement() { - if (myVariantAA == null) { - myVariantAA = new java.util.ArrayList(); - } - return myVariantAA; - } - - - /** - * Sets the value(s) for variantAA (Amino acids that overlap with the features being described) - * - *

- * Definition: - * Amino acids that overlap with the features being described - *

- */ - public GVFVariant setVariantAA(java.util.List theValue) { - myVariantAA = theValue; - return this; - } - - /** - * Adds and returns a new value for variantAA (Amino acids that overlap with the features being described) - * - *

- * Definition: - * Amino acids that overlap with the features being described - *

- */ - public StringDt addVariantAA() { - StringDt newType = new StringDt(); - getVariantAA().add(newType); - return newType; - } - - /** - * Gets the first repetition for variantAA (Amino acids that overlap with the features being described), - * creating it if it does not already exist. - * - *

- * Definition: - * Amino acids that overlap with the features being described - *

- */ - public StringDt getVariantAAFirstRep() { - if (getVariantAA().isEmpty()) { - return addVariantAA(); - } - return getVariantAA().get(0); - } - /** - * Adds a new value for variantAA (Amino acids that overlap with the features being described) - * - *

- * Definition: - * Amino acids that overlap with the features being described - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFVariant addVariantAA( String theString) { - if (myVariantAA == null) { - myVariantAA = new java.util.ArrayList(); - } - myVariantAA.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for referenceAA (Amino acids that overlaps with the reference sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Amino acids that overlaps with the reference sequence - *

- */ - public java.util.List getReferenceAA() { - if (myReferenceAA == null) { - myReferenceAA = new java.util.ArrayList(); - } - return myReferenceAA; - } - - - /** - * Gets the value(s) for referenceAA (Amino acids that overlaps with the reference sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Amino acids that overlaps with the reference sequence - *

- */ - public java.util.List getReferenceAAElement() { - if (myReferenceAA == null) { - myReferenceAA = new java.util.ArrayList(); - } - return myReferenceAA; - } - - - /** - * Sets the value(s) for referenceAA (Amino acids that overlaps with the reference sequence) - * - *

- * Definition: - * Amino acids that overlaps with the reference sequence - *

- */ - public GVFVariant setReferenceAA(java.util.List theValue) { - myReferenceAA = theValue; - return this; - } - - /** - * Adds and returns a new value for referenceAA (Amino acids that overlaps with the reference sequence) - * - *

- * Definition: - * Amino acids that overlaps with the reference sequence - *

- */ - public StringDt addReferenceAA() { - StringDt newType = new StringDt(); - getReferenceAA().add(newType); - return newType; - } - - /** - * Gets the first repetition for referenceAA (Amino acids that overlaps with the reference sequence), - * creating it if it does not already exist. - * - *

- * Definition: - * Amino acids that overlaps with the reference sequence - *

- */ - public StringDt getReferenceAAFirstRep() { - if (getReferenceAA().isEmpty()) { - return addReferenceAA(); - } - return getReferenceAA().get(0); - } - /** - * Adds a new value for referenceAA (Amino acids that overlaps with the reference sequence) - * - *

- * Definition: - * Amino acids that overlaps with the reference sequence - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFVariant addReferenceAA( String theString) { - if (myReferenceAA == null) { - myReferenceAA = new java.util.ArrayList(); - } - myReferenceAA.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for breakpointDetail (Coordinate of a variant with zero length). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coordinate of a variant with zero length - *

- */ - public BreakpointDetail getBreakpointDetail() { - if (myBreakpointDetail == null) { - myBreakpointDetail = new BreakpointDetail(); - } - return myBreakpointDetail; - } - - - /** - * Gets the value(s) for breakpointDetail (Coordinate of a variant with zero length). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coordinate of a variant with zero length - *

- */ - public BreakpointDetail getBreakpointDetailElement() { - if (myBreakpointDetail == null) { - myBreakpointDetail = new BreakpointDetail(); - } - return myBreakpointDetail; - } - - - /** - * Sets the value(s) for breakpointDetail (Coordinate of a variant with zero length) - * - *

- * Definition: - * Coordinate of a variant with zero length - *

- */ - public GVFVariant setBreakpointDetail(BreakpointDetail theValue) { - myBreakpointDetail = theValue; - return this; - } - - - /** - * Gets the value(s) for sequenceContext (Context of features being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequences adjacent to the feature - *

- */ - public SequenceContext getSequenceContext() { - if (mySequenceContext == null) { - mySequenceContext = new SequenceContext(); - } - return mySequenceContext; - } - - - /** - * Gets the value(s) for sequenceContext (Context of features being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequences adjacent to the feature - *

- */ - public SequenceContext getSequenceContextElement() { - if (mySequenceContext == null) { - mySequenceContext = new SequenceContext(); - } - return mySequenceContext; - } - - - /** - * Sets the value(s) for sequenceContext (Context of features being described) - * - *

- * Definition: - * Sequences adjacent to the feature - *

- */ - public GVFVariant setSequenceContext(SequenceContext theValue) { - mySequenceContext = theValue; - return this; - } - - - /** - * Gets the value(s) for individual (Individuals being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Individuals for whom the feature is described - *

- */ - public java.util.List getIndividual() { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - return myIndividual; - } - - - /** - * Gets the value(s) for individual (Individuals being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Individuals for whom the feature is described - *

- */ - public java.util.List getIndividualElement() { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - return myIndividual; - } - - - /** - * Sets the value(s) for individual (Individuals being described) - * - *

- * Definition: - * Individuals for whom the feature is described - *

- */ - public GVFVariant setIndividual(java.util.List theValue) { - myIndividual = theValue; - return this; - } - - /** - * Adds and returns a new value for individual (Individuals being described) - * - *

- * Definition: - * Individuals for whom the feature is described - *

- */ - public StringDt addIndividual() { - StringDt newType = new StringDt(); - getIndividual().add(newType); - return newType; - } - - /** - * Gets the first repetition for individual (Individuals being described), - * creating it if it does not already exist. - * - *

- * Definition: - * Individuals for whom the feature is described - *

- */ - public StringDt getIndividualFirstRep() { - if (getIndividual().isEmpty()) { - return addIndividual(); - } - return getIndividual().get(0); - } - /** - * Adds a new value for individual (Individuals being described) - * - *

- * Definition: - * Individuals for whom the feature is described - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public GVFVariant addIndividual( String theString) { - if (myIndividual == null) { - myIndividual = new java.util.ArrayList(); - } - myIndividual.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for sample (Individual genotypic information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Individual genotypic information - *

- */ - public java.util.List getSample() { - if (mySample == null) { - mySample = new java.util.ArrayList(); - } - return mySample; - } - - - /** - * Gets the value(s) for sample (Individual genotypic information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Individual genotypic information - *

- */ - public java.util.List getSampleElement() { - if (mySample == null) { - mySample = new java.util.ArrayList(); - } - return mySample; - } - - - /** - * Sets the value(s) for sample (Individual genotypic information) - * - *

- * Definition: - * Individual genotypic information - *

- */ - public GVFVariant setSample(java.util.List theValue) { - mySample = theValue; - return this; - } - - /** - * Adds and returns a new value for sample (Individual genotypic information) - * - *

- * Definition: - * Individual genotypic information - *

- */ - public Sample addSample() { - Sample newType = new Sample(); - getSample().add(newType); - return newType; - } - - /** - * Gets the first repetition for sample (Individual genotypic information), - * creating it if it does not already exist. - * - *

- * Definition: - * Individual genotypic information - *

- */ - public Sample getSampleFirstRep() { - if (getSample().isEmpty()) { - return addSample(); - } - return getSample().get(0); - } - - /** - * Block class for child element: GVFVariant.subject (Subject described by this segment of GVF file) - * - *

- * Definition: - * Subject described by this segment of GVF file - *

- */ - @Block() - public static class Subject - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="patient", order=0, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Subject", - formalDefinition="Patient resource that stores information of the subejct" - ) - private ResourceReferenceDt myPatient; - - @Child(name="fileId", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Individual Id", - formalDefinition="Id of individual in GVF file that corresponds to the subject (only mandatory if the file is a multi-individual one" - ) - private StringDt myFileId; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPatient, myFileId); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPatient, myFileId); - } - - /** - * Gets the value(s) for patient (Subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient resource that stores information of the subejct - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient resource that stores information of the subejct - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Subject) - * - *

- * Definition: - * Patient resource that stores information of the subejct - *

- */ - public Subject setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for fileId (Individual Id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of individual in GVF file that corresponds to the subject (only mandatory if the file is a multi-individual one - *

- */ - public StringDt getFileId() { - if (myFileId == null) { - myFileId = new StringDt(); - } - return myFileId; - } - - - /** - * Gets the value(s) for fileId (Individual Id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of individual in GVF file that corresponds to the subject (only mandatory if the file is a multi-individual one - *

- */ - public StringDt getFileIdElement() { - if (myFileId == null) { - myFileId = new StringDt(); - } - return myFileId; - } - - - /** - * Sets the value(s) for fileId (Individual Id) - * - *

- * Definition: - * Id of individual in GVF file that corresponds to the subject (only mandatory if the file is a multi-individual one - *

- */ - public Subject setFileId(StringDt theValue) { - myFileId = theValue; - return this; - } - - /** - * Sets the value for fileId (Individual Id) - * - *

- * Definition: - * Id of individual in GVF file that corresponds to the subject (only mandatory if the file is a multi-individual one - *

- */ - public Subject setFileId( String theString) { - myFileId = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: GVFVariant.dbxref (Reference of the feature in a database) - * - *

- * Definition: - * Reference of the feature in a database - *

- */ - @Block() - public static class Dbxref - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="database", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Name of the database", - formalDefinition="Name of the database" - ) - private CodeDt myDatabase; - - @Child(name="identity", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Id of the feature within the database", - formalDefinition="Id of the feature within the database" - ) - private StringDt myIdentity; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDatabase, myIdentity); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDatabase, myIdentity); - } - - /** - * Gets the value(s) for database (Name of the database). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the database - *

- */ - public CodeDt getDatabase() { - if (myDatabase == null) { - myDatabase = new CodeDt(); - } - return myDatabase; - } - - - /** - * Gets the value(s) for database (Name of the database). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the database - *

- */ - public CodeDt getDatabaseElement() { - if (myDatabase == null) { - myDatabase = new CodeDt(); - } - return myDatabase; - } - - - /** - * Sets the value(s) for database (Name of the database) - * - *

- * Definition: - * Name of the database - *

- */ - public Dbxref setDatabase(CodeDt theValue) { - myDatabase = theValue; - return this; - } - - /** - * Sets the value for database (Name of the database) - * - *

- * Definition: - * Name of the database - *

- */ - public Dbxref setDatabase( String theCode) { - myDatabase = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for identity (Id of the feature within the database). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the feature within the database - *

- */ - public StringDt getIdentity() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (Id of the feature within the database). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the feature within the database - *

- */ - public StringDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Sets the value(s) for identity (Id of the feature within the database) - * - *

- * Definition: - * Id of the feature within the database - *

- */ - public Dbxref setIdentity(StringDt theValue) { - myIdentity = theValue; - return this; - } - - /** - * Sets the value for identity (Id of the feature within the database) - * - *

- * Definition: - * Id of the feature within the database - *

- */ - public Dbxref setIdentity( String theString) { - myIdentity = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: GVFVariant.variantEffect (Variant effect) - * - *

- * Definition: - * Effect of the variant - *

- */ - @Block() - public static class VariantEffect - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="sequenceVariant", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Effect of the variant", - formalDefinition="Effect of the variant" - ) - private CodeDt mySequenceVariant; - - @Child(name="index", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Index of variant being discussed", - formalDefinition="Zero-based index that tells the variant being discussed" - ) - private IntegerDt myIndex; - - @Child(name="featureType", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Feature type", - formalDefinition="Type of the feature being described" - ) - private CodeDt myFeatureType; - - @Child(name="featureId", type=StringDt.class, order=3, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Feature Id", - formalDefinition="Id of features being affected by the variant" - ) - private java.util.List myFeatureId; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySequenceVariant, myIndex, myFeatureType, myFeatureId); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySequenceVariant, myIndex, myFeatureType, myFeatureId); - } - - /** - * Gets the value(s) for sequenceVariant (Effect of the variant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Effect of the variant - *

- */ - public CodeDt getSequenceVariant() { - if (mySequenceVariant == null) { - mySequenceVariant = new CodeDt(); - } - return mySequenceVariant; - } - - - /** - * Gets the value(s) for sequenceVariant (Effect of the variant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Effect of the variant - *

- */ - public CodeDt getSequenceVariantElement() { - if (mySequenceVariant == null) { - mySequenceVariant = new CodeDt(); - } - return mySequenceVariant; - } - - - /** - * Sets the value(s) for sequenceVariant (Effect of the variant) - * - *

- * Definition: - * Effect of the variant - *

- */ - public VariantEffect setSequenceVariant(CodeDt theValue) { - mySequenceVariant = theValue; - return this; - } - - /** - * Sets the value for sequenceVariant (Effect of the variant) - * - *

- * Definition: - * Effect of the variant - *

- */ - public VariantEffect setSequenceVariant( String theCode) { - mySequenceVariant = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for index (Index of variant being discussed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Zero-based index that tells the variant being discussed - *

- */ - public IntegerDt getIndex() { - if (myIndex == null) { - myIndex = new IntegerDt(); - } - return myIndex; - } - - - /** - * Gets the value(s) for index (Index of variant being discussed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Zero-based index that tells the variant being discussed - *

- */ - public IntegerDt getIndexElement() { - if (myIndex == null) { - myIndex = new IntegerDt(); - } - return myIndex; - } - - - /** - * Sets the value(s) for index (Index of variant being discussed) - * - *

- * Definition: - * Zero-based index that tells the variant being discussed - *

- */ - public VariantEffect setIndex(IntegerDt theValue) { - myIndex = theValue; - return this; - } - - /** - * Sets the value for index (Index of variant being discussed) - * - *

- * Definition: - * Zero-based index that tells the variant being discussed - *

- */ - public VariantEffect setIndex( int theInteger) { - myIndex = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for featureType (Feature type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the feature being described - *

- */ - public CodeDt getFeatureType() { - if (myFeatureType == null) { - myFeatureType = new CodeDt(); - } - return myFeatureType; - } - - - /** - * Gets the value(s) for featureType (Feature type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the feature being described - *

- */ - public CodeDt getFeatureTypeElement() { - if (myFeatureType == null) { - myFeatureType = new CodeDt(); - } - return myFeatureType; - } - - - /** - * Sets the value(s) for featureType (Feature type) - * - *

- * Definition: - * Type of the feature being described - *

- */ - public VariantEffect setFeatureType(CodeDt theValue) { - myFeatureType = theValue; - return this; - } - - /** - * Sets the value for featureType (Feature type) - * - *

- * Definition: - * Type of the feature being described - *

- */ - public VariantEffect setFeatureType( String theCode) { - myFeatureType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for featureId (Feature Id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of features being affected by the variant - *

- */ - public java.util.List getFeatureId() { - if (myFeatureId == null) { - myFeatureId = new java.util.ArrayList(); - } - return myFeatureId; - } - - - /** - * Gets the value(s) for featureId (Feature Id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of features being affected by the variant - *

- */ - public java.util.List getFeatureIdElement() { - if (myFeatureId == null) { - myFeatureId = new java.util.ArrayList(); - } - return myFeatureId; - } - - - /** - * Sets the value(s) for featureId (Feature Id) - * - *

- * Definition: - * Id of features being affected by the variant - *

- */ - public VariantEffect setFeatureId(java.util.List theValue) { - myFeatureId = theValue; - return this; - } - - /** - * Adds and returns a new value for featureId (Feature Id) - * - *

- * Definition: - * Id of features being affected by the variant - *

- */ - public StringDt addFeatureId() { - StringDt newType = new StringDt(); - getFeatureId().add(newType); - return newType; - } - - /** - * Gets the first repetition for featureId (Feature Id), - * creating it if it does not already exist. - * - *

- * Definition: - * Id of features being affected by the variant - *

- */ - public StringDt getFeatureIdFirstRep() { - if (getFeatureId().isEmpty()) { - return addFeatureId(); - } - return getFeatureId().get(0); - } - /** - * Adds a new value for featureId (Feature Id) - * - *

- * Definition: - * Id of features being affected by the variant - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public VariantEffect addFeatureId( String theString) { - if (myFeatureId == null) { - myFeatureId = new java.util.ArrayList(); - } - myFeatureId.add(new StringDt(theString)); - return this; - } - - - - } - - - /** - * Block class for child element: GVFVariant.startRange (Start range) - * - *

- * Definition: - * Attribute describing ambiguity of the start position of the feature - *

- */ - @Block() - public static class StartRange - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="start", type=IntegerDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Start of the start range", - formalDefinition="Start of the start range" - ) - private IntegerDt myStart; - - @Child(name="end", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="End of the start range", - formalDefinition="End of the start range" - ) - private IntegerDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStart, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStart, myEnd); - } - - /** - * Gets the value(s) for start (Start of the start range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start of the start range - *

- */ - public IntegerDt getStart() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Start of the start range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start of the start range - *

- */ - public IntegerDt getStartElement() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Start of the start range) - * - *

- * Definition: - * Start of the start range - *

- */ - public StartRange setStart(IntegerDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Start of the start range) - * - *

- * Definition: - * Start of the start range - *

- */ - public StartRange setStart( int theInteger) { - myStart = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (End of the start range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End of the start range - *

- */ - public IntegerDt getEnd() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (End of the start range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End of the start range - *

- */ - public IntegerDt getEndElement() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (End of the start range) - * - *

- * Definition: - * End of the start range - *

- */ - public StartRange setEnd(IntegerDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (End of the start range) - * - *

- * Definition: - * End of the start range - *

- */ - public StartRange setEnd( int theInteger) { - myEnd = new IntegerDt(theInteger); - return this; - } - - - - } - - - /** - * Block class for child element: GVFVariant.endRange (End range) - * - *

- * Definition: - * Attribute describing ambiguity of the end position of the feature - *

- */ - @Block() - public static class EndRange - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="start", type=IntegerDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Start of the end range", - formalDefinition="Start of the end range" - ) - private IntegerDt myStart; - - @Child(name="end", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="End of the end range", - formalDefinition="End of the end range" - ) - private IntegerDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStart, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStart, myEnd); - } - - /** - * Gets the value(s) for start (Start of the end range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start of the end range - *

- */ - public IntegerDt getStart() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Start of the end range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start of the end range - *

- */ - public IntegerDt getStartElement() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Start of the end range) - * - *

- * Definition: - * Start of the end range - *

- */ - public EndRange setStart(IntegerDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Start of the end range) - * - *

- * Definition: - * Start of the end range - *

- */ - public EndRange setStart( int theInteger) { - myStart = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (End of the end range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End of the end range - *

- */ - public IntegerDt getEnd() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (End of the end range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End of the end range - *

- */ - public IntegerDt getEndElement() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (End of the end range) - * - *

- * Definition: - * End of the end range - *

- */ - public EndRange setEnd(IntegerDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (End of the end range) - * - *

- * Definition: - * End of the end range - *

- */ - public EndRange setEnd( int theInteger) { - myEnd = new IntegerDt(theInteger); - return this; - } - - - - } - - - /** - * Block class for child element: GVFVariant.breakpointDetail (Coordinate of a variant with zero length) - * - *

- * Definition: - * Coordinate of a variant with zero length - *

- */ - @Block() - public static class BreakpointDetail - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="seqid", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Sequence Id of the variant", - formalDefinition="Sequence Id of the variant" - ) - private StringDt mySeqid; - - @Child(name="start", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Start position", - formalDefinition="Start position" - ) - private IntegerDt myStart; - - @Child(name="end", type=IntegerDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="End position", - formalDefinition="End position" - ) - private IntegerDt myEnd; - - @Child(name="strand", type=CodeDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Strand", - formalDefinition="Direction of strand" - ) - private CodeDt myStrand; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySeqid, myStart, myEnd, myStrand); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySeqid, myStart, myEnd, myStrand); - } - - /** - * Gets the value(s) for seqid (Sequence Id of the variant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence Id of the variant - *

- */ - public StringDt getSeqid() { - if (mySeqid == null) { - mySeqid = new StringDt(); - } - return mySeqid; - } - - - /** - * Gets the value(s) for seqid (Sequence Id of the variant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence Id of the variant - *

- */ - public StringDt getSeqidElement() { - if (mySeqid == null) { - mySeqid = new StringDt(); - } - return mySeqid; - } - - - /** - * Sets the value(s) for seqid (Sequence Id of the variant) - * - *

- * Definition: - * Sequence Id of the variant - *

- */ - public BreakpointDetail setSeqid(StringDt theValue) { - mySeqid = theValue; - return this; - } - - /** - * Sets the value for seqid (Sequence Id of the variant) - * - *

- * Definition: - * Sequence Id of the variant - *

- */ - public BreakpointDetail setSeqid( String theString) { - mySeqid = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for start (Start position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position - *

- */ - public IntegerDt getStart() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Start position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position - *

- */ - public IntegerDt getStartElement() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Start position) - * - *

- * Definition: - * Start position - *

- */ - public BreakpointDetail setStart(IntegerDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Start position) - * - *

- * Definition: - * Start position - *

- */ - public BreakpointDetail setStart( int theInteger) { - myStart = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (End position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position - *

- */ - public IntegerDt getEnd() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (End position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position - *

- */ - public IntegerDt getEndElement() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (End position) - * - *

- * Definition: - * End position - *

- */ - public BreakpointDetail setEnd(IntegerDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (End position) - * - *

- * Definition: - * End position - *

- */ - public BreakpointDetail setEnd( int theInteger) { - myEnd = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for strand (Strand). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Direction of strand - *

- */ - public CodeDt getStrand() { - if (myStrand == null) { - myStrand = new CodeDt(); - } - return myStrand; - } - - - /** - * Gets the value(s) for strand (Strand). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Direction of strand - *

- */ - public CodeDt getStrandElement() { - if (myStrand == null) { - myStrand = new CodeDt(); - } - return myStrand; - } - - - /** - * Sets the value(s) for strand (Strand) - * - *

- * Definition: - * Direction of strand - *

- */ - public BreakpointDetail setStrand(CodeDt theValue) { - myStrand = theValue; - return this; - } - - /** - * Sets the value for strand (Strand) - * - *

- * Definition: - * Direction of strand - *

- */ - public BreakpointDetail setStrand( String theCode) { - myStrand = new CodeDt(theCode); - return this; - } - - - - } - - - /** - * Block class for child element: GVFVariant.sequenceContext (Context of features being described) - * - *

- * Definition: - * Sequences adjacent to the feature - *

- */ - @Block() - public static class SequenceContext - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="fivePrime", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="5 prime of the context", - formalDefinition="Sequence adjacent to the feature at its 5 prime" - ) - private StringDt myFivePrime; - - @Child(name="threePrime", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="3 prime of the context", - formalDefinition="Sequence adjacent to the feature at its 3 prime" - ) - private StringDt myThreePrime; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myFivePrime, myThreePrime); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myFivePrime, myThreePrime); - } - - /** - * Gets the value(s) for fivePrime (5 prime of the context). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence adjacent to the feature at its 5 prime - *

- */ - public StringDt getFivePrime() { - if (myFivePrime == null) { - myFivePrime = new StringDt(); - } - return myFivePrime; - } - - - /** - * Gets the value(s) for fivePrime (5 prime of the context). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence adjacent to the feature at its 5 prime - *

- */ - public StringDt getFivePrimeElement() { - if (myFivePrime == null) { - myFivePrime = new StringDt(); - } - return myFivePrime; - } - - - /** - * Sets the value(s) for fivePrime (5 prime of the context) - * - *

- * Definition: - * Sequence adjacent to the feature at its 5 prime - *

- */ - public SequenceContext setFivePrime(StringDt theValue) { - myFivePrime = theValue; - return this; - } - - /** - * Sets the value for fivePrime (5 prime of the context) - * - *

- * Definition: - * Sequence adjacent to the feature at its 5 prime - *

- */ - public SequenceContext setFivePrime( String theString) { - myFivePrime = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for threePrime (3 prime of the context). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence adjacent to the feature at its 3 prime - *

- */ - public StringDt getThreePrime() { - if (myThreePrime == null) { - myThreePrime = new StringDt(); - } - return myThreePrime; - } - - - /** - * Gets the value(s) for threePrime (3 prime of the context). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence adjacent to the feature at its 3 prime - *

- */ - public StringDt getThreePrimeElement() { - if (myThreePrime == null) { - myThreePrime = new StringDt(); - } - return myThreePrime; - } - - - /** - * Sets the value(s) for threePrime (3 prime of the context) - * - *

- * Definition: - * Sequence adjacent to the feature at its 3 prime - *

- */ - public SequenceContext setThreePrime(StringDt theValue) { - myThreePrime = theValue; - return this; - } - - /** - * Sets the value for threePrime (3 prime of the context) - * - *

- * Definition: - * Sequence adjacent to the feature at its 3 prime - *

- */ - public SequenceContext setThreePrime( String theString) { - myThreePrime = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: GVFVariant.sample (Individual genotypic information) - * - *

- * Definition: - * Individual genotypic information - *

- */ - @Block() - public static class Sample - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="phased", type=StringDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Phase status of the sequence", - formalDefinition="Attribute describing the phasing of a sequence" - ) - private java.util.List myPhased; - - @Child(name="genotype", type=StringDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Genotype of individuals", - formalDefinition="Genotypes of the individual" - ) - private java.util.List myGenotype; - - @Child(name="variantReads", type=IntegerDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Read number of the sequence", - formalDefinition="Renumber of the sequence" - ) - private java.util.List myVariantReads; - - @Child(name="totalReads", type=IntegerDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Total reads", - formalDefinition="Total reads of all sequence present in the sample" - ) - private IntegerDt myTotalReads; - - @Child(name="zygosity", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Zygosity", - formalDefinition="Zygosity of the sequences" - ) - private CodeDt myZygosity; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPhased, myGenotype, myVariantReads, myTotalReads, myZygosity); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPhased, myGenotype, myVariantReads, myTotalReads, myZygosity); - } - - /** - * Gets the value(s) for phased (Phase status of the sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Attribute describing the phasing of a sequence - *

- */ - public java.util.List getPhased() { - if (myPhased == null) { - myPhased = new java.util.ArrayList(); - } - return myPhased; - } - - - /** - * Gets the value(s) for phased (Phase status of the sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Attribute describing the phasing of a sequence - *

- */ - public java.util.List getPhasedElement() { - if (myPhased == null) { - myPhased = new java.util.ArrayList(); - } - return myPhased; - } - - - /** - * Sets the value(s) for phased (Phase status of the sequence) - * - *

- * Definition: - * Attribute describing the phasing of a sequence - *

- */ - public Sample setPhased(java.util.List theValue) { - myPhased = theValue; - return this; - } - - /** - * Adds and returns a new value for phased (Phase status of the sequence) - * - *

- * Definition: - * Attribute describing the phasing of a sequence - *

- */ - public StringDt addPhased() { - StringDt newType = new StringDt(); - getPhased().add(newType); - return newType; - } - - /** - * Gets the first repetition for phased (Phase status of the sequence), - * creating it if it does not already exist. - * - *

- * Definition: - * Attribute describing the phasing of a sequence - *

- */ - public StringDt getPhasedFirstRep() { - if (getPhased().isEmpty()) { - return addPhased(); - } - return getPhased().get(0); - } - /** - * Adds a new value for phased (Phase status of the sequence) - * - *

- * Definition: - * Attribute describing the phasing of a sequence - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Sample addPhased( String theString) { - if (myPhased == null) { - myPhased = new java.util.ArrayList(); - } - myPhased.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for genotype (Genotype of individuals). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genotypes of the individual - *

- */ - public java.util.List getGenotype() { - if (myGenotype == null) { - myGenotype = new java.util.ArrayList(); - } - return myGenotype; - } - - - /** - * Gets the value(s) for genotype (Genotype of individuals). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genotypes of the individual - *

- */ - public java.util.List getGenotypeElement() { - if (myGenotype == null) { - myGenotype = new java.util.ArrayList(); - } - return myGenotype; - } - - - /** - * Sets the value(s) for genotype (Genotype of individuals) - * - *

- * Definition: - * Genotypes of the individual - *

- */ - public Sample setGenotype(java.util.List theValue) { - myGenotype = theValue; - return this; - } - - /** - * Adds and returns a new value for genotype (Genotype of individuals) - * - *

- * Definition: - * Genotypes of the individual - *

- */ - public StringDt addGenotype() { - StringDt newType = new StringDt(); - getGenotype().add(newType); - return newType; - } - - /** - * Gets the first repetition for genotype (Genotype of individuals), - * creating it if it does not already exist. - * - *

- * Definition: - * Genotypes of the individual - *

- */ - public StringDt getGenotypeFirstRep() { - if (getGenotype().isEmpty()) { - return addGenotype(); - } - return getGenotype().get(0); - } - /** - * Adds a new value for genotype (Genotype of individuals) - * - *

- * Definition: - * Genotypes of the individual - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Sample addGenotype( String theString) { - if (myGenotype == null) { - myGenotype = new java.util.ArrayList(); - } - myGenotype.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for variantReads (Read number of the sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Renumber of the sequence - *

- */ - public java.util.List getVariantReads() { - if (myVariantReads == null) { - myVariantReads = new java.util.ArrayList(); - } - return myVariantReads; - } - - - /** - * Gets the value(s) for variantReads (Read number of the sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Renumber of the sequence - *

- */ - public java.util.List getVariantReadsElement() { - if (myVariantReads == null) { - myVariantReads = new java.util.ArrayList(); - } - return myVariantReads; - } - - - /** - * Sets the value(s) for variantReads (Read number of the sequence) - * - *

- * Definition: - * Renumber of the sequence - *

- */ - public Sample setVariantReads(java.util.List theValue) { - myVariantReads = theValue; - return this; - } - - /** - * Adds and returns a new value for variantReads (Read number of the sequence) - * - *

- * Definition: - * Renumber of the sequence - *

- */ - public IntegerDt addVariantReads() { - IntegerDt newType = new IntegerDt(); - getVariantReads().add(newType); - return newType; - } - - /** - * Gets the first repetition for variantReads (Read number of the sequence), - * creating it if it does not already exist. - * - *

- * Definition: - * Renumber of the sequence - *

- */ - public IntegerDt getVariantReadsFirstRep() { - if (getVariantReads().isEmpty()) { - return addVariantReads(); - } - return getVariantReads().get(0); - } - /** - * Adds a new value for variantReads (Read number of the sequence) - * - *

- * Definition: - * Renumber of the sequence - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Sample addVariantReads( int theInteger) { - if (myVariantReads == null) { - myVariantReads = new java.util.ArrayList(); - } - myVariantReads.add(new IntegerDt(theInteger)); - return this; - } - - - /** - * Gets the value(s) for totalReads (Total reads). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Total reads of all sequence present in the sample - *

- */ - public IntegerDt getTotalReads() { - if (myTotalReads == null) { - myTotalReads = new IntegerDt(); - } - return myTotalReads; - } - - - /** - * Gets the value(s) for totalReads (Total reads). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Total reads of all sequence present in the sample - *

- */ - public IntegerDt getTotalReadsElement() { - if (myTotalReads == null) { - myTotalReads = new IntegerDt(); - } - return myTotalReads; - } - - - /** - * Sets the value(s) for totalReads (Total reads) - * - *

- * Definition: - * Total reads of all sequence present in the sample - *

- */ - public Sample setTotalReads(IntegerDt theValue) { - myTotalReads = theValue; - return this; - } - - /** - * Sets the value for totalReads (Total reads) - * - *

- * Definition: - * Total reads of all sequence present in the sample - *

- */ - public Sample setTotalReads( int theInteger) { - myTotalReads = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for zygosity (Zygosity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Zygosity of the sequences - *

- */ - public CodeDt getZygosity() { - if (myZygosity == null) { - myZygosity = new CodeDt(); - } - return myZygosity; - } - - - /** - * Gets the value(s) for zygosity (Zygosity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Zygosity of the sequences - *

- */ - public CodeDt getZygosityElement() { - if (myZygosity == null) { - myZygosity = new CodeDt(); - } - return myZygosity; - } - - - /** - * Sets the value(s) for zygosity (Zygosity) - * - *

- * Definition: - * Zygosity of the sequences - *

- */ - public Sample setZygosity(CodeDt theValue) { - myZygosity = theValue; - return this; - } - - /** - * Sets the value for zygosity (Zygosity) - * - *

- * Definition: - * Zygosity of the sequences - *

- */ - public Sample setZygosity( String theCode) { - myZygosity = new CodeDt(theCode); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "GVFVariant"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GeneExpression.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GeneExpression.java deleted file mode 100644 index 568ee9dc3c3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GeneExpression.java +++ /dev/null @@ -1,1509 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR GeneExpression Resource - * (Resource that records the patient's expression of a gene) - * - *

- * Definition: - * Resource that records the patient's expression of a gene - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/GeneExpression - *

- * - */ -@ResourceDef(name="GeneExpression", profile="http://hl7.org/fhir/profiles/GeneExpression", id="geneexpression") -public class GeneExpression - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description: subject being described by the resource
- * Type: reference
- * Path: GeneExpression.subject
- *

- */ - @SearchParamDefinition(name="subject", path="GeneExpression.subject", description="subject being described by the resource", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: subject being described by the resource
- * Type: reference
- * Path: GeneExpression.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "GeneExpression.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("GeneExpression.subject"); - - /** - * Search parameter constant for gene - *

- * Description: Id of the gene
- * Type: string
- * Path: GeneExpression.gene.identifier
- *

- */ - @SearchParamDefinition(name="gene", path="GeneExpression.gene.identifier", description="Id of the gene", type="string" ) - public static final String SP_GENE = "gene"; - - /** - * Fluent Client search parameter constant for gene - *

- * Description: Id of the gene
- * Type: string
- * Path: GeneExpression.gene.identifier
- *

- */ - public static final StringClientParam GENE = new StringClientParam(SP_GENE); - - /** - * Search parameter constant for coordinate - *

- * Description: Coordinate of the gene
- * Type: string
- * Path: GeneExpression.gene.coordinate
- *

- */ - @SearchParamDefinition(name="coordinate", path="GeneExpression.gene.coordinate", description="Coordinate of the gene", type="string" ) - public static final String SP_COORDINATE = "coordinate"; - - /** - * Fluent Client search parameter constant for coordinate - *

- * Description: Coordinate of the gene
- * Type: string
- * Path: GeneExpression.gene.coordinate
- *

- */ - public static final StringClientParam COORDINATE = new StringClientParam(SP_COORDINATE); - - - @Child(name="subject", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Subject described by the resource", - formalDefinition="Subject described by the resource" - ) - private ResourceReferenceDt mySubject; - - @Child(name="gene", order=1, min=1, max=1) - @Description( - shortDefinition="Gene of study", - formalDefinition="Gene of study" - ) - private Gene myGene; - - @Child(name="microarray", order=2, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Microarray.class }) - @Description( - shortDefinition="Microarray that studies the gene", - formalDefinition="Microarray that studies the gene" - ) - private java.util.List myMicroarray; - - @Child(name="rnaSeq", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="RNA-Seq that studies the gene", - formalDefinition="RNA-Seq that studies the gene" - ) - private java.util.List myRnaSeq; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myGene, myMicroarray, myRnaSeq); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myGene, myMicroarray, myRnaSeq); - } - - /** - * Gets the value(s) for subject (Subject described by the resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject described by the resource - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Subject described by the resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject described by the resource - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Subject described by the resource) - * - *

- * Definition: - * Subject described by the resource - *

- */ - public GeneExpression setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for gene (Gene of study). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Gene of study - *

- */ - public Gene getGene() { - if (myGene == null) { - myGene = new Gene(); - } - return myGene; - } - - - /** - * Gets the value(s) for gene (Gene of study). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Gene of study - *

- */ - public Gene getGeneElement() { - if (myGene == null) { - myGene = new Gene(); - } - return myGene; - } - - - /** - * Sets the value(s) for gene (Gene of study) - * - *

- * Definition: - * Gene of study - *

- */ - public GeneExpression setGene(Gene theValue) { - myGene = theValue; - return this; - } - - - /** - * Gets the value(s) for microarray (Microarray that studies the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Microarray that studies the gene - *

- */ - public java.util.List getMicroarray() { - if (myMicroarray == null) { - myMicroarray = new java.util.ArrayList(); - } - return myMicroarray; - } - - - /** - * Gets the value(s) for microarray (Microarray that studies the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Microarray that studies the gene - *

- */ - public java.util.List getMicroarrayElement() { - if (myMicroarray == null) { - myMicroarray = new java.util.ArrayList(); - } - return myMicroarray; - } - - - /** - * Sets the value(s) for microarray (Microarray that studies the gene) - * - *

- * Definition: - * Microarray that studies the gene - *

- */ - public GeneExpression setMicroarray(java.util.List theValue) { - myMicroarray = theValue; - return this; - } - - /** - * Adds and returns a new value for microarray (Microarray that studies the gene) - * - *

- * Definition: - * Microarray that studies the gene - *

- */ - public ResourceReferenceDt addMicroarray() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getMicroarray().add(newType); - return newType; - } - - /** - * Gets the value(s) for rnaSeq (RNA-Seq that studies the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * RNA-Seq that studies the gene - *

- */ - public java.util.List getRnaSeq() { - if (myRnaSeq == null) { - myRnaSeq = new java.util.ArrayList(); - } - return myRnaSeq; - } - - - /** - * Gets the value(s) for rnaSeq (RNA-Seq that studies the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * RNA-Seq that studies the gene - *

- */ - public java.util.List getRnaSeqElement() { - if (myRnaSeq == null) { - myRnaSeq = new java.util.ArrayList(); - } - return myRnaSeq; - } - - - /** - * Sets the value(s) for rnaSeq (RNA-Seq that studies the gene) - * - *

- * Definition: - * RNA-Seq that studies the gene - *

- */ - public GeneExpression setRnaSeq(java.util.List theValue) { - myRnaSeq = theValue; - return this; - } - - /** - * Adds and returns a new value for rnaSeq (RNA-Seq that studies the gene) - * - *

- * Definition: - * RNA-Seq that studies the gene - *

- */ - public RnaSeq addRnaSeq() { - RnaSeq newType = new RnaSeq(); - getRnaSeq().add(newType); - return newType; - } - - /** - * Gets the first repetition for rnaSeq (RNA-Seq that studies the gene), - * creating it if it does not already exist. - * - *

- * Definition: - * RNA-Seq that studies the gene - *

- */ - public RnaSeq getRnaSeqFirstRep() { - if (getRnaSeq().isEmpty()) { - return addRnaSeq(); - } - return getRnaSeq().get(0); - } - - /** - * Block class for child element: GeneExpression.gene (Gene of study) - * - *

- * Definition: - * Gene of study - *

- */ - @Block() - public static class Gene - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identifier of the gene", - formalDefinition="Identifier of the gene" - ) - private StringDt myIdentifier; - - @Child(name="coordinate", order=1, min=0, max=1) - @Description( - shortDefinition="Coordinate of the gene", - formalDefinition="Coordinate of the gene" - ) - private GeneCoordinate myCoordinate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCoordinate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCoordinate); - } - - /** - * Gets the value(s) for identifier (Identifier of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the gene - *

- */ - public StringDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifier of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the gene - *

- */ - public StringDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifier of the gene) - * - *

- * Definition: - * Identifier of the gene - *

- */ - public Gene setIdentifier(StringDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Identifier of the gene) - * - *

- * Definition: - * Identifier of the gene - *

- */ - public Gene setIdentifier( String theString) { - myIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for coordinate (Coordinate of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coordinate of the gene - *

- */ - public GeneCoordinate getCoordinate() { - if (myCoordinate == null) { - myCoordinate = new GeneCoordinate(); - } - return myCoordinate; - } - - - /** - * Gets the value(s) for coordinate (Coordinate of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coordinate of the gene - *

- */ - public GeneCoordinate getCoordinateElement() { - if (myCoordinate == null) { - myCoordinate = new GeneCoordinate(); - } - return myCoordinate; - } - - - /** - * Sets the value(s) for coordinate (Coordinate of the gene) - * - *

- * Definition: - * Coordinate of the gene - *

- */ - public Gene setCoordinate(GeneCoordinate theValue) { - myCoordinate = theValue; - return this; - } - - - - } - - /** - * Block class for child element: GeneExpression.gene.coordinate (Coordinate of the gene) - * - *

- * Definition: - * Coordinate of the gene - *

- */ - @Block() - public static class GeneCoordinate - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="chromosome", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Chromosome", - formalDefinition="Chromosome" - ) - private StringDt myChromosome; - - @Child(name="start", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Start position", - formalDefinition="Start position" - ) - private IntegerDt myStart; - - @Child(name="end", type=IntegerDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="End position", - formalDefinition="End position" - ) - private IntegerDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myChromosome, myStart, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myChromosome, myStart, myEnd); - } - - /** - * Gets the value(s) for chromosome (Chromosome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Chromosome - *

- */ - public StringDt getChromosome() { - if (myChromosome == null) { - myChromosome = new StringDt(); - } - return myChromosome; - } - - - /** - * Gets the value(s) for chromosome (Chromosome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Chromosome - *

- */ - public StringDt getChromosomeElement() { - if (myChromosome == null) { - myChromosome = new StringDt(); - } - return myChromosome; - } - - - /** - * Sets the value(s) for chromosome (Chromosome) - * - *

- * Definition: - * Chromosome - *

- */ - public GeneCoordinate setChromosome(StringDt theValue) { - myChromosome = theValue; - return this; - } - - /** - * Sets the value for chromosome (Chromosome) - * - *

- * Definition: - * Chromosome - *

- */ - public GeneCoordinate setChromosome( String theString) { - myChromosome = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for start (Start position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position - *

- */ - public IntegerDt getStart() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Start position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position - *

- */ - public IntegerDt getStartElement() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Start position) - * - *

- * Definition: - * Start position - *

- */ - public GeneCoordinate setStart(IntegerDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Start position) - * - *

- * Definition: - * Start position - *

- */ - public GeneCoordinate setStart( int theInteger) { - myStart = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (End position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position - *

- */ - public IntegerDt getEnd() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (End position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position - *

- */ - public IntegerDt getEndElement() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (End position) - * - *

- * Definition: - * End position - *

- */ - public GeneCoordinate setEnd(IntegerDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (End position) - * - *

- * Definition: - * End position - *

- */ - public GeneCoordinate setEnd( int theInteger) { - myEnd = new IntegerDt(theInteger); - return this; - } - - - - } - - - - /** - * Block class for child element: GeneExpression.rnaSeq (RNA-Seq that studies the gene) - * - *

- * Definition: - * RNA-Seq that studies the gene - *

- */ - @Block() - public static class RnaSeq - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="inputLab", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.SequencingLab.class }) - @Description( - shortDefinition="Input lab for the RNA-Seq", - formalDefinition="Input lab for the RNA-Seq" - ) - private ResourceReferenceDt myInputLab; - - @Child(name="inputAnalysis", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.SequencingAnalysis.class }) - @Description( - shortDefinition="Input analysis for the RNA-Seq", - formalDefinition="Input analysis for the RNA-Seq" - ) - private ResourceReferenceDt myInputAnalysis; - - @Child(name="expression", type=DecimalDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Expression level of the gene in RPKM", - formalDefinition="Expression level of the gene in RPKM" - ) - private DecimalDt myExpression; - - @Child(name="isoform", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Isoform of the gene", - formalDefinition="Isoform of the gene" - ) - private java.util.List myIsoform; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myInputLab, myInputAnalysis, myExpression, myIsoform); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myInputLab, myInputAnalysis, myExpression, myIsoform); - } - - /** - * Gets the value(s) for inputLab (Input lab for the RNA-Seq). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Input lab for the RNA-Seq - *

- */ - public ResourceReferenceDt getInputLab() { - if (myInputLab == null) { - myInputLab = new ResourceReferenceDt(); - } - return myInputLab; - } - - - /** - * Gets the value(s) for inputLab (Input lab for the RNA-Seq). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Input lab for the RNA-Seq - *

- */ - public ResourceReferenceDt getInputLabElement() { - if (myInputLab == null) { - myInputLab = new ResourceReferenceDt(); - } - return myInputLab; - } - - - /** - * Sets the value(s) for inputLab (Input lab for the RNA-Seq) - * - *

- * Definition: - * Input lab for the RNA-Seq - *

- */ - public RnaSeq setInputLab(ResourceReferenceDt theValue) { - myInputLab = theValue; - return this; - } - - - /** - * Gets the value(s) for inputAnalysis (Input analysis for the RNA-Seq). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Input analysis for the RNA-Seq - *

- */ - public ResourceReferenceDt getInputAnalysis() { - if (myInputAnalysis == null) { - myInputAnalysis = new ResourceReferenceDt(); - } - return myInputAnalysis; - } - - - /** - * Gets the value(s) for inputAnalysis (Input analysis for the RNA-Seq). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Input analysis for the RNA-Seq - *

- */ - public ResourceReferenceDt getInputAnalysisElement() { - if (myInputAnalysis == null) { - myInputAnalysis = new ResourceReferenceDt(); - } - return myInputAnalysis; - } - - - /** - * Sets the value(s) for inputAnalysis (Input analysis for the RNA-Seq) - * - *

- * Definition: - * Input analysis for the RNA-Seq - *

- */ - public RnaSeq setInputAnalysis(ResourceReferenceDt theValue) { - myInputAnalysis = theValue; - return this; - } - - - /** - * Gets the value(s) for expression (Expression level of the gene in RPKM). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expression level of the gene in RPKM - *

- */ - public DecimalDt getExpression() { - if (myExpression == null) { - myExpression = new DecimalDt(); - } - return myExpression; - } - - - /** - * Gets the value(s) for expression (Expression level of the gene in RPKM). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expression level of the gene in RPKM - *

- */ - public DecimalDt getExpressionElement() { - if (myExpression == null) { - myExpression = new DecimalDt(); - } - return myExpression; - } - - - /** - * Sets the value(s) for expression (Expression level of the gene in RPKM) - * - *

- * Definition: - * Expression level of the gene in RPKM - *

- */ - public RnaSeq setExpression(DecimalDt theValue) { - myExpression = theValue; - return this; - } - - /** - * Sets the value for expression (Expression level of the gene in RPKM) - * - *

- * Definition: - * Expression level of the gene in RPKM - *

- */ - public RnaSeq setExpression( long theValue) { - myExpression = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for expression (Expression level of the gene in RPKM) - * - *

- * Definition: - * Expression level of the gene in RPKM - *

- */ - public RnaSeq setExpression( double theValue) { - myExpression = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for expression (Expression level of the gene in RPKM) - * - *

- * Definition: - * Expression level of the gene in RPKM - *

- */ - public RnaSeq setExpression( java.math.BigDecimal theValue) { - myExpression = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for isoform (Isoform of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Isoform of the gene - *

- */ - public java.util.List getIsoform() { - if (myIsoform == null) { - myIsoform = new java.util.ArrayList(); - } - return myIsoform; - } - - - /** - * Gets the value(s) for isoform (Isoform of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Isoform of the gene - *

- */ - public java.util.List getIsoformElement() { - if (myIsoform == null) { - myIsoform = new java.util.ArrayList(); - } - return myIsoform; - } - - - /** - * Sets the value(s) for isoform (Isoform of the gene) - * - *

- * Definition: - * Isoform of the gene - *

- */ - public RnaSeq setIsoform(java.util.List theValue) { - myIsoform = theValue; - return this; - } - - /** - * Adds and returns a new value for isoform (Isoform of the gene) - * - *

- * Definition: - * Isoform of the gene - *

- */ - public RnaSeqIsoform addIsoform() { - RnaSeqIsoform newType = new RnaSeqIsoform(); - getIsoform().add(newType); - return newType; - } - - /** - * Gets the first repetition for isoform (Isoform of the gene), - * creating it if it does not already exist. - * - *

- * Definition: - * Isoform of the gene - *

- */ - public RnaSeqIsoform getIsoformFirstRep() { - if (getIsoform().isEmpty()) { - return addIsoform(); - } - return getIsoform().get(0); - } - - - } - - /** - * Block class for child element: GeneExpression.rnaSeq.isoform (Isoform of the gene) - * - *

- * Definition: - * Isoform of the gene - *

- */ - @Block() - public static class RnaSeqIsoform - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identity", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Identifier of the isoform", - formalDefinition="Identifier of the isoform" - ) - private StringDt myIdentity; - - @Child(name="expression", type=DecimalDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Expression level of the isoform in RPKM", - formalDefinition="Expression level of the isoform in RPKM" - ) - private DecimalDt myExpression; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myExpression); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myExpression); - } - - /** - * Gets the value(s) for identity (Identifier of the isoform). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the isoform - *

- */ - public StringDt getIdentity() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (Identifier of the isoform). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the isoform - *

- */ - public StringDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Sets the value(s) for identity (Identifier of the isoform) - * - *

- * Definition: - * Identifier of the isoform - *

- */ - public RnaSeqIsoform setIdentity(StringDt theValue) { - myIdentity = theValue; - return this; - } - - /** - * Sets the value for identity (Identifier of the isoform) - * - *

- * Definition: - * Identifier of the isoform - *

- */ - public RnaSeqIsoform setIdentity( String theString) { - myIdentity = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for expression (Expression level of the isoform in RPKM). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expression level of the isoform in RPKM - *

- */ - public DecimalDt getExpression() { - if (myExpression == null) { - myExpression = new DecimalDt(); - } - return myExpression; - } - - - /** - * Gets the value(s) for expression (Expression level of the isoform in RPKM). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expression level of the isoform in RPKM - *

- */ - public DecimalDt getExpressionElement() { - if (myExpression == null) { - myExpression = new DecimalDt(); - } - return myExpression; - } - - - /** - * Sets the value(s) for expression (Expression level of the isoform in RPKM) - * - *

- * Definition: - * Expression level of the isoform in RPKM - *

- */ - public RnaSeqIsoform setExpression(DecimalDt theValue) { - myExpression = theValue; - return this; - } - - /** - * Sets the value for expression (Expression level of the isoform in RPKM) - * - *

- * Definition: - * Expression level of the isoform in RPKM - *

- */ - public RnaSeqIsoform setExpression( long theValue) { - myExpression = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for expression (Expression level of the isoform in RPKM) - * - *

- * Definition: - * Expression level of the isoform in RPKM - *

- */ - public RnaSeqIsoform setExpression( double theValue) { - myExpression = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for expression (Expression level of the isoform in RPKM) - * - *

- * Definition: - * Expression level of the isoform in RPKM - *

- */ - public RnaSeqIsoform setExpression( java.math.BigDecimal theValue) { - myExpression = new DecimalDt(theValue); - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "GeneExpression"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GeneticAnalysis.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GeneticAnalysis.java deleted file mode 100644 index b30a38f9a74..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/GeneticAnalysis.java +++ /dev/null @@ -1,3139 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR GeneticAnalysis Resource - * (Analysis of a patient's genetic test) - * - *

- * Definition: - * Analysis of a patient's genetic test - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/GeneticAnalysis - *

- * - */ -@ResourceDef(name="GeneticAnalysis", profile="http://hl7.org/fhir/profiles/GeneticAnalysis", id="geneticanalysis") -public class GeneticAnalysis - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description: Subject of the analysis
- * Type: reference
- * Path: GeneticAnalysis.subject
- *

- */ - @SearchParamDefinition(name="subject", path="GeneticAnalysis.subject", description="Subject of the analysis", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: Subject of the analysis
- * Type: reference
- * Path: GeneticAnalysis.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "GeneticAnalysis.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("GeneticAnalysis.subject"); - - /** - * Search parameter constant for author - *

- * Description: Author of the analysis
- * Type: reference
- * Path: GeneticAnalysis.author
- *

- */ - @SearchParamDefinition(name="author", path="GeneticAnalysis.author", description="Author of the analysis", type="reference" ) - public static final String SP_AUTHOR = "author"; - - /** - * Fluent Client search parameter constant for author - *

- * Description: Author of the analysis
- * Type: reference
- * Path: GeneticAnalysis.author
- *

- */ - public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "GeneticAnalysis.author". - */ - public static final Include INCLUDE_AUTHOR = new Include("GeneticAnalysis.author"); - - /** - * Search parameter constant for date - *

- * Description: Date when result of the analysis is uploaded
- * Type: date
- * Path: GeneticAnalysis.date
- *

- */ - @SearchParamDefinition(name="date", path="GeneticAnalysis.date", description="Date when result of the analysis is uploaded", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: Date when result of the analysis is uploaded
- * Type: date
- * Path: GeneticAnalysis.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - - @Child(name="subject", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Subject of the analysis", - formalDefinition="Subject of the analysis" - ) - private ResourceReferenceDt mySubject; - - @Child(name="author", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Author of the analysis", - formalDefinition="Author of the analysis" - ) - private ResourceReferenceDt myAuthor; - - @Child(name="date", type=DateDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Date when result of the analysis is updated", - formalDefinition="Date when result of the analysis is updated" - ) - private DateDt myDate; - - @Child(name="geneticAnalysisSummary", order=3, min=1, max=1) - @Description( - shortDefinition="Summary of the analysis", - formalDefinition="Summary of the analysis" - ) - private GeneticAnalysisSummary myGeneticAnalysisSummary; - - @Child(name="dnaRegionAnalysisTestCoverage", order=4, min=0, max=1) - @Description( - shortDefinition="Coverage of the genetic test", - formalDefinition="Coverage of the genetic test" - ) - private DnaRegionAnalysisTestCoverage myDnaRegionAnalysisTestCoverage; - - @Child(name="geneticAnalysisDiscreteResult", order=5, min=0, max=1) - @Description( - shortDefinition="Genetic analysis discrete result", - formalDefinition="Genetic analysis discrete result" - ) - private GeneticAnalysisDiscreteResult myGeneticAnalysisDiscreteResult; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myAuthor, myDate, myGeneticAnalysisSummary, myDnaRegionAnalysisTestCoverage, myGeneticAnalysisDiscreteResult); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myAuthor, myDate, myGeneticAnalysisSummary, myDnaRegionAnalysisTestCoverage, myGeneticAnalysisDiscreteResult); - } - - /** - * Gets the value(s) for subject (Subject of the analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject of the analysis - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Subject of the analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject of the analysis - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Subject of the analysis) - * - *

- * Definition: - * Subject of the analysis - *

- */ - public GeneticAnalysis setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Author of the analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Author of the analysis - *

- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Author of the analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Author of the analysis - *

- */ - public ResourceReferenceDt getAuthorElement() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Author of the analysis) - * - *

- * Definition: - * Author of the analysis - *

- */ - public GeneticAnalysis setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for date (Date when result of the analysis is updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public DateDt getDate() { - if (myDate == null) { - myDate = new DateDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Date when result of the analysis is updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public DateDt getDateElement() { - if (myDate == null) { - myDate = new DateDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Date when result of the analysis is updated) - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public GeneticAnalysis setDate(DateDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Date when result of the analysis is updated) - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public GeneticAnalysis setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Date when result of the analysis is updated) - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public GeneticAnalysis setDateWithDayPrecision( Date theDate) { - myDate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for geneticAnalysisSummary (Summary of the analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Summary of the analysis - *

- */ - public GeneticAnalysisSummary getGeneticAnalysisSummary() { - if (myGeneticAnalysisSummary == null) { - myGeneticAnalysisSummary = new GeneticAnalysisSummary(); - } - return myGeneticAnalysisSummary; - } - - - /** - * Gets the value(s) for geneticAnalysisSummary (Summary of the analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Summary of the analysis - *

- */ - public GeneticAnalysisSummary getGeneticAnalysisSummaryElement() { - if (myGeneticAnalysisSummary == null) { - myGeneticAnalysisSummary = new GeneticAnalysisSummary(); - } - return myGeneticAnalysisSummary; - } - - - /** - * Sets the value(s) for geneticAnalysisSummary (Summary of the analysis) - * - *

- * Definition: - * Summary of the analysis - *

- */ - public GeneticAnalysis setGeneticAnalysisSummary(GeneticAnalysisSummary theValue) { - myGeneticAnalysisSummary = theValue; - return this; - } - - - /** - * Gets the value(s) for dnaRegionAnalysisTestCoverage (Coverage of the genetic test). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coverage of the genetic test - *

- */ - public DnaRegionAnalysisTestCoverage getDnaRegionAnalysisTestCoverage() { - if (myDnaRegionAnalysisTestCoverage == null) { - myDnaRegionAnalysisTestCoverage = new DnaRegionAnalysisTestCoverage(); - } - return myDnaRegionAnalysisTestCoverage; - } - - - /** - * Gets the value(s) for dnaRegionAnalysisTestCoverage (Coverage of the genetic test). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coverage of the genetic test - *

- */ - public DnaRegionAnalysisTestCoverage getDnaRegionAnalysisTestCoverageElement() { - if (myDnaRegionAnalysisTestCoverage == null) { - myDnaRegionAnalysisTestCoverage = new DnaRegionAnalysisTestCoverage(); - } - return myDnaRegionAnalysisTestCoverage; - } - - - /** - * Sets the value(s) for dnaRegionAnalysisTestCoverage (Coverage of the genetic test) - * - *

- * Definition: - * Coverage of the genetic test - *

- */ - public GeneticAnalysis setDnaRegionAnalysisTestCoverage(DnaRegionAnalysisTestCoverage theValue) { - myDnaRegionAnalysisTestCoverage = theValue; - return this; - } - - - /** - * Gets the value(s) for geneticAnalysisDiscreteResult (Genetic analysis discrete result). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genetic analysis discrete result - *

- */ - public GeneticAnalysisDiscreteResult getGeneticAnalysisDiscreteResult() { - if (myGeneticAnalysisDiscreteResult == null) { - myGeneticAnalysisDiscreteResult = new GeneticAnalysisDiscreteResult(); - } - return myGeneticAnalysisDiscreteResult; - } - - - /** - * Gets the value(s) for geneticAnalysisDiscreteResult (Genetic analysis discrete result). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genetic analysis discrete result - *

- */ - public GeneticAnalysisDiscreteResult getGeneticAnalysisDiscreteResultElement() { - if (myGeneticAnalysisDiscreteResult == null) { - myGeneticAnalysisDiscreteResult = new GeneticAnalysisDiscreteResult(); - } - return myGeneticAnalysisDiscreteResult; - } - - - /** - * Sets the value(s) for geneticAnalysisDiscreteResult (Genetic analysis discrete result) - * - *

- * Definition: - * Genetic analysis discrete result - *

- */ - public GeneticAnalysis setGeneticAnalysisDiscreteResult(GeneticAnalysisDiscreteResult theValue) { - myGeneticAnalysisDiscreteResult = theValue; - return this; - } - - - /** - * Block class for child element: GeneticAnalysis.geneticAnalysisSummary (Summary of the analysis) - * - *

- * Definition: - * Summary of the analysis - *

- */ - @Block() - public static class GeneticAnalysisSummary - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="geneticDiseaseAssessed", type=CodingDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Genetic disease being assesed", - formalDefinition="Genetic disease being assesed" - ) - private CodingDt myGeneticDiseaseAssessed; - - @Child(name="medicationAssesed", type=CodingDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Medication being assesed", - formalDefinition="Medication being assesed" - ) - private CodingDt myMedicationAssesed; - - @Child(name="genomicSourceClass", type=CodingDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Class of the source of sample", - formalDefinition="Class of the source of sample" - ) - private CodingDt myGenomicSourceClass; - - @Child(name="geneticDiseaseAnalysisOverallInterpretation", type=CodingDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Overall interpretation of the patient's genotype on the genetic disease being assesed", - formalDefinition="Overall interpretation of the patient's genotype on the genetic disease being assesed" - ) - private CodingDt myGeneticDiseaseAnalysisOverallInterpretation; - - @Child(name="geneticDiseaseAnalysisOverallCarrierInterpertation", type=CodingDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Carrier status of the patietn", - formalDefinition="Carrier status of the patietn" - ) - private CodingDt myGeneticDiseaseAnalysisOverallCarrierInterpertation; - - @Child(name="drugEfficacyAnalysisOverallInterpretation", type=CodingDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Analysis on the efficacy of the drug being assessed", - formalDefinition="Analysis on the efficacy of the drug being assessed" - ) - private CodingDt myDrugEfficacyAnalysisOverallInterpretation; - - @Child(name="geneticAnalysisSummaryReport", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Summary of the analysis", - formalDefinition="Summary of the analysis" - ) - private StringDt myGeneticAnalysisSummaryReport; - - @Child(name="reasonForStudyAdditionalNote", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Additional notes", - formalDefinition="Additional notes" - ) - private StringDt myReasonForStudyAdditionalNote; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myGeneticDiseaseAssessed, myMedicationAssesed, myGenomicSourceClass, myGeneticDiseaseAnalysisOverallInterpretation, myGeneticDiseaseAnalysisOverallCarrierInterpertation, myDrugEfficacyAnalysisOverallInterpretation, myGeneticAnalysisSummaryReport, myReasonForStudyAdditionalNote); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myGeneticDiseaseAssessed, myMedicationAssesed, myGenomicSourceClass, myGeneticDiseaseAnalysisOverallInterpretation, myGeneticDiseaseAnalysisOverallCarrierInterpertation, myDrugEfficacyAnalysisOverallInterpretation, myGeneticAnalysisSummaryReport, myReasonForStudyAdditionalNote); - } - - /** - * Gets the value(s) for geneticDiseaseAssessed (Genetic disease being assesed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genetic disease being assesed - *

- */ - public CodingDt getGeneticDiseaseAssessed() { - if (myGeneticDiseaseAssessed == null) { - myGeneticDiseaseAssessed = new CodingDt(); - } - return myGeneticDiseaseAssessed; - } - - - /** - * Gets the value(s) for geneticDiseaseAssessed (Genetic disease being assesed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genetic disease being assesed - *

- */ - public CodingDt getGeneticDiseaseAssessedElement() { - if (myGeneticDiseaseAssessed == null) { - myGeneticDiseaseAssessed = new CodingDt(); - } - return myGeneticDiseaseAssessed; - } - - - /** - * Sets the value(s) for geneticDiseaseAssessed (Genetic disease being assesed) - * - *

- * Definition: - * Genetic disease being assesed - *

- */ - public GeneticAnalysisSummary setGeneticDiseaseAssessed(CodingDt theValue) { - myGeneticDiseaseAssessed = theValue; - return this; - } - - - /** - * Gets the value(s) for medicationAssesed (Medication being assesed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Medication being assesed - *

- */ - public CodingDt getMedicationAssesed() { - if (myMedicationAssesed == null) { - myMedicationAssesed = new CodingDt(); - } - return myMedicationAssesed; - } - - - /** - * Gets the value(s) for medicationAssesed (Medication being assesed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Medication being assesed - *

- */ - public CodingDt getMedicationAssesedElement() { - if (myMedicationAssesed == null) { - myMedicationAssesed = new CodingDt(); - } - return myMedicationAssesed; - } - - - /** - * Sets the value(s) for medicationAssesed (Medication being assesed) - * - *

- * Definition: - * Medication being assesed - *

- */ - public GeneticAnalysisSummary setMedicationAssesed(CodingDt theValue) { - myMedicationAssesed = theValue; - return this; - } - - - /** - * Gets the value(s) for genomicSourceClass (Class of the source of sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Class of the source of sample - *

- */ - public CodingDt getGenomicSourceClass() { - if (myGenomicSourceClass == null) { - myGenomicSourceClass = new CodingDt(); - } - return myGenomicSourceClass; - } - - - /** - * Gets the value(s) for genomicSourceClass (Class of the source of sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Class of the source of sample - *

- */ - public CodingDt getGenomicSourceClassElement() { - if (myGenomicSourceClass == null) { - myGenomicSourceClass = new CodingDt(); - } - return myGenomicSourceClass; - } - - - /** - * Sets the value(s) for genomicSourceClass (Class of the source of sample) - * - *

- * Definition: - * Class of the source of sample - *

- */ - public GeneticAnalysisSummary setGenomicSourceClass(CodingDt theValue) { - myGenomicSourceClass = theValue; - return this; - } - - - /** - * Gets the value(s) for geneticDiseaseAnalysisOverallInterpretation (Overall interpretation of the patient's genotype on the genetic disease being assesed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Overall interpretation of the patient's genotype on the genetic disease being assesed - *

- */ - public CodingDt getGeneticDiseaseAnalysisOverallInterpretation() { - if (myGeneticDiseaseAnalysisOverallInterpretation == null) { - myGeneticDiseaseAnalysisOverallInterpretation = new CodingDt(); - } - return myGeneticDiseaseAnalysisOverallInterpretation; - } - - - /** - * Gets the value(s) for geneticDiseaseAnalysisOverallInterpretation (Overall interpretation of the patient's genotype on the genetic disease being assesed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Overall interpretation of the patient's genotype on the genetic disease being assesed - *

- */ - public CodingDt getGeneticDiseaseAnalysisOverallInterpretationElement() { - if (myGeneticDiseaseAnalysisOverallInterpretation == null) { - myGeneticDiseaseAnalysisOverallInterpretation = new CodingDt(); - } - return myGeneticDiseaseAnalysisOverallInterpretation; - } - - - /** - * Sets the value(s) for geneticDiseaseAnalysisOverallInterpretation (Overall interpretation of the patient's genotype on the genetic disease being assesed) - * - *

- * Definition: - * Overall interpretation of the patient's genotype on the genetic disease being assesed - *

- */ - public GeneticAnalysisSummary setGeneticDiseaseAnalysisOverallInterpretation(CodingDt theValue) { - myGeneticDiseaseAnalysisOverallInterpretation = theValue; - return this; - } - - - /** - * Gets the value(s) for geneticDiseaseAnalysisOverallCarrierInterpertation (Carrier status of the patietn). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Carrier status of the patietn - *

- */ - public CodingDt getGeneticDiseaseAnalysisOverallCarrierInterpertation() { - if (myGeneticDiseaseAnalysisOverallCarrierInterpertation == null) { - myGeneticDiseaseAnalysisOverallCarrierInterpertation = new CodingDt(); - } - return myGeneticDiseaseAnalysisOverallCarrierInterpertation; - } - - - /** - * Gets the value(s) for geneticDiseaseAnalysisOverallCarrierInterpertation (Carrier status of the patietn). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Carrier status of the patietn - *

- */ - public CodingDt getGeneticDiseaseAnalysisOverallCarrierInterpertationElement() { - if (myGeneticDiseaseAnalysisOverallCarrierInterpertation == null) { - myGeneticDiseaseAnalysisOverallCarrierInterpertation = new CodingDt(); - } - return myGeneticDiseaseAnalysisOverallCarrierInterpertation; - } - - - /** - * Sets the value(s) for geneticDiseaseAnalysisOverallCarrierInterpertation (Carrier status of the patietn) - * - *

- * Definition: - * Carrier status of the patietn - *

- */ - public GeneticAnalysisSummary setGeneticDiseaseAnalysisOverallCarrierInterpertation(CodingDt theValue) { - myGeneticDiseaseAnalysisOverallCarrierInterpertation = theValue; - return this; - } - - - /** - * Gets the value(s) for drugEfficacyAnalysisOverallInterpretation (Analysis on the efficacy of the drug being assessed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Analysis on the efficacy of the drug being assessed - *

- */ - public CodingDt getDrugEfficacyAnalysisOverallInterpretation() { - if (myDrugEfficacyAnalysisOverallInterpretation == null) { - myDrugEfficacyAnalysisOverallInterpretation = new CodingDt(); - } - return myDrugEfficacyAnalysisOverallInterpretation; - } - - - /** - * Gets the value(s) for drugEfficacyAnalysisOverallInterpretation (Analysis on the efficacy of the drug being assessed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Analysis on the efficacy of the drug being assessed - *

- */ - public CodingDt getDrugEfficacyAnalysisOverallInterpretationElement() { - if (myDrugEfficacyAnalysisOverallInterpretation == null) { - myDrugEfficacyAnalysisOverallInterpretation = new CodingDt(); - } - return myDrugEfficacyAnalysisOverallInterpretation; - } - - - /** - * Sets the value(s) for drugEfficacyAnalysisOverallInterpretation (Analysis on the efficacy of the drug being assessed) - * - *

- * Definition: - * Analysis on the efficacy of the drug being assessed - *

- */ - public GeneticAnalysisSummary setDrugEfficacyAnalysisOverallInterpretation(CodingDt theValue) { - myDrugEfficacyAnalysisOverallInterpretation = theValue; - return this; - } - - - /** - * Gets the value(s) for geneticAnalysisSummaryReport (Summary of the analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Summary of the analysis - *

- */ - public StringDt getGeneticAnalysisSummaryReport() { - if (myGeneticAnalysisSummaryReport == null) { - myGeneticAnalysisSummaryReport = new StringDt(); - } - return myGeneticAnalysisSummaryReport; - } - - - /** - * Gets the value(s) for geneticAnalysisSummaryReport (Summary of the analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Summary of the analysis - *

- */ - public StringDt getGeneticAnalysisSummaryReportElement() { - if (myGeneticAnalysisSummaryReport == null) { - myGeneticAnalysisSummaryReport = new StringDt(); - } - return myGeneticAnalysisSummaryReport; - } - - - /** - * Sets the value(s) for geneticAnalysisSummaryReport (Summary of the analysis) - * - *

- * Definition: - * Summary of the analysis - *

- */ - public GeneticAnalysisSummary setGeneticAnalysisSummaryReport(StringDt theValue) { - myGeneticAnalysisSummaryReport = theValue; - return this; - } - - /** - * Sets the value for geneticAnalysisSummaryReport (Summary of the analysis) - * - *

- * Definition: - * Summary of the analysis - *

- */ - public GeneticAnalysisSummary setGeneticAnalysisSummaryReport( String theString) { - myGeneticAnalysisSummaryReport = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for reasonForStudyAdditionalNote (Additional notes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional notes - *

- */ - public StringDt getReasonForStudyAdditionalNote() { - if (myReasonForStudyAdditionalNote == null) { - myReasonForStudyAdditionalNote = new StringDt(); - } - return myReasonForStudyAdditionalNote; - } - - - /** - * Gets the value(s) for reasonForStudyAdditionalNote (Additional notes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional notes - *

- */ - public StringDt getReasonForStudyAdditionalNoteElement() { - if (myReasonForStudyAdditionalNote == null) { - myReasonForStudyAdditionalNote = new StringDt(); - } - return myReasonForStudyAdditionalNote; - } - - - /** - * Sets the value(s) for reasonForStudyAdditionalNote (Additional notes) - * - *

- * Definition: - * Additional notes - *

- */ - public GeneticAnalysisSummary setReasonForStudyAdditionalNote(StringDt theValue) { - myReasonForStudyAdditionalNote = theValue; - return this; - } - - /** - * Sets the value for reasonForStudyAdditionalNote (Additional notes) - * - *

- * Definition: - * Additional notes - *

- */ - public GeneticAnalysisSummary setReasonForStudyAdditionalNote( String theString) { - myReasonForStudyAdditionalNote = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: GeneticAnalysis.dnaRegionAnalysisTestCoverage (Coverage of the genetic test) - * - *

- * Definition: - * Coverage of the genetic test - *

- */ - @Block() - public static class DnaRegionAnalysisTestCoverage - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="dnaRegionOfInterest", order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="DNA studied", - formalDefinition="DNA studied" - ) - private java.util.List myDnaRegionOfInterest; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDnaRegionOfInterest); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDnaRegionOfInterest); - } - - /** - * Gets the value(s) for dnaRegionOfInterest (DNA studied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * DNA studied - *

- */ - public java.util.List getDnaRegionOfInterest() { - if (myDnaRegionOfInterest == null) { - myDnaRegionOfInterest = new java.util.ArrayList(); - } - return myDnaRegionOfInterest; - } - - - /** - * Gets the value(s) for dnaRegionOfInterest (DNA studied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * DNA studied - *

- */ - public java.util.List getDnaRegionOfInterestElement() { - if (myDnaRegionOfInterest == null) { - myDnaRegionOfInterest = new java.util.ArrayList(); - } - return myDnaRegionOfInterest; - } - - - /** - * Sets the value(s) for dnaRegionOfInterest (DNA studied) - * - *

- * Definition: - * DNA studied - *

- */ - public DnaRegionAnalysisTestCoverage setDnaRegionOfInterest(java.util.List theValue) { - myDnaRegionOfInterest = theValue; - return this; - } - - /** - * Adds and returns a new value for dnaRegionOfInterest (DNA studied) - * - *

- * Definition: - * DNA studied - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest addDnaRegionOfInterest() { - DnaRegionAnalysisTestCoverageDnaRegionOfInterest newType = new DnaRegionAnalysisTestCoverageDnaRegionOfInterest(); - getDnaRegionOfInterest().add(newType); - return newType; - } - - /** - * Gets the first repetition for dnaRegionOfInterest (DNA studied), - * creating it if it does not already exist. - * - *

- * Definition: - * DNA studied - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest getDnaRegionOfInterestFirstRep() { - if (getDnaRegionOfInterest().isEmpty()) { - return addDnaRegionOfInterest(); - } - return getDnaRegionOfInterest().get(0); - } - - - } - - /** - * Block class for child element: GeneticAnalysis.dnaRegionAnalysisTestCoverage.dnaRegionOfInterest (DNA studied) - * - *

- * Definition: - * DNA studied - *

- */ - @Block() - public static class DnaRegionAnalysisTestCoverageDnaRegionOfInterest - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="genomicReferenceSequenceIdentifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Genomic reference sequence identifier", - formalDefinition="Identifier of the sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number" - ) - private StringDt myGenomicReferenceSequenceIdentifier; - - @Child(name="regionOfInterestStart", type=IntegerDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Start position of the DNA region of interest", - formalDefinition="Start position of the DNA region of interest" - ) - private IntegerDt myRegionOfInterestStart; - - @Child(name="regionOfInterestStop", type=IntegerDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="End position of the DNA region of interest", - formalDefinition="End position of the DNA region of interest" - ) - private IntegerDt myRegionOfInterestStop; - - @Child(name="referenceNucleotide", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Genotype of the region in reference genome", - formalDefinition="Genotype of the region in reference genome" - ) - private StringDt myReferenceNucleotide; - - @Child(name="variableNucleotide", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="The patient's genotype in the region", - formalDefinition="The patient's genotype in the region" - ) - private StringDt myVariableNucleotide; - - @Child(name="genechipId", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="ID of the genechip", - formalDefinition="ID of the genechip" - ) - private StringDt myGenechipId; - - @Child(name="genechipManufacturerId", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="ID of manufacturer of the genechip", - formalDefinition="ID of manufacturer of the genechip" - ) - private StringDt myGenechipManufacturerId; - - @Child(name="genechipVersion", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Version of the genechip", - formalDefinition="Version of the genechip" - ) - private StringDt myGenechipVersion; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myGenomicReferenceSequenceIdentifier, myRegionOfInterestStart, myRegionOfInterestStop, myReferenceNucleotide, myVariableNucleotide, myGenechipId, myGenechipManufacturerId, myGenechipVersion); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myGenomicReferenceSequenceIdentifier, myRegionOfInterestStart, myRegionOfInterestStop, myReferenceNucleotide, myVariableNucleotide, myGenechipId, myGenechipManufacturerId, myGenechipVersion); - } - - /** - * Gets the value(s) for genomicReferenceSequenceIdentifier (Genomic reference sequence identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public StringDt getGenomicReferenceSequenceIdentifier() { - if (myGenomicReferenceSequenceIdentifier == null) { - myGenomicReferenceSequenceIdentifier = new StringDt(); - } - return myGenomicReferenceSequenceIdentifier; - } - - - /** - * Gets the value(s) for genomicReferenceSequenceIdentifier (Genomic reference sequence identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public StringDt getGenomicReferenceSequenceIdentifierElement() { - if (myGenomicReferenceSequenceIdentifier == null) { - myGenomicReferenceSequenceIdentifier = new StringDt(); - } - return myGenomicReferenceSequenceIdentifier; - } - - - /** - * Sets the value(s) for genomicReferenceSequenceIdentifier (Genomic reference sequence identifier) - * - *

- * Definition: - * Identifier of the sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setGenomicReferenceSequenceIdentifier(StringDt theValue) { - myGenomicReferenceSequenceIdentifier = theValue; - return this; - } - - /** - * Sets the value for genomicReferenceSequenceIdentifier (Genomic reference sequence identifier) - * - *

- * Definition: - * Identifier of the sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setGenomicReferenceSequenceIdentifier( String theString) { - myGenomicReferenceSequenceIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for regionOfInterestStart (Start position of the DNA region of interest). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position of the DNA region of interest - *

- */ - public IntegerDt getRegionOfInterestStart() { - if (myRegionOfInterestStart == null) { - myRegionOfInterestStart = new IntegerDt(); - } - return myRegionOfInterestStart; - } - - - /** - * Gets the value(s) for regionOfInterestStart (Start position of the DNA region of interest). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position of the DNA region of interest - *

- */ - public IntegerDt getRegionOfInterestStartElement() { - if (myRegionOfInterestStart == null) { - myRegionOfInterestStart = new IntegerDt(); - } - return myRegionOfInterestStart; - } - - - /** - * Sets the value(s) for regionOfInterestStart (Start position of the DNA region of interest) - * - *

- * Definition: - * Start position of the DNA region of interest - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setRegionOfInterestStart(IntegerDt theValue) { - myRegionOfInterestStart = theValue; - return this; - } - - /** - * Sets the value for regionOfInterestStart (Start position of the DNA region of interest) - * - *

- * Definition: - * Start position of the DNA region of interest - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setRegionOfInterestStart( int theInteger) { - myRegionOfInterestStart = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for regionOfInterestStop (End position of the DNA region of interest). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position of the DNA region of interest - *

- */ - public IntegerDt getRegionOfInterestStop() { - if (myRegionOfInterestStop == null) { - myRegionOfInterestStop = new IntegerDt(); - } - return myRegionOfInterestStop; - } - - - /** - * Gets the value(s) for regionOfInterestStop (End position of the DNA region of interest). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position of the DNA region of interest - *

- */ - public IntegerDt getRegionOfInterestStopElement() { - if (myRegionOfInterestStop == null) { - myRegionOfInterestStop = new IntegerDt(); - } - return myRegionOfInterestStop; - } - - - /** - * Sets the value(s) for regionOfInterestStop (End position of the DNA region of interest) - * - *

- * Definition: - * End position of the DNA region of interest - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setRegionOfInterestStop(IntegerDt theValue) { - myRegionOfInterestStop = theValue; - return this; - } - - /** - * Sets the value for regionOfInterestStop (End position of the DNA region of interest) - * - *

- * Definition: - * End position of the DNA region of interest - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setRegionOfInterestStop( int theInteger) { - myRegionOfInterestStop = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for referenceNucleotide (Genotype of the region in reference genome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genotype of the region in reference genome - *

- */ - public StringDt getReferenceNucleotide() { - if (myReferenceNucleotide == null) { - myReferenceNucleotide = new StringDt(); - } - return myReferenceNucleotide; - } - - - /** - * Gets the value(s) for referenceNucleotide (Genotype of the region in reference genome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genotype of the region in reference genome - *

- */ - public StringDt getReferenceNucleotideElement() { - if (myReferenceNucleotide == null) { - myReferenceNucleotide = new StringDt(); - } - return myReferenceNucleotide; - } - - - /** - * Sets the value(s) for referenceNucleotide (Genotype of the region in reference genome) - * - *

- * Definition: - * Genotype of the region in reference genome - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setReferenceNucleotide(StringDt theValue) { - myReferenceNucleotide = theValue; - return this; - } - - /** - * Sets the value for referenceNucleotide (Genotype of the region in reference genome) - * - *

- * Definition: - * Genotype of the region in reference genome - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setReferenceNucleotide( String theString) { - myReferenceNucleotide = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for variableNucleotide (The patient's genotype in the region). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient's genotype in the region - *

- */ - public StringDt getVariableNucleotide() { - if (myVariableNucleotide == null) { - myVariableNucleotide = new StringDt(); - } - return myVariableNucleotide; - } - - - /** - * Gets the value(s) for variableNucleotide (The patient's genotype in the region). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient's genotype in the region - *

- */ - public StringDt getVariableNucleotideElement() { - if (myVariableNucleotide == null) { - myVariableNucleotide = new StringDt(); - } - return myVariableNucleotide; - } - - - /** - * Sets the value(s) for variableNucleotide (The patient's genotype in the region) - * - *

- * Definition: - * The patient's genotype in the region - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setVariableNucleotide(StringDt theValue) { - myVariableNucleotide = theValue; - return this; - } - - /** - * Sets the value for variableNucleotide (The patient's genotype in the region) - * - *

- * Definition: - * The patient's genotype in the region - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setVariableNucleotide( String theString) { - myVariableNucleotide = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for genechipId (ID of the genechip). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * ID of the genechip - *

- */ - public StringDt getGenechipId() { - if (myGenechipId == null) { - myGenechipId = new StringDt(); - } - return myGenechipId; - } - - - /** - * Gets the value(s) for genechipId (ID of the genechip). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * ID of the genechip - *

- */ - public StringDt getGenechipIdElement() { - if (myGenechipId == null) { - myGenechipId = new StringDt(); - } - return myGenechipId; - } - - - /** - * Sets the value(s) for genechipId (ID of the genechip) - * - *

- * Definition: - * ID of the genechip - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setGenechipId(StringDt theValue) { - myGenechipId = theValue; - return this; - } - - /** - * Sets the value for genechipId (ID of the genechip) - * - *

- * Definition: - * ID of the genechip - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setGenechipId( String theString) { - myGenechipId = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for genechipManufacturerId (ID of manufacturer of the genechip). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * ID of manufacturer of the genechip - *

- */ - public StringDt getGenechipManufacturerId() { - if (myGenechipManufacturerId == null) { - myGenechipManufacturerId = new StringDt(); - } - return myGenechipManufacturerId; - } - - - /** - * Gets the value(s) for genechipManufacturerId (ID of manufacturer of the genechip). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * ID of manufacturer of the genechip - *

- */ - public StringDt getGenechipManufacturerIdElement() { - if (myGenechipManufacturerId == null) { - myGenechipManufacturerId = new StringDt(); - } - return myGenechipManufacturerId; - } - - - /** - * Sets the value(s) for genechipManufacturerId (ID of manufacturer of the genechip) - * - *

- * Definition: - * ID of manufacturer of the genechip - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setGenechipManufacturerId(StringDt theValue) { - myGenechipManufacturerId = theValue; - return this; - } - - /** - * Sets the value for genechipManufacturerId (ID of manufacturer of the genechip) - * - *

- * Definition: - * ID of manufacturer of the genechip - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setGenechipManufacturerId( String theString) { - myGenechipManufacturerId = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for genechipVersion (Version of the genechip). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Version of the genechip - *

- */ - public StringDt getGenechipVersion() { - if (myGenechipVersion == null) { - myGenechipVersion = new StringDt(); - } - return myGenechipVersion; - } - - - /** - * Gets the value(s) for genechipVersion (Version of the genechip). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Version of the genechip - *

- */ - public StringDt getGenechipVersionElement() { - if (myGenechipVersion == null) { - myGenechipVersion = new StringDt(); - } - return myGenechipVersion; - } - - - /** - * Sets the value(s) for genechipVersion (Version of the genechip) - * - *

- * Definition: - * Version of the genechip - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setGenechipVersion(StringDt theValue) { - myGenechipVersion = theValue; - return this; - } - - /** - * Sets the value for genechipVersion (Version of the genechip) - * - *

- * Definition: - * Version of the genechip - *

- */ - public DnaRegionAnalysisTestCoverageDnaRegionOfInterest setGenechipVersion( String theString) { - myGenechipVersion = new StringDt(theString); - return this; - } - - - - } - - - - /** - * Block class for child element: GeneticAnalysis.geneticAnalysisDiscreteResult (Genetic analysis discrete result) - * - *

- * Definition: - * Genetic analysis discrete result - *

- */ - @Block() - public static class GeneticAnalysisDiscreteResult - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="dnaAnalysisDiscreteSequenceVariation", order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="DNA analysis discrete sequence variation", - formalDefinition="DNA analysis discrete sequence variation" - ) - private java.util.List myDnaAnalysisDiscreteSequenceVariation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDnaAnalysisDiscreteSequenceVariation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDnaAnalysisDiscreteSequenceVariation); - } - - /** - * Gets the value(s) for dnaAnalysisDiscreteSequenceVariation (DNA analysis discrete sequence variation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * DNA analysis discrete sequence variation - *

- */ - public java.util.List getDnaAnalysisDiscreteSequenceVariation() { - if (myDnaAnalysisDiscreteSequenceVariation == null) { - myDnaAnalysisDiscreteSequenceVariation = new java.util.ArrayList(); - } - return myDnaAnalysisDiscreteSequenceVariation; - } - - - /** - * Gets the value(s) for dnaAnalysisDiscreteSequenceVariation (DNA analysis discrete sequence variation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * DNA analysis discrete sequence variation - *

- */ - public java.util.List getDnaAnalysisDiscreteSequenceVariationElement() { - if (myDnaAnalysisDiscreteSequenceVariation == null) { - myDnaAnalysisDiscreteSequenceVariation = new java.util.ArrayList(); - } - return myDnaAnalysisDiscreteSequenceVariation; - } - - - /** - * Sets the value(s) for dnaAnalysisDiscreteSequenceVariation (DNA analysis discrete sequence variation) - * - *

- * Definition: - * DNA analysis discrete sequence variation - *

- */ - public GeneticAnalysisDiscreteResult setDnaAnalysisDiscreteSequenceVariation(java.util.List theValue) { - myDnaAnalysisDiscreteSequenceVariation = theValue; - return this; - } - - /** - * Adds and returns a new value for dnaAnalysisDiscreteSequenceVariation (DNA analysis discrete sequence variation) - * - *

- * Definition: - * DNA analysis discrete sequence variation - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation addDnaAnalysisDiscreteSequenceVariation() { - GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation newType = new GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation(); - getDnaAnalysisDiscreteSequenceVariation().add(newType); - return newType; - } - - /** - * Gets the first repetition for dnaAnalysisDiscreteSequenceVariation (DNA analysis discrete sequence variation), - * creating it if it does not already exist. - * - *

- * Definition: - * DNA analysis discrete sequence variation - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation getDnaAnalysisDiscreteSequenceVariationFirstRep() { - if (getDnaAnalysisDiscreteSequenceVariation().isEmpty()) { - return addDnaAnalysisDiscreteSequenceVariation(); - } - return getDnaAnalysisDiscreteSequenceVariation().get(0); - } - - - } - - /** - * Block class for child element: GeneticAnalysis.geneticAnalysisDiscreteResult.dnaAnalysisDiscreteSequenceVariation (DNA analysis discrete sequence variation) - * - *

- * Definition: - * DNA analysis discrete sequence variation - *

- */ - @Block() - public static class GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="geneIdentifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identifier of the gene", - formalDefinition="Identifier of the gene represented in NCBI genomic nucleotide RefSeq IDs with their version number" - ) - private StringDt myGeneIdentifier; - - @Child(name="genomicReferenceSequenceIdentifier", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Genomic reference sequence identifier", - formalDefinition="Identifier of the reference sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number" - ) - private StringDt myGenomicReferenceSequenceIdentifier; - - @Child(name="transcriptReferenceIdentifier", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Identifier of the transcript reference identifier", - formalDefinition="Reference transcript represented in NCBI genomic nucleotide RefSeq IDs with their version number" - ) - private StringDt myTranscriptReferenceIdentifier; - - @Child(name="alleleName", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Name of the allele", - formalDefinition="Name of the allele" - ) - private StringDt myAlleleName; - - @Child(name="dnaSequenceVariationIdentifier", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Identifier of the DNA variation", - formalDefinition="Identifier of the DNA variation" - ) - private StringDt myDnaSequenceVariationIdentifier; - - @Child(name="dnaSequenceVariation", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="DNA variation represented in HGVS nomenclature", - formalDefinition="DNA variation represented in HGVS nomenclature" - ) - private StringDt myDnaSequenceVariation; - - @Child(name="dnaSequenceVariationType", type=CodingDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Type of the variation", - formalDefinition="Type of the variation" - ) - private CodingDt myDnaSequenceVariationType; - - @Child(name="aminoAcidChange", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Amino acid change represented in HGVS nomenclature", - formalDefinition="Amino acid change represented in HGVS nomenclature" - ) - private StringDt myAminoAcidChange; - - @Child(name="aminoAcidChangeType", type=CodingDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Type of the amino acid change", - formalDefinition="Type of the amino acid change" - ) - private CodingDt myAminoAcidChangeType; - - @Child(name="dnaRegionName", type=StringDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Human-readable name of the DNA region", - formalDefinition="Human-readable name of the DNA region" - ) - private StringDt myDnaRegionName; - - @Child(name="allellicState", type=CodingDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Allelic state", - formalDefinition="Allelic state" - ) - private CodingDt myAllellicState; - - @Child(name="genomicSourceClass", type=CodingDt.class, order=11, min=1, max=1) - @Description( - shortDefinition="Class of the source of sample", - formalDefinition="Class of the source of sample" - ) - private CodingDt myGenomicSourceClass; - - @Child(name="dnaSequenceVariationDisplayName", type=StringDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="Conventional display of the DNA region and its interpretation", - formalDefinition="Conventional display of the DNA region and its interpretation" - ) - private StringDt myDnaSequenceVariationDisplayName; - - @Child(name="geneticDiseaseSequenceVariationInterpretation", type=CodingDt.class, order=13, min=0, max=1) - @Description( - shortDefinition="Interpretation of the genotype's effect on genetic disease", - formalDefinition="Interpretation of the genotype's effect on genetic disease" - ) - private CodingDt myGeneticDiseaseSequenceVariationInterpretation; - - @Child(name="drugMetabolismSequenceVariationInterpretatioin", type=CodingDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="Interpretation of the genotype's effect on the drug's metabolic effect", - formalDefinition="Interpretation of the genotype's effect on the drug's metabolic effect" - ) - private CodingDt myDrugMetabolismSequenceVariationInterpretatioin; - - @Child(name="drugEfficacySequenceVariationInterpretation", type=CodingDt.class, order=15, min=0, max=1) - @Description( - shortDefinition="Interpretation of the genotype's effect on the drug's efficacy", - formalDefinition="Interpretation of the genotype's effect on the drug's efficacy" - ) - private CodingDt myDrugEfficacySequenceVariationInterpretation; - - @Child(name="geneticVariantAssessment", type=CodingDt.class, order=16, min=0, max=1) - @Description( - shortDefinition="Genotyping result on a known set of mutation", - formalDefinition="Genotyping result on a known set of mutation" - ) - private CodingDt myGeneticVariantAssessment; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myGeneIdentifier, myGenomicReferenceSequenceIdentifier, myTranscriptReferenceIdentifier, myAlleleName, myDnaSequenceVariationIdentifier, myDnaSequenceVariation, myDnaSequenceVariationType, myAminoAcidChange, myAminoAcidChangeType, myDnaRegionName, myAllellicState, myGenomicSourceClass, myDnaSequenceVariationDisplayName, myGeneticDiseaseSequenceVariationInterpretation, myDrugMetabolismSequenceVariationInterpretatioin, myDrugEfficacySequenceVariationInterpretation, myGeneticVariantAssessment); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myGeneIdentifier, myGenomicReferenceSequenceIdentifier, myTranscriptReferenceIdentifier, myAlleleName, myDnaSequenceVariationIdentifier, myDnaSequenceVariation, myDnaSequenceVariationType, myAminoAcidChange, myAminoAcidChangeType, myDnaRegionName, myAllellicState, myGenomicSourceClass, myDnaSequenceVariationDisplayName, myGeneticDiseaseSequenceVariationInterpretation, myDrugMetabolismSequenceVariationInterpretatioin, myDrugEfficacySequenceVariationInterpretation, myGeneticVariantAssessment); - } - - /** - * Gets the value(s) for geneIdentifier (Identifier of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the gene represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public StringDt getGeneIdentifier() { - if (myGeneIdentifier == null) { - myGeneIdentifier = new StringDt(); - } - return myGeneIdentifier; - } - - - /** - * Gets the value(s) for geneIdentifier (Identifier of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the gene represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public StringDt getGeneIdentifierElement() { - if (myGeneIdentifier == null) { - myGeneIdentifier = new StringDt(); - } - return myGeneIdentifier; - } - - - /** - * Sets the value(s) for geneIdentifier (Identifier of the gene) - * - *

- * Definition: - * Identifier of the gene represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setGeneIdentifier(StringDt theValue) { - myGeneIdentifier = theValue; - return this; - } - - /** - * Sets the value for geneIdentifier (Identifier of the gene) - * - *

- * Definition: - * Identifier of the gene represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setGeneIdentifier( String theString) { - myGeneIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for genomicReferenceSequenceIdentifier (Genomic reference sequence identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the reference sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public StringDt getGenomicReferenceSequenceIdentifier() { - if (myGenomicReferenceSequenceIdentifier == null) { - myGenomicReferenceSequenceIdentifier = new StringDt(); - } - return myGenomicReferenceSequenceIdentifier; - } - - - /** - * Gets the value(s) for genomicReferenceSequenceIdentifier (Genomic reference sequence identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the reference sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public StringDt getGenomicReferenceSequenceIdentifierElement() { - if (myGenomicReferenceSequenceIdentifier == null) { - myGenomicReferenceSequenceIdentifier = new StringDt(); - } - return myGenomicReferenceSequenceIdentifier; - } - - - /** - * Sets the value(s) for genomicReferenceSequenceIdentifier (Genomic reference sequence identifier) - * - *

- * Definition: - * Identifier of the reference sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setGenomicReferenceSequenceIdentifier(StringDt theValue) { - myGenomicReferenceSequenceIdentifier = theValue; - return this; - } - - /** - * Sets the value for genomicReferenceSequenceIdentifier (Genomic reference sequence identifier) - * - *

- * Definition: - * Identifier of the reference sequence represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setGenomicReferenceSequenceIdentifier( String theString) { - myGenomicReferenceSequenceIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for transcriptReferenceIdentifier (Identifier of the transcript reference identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference transcript represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public StringDt getTranscriptReferenceIdentifier() { - if (myTranscriptReferenceIdentifier == null) { - myTranscriptReferenceIdentifier = new StringDt(); - } - return myTranscriptReferenceIdentifier; - } - - - /** - * Gets the value(s) for transcriptReferenceIdentifier (Identifier of the transcript reference identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference transcript represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public StringDt getTranscriptReferenceIdentifierElement() { - if (myTranscriptReferenceIdentifier == null) { - myTranscriptReferenceIdentifier = new StringDt(); - } - return myTranscriptReferenceIdentifier; - } - - - /** - * Sets the value(s) for transcriptReferenceIdentifier (Identifier of the transcript reference identifier) - * - *

- * Definition: - * Reference transcript represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setTranscriptReferenceIdentifier(StringDt theValue) { - myTranscriptReferenceIdentifier = theValue; - return this; - } - - /** - * Sets the value for transcriptReferenceIdentifier (Identifier of the transcript reference identifier) - * - *

- * Definition: - * Reference transcript represented in NCBI genomic nucleotide RefSeq IDs with their version number - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setTranscriptReferenceIdentifier( String theString) { - myTranscriptReferenceIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for alleleName (Name of the allele). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the allele - *

- */ - public StringDt getAlleleName() { - if (myAlleleName == null) { - myAlleleName = new StringDt(); - } - return myAlleleName; - } - - - /** - * Gets the value(s) for alleleName (Name of the allele). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the allele - *

- */ - public StringDt getAlleleNameElement() { - if (myAlleleName == null) { - myAlleleName = new StringDt(); - } - return myAlleleName; - } - - - /** - * Sets the value(s) for alleleName (Name of the allele) - * - *

- * Definition: - * Name of the allele - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setAlleleName(StringDt theValue) { - myAlleleName = theValue; - return this; - } - - /** - * Sets the value for alleleName (Name of the allele) - * - *

- * Definition: - * Name of the allele - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setAlleleName( String theString) { - myAlleleName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for dnaSequenceVariationIdentifier (Identifier of the DNA variation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the DNA variation - *

- */ - public StringDt getDnaSequenceVariationIdentifier() { - if (myDnaSequenceVariationIdentifier == null) { - myDnaSequenceVariationIdentifier = new StringDt(); - } - return myDnaSequenceVariationIdentifier; - } - - - /** - * Gets the value(s) for dnaSequenceVariationIdentifier (Identifier of the DNA variation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the DNA variation - *

- */ - public StringDt getDnaSequenceVariationIdentifierElement() { - if (myDnaSequenceVariationIdentifier == null) { - myDnaSequenceVariationIdentifier = new StringDt(); - } - return myDnaSequenceVariationIdentifier; - } - - - /** - * Sets the value(s) for dnaSequenceVariationIdentifier (Identifier of the DNA variation) - * - *

- * Definition: - * Identifier of the DNA variation - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaSequenceVariationIdentifier(StringDt theValue) { - myDnaSequenceVariationIdentifier = theValue; - return this; - } - - /** - * Sets the value for dnaSequenceVariationIdentifier (Identifier of the DNA variation) - * - *

- * Definition: - * Identifier of the DNA variation - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaSequenceVariationIdentifier( String theString) { - myDnaSequenceVariationIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for dnaSequenceVariation (DNA variation represented in HGVS nomenclature). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * DNA variation represented in HGVS nomenclature - *

- */ - public StringDt getDnaSequenceVariation() { - if (myDnaSequenceVariation == null) { - myDnaSequenceVariation = new StringDt(); - } - return myDnaSequenceVariation; - } - - - /** - * Gets the value(s) for dnaSequenceVariation (DNA variation represented in HGVS nomenclature). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * DNA variation represented in HGVS nomenclature - *

- */ - public StringDt getDnaSequenceVariationElement() { - if (myDnaSequenceVariation == null) { - myDnaSequenceVariation = new StringDt(); - } - return myDnaSequenceVariation; - } - - - /** - * Sets the value(s) for dnaSequenceVariation (DNA variation represented in HGVS nomenclature) - * - *

- * Definition: - * DNA variation represented in HGVS nomenclature - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaSequenceVariation(StringDt theValue) { - myDnaSequenceVariation = theValue; - return this; - } - - /** - * Sets the value for dnaSequenceVariation (DNA variation represented in HGVS nomenclature) - * - *

- * Definition: - * DNA variation represented in HGVS nomenclature - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaSequenceVariation( String theString) { - myDnaSequenceVariation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for dnaSequenceVariationType (Type of the variation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the variation - *

- */ - public CodingDt getDnaSequenceVariationType() { - if (myDnaSequenceVariationType == null) { - myDnaSequenceVariationType = new CodingDt(); - } - return myDnaSequenceVariationType; - } - - - /** - * Gets the value(s) for dnaSequenceVariationType (Type of the variation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the variation - *

- */ - public CodingDt getDnaSequenceVariationTypeElement() { - if (myDnaSequenceVariationType == null) { - myDnaSequenceVariationType = new CodingDt(); - } - return myDnaSequenceVariationType; - } - - - /** - * Sets the value(s) for dnaSequenceVariationType (Type of the variation) - * - *

- * Definition: - * Type of the variation - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaSequenceVariationType(CodingDt theValue) { - myDnaSequenceVariationType = theValue; - return this; - } - - - /** - * Gets the value(s) for aminoAcidChange (Amino acid change represented in HGVS nomenclature). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Amino acid change represented in HGVS nomenclature - *

- */ - public StringDt getAminoAcidChange() { - if (myAminoAcidChange == null) { - myAminoAcidChange = new StringDt(); - } - return myAminoAcidChange; - } - - - /** - * Gets the value(s) for aminoAcidChange (Amino acid change represented in HGVS nomenclature). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Amino acid change represented in HGVS nomenclature - *

- */ - public StringDt getAminoAcidChangeElement() { - if (myAminoAcidChange == null) { - myAminoAcidChange = new StringDt(); - } - return myAminoAcidChange; - } - - - /** - * Sets the value(s) for aminoAcidChange (Amino acid change represented in HGVS nomenclature) - * - *

- * Definition: - * Amino acid change represented in HGVS nomenclature - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setAminoAcidChange(StringDt theValue) { - myAminoAcidChange = theValue; - return this; - } - - /** - * Sets the value for aminoAcidChange (Amino acid change represented in HGVS nomenclature) - * - *

- * Definition: - * Amino acid change represented in HGVS nomenclature - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setAminoAcidChange( String theString) { - myAminoAcidChange = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for aminoAcidChangeType (Type of the amino acid change). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the amino acid change - *

- */ - public CodingDt getAminoAcidChangeType() { - if (myAminoAcidChangeType == null) { - myAminoAcidChangeType = new CodingDt(); - } - return myAminoAcidChangeType; - } - - - /** - * Gets the value(s) for aminoAcidChangeType (Type of the amino acid change). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the amino acid change - *

- */ - public CodingDt getAminoAcidChangeTypeElement() { - if (myAminoAcidChangeType == null) { - myAminoAcidChangeType = new CodingDt(); - } - return myAminoAcidChangeType; - } - - - /** - * Sets the value(s) for aminoAcidChangeType (Type of the amino acid change) - * - *

- * Definition: - * Type of the amino acid change - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setAminoAcidChangeType(CodingDt theValue) { - myAminoAcidChangeType = theValue; - return this; - } - - - /** - * Gets the value(s) for dnaRegionName (Human-readable name of the DNA region). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable name of the DNA region - *

- */ - public StringDt getDnaRegionName() { - if (myDnaRegionName == null) { - myDnaRegionName = new StringDt(); - } - return myDnaRegionName; - } - - - /** - * Gets the value(s) for dnaRegionName (Human-readable name of the DNA region). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable name of the DNA region - *

- */ - public StringDt getDnaRegionNameElement() { - if (myDnaRegionName == null) { - myDnaRegionName = new StringDt(); - } - return myDnaRegionName; - } - - - /** - * Sets the value(s) for dnaRegionName (Human-readable name of the DNA region) - * - *

- * Definition: - * Human-readable name of the DNA region - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaRegionName(StringDt theValue) { - myDnaRegionName = theValue; - return this; - } - - /** - * Sets the value for dnaRegionName (Human-readable name of the DNA region) - * - *

- * Definition: - * Human-readable name of the DNA region - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaRegionName( String theString) { - myDnaRegionName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for allellicState (Allelic state). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allelic state - *

- */ - public CodingDt getAllellicState() { - if (myAllellicState == null) { - myAllellicState = new CodingDt(); - } - return myAllellicState; - } - - - /** - * Gets the value(s) for allellicState (Allelic state). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allelic state - *

- */ - public CodingDt getAllellicStateElement() { - if (myAllellicState == null) { - myAllellicState = new CodingDt(); - } - return myAllellicState; - } - - - /** - * Sets the value(s) for allellicState (Allelic state) - * - *

- * Definition: - * Allelic state - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setAllellicState(CodingDt theValue) { - myAllellicState = theValue; - return this; - } - - - /** - * Gets the value(s) for genomicSourceClass (Class of the source of sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Class of the source of sample - *

- */ - public CodingDt getGenomicSourceClass() { - if (myGenomicSourceClass == null) { - myGenomicSourceClass = new CodingDt(); - } - return myGenomicSourceClass; - } - - - /** - * Gets the value(s) for genomicSourceClass (Class of the source of sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Class of the source of sample - *

- */ - public CodingDt getGenomicSourceClassElement() { - if (myGenomicSourceClass == null) { - myGenomicSourceClass = new CodingDt(); - } - return myGenomicSourceClass; - } - - - /** - * Sets the value(s) for genomicSourceClass (Class of the source of sample) - * - *

- * Definition: - * Class of the source of sample - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setGenomicSourceClass(CodingDt theValue) { - myGenomicSourceClass = theValue; - return this; - } - - - /** - * Gets the value(s) for dnaSequenceVariationDisplayName (Conventional display of the DNA region and its interpretation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Conventional display of the DNA region and its interpretation - *

- */ - public StringDt getDnaSequenceVariationDisplayName() { - if (myDnaSequenceVariationDisplayName == null) { - myDnaSequenceVariationDisplayName = new StringDt(); - } - return myDnaSequenceVariationDisplayName; - } - - - /** - * Gets the value(s) for dnaSequenceVariationDisplayName (Conventional display of the DNA region and its interpretation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Conventional display of the DNA region and its interpretation - *

- */ - public StringDt getDnaSequenceVariationDisplayNameElement() { - if (myDnaSequenceVariationDisplayName == null) { - myDnaSequenceVariationDisplayName = new StringDt(); - } - return myDnaSequenceVariationDisplayName; - } - - - /** - * Sets the value(s) for dnaSequenceVariationDisplayName (Conventional display of the DNA region and its interpretation) - * - *

- * Definition: - * Conventional display of the DNA region and its interpretation - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaSequenceVariationDisplayName(StringDt theValue) { - myDnaSequenceVariationDisplayName = theValue; - return this; - } - - /** - * Sets the value for dnaSequenceVariationDisplayName (Conventional display of the DNA region and its interpretation) - * - *

- * Definition: - * Conventional display of the DNA region and its interpretation - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDnaSequenceVariationDisplayName( String theString) { - myDnaSequenceVariationDisplayName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for geneticDiseaseSequenceVariationInterpretation (Interpretation of the genotype's effect on genetic disease). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Interpretation of the genotype's effect on genetic disease - *

- */ - public CodingDt getGeneticDiseaseSequenceVariationInterpretation() { - if (myGeneticDiseaseSequenceVariationInterpretation == null) { - myGeneticDiseaseSequenceVariationInterpretation = new CodingDt(); - } - return myGeneticDiseaseSequenceVariationInterpretation; - } - - - /** - * Gets the value(s) for geneticDiseaseSequenceVariationInterpretation (Interpretation of the genotype's effect on genetic disease). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Interpretation of the genotype's effect on genetic disease - *

- */ - public CodingDt getGeneticDiseaseSequenceVariationInterpretationElement() { - if (myGeneticDiseaseSequenceVariationInterpretation == null) { - myGeneticDiseaseSequenceVariationInterpretation = new CodingDt(); - } - return myGeneticDiseaseSequenceVariationInterpretation; - } - - - /** - * Sets the value(s) for geneticDiseaseSequenceVariationInterpretation (Interpretation of the genotype's effect on genetic disease) - * - *

- * Definition: - * Interpretation of the genotype's effect on genetic disease - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setGeneticDiseaseSequenceVariationInterpretation(CodingDt theValue) { - myGeneticDiseaseSequenceVariationInterpretation = theValue; - return this; - } - - - /** - * Gets the value(s) for drugMetabolismSequenceVariationInterpretatioin (Interpretation of the genotype's effect on the drug's metabolic effect). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Interpretation of the genotype's effect on the drug's metabolic effect - *

- */ - public CodingDt getDrugMetabolismSequenceVariationInterpretatioin() { - if (myDrugMetabolismSequenceVariationInterpretatioin == null) { - myDrugMetabolismSequenceVariationInterpretatioin = new CodingDt(); - } - return myDrugMetabolismSequenceVariationInterpretatioin; - } - - - /** - * Gets the value(s) for drugMetabolismSequenceVariationInterpretatioin (Interpretation of the genotype's effect on the drug's metabolic effect). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Interpretation of the genotype's effect on the drug's metabolic effect - *

- */ - public CodingDt getDrugMetabolismSequenceVariationInterpretatioinElement() { - if (myDrugMetabolismSequenceVariationInterpretatioin == null) { - myDrugMetabolismSequenceVariationInterpretatioin = new CodingDt(); - } - return myDrugMetabolismSequenceVariationInterpretatioin; - } - - - /** - * Sets the value(s) for drugMetabolismSequenceVariationInterpretatioin (Interpretation of the genotype's effect on the drug's metabolic effect) - * - *

- * Definition: - * Interpretation of the genotype's effect on the drug's metabolic effect - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDrugMetabolismSequenceVariationInterpretatioin(CodingDt theValue) { - myDrugMetabolismSequenceVariationInterpretatioin = theValue; - return this; - } - - - /** - * Gets the value(s) for drugEfficacySequenceVariationInterpretation (Interpretation of the genotype's effect on the drug's efficacy). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Interpretation of the genotype's effect on the drug's efficacy - *

- */ - public CodingDt getDrugEfficacySequenceVariationInterpretation() { - if (myDrugEfficacySequenceVariationInterpretation == null) { - myDrugEfficacySequenceVariationInterpretation = new CodingDt(); - } - return myDrugEfficacySequenceVariationInterpretation; - } - - - /** - * Gets the value(s) for drugEfficacySequenceVariationInterpretation (Interpretation of the genotype's effect on the drug's efficacy). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Interpretation of the genotype's effect on the drug's efficacy - *

- */ - public CodingDt getDrugEfficacySequenceVariationInterpretationElement() { - if (myDrugEfficacySequenceVariationInterpretation == null) { - myDrugEfficacySequenceVariationInterpretation = new CodingDt(); - } - return myDrugEfficacySequenceVariationInterpretation; - } - - - /** - * Sets the value(s) for drugEfficacySequenceVariationInterpretation (Interpretation of the genotype's effect on the drug's efficacy) - * - *

- * Definition: - * Interpretation of the genotype's effect on the drug's efficacy - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setDrugEfficacySequenceVariationInterpretation(CodingDt theValue) { - myDrugEfficacySequenceVariationInterpretation = theValue; - return this; - } - - - /** - * Gets the value(s) for geneticVariantAssessment (Genotyping result on a known set of mutation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genotyping result on a known set of mutation - *

- */ - public CodingDt getGeneticVariantAssessment() { - if (myGeneticVariantAssessment == null) { - myGeneticVariantAssessment = new CodingDt(); - } - return myGeneticVariantAssessment; - } - - - /** - * Gets the value(s) for geneticVariantAssessment (Genotyping result on a known set of mutation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Genotyping result on a known set of mutation - *

- */ - public CodingDt getGeneticVariantAssessmentElement() { - if (myGeneticVariantAssessment == null) { - myGeneticVariantAssessment = new CodingDt(); - } - return myGeneticVariantAssessment; - } - - - /** - * Sets the value(s) for geneticVariantAssessment (Genotyping result on a known set of mutation) - * - *

- * Definition: - * Genotyping result on a known set of mutation - *

- */ - public GeneticAnalysisDiscreteResultDnaAnalysisDiscreteSequenceVariation setGeneticVariantAssessment(CodingDt theValue) { - myGeneticVariantAssessment = theValue; - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "GeneticAnalysis"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Group.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Group.java deleted file mode 100644 index cd365ad9743..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Group.java +++ /dev/null @@ -1,1237 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Group Resource - * (Group of multiple entities) - * - *

- * Definition: - * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Group - *

- * - */ -@ResourceDef(name="Group", profile="http://hl7.org/fhir/profiles/Group", id="group") -public class Group - extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *

- * Description: The type of resources the group contains
- * Type: token
- * Path: Group.type
- *

- */ - @SearchParamDefinition(name="type", path="Group.type", description="The type of resources the group contains", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: The type of resources the group contains
- * Type: token
- * Path: Group.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for code - *

- * Description: The kind of resources contained
- * Type: token
- * Path: Group.code
- *

- */ - @SearchParamDefinition(name="code", path="Group.code", description="The kind of resources contained", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description: The kind of resources contained
- * Type: token
- * Path: Group.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for actual - *

- * Description:
- * Type: token
- * Path: Group.actual
- *

- */ - @SearchParamDefinition(name="actual", path="Group.actual", description="", type="token" ) - public static final String SP_ACTUAL = "actual"; - - /** - * Fluent Client search parameter constant for actual - *

- * Description:
- * Type: token
- * Path: Group.actual
- *

- */ - public static final TokenClientParam ACTUAL = new TokenClientParam(SP_ACTUAL); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Group.identifier
- *

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

- * Description:
- * Type: token
- * Path: Group.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for member - *

- * Description:
- * Type: reference
- * Path: Group.member
- *

- */ - @SearchParamDefinition(name="member", path="Group.member", description="", type="reference" ) - public static final String SP_MEMBER = "member"; - - /** - * Fluent Client search parameter constant for member - *

- * Description:
- * Type: reference
- * Path: Group.member
- *

- */ - public static final ReferenceClientParam MEMBER = new ReferenceClientParam(SP_MEMBER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Group.member". - */ - public static final Include INCLUDE_MEMBER = new Include("Group.member"); - - /** - * Search parameter constant for characteristic - *

- * Description:
- * Type: token
- * Path: Group.characteristic.code
- *

- */ - @SearchParamDefinition(name="characteristic", path="Group.characteristic.code", description="", type="token" ) - public static final String SP_CHARACTERISTIC = "characteristic"; - - /** - * Fluent Client search parameter constant for characteristic - *

- * Description:
- * Type: token
- * Path: Group.characteristic.code
- *

- */ - public static final TokenClientParam CHARACTERISTIC = new TokenClientParam(SP_CHARACTERISTIC); - - /** - * Search parameter constant for value - *

- * Description:
- * Type: token
- * Path: Group.characteristic.value[x]
- *

- */ - @SearchParamDefinition(name="value", path="Group.characteristic.value[x]", description="", type="token" ) - public static final String SP_VALUE = "value"; - - /** - * Fluent Client search parameter constant for value - *

- * Description:
- * Type: token
- * Path: Group.characteristic.value[x]
- *

- */ - public static final TokenClientParam VALUE = new TokenClientParam(SP_VALUE); - - /** - * Search parameter constant for exclude - *

- * Description:
- * Type: token
- * Path: Group.characteristic.exclude
- *

- */ - @SearchParamDefinition(name="exclude", path="Group.characteristic.exclude", description="", type="token" ) - public static final String SP_EXCLUDE = "exclude"; - - /** - * Fluent Client search parameter constant for exclude - *

- * Description:
- * Type: token
- * Path: Group.characteristic.exclude
- *

- */ - public static final TokenClientParam EXCLUDE = new TokenClientParam(SP_EXCLUDE); - - /** - * Search parameter constant for characteristic-value - *

- * Description: A composite of both characteristic and value
- * Type: composite
- * Path: characteristic & value
- *

- */ - @SearchParamDefinition(name="characteristic-value", path="characteristic & value", description="A composite of both characteristic and value", type="composite" , compositeOf={ "characteristic", "value" } ) - public static final String SP_CHARACTERISTIC_VALUE = "characteristic-value"; - - /** - * Fluent Client search parameter constant for characteristic-value - *

- * Description: A composite of both characteristic and value
- * Type: composite
- * Path: characteristic & value
- *

- */ - public static final CompositeClientParam CHARACTERISTIC_VALUE = new CompositeClientParam(SP_CHARACTERISTIC_VALUE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Unique id", - formalDefinition="A unique business identifier for this group" - ) - private IdentifierDt myIdentifier; - - @Child(name="type", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="person | animal | practitioner | device | medication | substance", - formalDefinition="Identifies the broad classification of the kind of resources the group includes" - ) - private BoundCodeDt myType; - - @Child(name="actual", type=BooleanDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Descriptive or actual", - formalDefinition="If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals" - ) - private BooleanDt myActual; - - @Child(name="code", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Kind of Group members", - formalDefinition="Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc." - ) - private CodeableConceptDt myCode; - - @Child(name="name", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Label for Group", - formalDefinition="A label assigned to the group for human identification and communication" - ) - private StringDt myName; - - @Child(name="quantity", type=IntegerDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Number of members", - formalDefinition="A count of the number of resource instances that are part of the group" - ) - private IntegerDt myQuantity; - - @Child(name="characteristic", order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Trait of group members", - formalDefinition="Identifies the traits shared by members of the group" - ) - private java.util.List myCharacteristic; - - @Child(name="member", order=7, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Medication.class, ca.uhn.fhir.model.dstu.resource.Substance.class }) - @Description( - shortDefinition="Who is in group", - formalDefinition="Identifies the resource instances that are members of the group." - ) - private java.util.List myMember; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myActual, myCode, myName, myQuantity, myCharacteristic, myMember); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myActual, myCode, myName, myQuantity, myCharacteristic, myMember); - } - - /** - * Gets the value(s) for identifier (Unique id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique business identifier for this group - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Unique id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique business identifier for this group - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Unique id) - * - *

- * Definition: - * A unique business identifier for this group - *

- */ - public Group setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Unique id) - * - *

- * Definition: - * A unique business identifier for this group - *

- */ - public Group setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Unique id) - * - *

- * Definition: - * A unique business identifier for this group - *

- */ - public Group setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for type (person | animal | practitioner | device | medication | substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the broad classification of the kind of resources the group includes - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(GroupTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (person | animal | practitioner | device | medication | substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the broad classification of the kind of resources the group includes - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(GroupTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (person | animal | practitioner | device | medication | substance) - * - *

- * Definition: - * Identifies the broad classification of the kind of resources the group includes - *

- */ - public Group setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (person | animal | practitioner | device | medication | substance) - * - *

- * Definition: - * Identifies the broad classification of the kind of resources the group includes - *

- */ - public Group setType(GroupTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for actual (Descriptive or actual). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals - *

- */ - public BooleanDt getActual() { - if (myActual == null) { - myActual = new BooleanDt(); - } - return myActual; - } - - - /** - * Gets the value(s) for actual (Descriptive or actual). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals - *

- */ - public BooleanDt getActualElement() { - if (myActual == null) { - myActual = new BooleanDt(); - } - return myActual; - } - - - /** - * Sets the value(s) for actual (Descriptive or actual) - * - *

- * Definition: - * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals - *

- */ - public Group setActual(BooleanDt theValue) { - myActual = theValue; - return this; - } - - /** - * Sets the value for actual (Descriptive or actual) - * - *

- * Definition: - * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals - *

- */ - public Group setActual( boolean theBoolean) { - myActual = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for code (Kind of Group members). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc. - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Kind of Group members). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc. - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Kind of Group members) - * - *

- * Definition: - * Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc. - *

- */ - public Group setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for name (Label for Group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A label assigned to the group for human identification and communication - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Label for Group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A label assigned to the group for human identification and communication - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Label for Group) - * - *

- * Definition: - * A label assigned to the group for human identification and communication - *

- */ - public Group setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Label for Group) - * - *

- * Definition: - * A label assigned to the group for human identification and communication - *

- */ - public Group setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for quantity (Number of members). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A count of the number of resource instances that are part of the group - *

- */ - public IntegerDt getQuantity() { - if (myQuantity == null) { - myQuantity = new IntegerDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Number of members). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A count of the number of resource instances that are part of the group - *

- */ - public IntegerDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new IntegerDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Number of members) - * - *

- * Definition: - * A count of the number of resource instances that are part of the group - *

- */ - public Group setQuantity(IntegerDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (Number of members) - * - *

- * Definition: - * A count of the number of resource instances that are part of the group - *

- */ - public Group setQuantity( int theInteger) { - myQuantity = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for characteristic (Trait of group members). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the traits shared by members of the group - *

- */ - public java.util.List getCharacteristic() { - if (myCharacteristic == null) { - myCharacteristic = new java.util.ArrayList(); - } - return myCharacteristic; - } - - - /** - * Gets the value(s) for characteristic (Trait of group members). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the traits shared by members of the group - *

- */ - public java.util.List getCharacteristicElement() { - if (myCharacteristic == null) { - myCharacteristic = new java.util.ArrayList(); - } - return myCharacteristic; - } - - - /** - * Sets the value(s) for characteristic (Trait of group members) - * - *

- * Definition: - * Identifies the traits shared by members of the group - *

- */ - public Group setCharacteristic(java.util.List theValue) { - myCharacteristic = theValue; - return this; - } - - /** - * Adds and returns a new value for characteristic (Trait of group members) - * - *

- * Definition: - * Identifies the traits shared by members of the group - *

- */ - public Characteristic addCharacteristic() { - Characteristic newType = new Characteristic(); - getCharacteristic().add(newType); - return newType; - } - - /** - * Gets the first repetition for characteristic (Trait of group members), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies the traits shared by members of the group - *

- */ - public Characteristic getCharacteristicFirstRep() { - if (getCharacteristic().isEmpty()) { - return addCharacteristic(); - } - return getCharacteristic().get(0); - } - - /** - * Gets the value(s) for member (Who is in group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the resource instances that are members of the group. - *

- */ - public java.util.List getMember() { - if (myMember == null) { - myMember = new java.util.ArrayList(); - } - return myMember; - } - - - /** - * Gets the value(s) for member (Who is in group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the resource instances that are members of the group. - *

- */ - public java.util.List getMemberElement() { - if (myMember == null) { - myMember = new java.util.ArrayList(); - } - return myMember; - } - - - /** - * Sets the value(s) for member (Who is in group) - * - *

- * Definition: - * Identifies the resource instances that are members of the group. - *

- */ - public Group setMember(java.util.List theValue) { - myMember = theValue; - return this; - } - - /** - * Adds and returns a new value for member (Who is in group) - * - *

- * Definition: - * Identifies the resource instances that are members of the group. - *

- */ - public ResourceReferenceDt addMember() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getMember().add(newType); - return newType; - } - - /** - * Block class for child element: Group.characteristic (Trait of group members) - * - *

- * Definition: - * Identifies the traits shared by members of the group - *

- */ - @Block() - public static class Characteristic - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Kind of characteristic", - formalDefinition="A code that identifies the kind of trait being asserted" - ) - private CodeableConceptDt myCode; - - @Child(name="value", order=1, min=1, max=1, type={ - CodeableConceptDt.class, BooleanDt.class, QuantityDt.class, RangeDt.class }) - @Description( - shortDefinition="Value held by characteristic", - formalDefinition="The value of the trait that holds (or does not hold - see 'exclude') for members of the group" - ) - private IDatatype myValue; - - @Child(name="exclude", type=BooleanDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Group includes or excludes", - formalDefinition="If true, indicates the characteristic is one that is NOT held by members of the group" - ) - private BooleanDt myExclude; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myValue, myExclude); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myValue, myExclude); - } - - /** - * Gets the value(s) for code (Kind of characteristic). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies the kind of trait being asserted - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Kind of characteristic). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies the kind of trait being asserted - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Kind of characteristic) - * - *

- * Definition: - * A code that identifies the kind of trait being asserted - *

- */ - public Characteristic setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for value[x] (Value held by characteristic). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the trait that holds (or does not hold - see 'exclude') for members of the group - *

- */ - public IDatatype getValue() { - return myValue; - } - - - /** - * Gets the value(s) for value[x] (Value held by characteristic). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the trait that holds (or does not hold - see 'exclude') for members of the group - *

- */ - public IDatatype getValueElement() { - return myValue; - } - - - /** - * Sets the value(s) for value[x] (Value held by characteristic) - * - *

- * Definition: - * The value of the trait that holds (or does not hold - see 'exclude') for members of the group - *

- */ - public Characteristic setValue(IDatatype theValue) { - myValue = theValue; - return this; - } - - - /** - * Gets the value(s) for exclude (Group includes or excludes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates the characteristic is one that is NOT held by members of the group - *

- */ - public BooleanDt getExclude() { - if (myExclude == null) { - myExclude = new BooleanDt(); - } - return myExclude; - } - - - /** - * Gets the value(s) for exclude (Group includes or excludes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, indicates the characteristic is one that is NOT held by members of the group - *

- */ - public BooleanDt getExcludeElement() { - if (myExclude == null) { - myExclude = new BooleanDt(); - } - return myExclude; - } - - - /** - * Sets the value(s) for exclude (Group includes or excludes) - * - *

- * Definition: - * If true, indicates the characteristic is one that is NOT held by members of the group - *

- */ - public Characteristic setExclude(BooleanDt theValue) { - myExclude = theValue; - return this; - } - - /** - * Sets the value for exclude (Group includes or excludes) - * - *

- * Definition: - * If true, indicates the characteristic is one that is NOT held by members of the group - *

- */ - public Characteristic setExclude( boolean theBoolean) { - myExclude = new BooleanDt(theBoolean); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Group"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ImagingStudy.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ImagingStudy.java deleted file mode 100644 index b3c65a943e7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ImagingStudy.java +++ /dev/null @@ -1,2984 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR ImagingStudy Resource - * (A set of images produced in single study (one or more series of references images)) - * - *

- * Definition: - * Manifest of a set of images produced in study. The set of images may include every image in the study, or it may be an incomplete sample, such as a list of key images - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/ImagingStudy - *

- * - */ -@ResourceDef(name="ImagingStudy", profile="http://hl7.org/fhir/profiles/ImagingStudy", id="imagingstudy") -public class ImagingStudy - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description: Who the study is about
- * Type: reference
- * Path: ImagingStudy.subject
- *

- */ - @SearchParamDefinition(name="subject", path="ImagingStudy.subject", description="Who the study is about", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: Who the study is about
- * Type: reference
- * Path: ImagingStudy.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ImagingStudy.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("ImagingStudy.subject"); - - /** - * Search parameter constant for date - *

- * Description: The date the study was done was taken
- * Type: date
- * Path: ImagingStudy.dateTime
- *

- */ - @SearchParamDefinition(name="date", path="ImagingStudy.dateTime", description="The date the study was done was taken", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: The date the study was done was taken
- * Type: date
- * Path: ImagingStudy.dateTime
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for accession - *

- * Description: The accession id for the image
- * Type: token
- * Path: ImagingStudy.accessionNo
- *

- */ - @SearchParamDefinition(name="accession", path="ImagingStudy.accessionNo", description="The accession id for the image", type="token" ) - public static final String SP_ACCESSION = "accession"; - - /** - * Fluent Client search parameter constant for accession - *

- * Description: The accession id for the image
- * Type: token
- * Path: ImagingStudy.accessionNo
- *

- */ - public static final TokenClientParam ACCESSION = new TokenClientParam(SP_ACCESSION); - - /** - * Search parameter constant for study - *

- * Description: The study id for the image
- * Type: token
- * Path: ImagingStudy.uid
- *

- */ - @SearchParamDefinition(name="study", path="ImagingStudy.uid", description="The study id for the image", type="token" ) - public static final String SP_STUDY = "study"; - - /** - * Fluent Client search parameter constant for study - *

- * Description: The study id for the image
- * Type: token
- * Path: ImagingStudy.uid
- *

- */ - public static final TokenClientParam STUDY = new TokenClientParam(SP_STUDY); - - /** - * Search parameter constant for series - *

- * Description: The series id for the image
- * Type: token
- * Path: ImagingStudy.series.uid
- *

- */ - @SearchParamDefinition(name="series", path="ImagingStudy.series.uid", description="The series id for the image", type="token" ) - public static final String SP_SERIES = "series"; - - /** - * Fluent Client search parameter constant for series - *

- * Description: The series id for the image
- * Type: token
- * Path: ImagingStudy.series.uid
- *

- */ - public static final TokenClientParam SERIES = new TokenClientParam(SP_SERIES); - - /** - * Search parameter constant for modality - *

- * Description: The modality of the image
- * Type: token
- * Path: ImagingStudy.series.modality
- *

- */ - @SearchParamDefinition(name="modality", path="ImagingStudy.series.modality", description="The modality of the image", type="token" ) - public static final String SP_MODALITY = "modality"; - - /** - * Fluent Client search parameter constant for modality - *

- * Description: The modality of the image
- * Type: token
- * Path: ImagingStudy.series.modality
- *

- */ - public static final TokenClientParam MODALITY = new TokenClientParam(SP_MODALITY); - - /** - * Search parameter constant for size - *

- * Description: The size of the image in MB - may include > or < in the value
- * Type: number
- * Path:
- *

- */ - @SearchParamDefinition(name="size", path="", description="The size of the image in MB - may include > or < in the value", type="number" ) - public static final String SP_SIZE = "size"; - - /** - * Fluent Client search parameter constant for size - *

- * Description: The size of the image in MB - may include > or < in the value
- * Type: number
- * Path:
- *

- */ - public static final NumberClientParam SIZE = new NumberClientParam(SP_SIZE); - - /** - * Search parameter constant for bodysite - *

- * Description:
- * Type: token
- * Path: ImagingStudy.series.bodySite
- *

- */ - @SearchParamDefinition(name="bodysite", path="ImagingStudy.series.bodySite", description="", type="token" ) - public static final String SP_BODYSITE = "bodysite"; - - /** - * Fluent Client search parameter constant for bodysite - *

- * Description:
- * Type: token
- * Path: ImagingStudy.series.bodySite
- *

- */ - public static final TokenClientParam BODYSITE = new TokenClientParam(SP_BODYSITE); - - /** - * Search parameter constant for uid - *

- * Description:
- * Type: token
- * Path: ImagingStudy.series.instance.uid
- *

- */ - @SearchParamDefinition(name="uid", path="ImagingStudy.series.instance.uid", description="", type="token" ) - public static final String SP_UID = "uid"; - - /** - * Fluent Client search parameter constant for uid - *

- * Description:
- * Type: token
- * Path: ImagingStudy.series.instance.uid
- *

- */ - public static final TokenClientParam UID = new TokenClientParam(SP_UID); - - /** - * Search parameter constant for dicom-class - *

- * Description:
- * Type: token
- * Path: ImagingStudy.series.instance.sopclass
- *

- */ - @SearchParamDefinition(name="dicom-class", path="ImagingStudy.series.instance.sopclass", description="", type="token" ) - public static final String SP_DICOM_CLASS = "dicom-class"; - - /** - * Fluent Client search parameter constant for dicom-class - *

- * Description:
- * Type: token
- * Path: ImagingStudy.series.instance.sopclass
- *

- */ - public static final TokenClientParam DICOM_CLASS = new TokenClientParam(SP_DICOM_CLASS); - - - @Child(name="dateTime", type=DateTimeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="When the study was performed", - formalDefinition="Date and Time the study took place" - ) - private DateTimeDt myDateTime; - - @Child(name="subject", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who the images are of", - formalDefinition="Who the images are of" - ) - private ResourceReferenceDt mySubject; - - @Child(name="uid", type=OidDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Formal identifier for the study (0020,000D)", - formalDefinition="Formal identifier for the study" - ) - private OidDt myUid; - - @Child(name="accessionNo", type=IdentifierDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Accession Number (0008,0050)", - formalDefinition="Accession Number" - ) - private IdentifierDt myAccessionNo; - - @Child(name="identifier", type=IdentifierDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Other identifiers for the study (0020,0010)", - formalDefinition="Other identifiers for the study" - ) - private java.util.List myIdentifier; - - @Child(name="order", order=5, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.DiagnosticOrder.class }) - @Description( - shortDefinition="Order(s) that caused this study to be performed", - formalDefinition="A list of the diagnostic orders that resulted in this imaging study being performed" - ) - private java.util.List myOrder; - - @Child(name="modality", type=CodeDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="All series.modality if actual acquisition modalities", - formalDefinition="A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19)" - ) - private java.util.List> myModality; - - @Child(name="referrer", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Referring physician (0008,0090)", - formalDefinition="The requesting/referring physician" - ) - private ResourceReferenceDt myReferrer; - - @Child(name="availability", type=CodeDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)", - formalDefinition="Availability of study (online, offline or nearline)" - ) - private BoundCodeDt myAvailability; - - @Child(name="url", type=UriDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Retrieve URI (0008,1190)", - formalDefinition="WADO-RS URI where Study is available" - ) - private UriDt myUrl; - - @Child(name="numberOfSeries", type=IntegerDt.class, order=10, min=1, max=1) - @Description( - shortDefinition="Number of Study Related Series (0020,1206)", - formalDefinition="Number of Series in Study" - ) - private IntegerDt myNumberOfSeries; - - @Child(name="numberOfInstances", type=IntegerDt.class, order=11, min=1, max=1) - @Description( - shortDefinition="Number of Study Related Instances (0020,1208)", - formalDefinition="Number of SOP Instances in Study" - ) - private IntegerDt myNumberOfInstances; - - @Child(name="clinicalInformation", type=StringDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="Diagnoses etc with request (0040,1002)", - formalDefinition="Diagnoses etc provided with request" - ) - private StringDt myClinicalInformation; - - @Child(name="procedure", type=CodingDt.class, order=13, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Type of procedure performed (0008,1032)", - formalDefinition="Type of procedure performed" - ) - private java.util.List myProcedure; - - @Child(name="interpreter", order=14, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who interpreted images (0008,1060)", - formalDefinition="Who read study and interpreted the images" - ) - private ResourceReferenceDt myInterpreter; - - @Child(name="description", type=StringDt.class, order=15, min=0, max=1) - @Description( - shortDefinition="Institution-generated description (0008,1030)", - formalDefinition="Institution-generated description or classification of the Study (component) performed" - ) - private StringDt myDescription; - - @Child(name="series", order=16, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Each study has one or more series of instances", - formalDefinition="Each study has one or more series of image instances" - ) - private java.util.List mySeries; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDateTime, mySubject, myUid, myAccessionNo, myIdentifier, myOrder, myModality, myReferrer, myAvailability, myUrl, myNumberOfSeries, myNumberOfInstances, myClinicalInformation, myProcedure, myInterpreter, myDescription, mySeries); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDateTime, mySubject, myUid, myAccessionNo, myIdentifier, myOrder, myModality, myReferrer, myAvailability, myUrl, myNumberOfSeries, myNumberOfInstances, myClinicalInformation, myProcedure, myInterpreter, myDescription, mySeries); - } - - /** - * Gets the value(s) for dateTime (When the study was performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date and Time the study took place - *

- */ - public DateTimeDt getDateTime() { - if (myDateTime == null) { - myDateTime = new DateTimeDt(); - } - return myDateTime; - } - - - /** - * Gets the value(s) for dateTime (When the study was performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date and Time the study took place - *

- */ - public DateTimeDt getDateTimeElement() { - if (myDateTime == null) { - myDateTime = new DateTimeDt(); - } - return myDateTime; - } - - - /** - * Sets the value(s) for dateTime (When the study was performed) - * - *

- * Definition: - * Date and Time the study took place - *

- */ - public ImagingStudy setDateTime(DateTimeDt theValue) { - myDateTime = theValue; - return this; - } - - /** - * Sets the value for dateTime (When the study was performed) - * - *

- * Definition: - * Date and Time the study took place - *

- */ - public ImagingStudy setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) { - myDateTime = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for dateTime (When the study was performed) - * - *

- * Definition: - * Date and Time the study took place - *

- */ - public ImagingStudy setDateTimeWithSecondsPrecision( Date theDate) { - myDateTime = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for subject (Who the images are of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who the images are of - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who the images are of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who the images are of - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who the images are of) - * - *

- * Definition: - * Who the images are of - *

- */ - public ImagingStudy setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for uid (Formal identifier for the study (0020,000D)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal identifier for the study - *

- */ - public OidDt getUid() { - if (myUid == null) { - myUid = new OidDt(); - } - return myUid; - } - - - /** - * Gets the value(s) for uid (Formal identifier for the study (0020,000D)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal identifier for the study - *

- */ - public OidDt getUidElement() { - if (myUid == null) { - myUid = new OidDt(); - } - return myUid; - } - - - /** - * Sets the value(s) for uid (Formal identifier for the study (0020,000D)) - * - *

- * Definition: - * Formal identifier for the study - *

- */ - public ImagingStudy setUid(OidDt theValue) { - myUid = theValue; - return this; - } - - - /** - * Gets the value(s) for accessionNo (Accession Number (0008,0050)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Accession Number - *

- */ - public IdentifierDt getAccessionNo() { - if (myAccessionNo == null) { - myAccessionNo = new IdentifierDt(); - } - return myAccessionNo; - } - - - /** - * Gets the value(s) for accessionNo (Accession Number (0008,0050)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Accession Number - *

- */ - public IdentifierDt getAccessionNoElement() { - if (myAccessionNo == null) { - myAccessionNo = new IdentifierDt(); - } - return myAccessionNo; - } - - - /** - * Sets the value(s) for accessionNo (Accession Number (0008,0050)) - * - *

- * Definition: - * Accession Number - *

- */ - public ImagingStudy setAccessionNo(IdentifierDt theValue) { - myAccessionNo = theValue; - return this; - } - - /** - * Sets the value for accessionNo (Accession Number (0008,0050)) - * - *

- * Definition: - * Accession Number - *

- */ - public ImagingStudy setAccessionNo( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myAccessionNo = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for accessionNo (Accession Number (0008,0050)) - * - *

- * Definition: - * Accession Number - *

- */ - public ImagingStudy setAccessionNo( String theSystem, String theValue) { - myAccessionNo = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for identifier (Other identifiers for the study (0020,0010)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Other identifiers for the study - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Other identifiers for the study (0020,0010)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Other identifiers for the study - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Other identifiers for the study (0020,0010)) - * - *

- * Definition: - * Other identifiers for the study - *

- */ - public ImagingStudy setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Other identifiers for the study (0020,0010)) - * - *

- * Definition: - * Other identifiers for the study - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Other identifiers for the study (0020,0010)), - * creating it if it does not already exist. - * - *

- * Definition: - * Other identifiers for the study - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Other identifiers for the study (0020,0010)) - * - *

- * Definition: - * Other identifiers for the study - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ImagingStudy addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Other identifiers for the study (0020,0010)) - * - *

- * Definition: - * Other identifiers for the study - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ImagingStudy addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for order (Order(s) that caused this study to be performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of the diagnostic orders that resulted in this imaging study being performed - *

- */ - public java.util.List getOrder() { - if (myOrder == null) { - myOrder = new java.util.ArrayList(); - } - return myOrder; - } - - - /** - * Gets the value(s) for order (Order(s) that caused this study to be performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of the diagnostic orders that resulted in this imaging study being performed - *

- */ - public java.util.List getOrderElement() { - if (myOrder == null) { - myOrder = new java.util.ArrayList(); - } - return myOrder; - } - - - /** - * Sets the value(s) for order (Order(s) that caused this study to be performed) - * - *

- * Definition: - * A list of the diagnostic orders that resulted in this imaging study being performed - *

- */ - public ImagingStudy setOrder(java.util.List theValue) { - myOrder = theValue; - return this; - } - - /** - * Adds and returns a new value for order (Order(s) that caused this study to be performed) - * - *

- * Definition: - * A list of the diagnostic orders that resulted in this imaging study being performed - *

- */ - public ResourceReferenceDt addOrder() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getOrder().add(newType); - return newType; - } - - /** - * Gets the value(s) for modality (All series.modality if actual acquisition modalities). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19) - *

- */ - public java.util.List> getModality() { - if (myModality == null) { - myModality = new java.util.ArrayList>(); - } - return myModality; - } - - - /** - * Gets the value(s) for modality (All series.modality if actual acquisition modalities). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19) - *

- */ - public java.util.List> getModalityElement() { - if (myModality == null) { - myModality = new java.util.ArrayList>(); - } - return myModality; - } - - - /** - * Sets the value(s) for modality (All series.modality if actual acquisition modalities) - * - *

- * Definition: - * A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19) - *

- */ - public ImagingStudy setModality(java.util.List> theValue) { - myModality = theValue; - return this; - } - - /** - * Add a value for modality (All series.modality if actual acquisition modalities) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addModality()} method. - * - *

- * Definition: - * A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19) - *

- */ - public BoundCodeDt addModality(ImagingModalityEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(ImagingModalityEnum.VALUESET_BINDER, theValue); - getModality().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for modality (All series.modality if actual acquisition modalities), - * creating it if it does not already exist. - * - *

- * Definition: - * A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19) - *

- */ - public BoundCodeDt getModalityFirstRep() { - if (getModality().size() == 0) { - addModality(); - } - return getModality().get(0); - } - - /** - * Add a value for modality (All series.modality if actual acquisition modalities) - * - *

- * Definition: - * A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19) - *

- */ - public BoundCodeDt addModality() { - BoundCodeDt retVal = new BoundCodeDt(ImagingModalityEnum.VALUESET_BINDER); - getModality().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for modality (All series.modality if actual acquisition modalities) - * - *

- * Definition: - * A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19) - *

- */ - public ImagingStudy setModality(ImagingModalityEnum theValue) { - getModality().clear(); - addModality(theValue); - return this; - } - - - /** - * Gets the value(s) for referrer (Referring physician (0008,0090)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The requesting/referring physician - *

- */ - public ResourceReferenceDt getReferrer() { - if (myReferrer == null) { - myReferrer = new ResourceReferenceDt(); - } - return myReferrer; - } - - - /** - * Gets the value(s) for referrer (Referring physician (0008,0090)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The requesting/referring physician - *

- */ - public ResourceReferenceDt getReferrerElement() { - if (myReferrer == null) { - myReferrer = new ResourceReferenceDt(); - } - return myReferrer; - } - - - /** - * Sets the value(s) for referrer (Referring physician (0008,0090)) - * - *

- * Definition: - * The requesting/referring physician - *

- */ - public ImagingStudy setReferrer(ResourceReferenceDt theValue) { - myReferrer = theValue; - return this; - } - - - /** - * Gets the value(s) for availability (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Availability of study (online, offline or nearline) - *

- */ - public BoundCodeDt getAvailability() { - if (myAvailability == null) { - myAvailability = new BoundCodeDt(InstanceAvailabilityEnum.VALUESET_BINDER); - } - return myAvailability; - } - - - /** - * Gets the value(s) for availability (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Availability of study (online, offline or nearline) - *

- */ - public BoundCodeDt getAvailabilityElement() { - if (myAvailability == null) { - myAvailability = new BoundCodeDt(InstanceAvailabilityEnum.VALUESET_BINDER); - } - return myAvailability; - } - - - /** - * Sets the value(s) for availability (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)) - * - *

- * Definition: - * Availability of study (online, offline or nearline) - *

- */ - public ImagingStudy setAvailability(BoundCodeDt theValue) { - myAvailability = theValue; - return this; - } - - /** - * Sets the value(s) for availability (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)) - * - *

- * Definition: - * Availability of study (online, offline or nearline) - *

- */ - public ImagingStudy setAvailability(InstanceAvailabilityEnum theValue) { - getAvailability().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for url (Retrieve URI (0008,1190)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * WADO-RS URI where Study is available - *

- */ - public UriDt getUrl() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (Retrieve URI (0008,1190)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * WADO-RS URI where Study is available - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Sets the value(s) for url (Retrieve URI (0008,1190)) - * - *

- * Definition: - * WADO-RS URI where Study is available - *

- */ - public ImagingStudy setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - /** - * Sets the value for url (Retrieve URI (0008,1190)) - * - *

- * Definition: - * WADO-RS URI where Study is available - *

- */ - public ImagingStudy setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for numberOfSeries (Number of Study Related Series (0020,1206)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Number of Series in Study - *

- */ - public IntegerDt getNumberOfSeries() { - if (myNumberOfSeries == null) { - myNumberOfSeries = new IntegerDt(); - } - return myNumberOfSeries; - } - - - /** - * Gets the value(s) for numberOfSeries (Number of Study Related Series (0020,1206)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Number of Series in Study - *

- */ - public IntegerDt getNumberOfSeriesElement() { - if (myNumberOfSeries == null) { - myNumberOfSeries = new IntegerDt(); - } - return myNumberOfSeries; - } - - - /** - * Sets the value(s) for numberOfSeries (Number of Study Related Series (0020,1206)) - * - *

- * Definition: - * Number of Series in Study - *

- */ - public ImagingStudy setNumberOfSeries(IntegerDt theValue) { - myNumberOfSeries = theValue; - return this; - } - - /** - * Sets the value for numberOfSeries (Number of Study Related Series (0020,1206)) - * - *

- * Definition: - * Number of Series in Study - *

- */ - public ImagingStudy setNumberOfSeries( int theInteger) { - myNumberOfSeries = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for numberOfInstances (Number of Study Related Instances (0020,1208)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Number of SOP Instances in Study - *

- */ - public IntegerDt getNumberOfInstances() { - if (myNumberOfInstances == null) { - myNumberOfInstances = new IntegerDt(); - } - return myNumberOfInstances; - } - - - /** - * Gets the value(s) for numberOfInstances (Number of Study Related Instances (0020,1208)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Number of SOP Instances in Study - *

- */ - public IntegerDt getNumberOfInstancesElement() { - if (myNumberOfInstances == null) { - myNumberOfInstances = new IntegerDt(); - } - return myNumberOfInstances; - } - - - /** - * Sets the value(s) for numberOfInstances (Number of Study Related Instances (0020,1208)) - * - *

- * Definition: - * Number of SOP Instances in Study - *

- */ - public ImagingStudy setNumberOfInstances(IntegerDt theValue) { - myNumberOfInstances = theValue; - return this; - } - - /** - * Sets the value for numberOfInstances (Number of Study Related Instances (0020,1208)) - * - *

- * Definition: - * Number of SOP Instances in Study - *

- */ - public ImagingStudy setNumberOfInstances( int theInteger) { - myNumberOfInstances = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for clinicalInformation (Diagnoses etc with request (0040,1002)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Diagnoses etc provided with request - *

- */ - public StringDt getClinicalInformation() { - if (myClinicalInformation == null) { - myClinicalInformation = new StringDt(); - } - return myClinicalInformation; - } - - - /** - * Gets the value(s) for clinicalInformation (Diagnoses etc with request (0040,1002)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Diagnoses etc provided with request - *

- */ - public StringDt getClinicalInformationElement() { - if (myClinicalInformation == null) { - myClinicalInformation = new StringDt(); - } - return myClinicalInformation; - } - - - /** - * Sets the value(s) for clinicalInformation (Diagnoses etc with request (0040,1002)) - * - *

- * Definition: - * Diagnoses etc provided with request - *

- */ - public ImagingStudy setClinicalInformation(StringDt theValue) { - myClinicalInformation = theValue; - return this; - } - - /** - * Sets the value for clinicalInformation (Diagnoses etc with request (0040,1002)) - * - *

- * Definition: - * Diagnoses etc provided with request - *

- */ - public ImagingStudy setClinicalInformation( String theString) { - myClinicalInformation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for procedure (Type of procedure performed (0008,1032)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of procedure performed - *

- */ - public java.util.List getProcedure() { - if (myProcedure == null) { - myProcedure = new java.util.ArrayList(); - } - return myProcedure; - } - - - /** - * Gets the value(s) for procedure (Type of procedure performed (0008,1032)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of procedure performed - *

- */ - public java.util.List getProcedureElement() { - if (myProcedure == null) { - myProcedure = new java.util.ArrayList(); - } - return myProcedure; - } - - - /** - * Sets the value(s) for procedure (Type of procedure performed (0008,1032)) - * - *

- * Definition: - * Type of procedure performed - *

- */ - public ImagingStudy setProcedure(java.util.List theValue) { - myProcedure = theValue; - return this; - } - - /** - * Adds and returns a new value for procedure (Type of procedure performed (0008,1032)) - * - *

- * Definition: - * Type of procedure performed - *

- */ - public CodingDt addProcedure() { - CodingDt newType = new CodingDt(); - getProcedure().add(newType); - return newType; - } - - /** - * Gets the first repetition for procedure (Type of procedure performed (0008,1032)), - * creating it if it does not already exist. - * - *

- * Definition: - * Type of procedure performed - *

- */ - public CodingDt getProcedureFirstRep() { - if (getProcedure().isEmpty()) { - return addProcedure(); - } - return getProcedure().get(0); - } - - /** - * Gets the value(s) for interpreter (Who interpreted images (0008,1060)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who read study and interpreted the images - *

- */ - public ResourceReferenceDt getInterpreter() { - if (myInterpreter == null) { - myInterpreter = new ResourceReferenceDt(); - } - return myInterpreter; - } - - - /** - * Gets the value(s) for interpreter (Who interpreted images (0008,1060)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who read study and interpreted the images - *

- */ - public ResourceReferenceDt getInterpreterElement() { - if (myInterpreter == null) { - myInterpreter = new ResourceReferenceDt(); - } - return myInterpreter; - } - - - /** - * Sets the value(s) for interpreter (Who interpreted images (0008,1060)) - * - *

- * Definition: - * Who read study and interpreted the images - *

- */ - public ImagingStudy setInterpreter(ResourceReferenceDt theValue) { - myInterpreter = theValue; - return this; - } - - - /** - * Gets the value(s) for description (Institution-generated description (0008,1030)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Institution-generated description or classification of the Study (component) performed - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Institution-generated description (0008,1030)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Institution-generated description or classification of the Study (component) performed - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Institution-generated description (0008,1030)) - * - *

- * Definition: - * Institution-generated description or classification of the Study (component) performed - *

- */ - public ImagingStudy setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Institution-generated description (0008,1030)) - * - *

- * Definition: - * Institution-generated description or classification of the Study (component) performed - *

- */ - public ImagingStudy setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for series (Each study has one or more series of instances). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Each study has one or more series of image instances - *

- */ - public java.util.List getSeries() { - if (mySeries == null) { - mySeries = new java.util.ArrayList(); - } - return mySeries; - } - - - /** - * Gets the value(s) for series (Each study has one or more series of instances). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Each study has one or more series of image instances - *

- */ - public java.util.List getSeriesElement() { - if (mySeries == null) { - mySeries = new java.util.ArrayList(); - } - return mySeries; - } - - - /** - * Sets the value(s) for series (Each study has one or more series of instances) - * - *

- * Definition: - * Each study has one or more series of image instances - *

- */ - public ImagingStudy setSeries(java.util.List theValue) { - mySeries = theValue; - return this; - } - - /** - * Adds and returns a new value for series (Each study has one or more series of instances) - * - *

- * Definition: - * Each study has one or more series of image instances - *

- */ - public Series addSeries() { - Series newType = new Series(); - getSeries().add(newType); - return newType; - } - - /** - * Gets the first repetition for series (Each study has one or more series of instances), - * creating it if it does not already exist. - * - *

- * Definition: - * Each study has one or more series of image instances - *

- */ - public Series getSeriesFirstRep() { - if (getSeries().isEmpty()) { - return addSeries(); - } - return getSeries().get(0); - } - - /** - * Block class for child element: ImagingStudy.series (Each study has one or more series of instances) - * - *

- * Definition: - * Each study has one or more series of image instances - *

- */ - @Block() - public static class Series - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="number", type=IntegerDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Number of this series in overall sequence (0020,0011)", - formalDefinition="The number of this series in the overall sequence" - ) - private IntegerDt myNumber; - - @Child(name="modality", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="The modality of the instances in the series (0008,0060)", - formalDefinition="The modality of this series sequence" - ) - private BoundCodeDt myModality; - - @Child(name="uid", type=OidDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Formal identifier for this series (0020,000E)", - formalDefinition="Formal identifier for this series" - ) - private OidDt myUid; - - @Child(name="description", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="A description of the series (0008,103E)", - formalDefinition="A description of the series" - ) - private StringDt myDescription; - - @Child(name="numberOfInstances", type=IntegerDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Number of Series Related Instances (0020,1209)", - formalDefinition="Sequence that contains attributes from the" - ) - private IntegerDt myNumberOfInstances; - - @Child(name="availability", type=CodeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)", - formalDefinition="Availability of series (online, offline or nearline)" - ) - private BoundCodeDt myAvailability; - - @Child(name="url", type=UriDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Retrieve URI (0008,1115 > 0008,1190)", - formalDefinition="WADO-RS URI where Series is available" - ) - private UriDt myUrl; - - @Child(name="bodySite", type=CodingDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Body part examined (Map from 0018,0015)", - formalDefinition="Body part examined. See DICOM Part 16 Annex L for the mapping from DICOM to Snomed" - ) - private CodingDt myBodySite; - - @Child(name="dateTime", type=DateTimeDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="When the series started", - formalDefinition="" - ) - private DateTimeDt myDateTime; - - @Child(name="instance", order=9, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A single instance taken from a patient (image or other)", - formalDefinition="A single image taken from a patient" - ) - private java.util.List myInstance; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumber, myModality, myUid, myDescription, myNumberOfInstances, myAvailability, myUrl, myBodySite, myDateTime, myInstance); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myNumber, myModality, myUid, myDescription, myNumberOfInstances, myAvailability, myUrl, myBodySite, myDateTime, myInstance); - } - - /** - * Gets the value(s) for number (Number of this series in overall sequence (0020,0011)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of this series in the overall sequence - *

- */ - public IntegerDt getNumber() { - if (myNumber == null) { - myNumber = new IntegerDt(); - } - return myNumber; - } - - - /** - * Gets the value(s) for number (Number of this series in overall sequence (0020,0011)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of this series in the overall sequence - *

- */ - public IntegerDt getNumberElement() { - if (myNumber == null) { - myNumber = new IntegerDt(); - } - return myNumber; - } - - - /** - * Sets the value(s) for number (Number of this series in overall sequence (0020,0011)) - * - *

- * Definition: - * The number of this series in the overall sequence - *

- */ - public Series setNumber(IntegerDt theValue) { - myNumber = theValue; - return this; - } - - /** - * Sets the value for number (Number of this series in overall sequence (0020,0011)) - * - *

- * Definition: - * The number of this series in the overall sequence - *

- */ - public Series setNumber( int theInteger) { - myNumber = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for modality (The modality of the instances in the series (0008,0060)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The modality of this series sequence - *

- */ - public BoundCodeDt getModality() { - if (myModality == null) { - myModality = new BoundCodeDt(ModalityEnum.VALUESET_BINDER); - } - return myModality; - } - - - /** - * Gets the value(s) for modality (The modality of the instances in the series (0008,0060)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The modality of this series sequence - *

- */ - public BoundCodeDt getModalityElement() { - if (myModality == null) { - myModality = new BoundCodeDt(ModalityEnum.VALUESET_BINDER); - } - return myModality; - } - - - /** - * Sets the value(s) for modality (The modality of the instances in the series (0008,0060)) - * - *

- * Definition: - * The modality of this series sequence - *

- */ - public Series setModality(BoundCodeDt theValue) { - myModality = theValue; - return this; - } - - /** - * Sets the value(s) for modality (The modality of the instances in the series (0008,0060)) - * - *

- * Definition: - * The modality of this series sequence - *

- */ - public Series setModality(ModalityEnum theValue) { - getModality().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for uid (Formal identifier for this series (0020,000E)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal identifier for this series - *

- */ - public OidDt getUid() { - if (myUid == null) { - myUid = new OidDt(); - } - return myUid; - } - - - /** - * Gets the value(s) for uid (Formal identifier for this series (0020,000E)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal identifier for this series - *

- */ - public OidDt getUidElement() { - if (myUid == null) { - myUid = new OidDt(); - } - return myUid; - } - - - /** - * Sets the value(s) for uid (Formal identifier for this series (0020,000E)) - * - *

- * Definition: - * Formal identifier for this series - *

- */ - public Series setUid(OidDt theValue) { - myUid = theValue; - return this; - } - - - /** - * Gets the value(s) for description (A description of the series (0008,103E)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the series - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (A description of the series (0008,103E)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the series - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (A description of the series (0008,103E)) - * - *

- * Definition: - * A description of the series - *

- */ - public Series setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (A description of the series (0008,103E)) - * - *

- * Definition: - * A description of the series - *

- */ - public Series setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for numberOfInstances (Number of Series Related Instances (0020,1209)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence that contains attributes from the - *

- */ - public IntegerDt getNumberOfInstances() { - if (myNumberOfInstances == null) { - myNumberOfInstances = new IntegerDt(); - } - return myNumberOfInstances; - } - - - /** - * Gets the value(s) for numberOfInstances (Number of Series Related Instances (0020,1209)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sequence that contains attributes from the - *

- */ - public IntegerDt getNumberOfInstancesElement() { - if (myNumberOfInstances == null) { - myNumberOfInstances = new IntegerDt(); - } - return myNumberOfInstances; - } - - - /** - * Sets the value(s) for numberOfInstances (Number of Series Related Instances (0020,1209)) - * - *

- * Definition: - * Sequence that contains attributes from the - *

- */ - public Series setNumberOfInstances(IntegerDt theValue) { - myNumberOfInstances = theValue; - return this; - } - - /** - * Sets the value for numberOfInstances (Number of Series Related Instances (0020,1209)) - * - *

- * Definition: - * Sequence that contains attributes from the - *

- */ - public Series setNumberOfInstances( int theInteger) { - myNumberOfInstances = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for availability (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Availability of series (online, offline or nearline) - *

- */ - public BoundCodeDt getAvailability() { - if (myAvailability == null) { - myAvailability = new BoundCodeDt(InstanceAvailabilityEnum.VALUESET_BINDER); - } - return myAvailability; - } - - - /** - * Gets the value(s) for availability (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Availability of series (online, offline or nearline) - *

- */ - public BoundCodeDt getAvailabilityElement() { - if (myAvailability == null) { - myAvailability = new BoundCodeDt(InstanceAvailabilityEnum.VALUESET_BINDER); - } - return myAvailability; - } - - - /** - * Sets the value(s) for availability (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)) - * - *

- * Definition: - * Availability of series (online, offline or nearline) - *

- */ - public Series setAvailability(BoundCodeDt theValue) { - myAvailability = theValue; - return this; - } - - /** - * Sets the value(s) for availability (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)) - * - *

- * Definition: - * Availability of series (online, offline or nearline) - *

- */ - public Series setAvailability(InstanceAvailabilityEnum theValue) { - getAvailability().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for url (Retrieve URI (0008,1115 > 0008,1190)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * WADO-RS URI where Series is available - *

- */ - public UriDt getUrl() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (Retrieve URI (0008,1115 > 0008,1190)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * WADO-RS URI where Series is available - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Sets the value(s) for url (Retrieve URI (0008,1115 > 0008,1190)) - * - *

- * Definition: - * WADO-RS URI where Series is available - *

- */ - public Series setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - /** - * Sets the value for url (Retrieve URI (0008,1115 > 0008,1190)) - * - *

- * Definition: - * WADO-RS URI where Series is available - *

- */ - public Series setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for bodySite (Body part examined (Map from 0018,0015)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Body part examined. See DICOM Part 16 Annex L for the mapping from DICOM to Snomed - *

- */ - public CodingDt getBodySite() { - if (myBodySite == null) { - myBodySite = new CodingDt(); - } - return myBodySite; - } - - - /** - * Gets the value(s) for bodySite (Body part examined (Map from 0018,0015)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Body part examined. See DICOM Part 16 Annex L for the mapping from DICOM to Snomed - *

- */ - public CodingDt getBodySiteElement() { - if (myBodySite == null) { - myBodySite = new CodingDt(); - } - return myBodySite; - } - - - /** - * Sets the value(s) for bodySite (Body part examined (Map from 0018,0015)) - * - *

- * Definition: - * Body part examined. See DICOM Part 16 Annex L for the mapping from DICOM to Snomed - *

- */ - public Series setBodySite(CodingDt theValue) { - myBodySite = theValue; - return this; - } - - - /** - * Gets the value(s) for dateTime (When the series started). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getDateTime() { - if (myDateTime == null) { - myDateTime = new DateTimeDt(); - } - return myDateTime; - } - - - /** - * Gets the value(s) for dateTime (When the series started). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getDateTimeElement() { - if (myDateTime == null) { - myDateTime = new DateTimeDt(); - } - return myDateTime; - } - - - /** - * Sets the value(s) for dateTime (When the series started) - * - *

- * Definition: - * - *

- */ - public Series setDateTime(DateTimeDt theValue) { - myDateTime = theValue; - return this; - } - - /** - * Sets the value for dateTime (When the series started) - * - *

- * Definition: - * - *

- */ - public Series setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) { - myDateTime = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for dateTime (When the series started) - * - *

- * Definition: - * - *

- */ - public Series setDateTimeWithSecondsPrecision( Date theDate) { - myDateTime = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for instance (A single instance taken from a patient (image or other)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A single image taken from a patient - *

- */ - public java.util.List getInstance() { - if (myInstance == null) { - myInstance = new java.util.ArrayList(); - } - return myInstance; - } - - - /** - * Gets the value(s) for instance (A single instance taken from a patient (image or other)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A single image taken from a patient - *

- */ - public java.util.List getInstanceElement() { - if (myInstance == null) { - myInstance = new java.util.ArrayList(); - } - return myInstance; - } - - - /** - * Sets the value(s) for instance (A single instance taken from a patient (image or other)) - * - *

- * Definition: - * A single image taken from a patient - *

- */ - public Series setInstance(java.util.List theValue) { - myInstance = theValue; - return this; - } - - /** - * Adds and returns a new value for instance (A single instance taken from a patient (image or other)) - * - *

- * Definition: - * A single image taken from a patient - *

- */ - public SeriesInstance addInstance() { - SeriesInstance newType = new SeriesInstance(); - getInstance().add(newType); - return newType; - } - - /** - * Gets the first repetition for instance (A single instance taken from a patient (image or other)), - * creating it if it does not already exist. - * - *

- * Definition: - * A single image taken from a patient - *

- */ - public SeriesInstance getInstanceFirstRep() { - if (getInstance().isEmpty()) { - return addInstance(); - } - return getInstance().get(0); - } - - - } - - /** - * Block class for child element: ImagingStudy.series.instance (A single instance taken from a patient (image or other)) - * - *

- * Definition: - * A single image taken from a patient - *

- */ - @Block() - public static class SeriesInstance - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="number", type=IntegerDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="The number of this instance in the series (0020,0013)", - formalDefinition="The number of this image in the series" - ) - private IntegerDt myNumber; - - @Child(name="uid", type=OidDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Formal identifier for this instance (0008,0018)", - formalDefinition="Formal identifier for this image" - ) - private OidDt myUid; - - @Child(name="sopclass", type=OidDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="DICOM class type (0008,0016)", - formalDefinition="DICOM Image type" - ) - private OidDt mySopclass; - - @Child(name="type", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Type of instance (image etc) (0004,1430)", - formalDefinition="" - ) - private StringDt myType; - - @Child(name="title", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Description (0070,0080 | 0040,A043 > 0008,0104 | 0042,0010 | 0008,0008)", - formalDefinition="" - ) - private StringDt myTitle; - - @Child(name="url", type=UriDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="WADO-RS service where instance is available (0008,1199 > 0008,1190)", - formalDefinition="WADO-RS url where image is available" - ) - private UriDt myUrl; - - @Child(name="attachment", order=6, min=0, max=1, type={ - IResource.class }) - @Description( - shortDefinition="A FHIR resource with content for this instance", - formalDefinition="" - ) - private ResourceReferenceDt myAttachment; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumber, myUid, mySopclass, myType, myTitle, myUrl, myAttachment); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myNumber, myUid, mySopclass, myType, myTitle, myUrl, myAttachment); - } - - /** - * Gets the value(s) for number (The number of this instance in the series (0020,0013)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of this image in the series - *

- */ - public IntegerDt getNumber() { - if (myNumber == null) { - myNumber = new IntegerDt(); - } - return myNumber; - } - - - /** - * Gets the value(s) for number (The number of this instance in the series (0020,0013)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of this image in the series - *

- */ - public IntegerDt getNumberElement() { - if (myNumber == null) { - myNumber = new IntegerDt(); - } - return myNumber; - } - - - /** - * Sets the value(s) for number (The number of this instance in the series (0020,0013)) - * - *

- * Definition: - * The number of this image in the series - *

- */ - public SeriesInstance setNumber(IntegerDt theValue) { - myNumber = theValue; - return this; - } - - /** - * Sets the value for number (The number of this instance in the series (0020,0013)) - * - *

- * Definition: - * The number of this image in the series - *

- */ - public SeriesInstance setNumber( int theInteger) { - myNumber = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for uid (Formal identifier for this instance (0008,0018)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal identifier for this image - *

- */ - public OidDt getUid() { - if (myUid == null) { - myUid = new OidDt(); - } - return myUid; - } - - - /** - * Gets the value(s) for uid (Formal identifier for this instance (0008,0018)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal identifier for this image - *

- */ - public OidDt getUidElement() { - if (myUid == null) { - myUid = new OidDt(); - } - return myUid; - } - - - /** - * Sets the value(s) for uid (Formal identifier for this instance (0008,0018)) - * - *

- * Definition: - * Formal identifier for this image - *

- */ - public SeriesInstance setUid(OidDt theValue) { - myUid = theValue; - return this; - } - - - /** - * Gets the value(s) for sopclass (DICOM class type (0008,0016)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * DICOM Image type - *

- */ - public OidDt getSopclass() { - if (mySopclass == null) { - mySopclass = new OidDt(); - } - return mySopclass; - } - - - /** - * Gets the value(s) for sopclass (DICOM class type (0008,0016)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * DICOM Image type - *

- */ - public OidDt getSopclassElement() { - if (mySopclass == null) { - mySopclass = new OidDt(); - } - return mySopclass; - } - - - /** - * Sets the value(s) for sopclass (DICOM class type (0008,0016)) - * - *

- * Definition: - * DICOM Image type - *

- */ - public SeriesInstance setSopclass(OidDt theValue) { - mySopclass = theValue; - return this; - } - - - /** - * Gets the value(s) for type (Type of instance (image etc) (0004,1430)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getType() { - if (myType == null) { - myType = new StringDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Type of instance (image etc) (0004,1430)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getTypeElement() { - if (myType == null) { - myType = new StringDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Type of instance (image etc) (0004,1430)) - * - *

- * Definition: - * - *

- */ - public SeriesInstance setType(StringDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value for type (Type of instance (image etc) (0004,1430)) - * - *

- * Definition: - * - *

- */ - public SeriesInstance setType( String theString) { - myType = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for title (Description (0070,0080 | 0040,A043 > 0008,0104 | 0042,0010 | 0008,0008)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getTitle() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Gets the value(s) for title (Description (0070,0080 | 0040,A043 > 0008,0104 | 0042,0010 | 0008,0008)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getTitleElement() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Sets the value(s) for title (Description (0070,0080 | 0040,A043 > 0008,0104 | 0042,0010 | 0008,0008)) - * - *

- * Definition: - * - *

- */ - public SeriesInstance setTitle(StringDt theValue) { - myTitle = theValue; - return this; - } - - /** - * Sets the value for title (Description (0070,0080 | 0040,A043 > 0008,0104 | 0042,0010 | 0008,0008)) - * - *

- * Definition: - * - *

- */ - public SeriesInstance setTitle( String theString) { - myTitle = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for url (WADO-RS service where instance is available (0008,1199 > 0008,1190)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * WADO-RS url where image is available - *

- */ - public UriDt getUrl() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (WADO-RS service where instance is available (0008,1199 > 0008,1190)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * WADO-RS url where image is available - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Sets the value(s) for url (WADO-RS service where instance is available (0008,1199 > 0008,1190)) - * - *

- * Definition: - * WADO-RS url where image is available - *

- */ - public SeriesInstance setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - /** - * Sets the value for url (WADO-RS service where instance is available (0008,1199 > 0008,1190)) - * - *

- * Definition: - * WADO-RS url where image is available - *

- */ - public SeriesInstance setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for attachment (A FHIR resource with content for this instance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAttachment() { - if (myAttachment == null) { - myAttachment = new ResourceReferenceDt(); - } - return myAttachment; - } - - - /** - * Gets the value(s) for attachment (A FHIR resource with content for this instance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAttachmentElement() { - if (myAttachment == null) { - myAttachment = new ResourceReferenceDt(); - } - return myAttachment; - } - - - /** - * Sets the value(s) for attachment (A FHIR resource with content for this instance) - * - *

- * Definition: - * - *

- */ - public SeriesInstance setAttachment(ResourceReferenceDt theValue) { - myAttachment = theValue; - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "ImagingStudy"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Immunization.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Immunization.java deleted file mode 100644 index 37d658f0596..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Immunization.java +++ /dev/null @@ -1,2951 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Immunization Resource - * (Immunization event information) - * - *

- * Definition: - * Immunization event information - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Immunization - *

- * - */ -@ResourceDef(name="Immunization", profile="http://hl7.org/fhir/profiles/Immunization", id="immunization") -public class Immunization - extends BaseResource implements IResource { - - /** - * Search parameter constant for date - *

- * Description: Vaccination Administration / Refusal Date
- * Type: date
- * Path: Immunization.date
- *

- */ - @SearchParamDefinition(name="date", path="Immunization.date", description="Vaccination Administration / Refusal Date", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: Vaccination Administration / Refusal Date
- * Type: date
- * Path: Immunization.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for dose-sequence - *

- * Description:
- * Type: number
- * Path: Immunization.vaccinationProtocol.doseSequence
- *

- */ - @SearchParamDefinition(name="dose-sequence", path="Immunization.vaccinationProtocol.doseSequence", description="", type="number" ) - public static final String SP_DOSE_SEQUENCE = "dose-sequence"; - - /** - * Fluent Client search parameter constant for dose-sequence - *

- * Description:
- * Type: number
- * Path: Immunization.vaccinationProtocol.doseSequence
- *

- */ - public static final NumberClientParam DOSE_SEQUENCE = new NumberClientParam(SP_DOSE_SEQUENCE); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Immunization.identifier
- *

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

- * Description:
- * Type: token
- * Path: Immunization.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for location - *

- * Description: The service delivery location or facility in which the vaccine was / was to be administered
- * Type: reference
- * Path: Immunization.location
- *

- */ - @SearchParamDefinition(name="location", path="Immunization.location", description="The service delivery location or facility in which the vaccine was / was to be administered", type="reference" ) - public static final String SP_LOCATION = "location"; - - /** - * Fluent Client search parameter constant for location - *

- * Description: The service delivery location or facility in which the vaccine was / was to be administered
- * Type: reference
- * Path: Immunization.location
- *

- */ - public static final ReferenceClientParam LOCATION = new ReferenceClientParam(SP_LOCATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Immunization.location". - */ - public static final Include INCLUDE_LOCATION = new Include("Immunization.location"); - - /** - * Search parameter constant for lot-number - *

- * Description: Vaccine Lot Number
- * Type: string
- * Path: Immunization.lotNumber
- *

- */ - @SearchParamDefinition(name="lot-number", path="Immunization.lotNumber", description="Vaccine Lot Number", type="string" ) - public static final String SP_LOT_NUMBER = "lot-number"; - - /** - * Fluent Client search parameter constant for lot-number - *

- * Description: Vaccine Lot Number
- * Type: string
- * Path: Immunization.lotNumber
- *

- */ - public static final StringClientParam LOT_NUMBER = new StringClientParam(SP_LOT_NUMBER); - - /** - * Search parameter constant for manufacturer - *

- * Description: Vaccine Manufacturer
- * Type: reference
- * Path: Immunization.manufacturer
- *

- */ - @SearchParamDefinition(name="manufacturer", path="Immunization.manufacturer", description="Vaccine Manufacturer", type="reference" ) - public static final String SP_MANUFACTURER = "manufacturer"; - - /** - * Fluent Client search parameter constant for manufacturer - *

- * Description: Vaccine Manufacturer
- * Type: reference
- * Path: Immunization.manufacturer
- *

- */ - public static final ReferenceClientParam MANUFACTURER = new ReferenceClientParam(SP_MANUFACTURER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Immunization.manufacturer". - */ - public static final Include INCLUDE_MANUFACTURER = new Include("Immunization.manufacturer"); - - /** - * Search parameter constant for performer - *

- * Description: The practitioner who administered the vaccination
- * Type: reference
- * Path: Immunization.performer
- *

- */ - @SearchParamDefinition(name="performer", path="Immunization.performer", description="The practitioner who administered the vaccination", type="reference" ) - public static final String SP_PERFORMER = "performer"; - - /** - * Fluent Client search parameter constant for performer - *

- * Description: The practitioner who administered the vaccination
- * Type: reference
- * Path: Immunization.performer
- *

- */ - public static final ReferenceClientParam PERFORMER = new ReferenceClientParam(SP_PERFORMER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Immunization.performer". - */ - public static final Include INCLUDE_PERFORMER = new Include("Immunization.performer"); - - /** - * Search parameter constant for reaction - *

- * Description:
- * Type: reference
- * Path: Immunization.reaction.detail
- *

- */ - @SearchParamDefinition(name="reaction", path="Immunization.reaction.detail", description="", type="reference" ) - public static final String SP_REACTION = "reaction"; - - /** - * Fluent Client search parameter constant for reaction - *

- * Description:
- * Type: reference
- * Path: Immunization.reaction.detail
- *

- */ - public static final ReferenceClientParam REACTION = new ReferenceClientParam(SP_REACTION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Immunization.reaction.detail". - */ - public static final Include INCLUDE_REACTION_DETAIL = new Include("Immunization.reaction.detail"); - - /** - * Search parameter constant for reaction-date - *

- * Description:
- * Type: date
- * Path: Immunization.reaction.date
- *

- */ - @SearchParamDefinition(name="reaction-date", path="Immunization.reaction.date", description="", type="date" ) - public static final String SP_REACTION_DATE = "reaction-date"; - - /** - * Fluent Client search parameter constant for reaction-date - *

- * Description:
- * Type: date
- * Path: Immunization.reaction.date
- *

- */ - public static final DateClientParam REACTION_DATE = new DateClientParam(SP_REACTION_DATE); - - /** - * Search parameter constant for reason - *

- * Description:
- * Type: token
- * Path: Immunization.explanation.reason
- *

- */ - @SearchParamDefinition(name="reason", path="Immunization.explanation.reason", description="", type="token" ) - public static final String SP_REASON = "reason"; - - /** - * Fluent Client search parameter constant for reason - *

- * Description:
- * Type: token
- * Path: Immunization.explanation.reason
- *

- */ - public static final TokenClientParam REASON = new TokenClientParam(SP_REASON); - - /** - * Search parameter constant for refusal-reason - *

- * Description: Explanation of refusal / exemption
- * Type: token
- * Path: Immunization.explanation.refusalReason
- *

- */ - @SearchParamDefinition(name="refusal-reason", path="Immunization.explanation.refusalReason", description="Explanation of refusal / exemption", type="token" ) - public static final String SP_REFUSAL_REASON = "refusal-reason"; - - /** - * Fluent Client search parameter constant for refusal-reason - *

- * Description: Explanation of refusal / exemption
- * Type: token
- * Path: Immunization.explanation.refusalReason
- *

- */ - public static final TokenClientParam REFUSAL_REASON = new TokenClientParam(SP_REFUSAL_REASON); - - /** - * Search parameter constant for refused - *

- * Description:
- * Type: token
- * Path: Immunization.refusedIndicator
- *

- */ - @SearchParamDefinition(name="refused", path="Immunization.refusedIndicator", description="", type="token" ) - public static final String SP_REFUSED = "refused"; - - /** - * Fluent Client search parameter constant for refused - *

- * Description:
- * Type: token
- * Path: Immunization.refusedIndicator
- *

- */ - public static final TokenClientParam REFUSED = new TokenClientParam(SP_REFUSED); - - /** - * Search parameter constant for requester - *

- * Description: The practitioner who ordered the vaccination
- * Type: reference
- * Path: Immunization.requester
- *

- */ - @SearchParamDefinition(name="requester", path="Immunization.requester", description="The practitioner who ordered the vaccination", type="reference" ) - public static final String SP_REQUESTER = "requester"; - - /** - * Fluent Client search parameter constant for requester - *

- * Description: The practitioner who ordered the vaccination
- * Type: reference
- * Path: Immunization.requester
- *

- */ - public static final ReferenceClientParam REQUESTER = new ReferenceClientParam(SP_REQUESTER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Immunization.requester". - */ - public static final Include INCLUDE_REQUESTER = new Include("Immunization.requester"); - - /** - * Search parameter constant for subject - *

- * Description: The subject of the vaccination event / refusal
- * Type: reference
- * Path: Immunization.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Immunization.subject", description="The subject of the vaccination event / refusal", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject of the vaccination event / refusal
- * Type: reference
- * Path: Immunization.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Immunization.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Immunization.subject"); - - /** - * Search parameter constant for vaccine-type - *

- * Description: Vaccine Product Type Administered
- * Type: token
- * Path: Immunization.vaccineType
- *

- */ - @SearchParamDefinition(name="vaccine-type", path="Immunization.vaccineType", description="Vaccine Product Type Administered", type="token" ) - public static final String SP_VACCINE_TYPE = "vaccine-type"; - - /** - * Fluent Client search parameter constant for vaccine-type - *

- * Description: Vaccine Product Type Administered
- * Type: token
- * Path: Immunization.vaccineType
- *

- */ - public static final TokenClientParam VACCINE_TYPE = new TokenClientParam(SP_VACCINE_TYPE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Business identifier", - formalDefinition="A unique identifier assigned to this adverse reaction record." - ) - private java.util.List myIdentifier; - - @Child(name="date", type=DateTimeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Vaccination administration date", - formalDefinition="Date vaccine administered or was to be administered" - ) - private DateTimeDt myDate; - - @Child(name="vaccineType", type=CodeableConceptDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Vaccine product administered", - formalDefinition="Vaccine that was administered or was to be administered" - ) - private CodeableConceptDt myVaccineType; - - @Child(name="subject", order=3, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who was immunized?", - formalDefinition="The patient to whom the vaccine was to be administered" - ) - private ResourceReferenceDt mySubject; - - @Child(name="refusedIndicator", type=BooleanDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Was immunization refused?", - formalDefinition="Indicates if the vaccination was refused." - ) - private BooleanDt myRefusedIndicator; - - @Child(name="reported", type=BooleanDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Is this a self-reported record?", - formalDefinition="True if this administration was reported rather than directly administered." - ) - private BooleanDt myReported; - - @Child(name="performer", order=6, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who administered vaccine?", - formalDefinition="Clinician who administered the vaccine" - ) - private ResourceReferenceDt myPerformer; - - @Child(name="requester", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who ordered vaccination?", - formalDefinition="Clinician who ordered the vaccination" - ) - private ResourceReferenceDt myRequester; - - @Child(name="manufacturer", order=8, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Vaccine manufacturer", - formalDefinition="Name of vaccine manufacturer" - ) - private ResourceReferenceDt myManufacturer; - - @Child(name="location", order=9, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Where did vaccination occur?", - formalDefinition="The service delivery location where the vaccine administration occurred." - ) - private ResourceReferenceDt myLocation; - - @Child(name="lotNumber", type=StringDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Vaccine lot number", - formalDefinition="Lot number of the vaccine product" - ) - private StringDt myLotNumber; - - @Child(name="expirationDate", type=DateDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Vaccine expiration date", - formalDefinition="Date vaccine batch expires" - ) - private DateDt myExpirationDate; - - @Child(name="site", type=CodeableConceptDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="Body site vaccine was administered", - formalDefinition="Body site where vaccine was administered" - ) - private CodeableConceptDt mySite; - - @Child(name="route", type=CodeableConceptDt.class, order=13, min=0, max=1) - @Description( - shortDefinition="How vaccine entered body", - formalDefinition="The path by which the vaccine product is taken into the body." - ) - private BoundCodeableConceptDt myRoute; - - @Child(name="doseQuantity", type=QuantityDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="Amount of vaccine administered", - formalDefinition="The quantity of vaccine product that was administered" - ) - private QuantityDt myDoseQuantity; - - @Child(name="explanation", order=15, min=0, max=1) - @Description( - shortDefinition="Administration / refusal reasons", - formalDefinition="Reasons why a vaccine was administered or refused" - ) - private Explanation myExplanation; - - @Child(name="reaction", order=16, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Details of a reaction that follows immunization", - formalDefinition="Categorical data indicating that an adverse event is associated in time to an immunization" - ) - private java.util.List myReaction; - - @Child(name="vaccinationProtocol", order=17, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="What protocol was followed", - formalDefinition="Contains information about the protocol(s) under which the vaccine was administered" - ) - private java.util.List myVaccinationProtocol; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDate, myVaccineType, mySubject, myRefusedIndicator, myReported, myPerformer, myRequester, myManufacturer, myLocation, myLotNumber, myExpirationDate, mySite, myRoute, myDoseQuantity, myExplanation, myReaction, myVaccinationProtocol); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDate, myVaccineType, mySubject, myRefusedIndicator, myReported, myPerformer, myRequester, myManufacturer, myLocation, myLotNumber, myExpirationDate, mySite, myRoute, myDoseQuantity, myExplanation, myReaction, myVaccinationProtocol); - } - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier assigned to this adverse reaction record. - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier assigned to this adverse reaction record. - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Business identifier) - * - *

- * Definition: - * A unique identifier assigned to this adverse reaction record. - *

- */ - public Immunization setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Business identifier) - * - *

- * Definition: - * A unique identifier assigned to this adverse reaction record. - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Business identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * A unique identifier assigned to this adverse reaction record. - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * A unique identifier assigned to this adverse reaction record. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Immunization addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * A unique identifier assigned to this adverse reaction record. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Immunization addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for date (Vaccination administration date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date vaccine administered or was to be administered - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Vaccination administration date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date vaccine administered or was to be administered - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Vaccination administration date) - * - *

- * Definition: - * Date vaccine administered or was to be administered - *

- */ - public Immunization setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Vaccination administration date) - * - *

- * Definition: - * Date vaccine administered or was to be administered - *

- */ - public Immunization setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Vaccination administration date) - * - *

- * Definition: - * Date vaccine administered or was to be administered - *

- */ - public Immunization setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for vaccineType (Vaccine product administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine that was administered or was to be administered - *

- */ - public CodeableConceptDt getVaccineType() { - if (myVaccineType == null) { - myVaccineType = new CodeableConceptDt(); - } - return myVaccineType; - } - - - /** - * Gets the value(s) for vaccineType (Vaccine product administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine that was administered or was to be administered - *

- */ - public CodeableConceptDt getVaccineTypeElement() { - if (myVaccineType == null) { - myVaccineType = new CodeableConceptDt(); - } - return myVaccineType; - } - - - /** - * Sets the value(s) for vaccineType (Vaccine product administered) - * - *

- * Definition: - * Vaccine that was administered or was to be administered - *

- */ - public Immunization setVaccineType(CodeableConceptDt theValue) { - myVaccineType = theValue; - return this; - } - - - /** - * Gets the value(s) for subject (Who was immunized?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient to whom the vaccine was to be administered - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who was immunized?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient to whom the vaccine was to be administered - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who was immunized?) - * - *

- * Definition: - * The patient to whom the vaccine was to be administered - *

- */ - public Immunization setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for refusedIndicator (Was immunization refused?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates if the vaccination was refused. - *

- */ - public BooleanDt getRefusedIndicator() { - if (myRefusedIndicator == null) { - myRefusedIndicator = new BooleanDt(); - } - return myRefusedIndicator; - } - - - /** - * Gets the value(s) for refusedIndicator (Was immunization refused?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates if the vaccination was refused. - *

- */ - public BooleanDt getRefusedIndicatorElement() { - if (myRefusedIndicator == null) { - myRefusedIndicator = new BooleanDt(); - } - return myRefusedIndicator; - } - - - /** - * Sets the value(s) for refusedIndicator (Was immunization refused?) - * - *

- * Definition: - * Indicates if the vaccination was refused. - *

- */ - public Immunization setRefusedIndicator(BooleanDt theValue) { - myRefusedIndicator = theValue; - return this; - } - - /** - * Sets the value for refusedIndicator (Was immunization refused?) - * - *

- * Definition: - * Indicates if the vaccination was refused. - *

- */ - public Immunization setRefusedIndicator( boolean theBoolean) { - myRefusedIndicator = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for reported (Is this a self-reported record?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * True if this administration was reported rather than directly administered. - *

- */ - public BooleanDt getReported() { - if (myReported == null) { - myReported = new BooleanDt(); - } - return myReported; - } - - - /** - * Gets the value(s) for reported (Is this a self-reported record?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * True if this administration was reported rather than directly administered. - *

- */ - public BooleanDt getReportedElement() { - if (myReported == null) { - myReported = new BooleanDt(); - } - return myReported; - } - - - /** - * Sets the value(s) for reported (Is this a self-reported record?) - * - *

- * Definition: - * True if this administration was reported rather than directly administered. - *

- */ - public Immunization setReported(BooleanDt theValue) { - myReported = theValue; - return this; - } - - /** - * Sets the value for reported (Is this a self-reported record?) - * - *

- * Definition: - * True if this administration was reported rather than directly administered. - *

- */ - public Immunization setReported( boolean theBoolean) { - myReported = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for performer (Who administered vaccine?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Clinician who administered the vaccine - *

- */ - public ResourceReferenceDt getPerformer() { - if (myPerformer == null) { - myPerformer = new ResourceReferenceDt(); - } - return myPerformer; - } - - - /** - * Gets the value(s) for performer (Who administered vaccine?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Clinician who administered the vaccine - *

- */ - public ResourceReferenceDt getPerformerElement() { - if (myPerformer == null) { - myPerformer = new ResourceReferenceDt(); - } - return myPerformer; - } - - - /** - * Sets the value(s) for performer (Who administered vaccine?) - * - *

- * Definition: - * Clinician who administered the vaccine - *

- */ - public Immunization setPerformer(ResourceReferenceDt theValue) { - myPerformer = theValue; - return this; - } - - - /** - * Gets the value(s) for requester (Who ordered vaccination?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Clinician who ordered the vaccination - *

- */ - public ResourceReferenceDt getRequester() { - if (myRequester == null) { - myRequester = new ResourceReferenceDt(); - } - return myRequester; - } - - - /** - * Gets the value(s) for requester (Who ordered vaccination?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Clinician who ordered the vaccination - *

- */ - public ResourceReferenceDt getRequesterElement() { - if (myRequester == null) { - myRequester = new ResourceReferenceDt(); - } - return myRequester; - } - - - /** - * Sets the value(s) for requester (Who ordered vaccination?) - * - *

- * Definition: - * Clinician who ordered the vaccination - *

- */ - public Immunization setRequester(ResourceReferenceDt theValue) { - myRequester = theValue; - return this; - } - - - /** - * Gets the value(s) for manufacturer (Vaccine manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of vaccine manufacturer - *

- */ - public ResourceReferenceDt getManufacturer() { - if (myManufacturer == null) { - myManufacturer = new ResourceReferenceDt(); - } - return myManufacturer; - } - - - /** - * Gets the value(s) for manufacturer (Vaccine manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of vaccine manufacturer - *

- */ - public ResourceReferenceDt getManufacturerElement() { - if (myManufacturer == null) { - myManufacturer = new ResourceReferenceDt(); - } - return myManufacturer; - } - - - /** - * Sets the value(s) for manufacturer (Vaccine manufacturer) - * - *

- * Definition: - * Name of vaccine manufacturer - *

- */ - public Immunization setManufacturer(ResourceReferenceDt theValue) { - myManufacturer = theValue; - return this; - } - - - /** - * Gets the value(s) for location (Where did vaccination occur?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The service delivery location where the vaccine administration occurred. - *

- */ - public ResourceReferenceDt getLocation() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Where did vaccination occur?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The service delivery location where the vaccine administration occurred. - *

- */ - public ResourceReferenceDt getLocationElement() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Where did vaccination occur?) - * - *

- * Definition: - * The service delivery location where the vaccine administration occurred. - *

- */ - public Immunization setLocation(ResourceReferenceDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for lotNumber (Vaccine lot number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Lot number of the vaccine product - *

- */ - public StringDt getLotNumber() { - if (myLotNumber == null) { - myLotNumber = new StringDt(); - } - return myLotNumber; - } - - - /** - * Gets the value(s) for lotNumber (Vaccine lot number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Lot number of the vaccine product - *

- */ - public StringDt getLotNumberElement() { - if (myLotNumber == null) { - myLotNumber = new StringDt(); - } - return myLotNumber; - } - - - /** - * Sets the value(s) for lotNumber (Vaccine lot number) - * - *

- * Definition: - * Lot number of the vaccine product - *

- */ - public Immunization setLotNumber(StringDt theValue) { - myLotNumber = theValue; - return this; - } - - /** - * Sets the value for lotNumber (Vaccine lot number) - * - *

- * Definition: - * Lot number of the vaccine product - *

- */ - public Immunization setLotNumber( String theString) { - myLotNumber = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for expirationDate (Vaccine expiration date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date vaccine batch expires - *

- */ - public DateDt getExpirationDate() { - if (myExpirationDate == null) { - myExpirationDate = new DateDt(); - } - return myExpirationDate; - } - - - /** - * Gets the value(s) for expirationDate (Vaccine expiration date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date vaccine batch expires - *

- */ - public DateDt getExpirationDateElement() { - if (myExpirationDate == null) { - myExpirationDate = new DateDt(); - } - return myExpirationDate; - } - - - /** - * Sets the value(s) for expirationDate (Vaccine expiration date) - * - *

- * Definition: - * Date vaccine batch expires - *

- */ - public Immunization setExpirationDate(DateDt theValue) { - myExpirationDate = theValue; - return this; - } - - /** - * Sets the value for expirationDate (Vaccine expiration date) - * - *

- * Definition: - * Date vaccine batch expires - *

- */ - public Immunization setExpirationDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myExpirationDate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for expirationDate (Vaccine expiration date) - * - *

- * Definition: - * Date vaccine batch expires - *

- */ - public Immunization setExpirationDateWithDayPrecision( Date theDate) { - myExpirationDate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for site (Body site vaccine was administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Body site where vaccine was administered - *

- */ - public CodeableConceptDt getSite() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Gets the value(s) for site (Body site vaccine was administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Body site where vaccine was administered - *

- */ - public CodeableConceptDt getSiteElement() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Sets the value(s) for site (Body site vaccine was administered) - * - *

- * Definition: - * Body site where vaccine was administered - *

- */ - public Immunization setSite(CodeableConceptDt theValue) { - mySite = theValue; - return this; - } - - - /** - * Gets the value(s) for route (How vaccine entered body). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The path by which the vaccine product is taken into the body. - *

- */ - public BoundCodeableConceptDt getRoute() { - if (myRoute == null) { - myRoute = new BoundCodeableConceptDt(ImmunizationRouteCodesEnum.VALUESET_BINDER); - } - return myRoute; - } - - - /** - * Gets the value(s) for route (How vaccine entered body). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The path by which the vaccine product is taken into the body. - *

- */ - public BoundCodeableConceptDt getRouteElement() { - if (myRoute == null) { - myRoute = new BoundCodeableConceptDt(ImmunizationRouteCodesEnum.VALUESET_BINDER); - } - return myRoute; - } - - - /** - * Sets the value(s) for route (How vaccine entered body) - * - *

- * Definition: - * The path by which the vaccine product is taken into the body. - *

- */ - public Immunization setRoute(BoundCodeableConceptDt theValue) { - myRoute = theValue; - return this; - } - - /** - * Sets the value(s) for route (How vaccine entered body) - * - *

- * Definition: - * The path by which the vaccine product is taken into the body. - *

- */ - public Immunization setRoute(ImmunizationRouteCodesEnum theValue) { - getRoute().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for doseQuantity (Amount of vaccine administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public QuantityDt getDoseQuantity() { - if (myDoseQuantity == null) { - myDoseQuantity = new QuantityDt(); - } - return myDoseQuantity; - } - - - /** - * Gets the value(s) for doseQuantity (Amount of vaccine administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public QuantityDt getDoseQuantityElement() { - if (myDoseQuantity == null) { - myDoseQuantity = new QuantityDt(); - } - return myDoseQuantity; - } - - - /** - * Sets the value(s) for doseQuantity (Amount of vaccine administered) - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public Immunization setDoseQuantity(QuantityDt theValue) { - myDoseQuantity = theValue; - return this; - } - - /** - * Sets the value for doseQuantity (Amount of vaccine administered) - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public Immunization setDoseQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myDoseQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of vaccine administered) - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public Immunization setDoseQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myDoseQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of vaccine administered) - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public Immunization setDoseQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myDoseQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of vaccine administered) - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public Immunization setDoseQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myDoseQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of vaccine administered) - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public Immunization setDoseQuantity( double theValue) { - myDoseQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of vaccine administered) - * - *

- * Definition: - * The quantity of vaccine product that was administered - *

- */ - public Immunization setDoseQuantity( long theValue) { - myDoseQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for explanation (Administration / refusal reasons). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reasons why a vaccine was administered or refused - *

- */ - public Explanation getExplanation() { - if (myExplanation == null) { - myExplanation = new Explanation(); - } - return myExplanation; - } - - - /** - * Gets the value(s) for explanation (Administration / refusal reasons). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reasons why a vaccine was administered or refused - *

- */ - public Explanation getExplanationElement() { - if (myExplanation == null) { - myExplanation = new Explanation(); - } - return myExplanation; - } - - - /** - * Sets the value(s) for explanation (Administration / refusal reasons) - * - *

- * Definition: - * Reasons why a vaccine was administered or refused - *

- */ - public Immunization setExplanation(Explanation theValue) { - myExplanation = theValue; - return this; - } - - - /** - * Gets the value(s) for reaction (Details of a reaction that follows immunization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Categorical data indicating that an adverse event is associated in time to an immunization - *

- */ - public java.util.List getReaction() { - if (myReaction == null) { - myReaction = new java.util.ArrayList(); - } - return myReaction; - } - - - /** - * Gets the value(s) for reaction (Details of a reaction that follows immunization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Categorical data indicating that an adverse event is associated in time to an immunization - *

- */ - public java.util.List getReactionElement() { - if (myReaction == null) { - myReaction = new java.util.ArrayList(); - } - return myReaction; - } - - - /** - * Sets the value(s) for reaction (Details of a reaction that follows immunization) - * - *

- * Definition: - * Categorical data indicating that an adverse event is associated in time to an immunization - *

- */ - public Immunization setReaction(java.util.List theValue) { - myReaction = theValue; - return this; - } - - /** - * Adds and returns a new value for reaction (Details of a reaction that follows immunization) - * - *

- * Definition: - * Categorical data indicating that an adverse event is associated in time to an immunization - *

- */ - public Reaction addReaction() { - Reaction newType = new Reaction(); - getReaction().add(newType); - return newType; - } - - /** - * Gets the first repetition for reaction (Details of a reaction that follows immunization), - * creating it if it does not already exist. - * - *

- * Definition: - * Categorical data indicating that an adverse event is associated in time to an immunization - *

- */ - public Reaction getReactionFirstRep() { - if (getReaction().isEmpty()) { - return addReaction(); - } - return getReaction().get(0); - } - - /** - * Gets the value(s) for vaccinationProtocol (What protocol was followed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contains information about the protocol(s) under which the vaccine was administered - *

- */ - public java.util.List getVaccinationProtocol() { - if (myVaccinationProtocol == null) { - myVaccinationProtocol = new java.util.ArrayList(); - } - return myVaccinationProtocol; - } - - - /** - * Gets the value(s) for vaccinationProtocol (What protocol was followed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contains information about the protocol(s) under which the vaccine was administered - *

- */ - public java.util.List getVaccinationProtocolElement() { - if (myVaccinationProtocol == null) { - myVaccinationProtocol = new java.util.ArrayList(); - } - return myVaccinationProtocol; - } - - - /** - * Sets the value(s) for vaccinationProtocol (What protocol was followed) - * - *

- * Definition: - * Contains information about the protocol(s) under which the vaccine was administered - *

- */ - public Immunization setVaccinationProtocol(java.util.List theValue) { - myVaccinationProtocol = theValue; - return this; - } - - /** - * Adds and returns a new value for vaccinationProtocol (What protocol was followed) - * - *

- * Definition: - * Contains information about the protocol(s) under which the vaccine was administered - *

- */ - public VaccinationProtocol addVaccinationProtocol() { - VaccinationProtocol newType = new VaccinationProtocol(); - getVaccinationProtocol().add(newType); - return newType; - } - - /** - * Gets the first repetition for vaccinationProtocol (What protocol was followed), - * creating it if it does not already exist. - * - *

- * Definition: - * Contains information about the protocol(s) under which the vaccine was administered - *

- */ - public VaccinationProtocol getVaccinationProtocolFirstRep() { - if (getVaccinationProtocol().isEmpty()) { - return addVaccinationProtocol(); - } - return getVaccinationProtocol().get(0); - } - - /** - * Block class for child element: Immunization.explanation (Administration / refusal reasons) - * - *

- * Definition: - * Reasons why a vaccine was administered or refused - *

- */ - @Block() - public static class Explanation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="reason", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Why immunization occurred", - formalDefinition="Reasons why a vaccine was administered" - ) - private java.util.List> myReason; - - @Child(name="refusalReason", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Why immunization did not occur", - formalDefinition="Refusal or exemption reasons" - ) - private java.util.List myRefusalReason; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReason, myRefusalReason); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myReason, myRefusalReason); - } - - /** - * Gets the value(s) for reason (Why immunization occurred). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reasons why a vaccine was administered - *

- */ - public java.util.List> getReason() { - if (myReason == null) { - myReason = new java.util.ArrayList>(); - } - return myReason; - } - - - /** - * Gets the value(s) for reason (Why immunization occurred). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reasons why a vaccine was administered - *

- */ - public java.util.List> getReasonElement() { - if (myReason == null) { - myReason = new java.util.ArrayList>(); - } - return myReason; - } - - - /** - * Sets the value(s) for reason (Why immunization occurred) - * - *

- * Definition: - * Reasons why a vaccine was administered - *

- */ - public Explanation setReason(java.util.List> theValue) { - myReason = theValue; - return this; - } - - /** - * Add a value for reason (Why immunization occurred) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addReason()} method. - * - *

- * Definition: - * Reasons why a vaccine was administered - *

- */ - public BoundCodeableConceptDt addReason(ImmunizationReasonCodesEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ImmunizationReasonCodesEnum.VALUESET_BINDER, theValue); - getReason().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for reason (Why immunization occurred), - * creating it if it does not already exist. - * - *

- * Definition: - * Reasons why a vaccine was administered - *

- */ - public BoundCodeableConceptDt getReasonFirstRep() { - if (getReason().size() == 0) { - addReason(); - } - return getReason().get(0); - } - - /** - * Add a value for reason (Why immunization occurred) - * - *

- * Definition: - * Reasons why a vaccine was administered - *

- */ - public BoundCodeableConceptDt addReason() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(ImmunizationReasonCodesEnum.VALUESET_BINDER); - getReason().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for reason (Why immunization occurred) - * - *

- * Definition: - * Reasons why a vaccine was administered - *

- */ - public Explanation setReason(ImmunizationReasonCodesEnum theValue) { - getReason().clear(); - addReason(theValue); - return this; - } - - - /** - * Gets the value(s) for refusalReason (Why immunization did not occur). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Refusal or exemption reasons - *

- */ - public java.util.List getRefusalReason() { - if (myRefusalReason == null) { - myRefusalReason = new java.util.ArrayList(); - } - return myRefusalReason; - } - - - /** - * Gets the value(s) for refusalReason (Why immunization did not occur). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Refusal or exemption reasons - *

- */ - public java.util.List getRefusalReasonElement() { - if (myRefusalReason == null) { - myRefusalReason = new java.util.ArrayList(); - } - return myRefusalReason; - } - - - /** - * Sets the value(s) for refusalReason (Why immunization did not occur) - * - *

- * Definition: - * Refusal or exemption reasons - *

- */ - public Explanation setRefusalReason(java.util.List theValue) { - myRefusalReason = theValue; - return this; - } - - /** - * Adds and returns a new value for refusalReason (Why immunization did not occur) - * - *

- * Definition: - * Refusal or exemption reasons - *

- */ - public CodeableConceptDt addRefusalReason() { - CodeableConceptDt newType = new CodeableConceptDt(); - getRefusalReason().add(newType); - return newType; - } - - /** - * Gets the first repetition for refusalReason (Why immunization did not occur), - * creating it if it does not already exist. - * - *

- * Definition: - * Refusal or exemption reasons - *

- */ - public CodeableConceptDt getRefusalReasonFirstRep() { - if (getRefusalReason().isEmpty()) { - return addRefusalReason(); - } - return getRefusalReason().get(0); - } - - - } - - - /** - * Block class for child element: Immunization.reaction (Details of a reaction that follows immunization) - * - *

- * Definition: - * Categorical data indicating that an adverse event is associated in time to an immunization - *

- */ - @Block() - public static class Reaction - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="date", type=DateTimeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="When did reaction start?", - formalDefinition="Date of reaction to the immunization" - ) - private DateTimeDt myDate; - - @Child(name="detail", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.AdverseReaction.class, ca.uhn.fhir.model.dstu.resource.Observation.class }) - @Description( - shortDefinition="Additional information on reaction", - formalDefinition="Details of the reaction" - ) - private ResourceReferenceDt myDetail; - - @Child(name="reported", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Was reaction self-reported?", - formalDefinition="Self-reported indicator" - ) - private BooleanDt myReported; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDate, myDetail, myReported); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDate, myDetail, myReported); - } - - /** - * Gets the value(s) for date (When did reaction start?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date of reaction to the immunization - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (When did reaction start?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date of reaction to the immunization - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (When did reaction start?) - * - *

- * Definition: - * Date of reaction to the immunization - *

- */ - public Reaction setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When did reaction start?) - * - *

- * Definition: - * Date of reaction to the immunization - *

- */ - public Reaction setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (When did reaction start?) - * - *

- * Definition: - * Date of reaction to the immunization - *

- */ - public Reaction setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for detail (Additional information on reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the reaction - *

- */ - public ResourceReferenceDt getDetail() { - if (myDetail == null) { - myDetail = new ResourceReferenceDt(); - } - return myDetail; - } - - - /** - * Gets the value(s) for detail (Additional information on reaction). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the reaction - *

- */ - public ResourceReferenceDt getDetailElement() { - if (myDetail == null) { - myDetail = new ResourceReferenceDt(); - } - return myDetail; - } - - - /** - * Sets the value(s) for detail (Additional information on reaction) - * - *

- * Definition: - * Details of the reaction - *

- */ - public Reaction setDetail(ResourceReferenceDt theValue) { - myDetail = theValue; - return this; - } - - - /** - * Gets the value(s) for reported (Was reaction self-reported?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Self-reported indicator - *

- */ - public BooleanDt getReported() { - if (myReported == null) { - myReported = new BooleanDt(); - } - return myReported; - } - - - /** - * Gets the value(s) for reported (Was reaction self-reported?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Self-reported indicator - *

- */ - public BooleanDt getReportedElement() { - if (myReported == null) { - myReported = new BooleanDt(); - } - return myReported; - } - - - /** - * Sets the value(s) for reported (Was reaction self-reported?) - * - *

- * Definition: - * Self-reported indicator - *

- */ - public Reaction setReported(BooleanDt theValue) { - myReported = theValue; - return this; - } - - /** - * Sets the value for reported (Was reaction self-reported?) - * - *

- * Definition: - * Self-reported indicator - *

- */ - public Reaction setReported( boolean theBoolean) { - myReported = new BooleanDt(theBoolean); - return this; - } - - - - } - - - /** - * Block class for child element: Immunization.vaccinationProtocol (What protocol was followed) - * - *

- * Definition: - * Contains information about the protocol(s) under which the vaccine was administered - *

- */ - @Block() - public static class VaccinationProtocol - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="doseSequence", type=IntegerDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="What dose number within series?", - formalDefinition="Nominal position in a series" - ) - private IntegerDt myDoseSequence; - - @Child(name="description", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Details of vaccine protocol", - formalDefinition="Contains the description about the protocol under which the vaccine was administered" - ) - private StringDt myDescription; - - @Child(name="authority", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Who is responsible for protocol", - formalDefinition="Indicates the authority who published the protocol? E.g. ACIP" - ) - private ResourceReferenceDt myAuthority; - - @Child(name="series", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Name of vaccine series", - formalDefinition="One possible path to achieve presumed immunity against a disease - within the context of an authority" - ) - private StringDt mySeries; - - @Child(name="seriesDoses", type=IntegerDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Recommended number of doses for immunity", - formalDefinition="The recommended number of doses to achieve immunity." - ) - private IntegerDt mySeriesDoses; - - @Child(name="doseTarget", type=CodeableConceptDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Disease immunized against", - formalDefinition="The targeted disease" - ) - private CodeableConceptDt myDoseTarget; - - @Child(name="doseStatus", type=CodeableConceptDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="Does dose count towards immunity?", - formalDefinition="Indicates if the immunization event should \"count\" against the protocol." - ) - private CodeableConceptDt myDoseStatus; - - @Child(name="doseStatusReason", type=CodeableConceptDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Why does does count/not count?", - formalDefinition="Provides an explanation as to why a immunization event should or should not count against the protocol." - ) - private CodeableConceptDt myDoseStatusReason; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDoseSequence, myDescription, myAuthority, mySeries, mySeriesDoses, myDoseTarget, myDoseStatus, myDoseStatusReason); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDoseSequence, myDescription, myAuthority, mySeries, mySeriesDoses, myDoseTarget, myDoseStatus, myDoseStatusReason); - } - - /** - * Gets the value(s) for doseSequence (What dose number within series?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Nominal position in a series - *

- */ - public IntegerDt getDoseSequence() { - if (myDoseSequence == null) { - myDoseSequence = new IntegerDt(); - } - return myDoseSequence; - } - - - /** - * Gets the value(s) for doseSequence (What dose number within series?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Nominal position in a series - *

- */ - public IntegerDt getDoseSequenceElement() { - if (myDoseSequence == null) { - myDoseSequence = new IntegerDt(); - } - return myDoseSequence; - } - - - /** - * Sets the value(s) for doseSequence (What dose number within series?) - * - *

- * Definition: - * Nominal position in a series - *

- */ - public VaccinationProtocol setDoseSequence(IntegerDt theValue) { - myDoseSequence = theValue; - return this; - } - - /** - * Sets the value for doseSequence (What dose number within series?) - * - *

- * Definition: - * Nominal position in a series - *

- */ - public VaccinationProtocol setDoseSequence( int theInteger) { - myDoseSequence = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for description (Details of vaccine protocol). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contains the description about the protocol under which the vaccine was administered - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Details of vaccine protocol). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contains the description about the protocol under which the vaccine was administered - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Details of vaccine protocol) - * - *

- * Definition: - * Contains the description about the protocol under which the vaccine was administered - *

- */ - public VaccinationProtocol setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Details of vaccine protocol) - * - *

- * Definition: - * Contains the description about the protocol under which the vaccine was administered - *

- */ - public VaccinationProtocol setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for authority (Who is responsible for protocol). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the authority who published the protocol? E.g. ACIP - *

- */ - public ResourceReferenceDt getAuthority() { - if (myAuthority == null) { - myAuthority = new ResourceReferenceDt(); - } - return myAuthority; - } - - - /** - * Gets the value(s) for authority (Who is responsible for protocol). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the authority who published the protocol? E.g. ACIP - *

- */ - public ResourceReferenceDt getAuthorityElement() { - if (myAuthority == null) { - myAuthority = new ResourceReferenceDt(); - } - return myAuthority; - } - - - /** - * Sets the value(s) for authority (Who is responsible for protocol) - * - *

- * Definition: - * Indicates the authority who published the protocol? E.g. ACIP - *

- */ - public VaccinationProtocol setAuthority(ResourceReferenceDt theValue) { - myAuthority = theValue; - return this; - } - - - /** - * Gets the value(s) for series (Name of vaccine series). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * One possible path to achieve presumed immunity against a disease - within the context of an authority - *

- */ - public StringDt getSeries() { - if (mySeries == null) { - mySeries = new StringDt(); - } - return mySeries; - } - - - /** - * Gets the value(s) for series (Name of vaccine series). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * One possible path to achieve presumed immunity against a disease - within the context of an authority - *

- */ - public StringDt getSeriesElement() { - if (mySeries == null) { - mySeries = new StringDt(); - } - return mySeries; - } - - - /** - * Sets the value(s) for series (Name of vaccine series) - * - *

- * Definition: - * One possible path to achieve presumed immunity against a disease - within the context of an authority - *

- */ - public VaccinationProtocol setSeries(StringDt theValue) { - mySeries = theValue; - return this; - } - - /** - * Sets the value for series (Name of vaccine series) - * - *

- * Definition: - * One possible path to achieve presumed immunity against a disease - within the context of an authority - *

- */ - public VaccinationProtocol setSeries( String theString) { - mySeries = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for seriesDoses (Recommended number of doses for immunity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The recommended number of doses to achieve immunity. - *

- */ - public IntegerDt getSeriesDoses() { - if (mySeriesDoses == null) { - mySeriesDoses = new IntegerDt(); - } - return mySeriesDoses; - } - - - /** - * Gets the value(s) for seriesDoses (Recommended number of doses for immunity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The recommended number of doses to achieve immunity. - *

- */ - public IntegerDt getSeriesDosesElement() { - if (mySeriesDoses == null) { - mySeriesDoses = new IntegerDt(); - } - return mySeriesDoses; - } - - - /** - * Sets the value(s) for seriesDoses (Recommended number of doses for immunity) - * - *

- * Definition: - * The recommended number of doses to achieve immunity. - *

- */ - public VaccinationProtocol setSeriesDoses(IntegerDt theValue) { - mySeriesDoses = theValue; - return this; - } - - /** - * Sets the value for seriesDoses (Recommended number of doses for immunity) - * - *

- * Definition: - * The recommended number of doses to achieve immunity. - *

- */ - public VaccinationProtocol setSeriesDoses( int theInteger) { - mySeriesDoses = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for doseTarget (Disease immunized against). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The targeted disease - *

- */ - public CodeableConceptDt getDoseTarget() { - if (myDoseTarget == null) { - myDoseTarget = new CodeableConceptDt(); - } - return myDoseTarget; - } - - - /** - * Gets the value(s) for doseTarget (Disease immunized against). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The targeted disease - *

- */ - public CodeableConceptDt getDoseTargetElement() { - if (myDoseTarget == null) { - myDoseTarget = new CodeableConceptDt(); - } - return myDoseTarget; - } - - - /** - * Sets the value(s) for doseTarget (Disease immunized against) - * - *

- * Definition: - * The targeted disease - *

- */ - public VaccinationProtocol setDoseTarget(CodeableConceptDt theValue) { - myDoseTarget = theValue; - return this; - } - - - /** - * Gets the value(s) for doseStatus (Does dose count towards immunity?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates if the immunization event should \"count\" against the protocol. - *

- */ - public CodeableConceptDt getDoseStatus() { - if (myDoseStatus == null) { - myDoseStatus = new CodeableConceptDt(); - } - return myDoseStatus; - } - - - /** - * Gets the value(s) for doseStatus (Does dose count towards immunity?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates if the immunization event should \"count\" against the protocol. - *

- */ - public CodeableConceptDt getDoseStatusElement() { - if (myDoseStatus == null) { - myDoseStatus = new CodeableConceptDt(); - } - return myDoseStatus; - } - - - /** - * Sets the value(s) for doseStatus (Does dose count towards immunity?) - * - *

- * Definition: - * Indicates if the immunization event should \"count\" against the protocol. - *

- */ - public VaccinationProtocol setDoseStatus(CodeableConceptDt theValue) { - myDoseStatus = theValue; - return this; - } - - - /** - * Gets the value(s) for doseStatusReason (Why does does count/not count?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Provides an explanation as to why a immunization event should or should not count against the protocol. - *

- */ - public CodeableConceptDt getDoseStatusReason() { - if (myDoseStatusReason == null) { - myDoseStatusReason = new CodeableConceptDt(); - } - return myDoseStatusReason; - } - - - /** - * Gets the value(s) for doseStatusReason (Why does does count/not count?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Provides an explanation as to why a immunization event should or should not count against the protocol. - *

- */ - public CodeableConceptDt getDoseStatusReasonElement() { - if (myDoseStatusReason == null) { - myDoseStatusReason = new CodeableConceptDt(); - } - return myDoseStatusReason; - } - - - /** - * Sets the value(s) for doseStatusReason (Why does does count/not count?) - * - *

- * Definition: - * Provides an explanation as to why a immunization event should or should not count against the protocol. - *

- */ - public VaccinationProtocol setDoseStatusReason(CodeableConceptDt theValue) { - myDoseStatusReason = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Immunization"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ImmunizationRecommendation.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ImmunizationRecommendation.java deleted file mode 100644 index 8542b1b1993..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ImmunizationRecommendation.java +++ /dev/null @@ -1,1799 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR ImmunizationRecommendation Resource - * (Immunization profile) - * - *

- * Definition: - * A patient's point-of-time immunization status and recommendation with optional supporting justification - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/ImmunizationRecommendation - *

- * - */ -@ResourceDef(name="ImmunizationRecommendation", profile="http://hl7.org/fhir/profiles/ImmunizationRecommendation", id="immunizationrecommendation") -public class ImmunizationRecommendation - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: ImmunizationRecommendation.subject
- *

- */ - @SearchParamDefinition(name="subject", path="ImmunizationRecommendation.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: ImmunizationRecommendation.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ImmunizationRecommendation.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("ImmunizationRecommendation.subject"); - - /** - * Search parameter constant for vaccine-type - *

- * Description:
- * Type: token
- * Path: ImmunizationRecommendation.recommendation.vaccineType
- *

- */ - @SearchParamDefinition(name="vaccine-type", path="ImmunizationRecommendation.recommendation.vaccineType", description="", type="token" ) - public static final String SP_VACCINE_TYPE = "vaccine-type"; - - /** - * Fluent Client search parameter constant for vaccine-type - *

- * Description:
- * Type: token
- * Path: ImmunizationRecommendation.recommendation.vaccineType
- *

- */ - public static final TokenClientParam VACCINE_TYPE = new TokenClientParam(SP_VACCINE_TYPE); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: ImmunizationRecommendation.identifier
- *

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

- * Description:
- * Type: token
- * Path: ImmunizationRecommendation.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: ImmunizationRecommendation.recommendation.date
- *

- */ - @SearchParamDefinition(name="date", path="ImmunizationRecommendation.recommendation.date", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: ImmunizationRecommendation.recommendation.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for dose-number - *

- * Description:
- * Type: number
- * Path: ImmunizationRecommendation.recommendation.doseNumber
- *

- */ - @SearchParamDefinition(name="dose-number", path="ImmunizationRecommendation.recommendation.doseNumber", description="", type="number" ) - public static final String SP_DOSE_NUMBER = "dose-number"; - - /** - * Fluent Client search parameter constant for dose-number - *

- * Description:
- * Type: number
- * Path: ImmunizationRecommendation.recommendation.doseNumber
- *

- */ - public static final NumberClientParam DOSE_NUMBER = new NumberClientParam(SP_DOSE_NUMBER); - - /** - * Search parameter constant for status - *

- * Description:
- * Type: token
- * Path: ImmunizationRecommendation.recommendation.forecastStatus
- *

- */ - @SearchParamDefinition(name="status", path="ImmunizationRecommendation.recommendation.forecastStatus", description="", type="token" ) - public static final String SP_STATUS = "status"; - - /** - * Fluent Client search parameter constant for status - *

- * Description:
- * Type: token
- * Path: ImmunizationRecommendation.recommendation.forecastStatus
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for dose-sequence - *

- * Description:
- * Type: token
- * Path: ImmunizationRecommendation.recommendation.protocol.doseSequence
- *

- */ - @SearchParamDefinition(name="dose-sequence", path="ImmunizationRecommendation.recommendation.protocol.doseSequence", description="", type="token" ) - public static final String SP_DOSE_SEQUENCE = "dose-sequence"; - - /** - * Fluent Client search parameter constant for dose-sequence - *

- * Description:
- * Type: token
- * Path: ImmunizationRecommendation.recommendation.protocol.doseSequence
- *

- */ - public static final TokenClientParam DOSE_SEQUENCE = new TokenClientParam(SP_DOSE_SEQUENCE); - - /** - * Search parameter constant for support - *

- * Description:
- * Type: reference
- * Path: ImmunizationRecommendation.recommendation.supportingImmunization
- *

- */ - @SearchParamDefinition(name="support", path="ImmunizationRecommendation.recommendation.supportingImmunization", description="", type="reference" ) - public static final String SP_SUPPORT = "support"; - - /** - * Fluent Client search parameter constant for support - *

- * Description:
- * Type: reference
- * Path: ImmunizationRecommendation.recommendation.supportingImmunization
- *

- */ - public static final ReferenceClientParam SUPPORT = new ReferenceClientParam(SP_SUPPORT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ImmunizationRecommendation.recommendation.supportingImmunization". - */ - public static final Include INCLUDE_RECOMMENDATION_SUPPORTINGIMMUNIZATION = new Include("ImmunizationRecommendation.recommendation.supportingImmunization"); - - /** - * Search parameter constant for information - *

- * Description:
- * Type: reference
- * Path: ImmunizationRecommendation.recommendation.supportingPatientInformation
- *

- */ - @SearchParamDefinition(name="information", path="ImmunizationRecommendation.recommendation.supportingPatientInformation", description="", type="reference" ) - public static final String SP_INFORMATION = "information"; - - /** - * Fluent Client search parameter constant for information - *

- * Description:
- * Type: reference
- * Path: ImmunizationRecommendation.recommendation.supportingPatientInformation
- *

- */ - public static final ReferenceClientParam INFORMATION = new ReferenceClientParam(SP_INFORMATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ImmunizationRecommendation.recommendation.supportingPatientInformation". - */ - public static final Include INCLUDE_RECOMMENDATION_SUPPORTINGPATIENTINFORMATION = new Include("ImmunizationRecommendation.recommendation.supportingPatientInformation"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Business identifier", - formalDefinition="A unique identifier assigned to this particular recommendation record." - ) - private java.util.List myIdentifier; - - @Child(name="subject", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who this profile is for", - formalDefinition="The patient who is the subject of the profile" - ) - private ResourceReferenceDt mySubject; - - @Child(name="recommendation", order=2, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Vaccine administration recommendations", - formalDefinition="Vaccine administration recommendations" - ) - private java.util.List myRecommendation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, mySubject, myRecommendation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, mySubject, myRecommendation); - } - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier assigned to this particular recommendation record. - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier assigned to this particular recommendation record. - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Business identifier) - * - *

- * Definition: - * A unique identifier assigned to this particular recommendation record. - *

- */ - public ImmunizationRecommendation setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Business identifier) - * - *

- * Definition: - * A unique identifier assigned to this particular recommendation record. - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Business identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * A unique identifier assigned to this particular recommendation record. - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * A unique identifier assigned to this particular recommendation record. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ImmunizationRecommendation addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * A unique identifier assigned to this particular recommendation record. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ImmunizationRecommendation addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for subject (Who this profile is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient who is the subject of the profile - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who this profile is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient who is the subject of the profile - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who this profile is for) - * - *

- * Definition: - * The patient who is the subject of the profile - *

- */ - public ImmunizationRecommendation setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for recommendation (Vaccine administration recommendations). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine administration recommendations - *

- */ - public java.util.List getRecommendation() { - if (myRecommendation == null) { - myRecommendation = new java.util.ArrayList(); - } - return myRecommendation; - } - - - /** - * Gets the value(s) for recommendation (Vaccine administration recommendations). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine administration recommendations - *

- */ - public java.util.List getRecommendationElement() { - if (myRecommendation == null) { - myRecommendation = new java.util.ArrayList(); - } - return myRecommendation; - } - - - /** - * Sets the value(s) for recommendation (Vaccine administration recommendations) - * - *

- * Definition: - * Vaccine administration recommendations - *

- */ - public ImmunizationRecommendation setRecommendation(java.util.List theValue) { - myRecommendation = theValue; - return this; - } - - /** - * Adds and returns a new value for recommendation (Vaccine administration recommendations) - * - *

- * Definition: - * Vaccine administration recommendations - *

- */ - public Recommendation addRecommendation() { - Recommendation newType = new Recommendation(); - getRecommendation().add(newType); - return newType; - } - - /** - * Gets the first repetition for recommendation (Vaccine administration recommendations), - * creating it if it does not already exist. - * - *

- * Definition: - * Vaccine administration recommendations - *

- */ - public Recommendation getRecommendationFirstRep() { - if (getRecommendation().isEmpty()) { - return addRecommendation(); - } - return getRecommendation().get(0); - } - - /** - * Block class for child element: ImmunizationRecommendation.recommendation (Vaccine administration recommendations) - * - *

- * Definition: - * Vaccine administration recommendations - *

- */ - @Block() - public static class Recommendation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="date", type=DateTimeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Date recommendation created", - formalDefinition="The date the immunization recommendation was created." - ) - private DateTimeDt myDate; - - @Child(name="vaccineType", type=CodeableConceptDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Vaccine recommendation applies to", - formalDefinition="Vaccine that pertains to the recommendation" - ) - private CodeableConceptDt myVaccineType; - - @Child(name="doseNumber", type=IntegerDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Recommended dose number", - formalDefinition="This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose)." - ) - private IntegerDt myDoseNumber; - - @Child(name="forecastStatus", type=CodeableConceptDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Vaccine administration status", - formalDefinition="Vaccine administration status" - ) - private BoundCodeableConceptDt myForecastStatus; - - @Child(name="dateCriterion", order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Dates governing proposed immunization", - formalDefinition="Vaccine date recommendations - e.g. earliest date to administer, latest date to administer, etc." - ) - private java.util.List myDateCriterion; - - @Child(name="protocol", order=5, min=0, max=1) - @Description( - shortDefinition="Protocol used by recommendation", - formalDefinition="Contains information about the protocol under which the vaccine was administered" - ) - private RecommendationProtocol myProtocol; - - @Child(name="supportingImmunization", order=6, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Immunization.class }) - @Description( - shortDefinition="Past immunizations supporting recommendation", - formalDefinition="Immunization event history that supports the status and recommendation" - ) - private java.util.List mySupportingImmunization; - - @Child(name="supportingPatientInformation", order=7, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Observation.class, ca.uhn.fhir.model.dstu.resource.AdverseReaction.class, ca.uhn.fhir.model.dstu.resource.AllergyIntolerance.class }) - @Description( - shortDefinition="Patient observations supporting recommendation", - formalDefinition="Patient Information that supports the status and recommendation. This includes patient observations, adverse reactions and allergy/intolerance information." - ) - private java.util.List mySupportingPatientInformation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDate, myVaccineType, myDoseNumber, myForecastStatus, myDateCriterion, myProtocol, mySupportingImmunization, mySupportingPatientInformation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDate, myVaccineType, myDoseNumber, myForecastStatus, myDateCriterion, myProtocol, mySupportingImmunization, mySupportingPatientInformation); - } - - /** - * Gets the value(s) for date (Date recommendation created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date the immunization recommendation was created. - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Date recommendation created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date the immunization recommendation was created. - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Date recommendation created) - * - *

- * Definition: - * The date the immunization recommendation was created. - *

- */ - public Recommendation setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Date recommendation created) - * - *

- * Definition: - * The date the immunization recommendation was created. - *

- */ - public Recommendation setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Date recommendation created) - * - *

- * Definition: - * The date the immunization recommendation was created. - *

- */ - public Recommendation setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for vaccineType (Vaccine recommendation applies to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine that pertains to the recommendation - *

- */ - public CodeableConceptDt getVaccineType() { - if (myVaccineType == null) { - myVaccineType = new CodeableConceptDt(); - } - return myVaccineType; - } - - - /** - * Gets the value(s) for vaccineType (Vaccine recommendation applies to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine that pertains to the recommendation - *

- */ - public CodeableConceptDt getVaccineTypeElement() { - if (myVaccineType == null) { - myVaccineType = new CodeableConceptDt(); - } - return myVaccineType; - } - - - /** - * Sets the value(s) for vaccineType (Vaccine recommendation applies to) - * - *

- * Definition: - * Vaccine that pertains to the recommendation - *

- */ - public Recommendation setVaccineType(CodeableConceptDt theValue) { - myVaccineType = theValue; - return this; - } - - - /** - * Gets the value(s) for doseNumber (Recommended dose number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose). - *

- */ - public IntegerDt getDoseNumber() { - if (myDoseNumber == null) { - myDoseNumber = new IntegerDt(); - } - return myDoseNumber; - } - - - /** - * Gets the value(s) for doseNumber (Recommended dose number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose). - *

- */ - public IntegerDt getDoseNumberElement() { - if (myDoseNumber == null) { - myDoseNumber = new IntegerDt(); - } - return myDoseNumber; - } - - - /** - * Sets the value(s) for doseNumber (Recommended dose number) - * - *

- * Definition: - * This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose). - *

- */ - public Recommendation setDoseNumber(IntegerDt theValue) { - myDoseNumber = theValue; - return this; - } - - /** - * Sets the value for doseNumber (Recommended dose number) - * - *

- * Definition: - * This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose). - *

- */ - public Recommendation setDoseNumber( int theInteger) { - myDoseNumber = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for forecastStatus (Vaccine administration status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine administration status - *

- */ - public BoundCodeableConceptDt getForecastStatus() { - if (myForecastStatus == null) { - myForecastStatus = new BoundCodeableConceptDt(ImmunizationRecommendationStatusCodesEnum.VALUESET_BINDER); - } - return myForecastStatus; - } - - - /** - * Gets the value(s) for forecastStatus (Vaccine administration status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine administration status - *

- */ - public BoundCodeableConceptDt getForecastStatusElement() { - if (myForecastStatus == null) { - myForecastStatus = new BoundCodeableConceptDt(ImmunizationRecommendationStatusCodesEnum.VALUESET_BINDER); - } - return myForecastStatus; - } - - - /** - * Sets the value(s) for forecastStatus (Vaccine administration status) - * - *

- * Definition: - * Vaccine administration status - *

- */ - public Recommendation setForecastStatus(BoundCodeableConceptDt theValue) { - myForecastStatus = theValue; - return this; - } - - /** - * Sets the value(s) for forecastStatus (Vaccine administration status) - * - *

- * Definition: - * Vaccine administration status - *

- */ - public Recommendation setForecastStatus(ImmunizationRecommendationStatusCodesEnum theValue) { - getForecastStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for dateCriterion (Dates governing proposed immunization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine date recommendations - e.g. earliest date to administer, latest date to administer, etc. - *

- */ - public java.util.List getDateCriterion() { - if (myDateCriterion == null) { - myDateCriterion = new java.util.ArrayList(); - } - return myDateCriterion; - } - - - /** - * Gets the value(s) for dateCriterion (Dates governing proposed immunization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Vaccine date recommendations - e.g. earliest date to administer, latest date to administer, etc. - *

- */ - public java.util.List getDateCriterionElement() { - if (myDateCriterion == null) { - myDateCriterion = new java.util.ArrayList(); - } - return myDateCriterion; - } - - - /** - * Sets the value(s) for dateCriterion (Dates governing proposed immunization) - * - *

- * Definition: - * Vaccine date recommendations - e.g. earliest date to administer, latest date to administer, etc. - *

- */ - public Recommendation setDateCriterion(java.util.List theValue) { - myDateCriterion = theValue; - return this; - } - - /** - * Adds and returns a new value for dateCriterion (Dates governing proposed immunization) - * - *

- * Definition: - * Vaccine date recommendations - e.g. earliest date to administer, latest date to administer, etc. - *

- */ - public RecommendationDateCriterion addDateCriterion() { - RecommendationDateCriterion newType = new RecommendationDateCriterion(); - getDateCriterion().add(newType); - return newType; - } - - /** - * Gets the first repetition for dateCriterion (Dates governing proposed immunization), - * creating it if it does not already exist. - * - *

- * Definition: - * Vaccine date recommendations - e.g. earliest date to administer, latest date to administer, etc. - *

- */ - public RecommendationDateCriterion getDateCriterionFirstRep() { - if (getDateCriterion().isEmpty()) { - return addDateCriterion(); - } - return getDateCriterion().get(0); - } - - /** - * Gets the value(s) for protocol (Protocol used by recommendation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contains information about the protocol under which the vaccine was administered - *

- */ - public RecommendationProtocol getProtocol() { - if (myProtocol == null) { - myProtocol = new RecommendationProtocol(); - } - return myProtocol; - } - - - /** - * Gets the value(s) for protocol (Protocol used by recommendation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contains information about the protocol under which the vaccine was administered - *

- */ - public RecommendationProtocol getProtocolElement() { - if (myProtocol == null) { - myProtocol = new RecommendationProtocol(); - } - return myProtocol; - } - - - /** - * Sets the value(s) for protocol (Protocol used by recommendation) - * - *

- * Definition: - * Contains information about the protocol under which the vaccine was administered - *

- */ - public Recommendation setProtocol(RecommendationProtocol theValue) { - myProtocol = theValue; - return this; - } - - - /** - * Gets the value(s) for supportingImmunization (Past immunizations supporting recommendation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Immunization event history that supports the status and recommendation - *

- */ - public java.util.List getSupportingImmunization() { - if (mySupportingImmunization == null) { - mySupportingImmunization = new java.util.ArrayList(); - } - return mySupportingImmunization; - } - - - /** - * Gets the value(s) for supportingImmunization (Past immunizations supporting recommendation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Immunization event history that supports the status and recommendation - *

- */ - public java.util.List getSupportingImmunizationElement() { - if (mySupportingImmunization == null) { - mySupportingImmunization = new java.util.ArrayList(); - } - return mySupportingImmunization; - } - - - /** - * Sets the value(s) for supportingImmunization (Past immunizations supporting recommendation) - * - *

- * Definition: - * Immunization event history that supports the status and recommendation - *

- */ - public Recommendation setSupportingImmunization(java.util.List theValue) { - mySupportingImmunization = theValue; - return this; - } - - /** - * Adds and returns a new value for supportingImmunization (Past immunizations supporting recommendation) - * - *

- * Definition: - * Immunization event history that supports the status and recommendation - *

- */ - public ResourceReferenceDt addSupportingImmunization() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSupportingImmunization().add(newType); - return newType; - } - - /** - * Gets the value(s) for supportingPatientInformation (Patient observations supporting recommendation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient Information that supports the status and recommendation. This includes patient observations, adverse reactions and allergy/intolerance information. - *

- */ - public java.util.List getSupportingPatientInformation() { - if (mySupportingPatientInformation == null) { - mySupportingPatientInformation = new java.util.ArrayList(); - } - return mySupportingPatientInformation; - } - - - /** - * Gets the value(s) for supportingPatientInformation (Patient observations supporting recommendation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient Information that supports the status and recommendation. This includes patient observations, adverse reactions and allergy/intolerance information. - *

- */ - public java.util.List getSupportingPatientInformationElement() { - if (mySupportingPatientInformation == null) { - mySupportingPatientInformation = new java.util.ArrayList(); - } - return mySupportingPatientInformation; - } - - - /** - * Sets the value(s) for supportingPatientInformation (Patient observations supporting recommendation) - * - *

- * Definition: - * Patient Information that supports the status and recommendation. This includes patient observations, adverse reactions and allergy/intolerance information. - *

- */ - public Recommendation setSupportingPatientInformation(java.util.List theValue) { - mySupportingPatientInformation = theValue; - return this; - } - - /** - * Adds and returns a new value for supportingPatientInformation (Patient observations supporting recommendation) - * - *

- * Definition: - * Patient Information that supports the status and recommendation. This includes patient observations, adverse reactions and allergy/intolerance information. - *

- */ - public ResourceReferenceDt addSupportingPatientInformation() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSupportingPatientInformation().add(newType); - return newType; - } - - - } - - /** - * Block class for child element: ImmunizationRecommendation.recommendation.dateCriterion (Dates governing proposed immunization) - * - *

- * Definition: - * Vaccine date recommendations - e.g. earliest date to administer, latest date to administer, etc. - *

- */ - @Block() - public static class RecommendationDateCriterion - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Type of date", - formalDefinition="Date classification of recommendation - e.g. earliest date to give, latest date to give, etc." - ) - private BoundCodeableConceptDt myCode; - - @Child(name="value", type=DateTimeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Recommended date", - formalDefinition="Date recommendation" - ) - private DateTimeDt myValue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myValue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myValue); - } - - /** - * Gets the value(s) for code (Type of date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date classification of recommendation - e.g. earliest date to give, latest date to give, etc. - *

- */ - public BoundCodeableConceptDt getCode() { - if (myCode == null) { - myCode = new BoundCodeableConceptDt(ImmunizationRecommendationDateCriterionCodesEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Type of date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date classification of recommendation - e.g. earliest date to give, latest date to give, etc. - *

- */ - public BoundCodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeableConceptDt(ImmunizationRecommendationDateCriterionCodesEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Type of date) - * - *

- * Definition: - * Date classification of recommendation - e.g. earliest date to give, latest date to give, etc. - *

- */ - public RecommendationDateCriterion setCode(BoundCodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value(s) for code (Type of date) - * - *

- * Definition: - * Date classification of recommendation - e.g. earliest date to give, latest date to give, etc. - *

- */ - public RecommendationDateCriterion setCode(ImmunizationRecommendationDateCriterionCodesEnum theValue) { - getCode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for value (Recommended date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date recommendation - *

- */ - public DateTimeDt getValue() { - if (myValue == null) { - myValue = new DateTimeDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Recommended date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date recommendation - *

- */ - public DateTimeDt getValueElement() { - if (myValue == null) { - myValue = new DateTimeDt(); - } - return myValue; - } - - - /** - * Sets the value(s) for value (Recommended date) - * - *

- * Definition: - * Date recommendation - *

- */ - public RecommendationDateCriterion setValue(DateTimeDt theValue) { - myValue = theValue; - return this; - } - - /** - * Sets the value for value (Recommended date) - * - *

- * Definition: - * Date recommendation - *

- */ - public RecommendationDateCriterion setValue( Date theDate, TemporalPrecisionEnum thePrecision) { - myValue = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for value (Recommended date) - * - *

- * Definition: - * Date recommendation - *

- */ - public RecommendationDateCriterion setValueWithSecondsPrecision( Date theDate) { - myValue = new DateTimeDt(theDate); - return this; - } - - - - } - - - /** - * Block class for child element: ImmunizationRecommendation.recommendation.protocol (Protocol used by recommendation) - * - *

- * Definition: - * Contains information about the protocol under which the vaccine was administered - *

- */ - @Block() - public static class RecommendationProtocol - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="doseSequence", type=IntegerDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Number of dose within sequence", - formalDefinition="Indicates the nominal position in a series of the next dose. This is the recommended dose number as per a specified protocol." - ) - private IntegerDt myDoseSequence; - - @Child(name="description", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Protocol details", - formalDefinition="Contains the description about the protocol under which the vaccine was administered" - ) - private StringDt myDescription; - - @Child(name="authority", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Who is responsible for protocol", - formalDefinition="Indicates the authority who published the protocol? E.g. ACIP" - ) - private ResourceReferenceDt myAuthority; - - @Child(name="series", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Name of vaccination series", - formalDefinition="One possible path to achieve presumed immunity against a disease - within the context of an authority" - ) - private StringDt mySeries; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDoseSequence, myDescription, myAuthority, mySeries); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDoseSequence, myDescription, myAuthority, mySeries); - } - - /** - * Gets the value(s) for doseSequence (Number of dose within sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the nominal position in a series of the next dose. This is the recommended dose number as per a specified protocol. - *

- */ - public IntegerDt getDoseSequence() { - if (myDoseSequence == null) { - myDoseSequence = new IntegerDt(); - } - return myDoseSequence; - } - - - /** - * Gets the value(s) for doseSequence (Number of dose within sequence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the nominal position in a series of the next dose. This is the recommended dose number as per a specified protocol. - *

- */ - public IntegerDt getDoseSequenceElement() { - if (myDoseSequence == null) { - myDoseSequence = new IntegerDt(); - } - return myDoseSequence; - } - - - /** - * Sets the value(s) for doseSequence (Number of dose within sequence) - * - *

- * Definition: - * Indicates the nominal position in a series of the next dose. This is the recommended dose number as per a specified protocol. - *

- */ - public RecommendationProtocol setDoseSequence(IntegerDt theValue) { - myDoseSequence = theValue; - return this; - } - - /** - * Sets the value for doseSequence (Number of dose within sequence) - * - *

- * Definition: - * Indicates the nominal position in a series of the next dose. This is the recommended dose number as per a specified protocol. - *

- */ - public RecommendationProtocol setDoseSequence( int theInteger) { - myDoseSequence = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for description (Protocol details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contains the description about the protocol under which the vaccine was administered - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Protocol details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contains the description about the protocol under which the vaccine was administered - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Protocol details) - * - *

- * Definition: - * Contains the description about the protocol under which the vaccine was administered - *

- */ - public RecommendationProtocol setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Protocol details) - * - *

- * Definition: - * Contains the description about the protocol under which the vaccine was administered - *

- */ - public RecommendationProtocol setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for authority (Who is responsible for protocol). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the authority who published the protocol? E.g. ACIP - *

- */ - public ResourceReferenceDt getAuthority() { - if (myAuthority == null) { - myAuthority = new ResourceReferenceDt(); - } - return myAuthority; - } - - - /** - * Gets the value(s) for authority (Who is responsible for protocol). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the authority who published the protocol? E.g. ACIP - *

- */ - public ResourceReferenceDt getAuthorityElement() { - if (myAuthority == null) { - myAuthority = new ResourceReferenceDt(); - } - return myAuthority; - } - - - /** - * Sets the value(s) for authority (Who is responsible for protocol) - * - *

- * Definition: - * Indicates the authority who published the protocol? E.g. ACIP - *

- */ - public RecommendationProtocol setAuthority(ResourceReferenceDt theValue) { - myAuthority = theValue; - return this; - } - - - /** - * Gets the value(s) for series (Name of vaccination series). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * One possible path to achieve presumed immunity against a disease - within the context of an authority - *

- */ - public StringDt getSeries() { - if (mySeries == null) { - mySeries = new StringDt(); - } - return mySeries; - } - - - /** - * Gets the value(s) for series (Name of vaccination series). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * One possible path to achieve presumed immunity against a disease - within the context of an authority - *

- */ - public StringDt getSeriesElement() { - if (mySeries == null) { - mySeries = new StringDt(); - } - return mySeries; - } - - - /** - * Sets the value(s) for series (Name of vaccination series) - * - *

- * Definition: - * One possible path to achieve presumed immunity against a disease - within the context of an authority - *

- */ - public RecommendationProtocol setSeries(StringDt theValue) { - mySeries = theValue; - return this; - } - - /** - * Sets the value for series (Name of vaccination series) - * - *

- * Definition: - * One possible path to achieve presumed immunity against a disease - within the context of an authority - *

- */ - public RecommendationProtocol setSeries( String theString) { - mySeries = new StringDt(theString); - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "ImmunizationRecommendation"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ListResource.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ListResource.java deleted file mode 100644 index 0977ded8bec..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ListResource.java +++ /dev/null @@ -1,1388 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR List Resource - * (Information summarized from a list of other resources) - * - *

- * Definition: - * A set of information summarized from a list of other resources - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/List - *

- * - */ -@ResourceDef(name="List", profile="http://hl7.org/fhir/profiles/List", id="list") -public class ListResource - extends BaseResource implements IResource { - - /** - * Search parameter constant for source - *

- * Description:
- * Type: reference
- * Path: List.source
- *

- */ - @SearchParamDefinition(name="source", path="List.source", description="", type="reference" ) - public static final String SP_SOURCE = "source"; - - /** - * Fluent Client search parameter constant for source - *

- * Description:
- * Type: reference
- * Path: List.source
- *

- */ - public static final ReferenceClientParam SOURCE = new ReferenceClientParam(SP_SOURCE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "List.source". - */ - public static final Include INCLUDE_SOURCE = new Include("List.source"); - - /** - * Search parameter constant for item - *

- * Description:
- * Type: reference
- * Path: List.entry.item
- *

- */ - @SearchParamDefinition(name="item", path="List.entry.item", description="", type="reference" ) - public static final String SP_ITEM = "item"; - - /** - * Fluent Client search parameter constant for item - *

- * Description:
- * Type: reference
- * Path: List.entry.item
- *

- */ - public static final ReferenceClientParam ITEM = new ReferenceClientParam(SP_ITEM); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "List.entry.item". - */ - public static final Include INCLUDE_ENTRY_ITEM = new Include("List.entry.item"); - - /** - * Search parameter constant for empty-reason - *

- * Description:
- * Type: token
- * Path: List.emptyReason
- *

- */ - @SearchParamDefinition(name="empty-reason", path="List.emptyReason", description="", type="token" ) - public static final String SP_EMPTY_REASON = "empty-reason"; - - /** - * Fluent Client search parameter constant for empty-reason - *

- * Description:
- * Type: token
- * Path: List.emptyReason
- *

- */ - public static final TokenClientParam EMPTY_REASON = new TokenClientParam(SP_EMPTY_REASON); - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: List.date
- *

- */ - @SearchParamDefinition(name="date", path="List.date", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: List.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for code - *

- * Description:
- * Type: token
- * Path: List.code
- *

- */ - @SearchParamDefinition(name="code", path="List.code", description="", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description:
- * Type: token
- * Path: List.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: List.subject
- *

- */ - @SearchParamDefinition(name="subject", path="List.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: List.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "List.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("List.subject"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Business identifier", - formalDefinition="Identifier for the List assigned for business purposes outside the context of FHIR." - ) - private java.util.List myIdentifier; - - @Child(name="code", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="What the purpose of this list is", - formalDefinition="This code defines the purpose of the list - why it was created" - ) - private CodeableConceptDt myCode; - - @Child(name="subject", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="If all resources have the same subject", - formalDefinition="The common subject (or patient) of the resources that are in the list, if there is one" - ) - private ResourceReferenceDt mySubject; - - @Child(name="source", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Who and/or what defined the list contents", - formalDefinition="The entity responsible for deciding what the contents of the list were" - ) - private ResourceReferenceDt mySource; - - @Child(name="date", type=DateTimeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="When the list was prepared", - formalDefinition="The date that the list was prepared" - ) - private DateTimeDt myDate; - - @Child(name="ordered", type=BooleanDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Whether items in the list have a meaningful order", - formalDefinition="Whether items in the list have a meaningful order" - ) - private BooleanDt myOrdered; - - @Child(name="mode", type=CodeDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="working | snapshot | changes", - formalDefinition="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted" - ) - private BoundCodeDt myMode; - - @Child(name="entry", order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Entries in the list", - formalDefinition="Entries in this list" - ) - private java.util.List myEntry; - - @Child(name="emptyReason", type=CodeableConceptDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Why list is empty", - formalDefinition="If the list is empty, why the list is empty" - ) - private CodeableConceptDt myEmptyReason; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCode, mySubject, mySource, myDate, myOrdered, myMode, myEntry, myEmptyReason); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCode, mySubject, mySource, myDate, myOrdered, myMode, myEntry, myEmptyReason); - } - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the List assigned for business purposes outside the context of FHIR. - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the List assigned for business purposes outside the context of FHIR. - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Business identifier) - * - *

- * Definition: - * Identifier for the List assigned for business purposes outside the context of FHIR. - *

- */ - public ListResource setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier for the List assigned for business purposes outside the context of FHIR. - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Business identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifier for the List assigned for business purposes outside the context of FHIR. - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier for the List assigned for business purposes outside the context of FHIR. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ListResource addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier for the List assigned for business purposes outside the context of FHIR. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ListResource addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for code (What the purpose of this list is). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This code defines the purpose of the list - why it was created - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (What the purpose of this list is). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This code defines the purpose of the list - why it was created - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (What the purpose of this list is) - * - *

- * Definition: - * This code defines the purpose of the list - why it was created - *

- */ - public ListResource setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for subject (If all resources have the same subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The common subject (or patient) of the resources that are in the list, if there is one - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (If all resources have the same subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The common subject (or patient) of the resources that are in the list, if there is one - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (If all resources have the same subject) - * - *

- * Definition: - * The common subject (or patient) of the resources that are in the list, if there is one - *

- */ - public ListResource setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for source (Who and/or what defined the list contents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The entity responsible for deciding what the contents of the list were - *

- */ - public ResourceReferenceDt getSource() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Who and/or what defined the list contents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The entity responsible for deciding what the contents of the list were - *

- */ - public ResourceReferenceDt getSourceElement() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Who and/or what defined the list contents) - * - *

- * Definition: - * The entity responsible for deciding what the contents of the list were - *

- */ - public ListResource setSource(ResourceReferenceDt theValue) { - mySource = theValue; - return this; - } - - - /** - * Gets the value(s) for date (When the list was prepared). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the list was prepared - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (When the list was prepared). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the list was prepared - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (When the list was prepared) - * - *

- * Definition: - * The date that the list was prepared - *

- */ - public ListResource setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When the list was prepared) - * - *

- * Definition: - * The date that the list was prepared - *

- */ - public ListResource setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (When the list was prepared) - * - *

- * Definition: - * The date that the list was prepared - *

- */ - public ListResource setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for ordered (Whether items in the list have a meaningful order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether items in the list have a meaningful order - *

- */ - public BooleanDt getOrdered() { - if (myOrdered == null) { - myOrdered = new BooleanDt(); - } - return myOrdered; - } - - - /** - * Gets the value(s) for ordered (Whether items in the list have a meaningful order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether items in the list have a meaningful order - *

- */ - public BooleanDt getOrderedElement() { - if (myOrdered == null) { - myOrdered = new BooleanDt(); - } - return myOrdered; - } - - - /** - * Sets the value(s) for ordered (Whether items in the list have a meaningful order) - * - *

- * Definition: - * Whether items in the list have a meaningful order - *

- */ - public ListResource setOrdered(BooleanDt theValue) { - myOrdered = theValue; - return this; - } - - /** - * Sets the value for ordered (Whether items in the list have a meaningful order) - * - *

- * Definition: - * Whether items in the list have a meaningful order - *

- */ - public ListResource setOrdered( boolean theBoolean) { - myOrdered = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for mode (working | snapshot | changes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted - *

- */ - public BoundCodeDt getMode() { - if (myMode == null) { - myMode = new BoundCodeDt(ListModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (working | snapshot | changes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted - *

- */ - public BoundCodeDt getModeElement() { - if (myMode == null) { - myMode = new BoundCodeDt(ListModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Sets the value(s) for mode (working | snapshot | changes) - * - *

- * Definition: - * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted - *

- */ - public ListResource setMode(BoundCodeDt theValue) { - myMode = theValue; - return this; - } - - /** - * Sets the value(s) for mode (working | snapshot | changes) - * - *

- * Definition: - * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted - *

- */ - public ListResource setMode(ListModeEnum theValue) { - getMode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for entry (Entries in the list). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Entries in this list - *

- */ - public java.util.List getEntry() { - if (myEntry == null) { - myEntry = new java.util.ArrayList(); - } - return myEntry; - } - - - /** - * Gets the value(s) for entry (Entries in the list). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Entries in this list - *

- */ - public java.util.List getEntryElement() { - if (myEntry == null) { - myEntry = new java.util.ArrayList(); - } - return myEntry; - } - - - /** - * Sets the value(s) for entry (Entries in the list) - * - *

- * Definition: - * Entries in this list - *

- */ - public ListResource setEntry(java.util.List theValue) { - myEntry = theValue; - return this; - } - - /** - * Adds and returns a new value for entry (Entries in the list) - * - *

- * Definition: - * Entries in this list - *

- */ - public Entry addEntry() { - Entry newType = new Entry(); - getEntry().add(newType); - return newType; - } - - /** - * Gets the first repetition for entry (Entries in the list), - * creating it if it does not already exist. - * - *

- * Definition: - * Entries in this list - *

- */ - public Entry getEntryFirstRep() { - if (getEntry().isEmpty()) { - return addEntry(); - } - return getEntry().get(0); - } - - /** - * Gets the value(s) for emptyReason (Why list is empty). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the list is empty, why the list is empty - *

- */ - public CodeableConceptDt getEmptyReason() { - if (myEmptyReason == null) { - myEmptyReason = new CodeableConceptDt(); - } - return myEmptyReason; - } - - - /** - * Gets the value(s) for emptyReason (Why list is empty). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the list is empty, why the list is empty - *

- */ - public CodeableConceptDt getEmptyReasonElement() { - if (myEmptyReason == null) { - myEmptyReason = new CodeableConceptDt(); - } - return myEmptyReason; - } - - - /** - * Sets the value(s) for emptyReason (Why list is empty) - * - *

- * Definition: - * If the list is empty, why the list is empty - *

- */ - public ListResource setEmptyReason(CodeableConceptDt theValue) { - myEmptyReason = theValue; - return this; - } - - - /** - * Block class for child element: List.entry (Entries in the list) - * - *

- * Definition: - * Entries in this list - *

- */ - @Block() - public static class Entry - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="flag", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Workflow information about this item", - formalDefinition="The flag allows the system constructing the list to make one or more statements about the role and significance of the item in the list" - ) - private java.util.List myFlag; - - @Child(name="deleted", type=BooleanDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="If this item is actually marked as deleted", - formalDefinition="True if this item is marked as deleted in the list." - ) - private BooleanDt myDeleted; - - @Child(name="date", type=DateTimeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="When item added to list", - formalDefinition="When this item was added to the list" - ) - private DateTimeDt myDate; - - @Child(name="item", order=3, min=1, max=1, type={ - IResource.class }) - @Description( - shortDefinition="Actual entry", - formalDefinition="A reference to the actual resource from which data was derived" - ) - private ResourceReferenceDt myItem; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myFlag, myDeleted, myDate, myItem); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myFlag, myDeleted, myDate, myItem); - } - - /** - * Gets the value(s) for flag (Workflow information about this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The flag allows the system constructing the list to make one or more statements about the role and significance of the item in the list - *

- */ - public java.util.List getFlag() { - if (myFlag == null) { - myFlag = new java.util.ArrayList(); - } - return myFlag; - } - - - /** - * Gets the value(s) for flag (Workflow information about this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The flag allows the system constructing the list to make one or more statements about the role and significance of the item in the list - *

- */ - public java.util.List getFlagElement() { - if (myFlag == null) { - myFlag = new java.util.ArrayList(); - } - return myFlag; - } - - - /** - * Sets the value(s) for flag (Workflow information about this item) - * - *

- * Definition: - * The flag allows the system constructing the list to make one or more statements about the role and significance of the item in the list - *

- */ - public Entry setFlag(java.util.List theValue) { - myFlag = theValue; - return this; - } - - /** - * Adds and returns a new value for flag (Workflow information about this item) - * - *

- * Definition: - * The flag allows the system constructing the list to make one or more statements about the role and significance of the item in the list - *

- */ - public CodeableConceptDt addFlag() { - CodeableConceptDt newType = new CodeableConceptDt(); - getFlag().add(newType); - return newType; - } - - /** - * Gets the first repetition for flag (Workflow information about this item), - * creating it if it does not already exist. - * - *

- * Definition: - * The flag allows the system constructing the list to make one or more statements about the role and significance of the item in the list - *

- */ - public CodeableConceptDt getFlagFirstRep() { - if (getFlag().isEmpty()) { - return addFlag(); - } - return getFlag().get(0); - } - - /** - * Gets the value(s) for deleted (If this item is actually marked as deleted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * True if this item is marked as deleted in the list. - *

- */ - public BooleanDt getDeleted() { - if (myDeleted == null) { - myDeleted = new BooleanDt(); - } - return myDeleted; - } - - - /** - * Gets the value(s) for deleted (If this item is actually marked as deleted). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * True if this item is marked as deleted in the list. - *

- */ - public BooleanDt getDeletedElement() { - if (myDeleted == null) { - myDeleted = new BooleanDt(); - } - return myDeleted; - } - - - /** - * Sets the value(s) for deleted (If this item is actually marked as deleted) - * - *

- * Definition: - * True if this item is marked as deleted in the list. - *

- */ - public Entry setDeleted(BooleanDt theValue) { - myDeleted = theValue; - return this; - } - - /** - * Sets the value for deleted (If this item is actually marked as deleted) - * - *

- * Definition: - * True if this item is marked as deleted in the list. - *

- */ - public Entry setDeleted( boolean theBoolean) { - myDeleted = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (When item added to list). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When this item was added to the list - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (When item added to list). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When this item was added to the list - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (When item added to list) - * - *

- * Definition: - * When this item was added to the list - *

- */ - public Entry setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When item added to list) - * - *

- * Definition: - * When this item was added to the list - *

- */ - public Entry setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (When item added to list) - * - *

- * Definition: - * When this item was added to the list - *

- */ - public Entry setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for item (Actual entry). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to the actual resource from which data was derived - *

- */ - public ResourceReferenceDt getItem() { - if (myItem == null) { - myItem = new ResourceReferenceDt(); - } - return myItem; - } - - - /** - * Gets the value(s) for item (Actual entry). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to the actual resource from which data was derived - *

- */ - public ResourceReferenceDt getItemElement() { - if (myItem == null) { - myItem = new ResourceReferenceDt(); - } - return myItem; - } - - - /** - * Sets the value(s) for item (Actual entry) - * - *

- * Definition: - * A reference to the actual resource from which data was derived - *

- */ - public Entry setItem(ResourceReferenceDt theValue) { - myItem = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "List"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Location.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Location.java deleted file mode 100644 index 2555effcbdd..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Location.java +++ /dev/null @@ -1,1590 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Location Resource - * (Details and position information for a physical place) - * - *

- * Definition: - * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Location - *

- * - */ -@ResourceDef(name="Location", profile="http://hl7.org/fhir/profiles/Location", id="location") -public class Location - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Location.identifier
- *

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

- * Description:
- * Type: token
- * Path: Location.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for name - *

- * Description: A (portion of the) name of the location
- * Type: string
- * Path: Location.name
- *

- */ - @SearchParamDefinition(name="name", path="Location.name", description="A (portion of the) name of the location", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: A (portion of the) name of the location
- * Type: string
- * Path: Location.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for type - *

- * Description: A code for the type of location
- * Type: token
- * Path: Location.type
- *

- */ - @SearchParamDefinition(name="type", path="Location.type", description="A code for the type of location", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: A code for the type of location
- * Type: token
- * Path: Location.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for address - *

- * Description: A (part of the) address of the location
- * Type: string
- * Path: Location.address
- *

- */ - @SearchParamDefinition(name="address", path="Location.address", description="A (part of the) address of the location", type="string" ) - public static final String SP_ADDRESS = "address"; - - /** - * Fluent Client search parameter constant for address - *

- * Description: A (part of the) address of the location
- * Type: string
- * Path: Location.address
- *

- */ - public static final StringClientParam ADDRESS = new StringClientParam(SP_ADDRESS); - - /** - * Search parameter constant for status - *

- * Description: Searches for locations with a specific kind of status
- * Type: token
- * Path: Location.status
- *

- */ - @SearchParamDefinition(name="status", path="Location.status", description="Searches for locations with a specific kind of status", type="token" ) - public static final String SP_STATUS = "status"; - - /** - * Fluent Client search parameter constant for status - *

- * Description: Searches for locations with a specific kind of status
- * Type: token
- * Path: Location.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for partof - *

- * Description: The location of which this location is a part
- * Type: reference
- * Path: Location.partOf
- *

- */ - @SearchParamDefinition(name="partof", path="Location.partOf", description="The location of which this location is a part", type="reference" ) - public static final String SP_PARTOF = "partof"; - - /** - * Fluent Client search parameter constant for partof - *

- * Description: The location of which this location is a part
- * Type: reference
- * Path: Location.partOf
- *

- */ - public static final ReferenceClientParam PARTOF = new ReferenceClientParam(SP_PARTOF); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Location.partOf". - */ - public static final Include INCLUDE_PARTOF = new Include("Location.partOf"); - - /** - * Search parameter constant for near - *

- * Description: The coordinates expressed as [lat],[long] (using KML, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)
- * Type: token
- * Path:
- *

- */ - @SearchParamDefinition(name="near", path="", description="The coordinates expressed as [lat],[long] (using KML, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)", type="token" ) - public static final String SP_NEAR = "near"; - - /** - * Fluent Client search parameter constant for near - *

- * Description: The coordinates expressed as [lat],[long] (using KML, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)
- * Type: token
- * Path:
- *

- */ - public static final TokenClientParam NEAR = new TokenClientParam(SP_NEAR); - - /** - * Search parameter constant for near-distance - *

- * Description: A distance quantity to limit the near search to locations within a specific distance
- * Type: token
- * Path:
- *

- */ - @SearchParamDefinition(name="near-distance", path="", description="A distance quantity to limit the near search to locations within a specific distance", type="token" ) - public static final String SP_NEAR_DISTANCE = "near-distance"; - - /** - * Fluent Client search parameter constant for near-distance - *

- * Description: A distance quantity to limit the near search to locations within a specific distance
- * Type: token
- * Path:
- *

- */ - public static final TokenClientParam NEAR_DISTANCE = new TokenClientParam(SP_NEAR_DISTANCE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Unique code or number identifying the location to its users", - formalDefinition="Unique code or number identifying the location to its users" - ) - private IdentifierDt myIdentifier; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Name of the location as used by humans", - formalDefinition="Name of the location as used by humans. Does not need to be unique." - ) - private StringDt myName; - - @Child(name="description", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Description of the Location, which helps in finding or referencing the place", - formalDefinition="Description of the Location, which helps in finding or referencing the place" - ) - private StringDt myDescription; - - @Child(name="type", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Indicates the type of function performed at the location", - formalDefinition="Indicates the type of function performed at the location" - ) - private BoundCodeableConceptDt myType; - - @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Contact details of the location", - formalDefinition="The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites" - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Physical location", - formalDefinition="" - ) - private AddressDt myAddress; - - @Child(name="physicalType", type=CodeableConceptDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Physical form of the location", - formalDefinition="Physical form of the location, e.g. building, room, vehicle, road" - ) - private CodeableConceptDt myPhysicalType; - - @Child(name="position", order=7, min=0, max=1) - @Description( - shortDefinition="The absolute geographic location", - formalDefinition="The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML)" - ) - private Position myPosition; - - @Child(name="managingOrganization", order=8, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="The organization that is responsible for the provisioning and upkeep of the location", - formalDefinition="" - ) - private ResourceReferenceDt myManagingOrganization; - - @Child(name="status", type=CodeDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="active | suspended | inactive", - formalDefinition="" - ) - private BoundCodeDt myStatus; - - @Child(name="partOf", order=10, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Another Location which this Location is physically part of", - formalDefinition="" - ) - private ResourceReferenceDt myPartOf; - - @Child(name="mode", type=CodeDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="instance | kind", - formalDefinition="Indicates whether a resource instance represents a specific location or a class of locations" - ) - private BoundCodeDt myMode; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myDescription, myType, myTelecom, myAddress, myPhysicalType, myPosition, myManagingOrganization, myStatus, myPartOf, myMode); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myDescription, myType, myTelecom, myAddress, myPhysicalType, myPosition, myManagingOrganization, myStatus, myPartOf, myMode); - } - - /** - * Gets the value(s) for identifier (Unique code or number identifying the location to its users). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Unique code or number identifying the location to its users - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Unique code or number identifying the location to its users). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Unique code or number identifying the location to its users - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Unique code or number identifying the location to its users) - * - *

- * Definition: - * Unique code or number identifying the location to its users - *

- */ - public Location setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Unique code or number identifying the location to its users) - * - *

- * Definition: - * Unique code or number identifying the location to its users - *

- */ - public Location setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Unique code or number identifying the location to its users) - * - *

- * Definition: - * Unique code or number identifying the location to its users - *

- */ - public Location setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for name (Name of the location as used by humans). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the location as used by humans. Does not need to be unique. - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name of the location as used by humans). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the location as used by humans. Does not need to be unique. - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name of the location as used by humans) - * - *

- * Definition: - * Name of the location as used by humans. Does not need to be unique. - *

- */ - public Location setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name of the location as used by humans) - * - *

- * Definition: - * Name of the location as used by humans. Does not need to be unique. - *

- */ - public Location setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for description (Description of the Location, which helps in finding or referencing the place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Description of the Location, which helps in finding or referencing the place - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Description of the Location, which helps in finding or referencing the place). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Description of the Location, which helps in finding or referencing the place - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Description of the Location, which helps in finding or referencing the place) - * - *

- * Definition: - * Description of the Location, which helps in finding or referencing the place - *

- */ - public Location setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Description of the Location, which helps in finding or referencing the place) - * - *

- * Definition: - * Description of the Location, which helps in finding or referencing the place - *

- */ - public Location setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (Indicates the type of function performed at the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the type of function performed at the location - *

- */ - public BoundCodeableConceptDt getType() { - if (myType == null) { - myType = new BoundCodeableConceptDt(LocationTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (Indicates the type of function performed at the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the type of function performed at the location - *

- */ - public BoundCodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeableConceptDt(LocationTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (Indicates the type of function performed at the location) - * - *

- * Definition: - * Indicates the type of function performed at the location - *

- */ - public Location setType(BoundCodeableConceptDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (Indicates the type of function performed at the location) - * - *

- * Definition: - * Indicates the type of function performed at the location - *

- */ - public Location setType(LocationTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for telecom (Contact details of the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (Contact details of the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (Contact details of the location) - * - *

- * Definition: - * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites - *

- */ - public Location setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (Contact details of the location) - * - *

- * Definition: - * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (Contact details of the location), - * creating it if it does not already exist. - * - *

- * Definition: - * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (Contact details of the location) - * - *

- * Definition: - * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Location addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (Contact details of the location) - * - *

- * Definition: - * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Location addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for address (Physical location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (Physical location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public AddressDt getAddressElement() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (Physical location) - * - *

- * Definition: - * - *

- */ - public Location setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for physicalType (Physical form of the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Physical form of the location, e.g. building, room, vehicle, road - *

- */ - public CodeableConceptDt getPhysicalType() { - if (myPhysicalType == null) { - myPhysicalType = new CodeableConceptDt(); - } - return myPhysicalType; - } - - - /** - * Gets the value(s) for physicalType (Physical form of the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Physical form of the location, e.g. building, room, vehicle, road - *

- */ - public CodeableConceptDt getPhysicalTypeElement() { - if (myPhysicalType == null) { - myPhysicalType = new CodeableConceptDt(); - } - return myPhysicalType; - } - - - /** - * Sets the value(s) for physicalType (Physical form of the location) - * - *

- * Definition: - * Physical form of the location, e.g. building, room, vehicle, road - *

- */ - public Location setPhysicalType(CodeableConceptDt theValue) { - myPhysicalType = theValue; - return this; - } - - - /** - * Gets the value(s) for position (The absolute geographic location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML) - *

- */ - public Position getPosition() { - if (myPosition == null) { - myPosition = new Position(); - } - return myPosition; - } - - - /** - * Gets the value(s) for position (The absolute geographic location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML) - *

- */ - public Position getPositionElement() { - if (myPosition == null) { - myPosition = new Position(); - } - return myPosition; - } - - - /** - * Sets the value(s) for position (The absolute geographic location) - * - *

- * Definition: - * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML) - *

- */ - public Location setPosition(Position theValue) { - myPosition = theValue; - return this; - } - - - /** - * Gets the value(s) for managingOrganization (The organization that is responsible for the provisioning and upkeep of the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getManagingOrganization() { - if (myManagingOrganization == null) { - myManagingOrganization = new ResourceReferenceDt(); - } - return myManagingOrganization; - } - - - /** - * Gets the value(s) for managingOrganization (The organization that is responsible for the provisioning and upkeep of the location). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getManagingOrganizationElement() { - if (myManagingOrganization == null) { - myManagingOrganization = new ResourceReferenceDt(); - } - return myManagingOrganization; - } - - - /** - * Sets the value(s) for managingOrganization (The organization that is responsible for the provisioning and upkeep of the location) - * - *

- * Definition: - * - *

- */ - public Location setManagingOrganization(ResourceReferenceDt theValue) { - myManagingOrganization = theValue; - return this; - } - - - /** - * Gets the value(s) for status (active | suspended | inactive). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(LocationStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (active | suspended | inactive). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(LocationStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (active | suspended | inactive) - * - *

- * Definition: - * - *

- */ - public Location setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (active | suspended | inactive) - * - *

- * Definition: - * - *

- */ - public Location setStatus(LocationStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for partOf (Another Location which this Location is physically part of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getPartOf() { - if (myPartOf == null) { - myPartOf = new ResourceReferenceDt(); - } - return myPartOf; - } - - - /** - * Gets the value(s) for partOf (Another Location which this Location is physically part of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getPartOfElement() { - if (myPartOf == null) { - myPartOf = new ResourceReferenceDt(); - } - return myPartOf; - } - - - /** - * Sets the value(s) for partOf (Another Location which this Location is physically part of) - * - *

- * Definition: - * - *

- */ - public Location setPartOf(ResourceReferenceDt theValue) { - myPartOf = theValue; - return this; - } - - - /** - * Gets the value(s) for mode (instance | kind). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether a resource instance represents a specific location or a class of locations - *

- */ - public BoundCodeDt getMode() { - if (myMode == null) { - myMode = new BoundCodeDt(LocationModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Gets the value(s) for mode (instance | kind). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether a resource instance represents a specific location or a class of locations - *

- */ - public BoundCodeDt getModeElement() { - if (myMode == null) { - myMode = new BoundCodeDt(LocationModeEnum.VALUESET_BINDER); - } - return myMode; - } - - - /** - * Sets the value(s) for mode (instance | kind) - * - *

- * Definition: - * Indicates whether a resource instance represents a specific location or a class of locations - *

- */ - public Location setMode(BoundCodeDt theValue) { - myMode = theValue; - return this; - } - - /** - * Sets the value(s) for mode (instance | kind) - * - *

- * Definition: - * Indicates whether a resource instance represents a specific location or a class of locations - *

- */ - public Location setMode(LocationModeEnum theValue) { - getMode().setValueAsEnum(theValue); - return this; - } - - - /** - * Block class for child element: Location.position (The absolute geographic location) - * - *

- * Definition: - * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML) - *

- */ - @Block() - public static class Position - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="longitude", type=DecimalDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Longitude as expressed in KML", - formalDefinition="Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)" - ) - private DecimalDt myLongitude; - - @Child(name="latitude", type=DecimalDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Latitude as expressed in KML", - formalDefinition="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)" - ) - private DecimalDt myLatitude; - - @Child(name="altitude", type=DecimalDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Altitude as expressed in KML", - formalDefinition="Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below)" - ) - private DecimalDt myAltitude; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLongitude, myLatitude, myAltitude); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLongitude, myLatitude, myAltitude); - } - - /** - * Gets the value(s) for longitude (Longitude as expressed in KML). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) - *

- */ - public DecimalDt getLongitude() { - if (myLongitude == null) { - myLongitude = new DecimalDt(); - } - return myLongitude; - } - - - /** - * Gets the value(s) for longitude (Longitude as expressed in KML). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) - *

- */ - public DecimalDt getLongitudeElement() { - if (myLongitude == null) { - myLongitude = new DecimalDt(); - } - return myLongitude; - } - - - /** - * Sets the value(s) for longitude (Longitude as expressed in KML) - * - *

- * Definition: - * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) - *

- */ - public Position setLongitude(DecimalDt theValue) { - myLongitude = theValue; - return this; - } - - /** - * Sets the value for longitude (Longitude as expressed in KML) - * - *

- * Definition: - * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) - *

- */ - public Position setLongitude( long theValue) { - myLongitude = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for longitude (Longitude as expressed in KML) - * - *

- * Definition: - * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) - *

- */ - public Position setLongitude( double theValue) { - myLongitude = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for longitude (Longitude as expressed in KML) - * - *

- * Definition: - * Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below) - *

- */ - public Position setLongitude( java.math.BigDecimal theValue) { - myLongitude = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for latitude (Latitude as expressed in KML). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) - *

- */ - public DecimalDt getLatitude() { - if (myLatitude == null) { - myLatitude = new DecimalDt(); - } - return myLatitude; - } - - - /** - * Gets the value(s) for latitude (Latitude as expressed in KML). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) - *

- */ - public DecimalDt getLatitudeElement() { - if (myLatitude == null) { - myLatitude = new DecimalDt(); - } - return myLatitude; - } - - - /** - * Sets the value(s) for latitude (Latitude as expressed in KML) - * - *

- * Definition: - * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) - *

- */ - public Position setLatitude(DecimalDt theValue) { - myLatitude = theValue; - return this; - } - - /** - * Sets the value for latitude (Latitude as expressed in KML) - * - *

- * Definition: - * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) - *

- */ - public Position setLatitude( long theValue) { - myLatitude = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for latitude (Latitude as expressed in KML) - * - *

- * Definition: - * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) - *

- */ - public Position setLatitude( double theValue) { - myLatitude = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for latitude (Latitude as expressed in KML) - * - *

- * Definition: - * Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below) - *

- */ - public Position setLatitude( java.math.BigDecimal theValue) { - myLatitude = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for altitude (Altitude as expressed in KML). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) - *

- */ - public DecimalDt getAltitude() { - if (myAltitude == null) { - myAltitude = new DecimalDt(); - } - return myAltitude; - } - - - /** - * Gets the value(s) for altitude (Altitude as expressed in KML). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) - *

- */ - public DecimalDt getAltitudeElement() { - if (myAltitude == null) { - myAltitude = new DecimalDt(); - } - return myAltitude; - } - - - /** - * Sets the value(s) for altitude (Altitude as expressed in KML) - * - *

- * Definition: - * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) - *

- */ - public Position setAltitude(DecimalDt theValue) { - myAltitude = theValue; - return this; - } - - /** - * Sets the value for altitude (Altitude as expressed in KML) - * - *

- * Definition: - * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) - *

- */ - public Position setAltitude( long theValue) { - myAltitude = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for altitude (Altitude as expressed in KML) - * - *

- * Definition: - * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) - *

- */ - public Position setAltitude( double theValue) { - myAltitude = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for altitude (Altitude as expressed in KML) - * - *

- * Definition: - * Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below) - *

- */ - public Position setAltitude( java.math.BigDecimal theValue) { - myAltitude = new DecimalDt(theValue); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Location"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Media.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Media.java deleted file mode 100644 index 2e94c29ca88..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Media.java +++ /dev/null @@ -1,1330 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Media Resource - * (A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference) - * - *

- * Definition: - * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Media - *

- * - */ -@ResourceDef(name="Media", profile="http://hl7.org/fhir/profiles/Media", id="media") -public class Media - extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *

- * Description:
- * Type: token
- * Path: Media.type
- *

- */ - @SearchParamDefinition(name="type", path="Media.type", description="", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description:
- * Type: token
- * Path: Media.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for subtype - *

- * Description:
- * Type: token
- * Path: Media.subtype
- *

- */ - @SearchParamDefinition(name="subtype", path="Media.subtype", description="", type="token" ) - public static final String SP_SUBTYPE = "subtype"; - - /** - * Fluent Client search parameter constant for subtype - *

- * Description:
- * Type: token
- * Path: Media.subtype
- *

- */ - public static final TokenClientParam SUBTYPE = new TokenClientParam(SP_SUBTYPE); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Media.identifier
- *

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

- * Description:
- * Type: token
- * Path: Media.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: Media.dateTime
- *

- */ - @SearchParamDefinition(name="date", path="Media.dateTime", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: Media.dateTime
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Media.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Media.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Media.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Media.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Media.subject"); - - /** - * Search parameter constant for operator - *

- * Description:
- * Type: reference
- * Path: Media.operator
- *

- */ - @SearchParamDefinition(name="operator", path="Media.operator", description="", type="reference" ) - public static final String SP_OPERATOR = "operator"; - - /** - * Fluent Client search parameter constant for operator - *

- * Description:
- * Type: reference
- * Path: Media.operator
- *

- */ - public static final ReferenceClientParam OPERATOR = new ReferenceClientParam(SP_OPERATOR); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Media.operator". - */ - public static final Include INCLUDE_OPERATOR = new Include("Media.operator"); - - /** - * Search parameter constant for view - *

- * Description:
- * Type: token
- * Path: Media.view
- *

- */ - @SearchParamDefinition(name="view", path="Media.view", description="", type="token" ) - public static final String SP_VIEW = "view"; - - /** - * Fluent Client search parameter constant for view - *

- * Description:
- * Type: token
- * Path: Media.view
- *

- */ - public static final TokenClientParam VIEW = new TokenClientParam(SP_VIEW); - - - @Child(name="type", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="photo | video | audio", - formalDefinition="Whether the media is a photo (still image), an audio recording, or a video recording" - ) - private BoundCodeDt myType; - - @Child(name="subtype", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="The type of acquisition equipment/process", - formalDefinition="Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality" - ) - private CodeableConceptDt mySubtype; - - @Child(name="identifier", type=IdentifierDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Identifier(s) for the image", - formalDefinition="Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers" - ) - private java.util.List myIdentifier; - - @Child(name="dateTime", type=DateTimeDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="When the media was taken/recorded (end)", - formalDefinition="When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording" - ) - private DateTimeDt myDateTime; - - @Child(name="subject", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Specimen.class }) - @Description( - shortDefinition="Who/What this Media is a record of", - formalDefinition="Who/What this Media is a record of" - ) - private ResourceReferenceDt mySubject; - - @Child(name="operator", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="The person who generated the image", - formalDefinition="The person who administered the collection of the image" - ) - private ResourceReferenceDt myOperator; - - @Child(name="view", type=CodeableConceptDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Imaging view e.g Lateral or Antero-posterior", - formalDefinition="The name of the imaging view e.g Lateral or Antero-posterior (AP)." - ) - private CodeableConceptDt myView; - - @Child(name="deviceName", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Name of the device/manufacturer", - formalDefinition="The name of the device / manufacturer of the device that was used to make the recording" - ) - private StringDt myDeviceName; - - @Child(name="height", type=IntegerDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Height of the image in pixels(photo/video)", - formalDefinition="Height of the image in pixels(photo/video)" - ) - private IntegerDt myHeight; - - @Child(name="width", type=IntegerDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Width of the image in pixels (photo/video)", - formalDefinition="Width of the image in pixels (photo/video)" - ) - private IntegerDt myWidth; - - @Child(name="frames", type=IntegerDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Number of frames if > 1 (photo)", - formalDefinition="The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required" - ) - private IntegerDt myFrames; - - @Child(name="length", type=IntegerDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Length in seconds (audio / video)", - formalDefinition="The length of the recording in seconds - for audio and video" - ) - private IntegerDt myLength; - - @Child(name="content", type=AttachmentDt.class, order=12, min=1, max=1) - @Description( - shortDefinition="Actual Media - reference or data", - formalDefinition="The actual content of the media - inline or by direct reference to the media source file" - ) - private AttachmentDt myContent; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySubtype, myIdentifier, myDateTime, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myLength, myContent); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySubtype, myIdentifier, myDateTime, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myLength, myContent); - } - - /** - * Gets the value(s) for type (photo | video | audio). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the media is a photo (still image), an audio recording, or a video recording - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(MediaTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (photo | video | audio). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the media is a photo (still image), an audio recording, or a video recording - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(MediaTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (photo | video | audio) - * - *

- * Definition: - * Whether the media is a photo (still image), an audio recording, or a video recording - *

- */ - public Media setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (photo | video | audio) - * - *

- * Definition: - * Whether the media is a photo (still image), an audio recording, or a video recording - *

- */ - public Media setType(MediaTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for subtype (The type of acquisition equipment/process). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality - *

- */ - public CodeableConceptDt getSubtype() { - if (mySubtype == null) { - mySubtype = new CodeableConceptDt(); - } - return mySubtype; - } - - - /** - * Gets the value(s) for subtype (The type of acquisition equipment/process). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality - *

- */ - public CodeableConceptDt getSubtypeElement() { - if (mySubtype == null) { - mySubtype = new CodeableConceptDt(); - } - return mySubtype; - } - - - /** - * Sets the value(s) for subtype (The type of acquisition equipment/process) - * - *

- * Definition: - * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality - *

- */ - public Media setSubtype(CodeableConceptDt theValue) { - mySubtype = theValue; - return this; - } - - - /** - * Gets the value(s) for identifier (Identifier(s) for the image). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifier(s) for the image). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifier(s) for the image) - * - *

- * Definition: - * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers - *

- */ - public Media setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Identifier(s) for the image) - * - *

- * Definition: - * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Identifier(s) for the image), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Identifier(s) for the image) - * - *

- * Definition: - * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Media addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Identifier(s) for the image) - * - *

- * Definition: - * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Media addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for dateTime (When the media was taken/recorded (end)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording - *

- */ - public DateTimeDt getDateTime() { - if (myDateTime == null) { - myDateTime = new DateTimeDt(); - } - return myDateTime; - } - - - /** - * Gets the value(s) for dateTime (When the media was taken/recorded (end)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording - *

- */ - public DateTimeDt getDateTimeElement() { - if (myDateTime == null) { - myDateTime = new DateTimeDt(); - } - return myDateTime; - } - - - /** - * Sets the value(s) for dateTime (When the media was taken/recorded (end)) - * - *

- * Definition: - * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording - *

- */ - public Media setDateTime(DateTimeDt theValue) { - myDateTime = theValue; - return this; - } - - /** - * Sets the value for dateTime (When the media was taken/recorded (end)) - * - *

- * Definition: - * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording - *

- */ - public Media setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) { - myDateTime = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for dateTime (When the media was taken/recorded (end)) - * - *

- * Definition: - * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording - *

- */ - public Media setDateTimeWithSecondsPrecision( Date theDate) { - myDateTime = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for subject (Who/What this Media is a record of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who/What this Media is a record of - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who/What this Media is a record of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who/What this Media is a record of - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who/What this Media is a record of) - * - *

- * Definition: - * Who/What this Media is a record of - *

- */ - public Media setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for operator (The person who generated the image). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who administered the collection of the image - *

- */ - public ResourceReferenceDt getOperator() { - if (myOperator == null) { - myOperator = new ResourceReferenceDt(); - } - return myOperator; - } - - - /** - * Gets the value(s) for operator (The person who generated the image). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who administered the collection of the image - *

- */ - public ResourceReferenceDt getOperatorElement() { - if (myOperator == null) { - myOperator = new ResourceReferenceDt(); - } - return myOperator; - } - - - /** - * Sets the value(s) for operator (The person who generated the image) - * - *

- * Definition: - * The person who administered the collection of the image - *

- */ - public Media setOperator(ResourceReferenceDt theValue) { - myOperator = theValue; - return this; - } - - - /** - * Gets the value(s) for view (Imaging view e.g Lateral or Antero-posterior). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the imaging view e.g Lateral or Antero-posterior (AP). - *

- */ - public CodeableConceptDt getView() { - if (myView == null) { - myView = new CodeableConceptDt(); - } - return myView; - } - - - /** - * Gets the value(s) for view (Imaging view e.g Lateral or Antero-posterior). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the imaging view e.g Lateral or Antero-posterior (AP). - *

- */ - public CodeableConceptDt getViewElement() { - if (myView == null) { - myView = new CodeableConceptDt(); - } - return myView; - } - - - /** - * Sets the value(s) for view (Imaging view e.g Lateral or Antero-posterior) - * - *

- * Definition: - * The name of the imaging view e.g Lateral or Antero-posterior (AP). - *

- */ - public Media setView(CodeableConceptDt theValue) { - myView = theValue; - return this; - } - - - /** - * Gets the value(s) for deviceName (Name of the device/manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the device / manufacturer of the device that was used to make the recording - *

- */ - public StringDt getDeviceName() { - if (myDeviceName == null) { - myDeviceName = new StringDt(); - } - return myDeviceName; - } - - - /** - * Gets the value(s) for deviceName (Name of the device/manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the device / manufacturer of the device that was used to make the recording - *

- */ - public StringDt getDeviceNameElement() { - if (myDeviceName == null) { - myDeviceName = new StringDt(); - } - return myDeviceName; - } - - - /** - * Sets the value(s) for deviceName (Name of the device/manufacturer) - * - *

- * Definition: - * The name of the device / manufacturer of the device that was used to make the recording - *

- */ - public Media setDeviceName(StringDt theValue) { - myDeviceName = theValue; - return this; - } - - /** - * Sets the value for deviceName (Name of the device/manufacturer) - * - *

- * Definition: - * The name of the device / manufacturer of the device that was used to make the recording - *

- */ - public Media setDeviceName( String theString) { - myDeviceName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for height (Height of the image in pixels(photo/video)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Height of the image in pixels(photo/video) - *

- */ - public IntegerDt getHeight() { - if (myHeight == null) { - myHeight = new IntegerDt(); - } - return myHeight; - } - - - /** - * Gets the value(s) for height (Height of the image in pixels(photo/video)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Height of the image in pixels(photo/video) - *

- */ - public IntegerDt getHeightElement() { - if (myHeight == null) { - myHeight = new IntegerDt(); - } - return myHeight; - } - - - /** - * Sets the value(s) for height (Height of the image in pixels(photo/video)) - * - *

- * Definition: - * Height of the image in pixels(photo/video) - *

- */ - public Media setHeight(IntegerDt theValue) { - myHeight = theValue; - return this; - } - - /** - * Sets the value for height (Height of the image in pixels(photo/video)) - * - *

- * Definition: - * Height of the image in pixels(photo/video) - *

- */ - public Media setHeight( int theInteger) { - myHeight = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for width (Width of the image in pixels (photo/video)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Width of the image in pixels (photo/video) - *

- */ - public IntegerDt getWidth() { - if (myWidth == null) { - myWidth = new IntegerDt(); - } - return myWidth; - } - - - /** - * Gets the value(s) for width (Width of the image in pixels (photo/video)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Width of the image in pixels (photo/video) - *

- */ - public IntegerDt getWidthElement() { - if (myWidth == null) { - myWidth = new IntegerDt(); - } - return myWidth; - } - - - /** - * Sets the value(s) for width (Width of the image in pixels (photo/video)) - * - *

- * Definition: - * Width of the image in pixels (photo/video) - *

- */ - public Media setWidth(IntegerDt theValue) { - myWidth = theValue; - return this; - } - - /** - * Sets the value for width (Width of the image in pixels (photo/video)) - * - *

- * Definition: - * Width of the image in pixels (photo/video) - *

- */ - public Media setWidth( int theInteger) { - myWidth = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for frames (Number of frames if > 1 (photo)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required - *

- */ - public IntegerDt getFrames() { - if (myFrames == null) { - myFrames = new IntegerDt(); - } - return myFrames; - } - - - /** - * Gets the value(s) for frames (Number of frames if > 1 (photo)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required - *

- */ - public IntegerDt getFramesElement() { - if (myFrames == null) { - myFrames = new IntegerDt(); - } - return myFrames; - } - - - /** - * Sets the value(s) for frames (Number of frames if > 1 (photo)) - * - *

- * Definition: - * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required - *

- */ - public Media setFrames(IntegerDt theValue) { - myFrames = theValue; - return this; - } - - /** - * Sets the value for frames (Number of frames if > 1 (photo)) - * - *

- * Definition: - * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required - *

- */ - public Media setFrames( int theInteger) { - myFrames = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for length (Length in seconds (audio / video)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The length of the recording in seconds - for audio and video - *

- */ - public IntegerDt getLength() { - if (myLength == null) { - myLength = new IntegerDt(); - } - return myLength; - } - - - /** - * Gets the value(s) for length (Length in seconds (audio / video)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The length of the recording in seconds - for audio and video - *

- */ - public IntegerDt getLengthElement() { - if (myLength == null) { - myLength = new IntegerDt(); - } - return myLength; - } - - - /** - * Sets the value(s) for length (Length in seconds (audio / video)) - * - *

- * Definition: - * The length of the recording in seconds - for audio and video - *

- */ - public Media setLength(IntegerDt theValue) { - myLength = theValue; - return this; - } - - /** - * Sets the value for length (Length in seconds (audio / video)) - * - *

- * Definition: - * The length of the recording in seconds - for audio and video - *

- */ - public Media setLength( int theInteger) { - myLength = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for content (Actual Media - reference or data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual content of the media - inline or by direct reference to the media source file - *

- */ - public AttachmentDt getContent() { - if (myContent == null) { - myContent = new AttachmentDt(); - } - return myContent; - } - - - /** - * Gets the value(s) for content (Actual Media - reference or data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual content of the media - inline or by direct reference to the media source file - *

- */ - public AttachmentDt getContentElement() { - if (myContent == null) { - myContent = new AttachmentDt(); - } - return myContent; - } - - - /** - * Sets the value(s) for content (Actual Media - reference or data) - * - *

- * Definition: - * The actual content of the media - inline or by direct reference to the media source file - *

- */ - public Media setContent(AttachmentDt theValue) { - myContent = theValue; - return this; - } - - - - - @Override - public String getResourceName() { - return "Media"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Medication.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Medication.java deleted file mode 100644 index e0d0ba1b3d3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Medication.java +++ /dev/null @@ -1,1565 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Medication Resource - * (Definition of a Medication) - * - *

- * Definition: - * Primarily used for identification and definition of Medication, but also covers ingredients and packaging - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Medication - *

- * - */ -@ResourceDef(name="Medication", profile="http://hl7.org/fhir/profiles/Medication", id="medication") -public class Medication - extends BaseResource implements IResource { - - /** - * Search parameter constant for code - *

- * Description:
- * Type: token
- * Path: Medication.code
- *

- */ - @SearchParamDefinition(name="code", path="Medication.code", description="", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description:
- * Type: token
- * Path: Medication.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for name - *

- * Description:
- * Type: string
- * Path: Medication.name
- *

- */ - @SearchParamDefinition(name="name", path="Medication.name", description="", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description:
- * Type: string
- * Path: Medication.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for manufacturer - *

- * Description:
- * Type: reference
- * Path: Medication.manufacturer
- *

- */ - @SearchParamDefinition(name="manufacturer", path="Medication.manufacturer", description="", type="reference" ) - public static final String SP_MANUFACTURER = "manufacturer"; - - /** - * Fluent Client search parameter constant for manufacturer - *

- * Description:
- * Type: reference
- * Path: Medication.manufacturer
- *

- */ - public static final ReferenceClientParam MANUFACTURER = new ReferenceClientParam(SP_MANUFACTURER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Medication.manufacturer". - */ - public static final Include INCLUDE_MANUFACTURER = new Include("Medication.manufacturer"); - - /** - * Search parameter constant for form - *

- * Description:
- * Type: token
- * Path: Medication.product.form
- *

- */ - @SearchParamDefinition(name="form", path="Medication.product.form", description="", type="token" ) - public static final String SP_FORM = "form"; - - /** - * Fluent Client search parameter constant for form - *

- * Description:
- * Type: token
- * Path: Medication.product.form
- *

- */ - public static final TokenClientParam FORM = new TokenClientParam(SP_FORM); - - /** - * Search parameter constant for ingredient - *

- * Description:
- * Type: reference
- * Path: Medication.product.ingredient.item
- *

- */ - @SearchParamDefinition(name="ingredient", path="Medication.product.ingredient.item", description="", type="reference" ) - public static final String SP_INGREDIENT = "ingredient"; - - /** - * Fluent Client search parameter constant for ingredient - *

- * Description:
- * Type: reference
- * Path: Medication.product.ingredient.item
- *

- */ - public static final ReferenceClientParam INGREDIENT = new ReferenceClientParam(SP_INGREDIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Medication.product.ingredient.item". - */ - public static final Include INCLUDE_PRODUCT_INGREDIENT_ITEM = new Include("Medication.product.ingredient.item"); - - /** - * Search parameter constant for container - *

- * Description:
- * Type: token
- * Path: Medication.package.container
- *

- */ - @SearchParamDefinition(name="container", path="Medication.package.container", description="", type="token" ) - public static final String SP_CONTAINER = "container"; - - /** - * Fluent Client search parameter constant for container - *

- * Description:
- * Type: token
- * Path: Medication.package.container
- *

- */ - public static final TokenClientParam CONTAINER = new TokenClientParam(SP_CONTAINER); - - /** - * Search parameter constant for content - *

- * Description:
- * Type: reference
- * Path: Medication.package.content.item
- *

- */ - @SearchParamDefinition(name="content", path="Medication.package.content.item", description="", type="reference" ) - public static final String SP_CONTENT = "content"; - - /** - * Fluent Client search parameter constant for content - *

- * Description:
- * Type: reference
- * Path: Medication.package.content.item
- *

- */ - public static final ReferenceClientParam CONTENT = new ReferenceClientParam(SP_CONTENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Medication.package.content.item". - */ - public static final Include INCLUDE_PACKAGE_CONTENT_ITEM = new Include("Medication.package.content.item"); - - - @Child(name="name", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Common / Commercial name", - formalDefinition="The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code" - ) - private StringDt myName; - - @Child(name="code", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Codes that identify this medication", - formalDefinition="A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes" - ) - private CodeableConceptDt myCode; - - @Child(name="isBrand", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="True if a brand", - formalDefinition="Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)" - ) - private BooleanDt myIsBrand; - - @Child(name="manufacturer", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Manufacturer of the item", - formalDefinition="Describes the details of the manufacturer" - ) - private ResourceReferenceDt myManufacturer; - - @Child(name="kind", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="product | package", - formalDefinition="Medications are either a single administrable product or a package that contains one or more products." - ) - private BoundCodeDt myKind; - - @Child(name="product", order=5, min=0, max=1) - @Description( - shortDefinition="Administrable medication details", - formalDefinition="Information that only applies to products (not packages)" - ) - private Product myProduct; - - @Child(name="package", order=6, min=0, max=1) - @Description( - shortDefinition="Details about packaged medications", - formalDefinition="Information that only applies to packages (not products)" - ) - private Package myPackage; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myCode, myIsBrand, myManufacturer, myKind, myProduct, myPackage); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myCode, myIsBrand, myManufacturer, myKind, myProduct, myPackage); - } - - /** - * Gets the value(s) for name (Common / Commercial name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Common / Commercial name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Common / Commercial name) - * - *

- * Definition: - * The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code - *

- */ - public Medication setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Common / Commercial name) - * - *

- * Definition: - * The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code - *

- */ - public Medication setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (Codes that identify this medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Codes that identify this medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Codes that identify this medication) - * - *

- * Definition: - * A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes - *

- */ - public Medication setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for isBrand (True if a brand). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is) - *

- */ - public BooleanDt getIsBrand() { - if (myIsBrand == null) { - myIsBrand = new BooleanDt(); - } - return myIsBrand; - } - - - /** - * Gets the value(s) for isBrand (True if a brand). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is) - *

- */ - public BooleanDt getIsBrandElement() { - if (myIsBrand == null) { - myIsBrand = new BooleanDt(); - } - return myIsBrand; - } - - - /** - * Sets the value(s) for isBrand (True if a brand) - * - *

- * Definition: - * Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is) - *

- */ - public Medication setIsBrand(BooleanDt theValue) { - myIsBrand = theValue; - return this; - } - - /** - * Sets the value for isBrand (True if a brand) - * - *

- * Definition: - * Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is) - *

- */ - public Medication setIsBrand( boolean theBoolean) { - myIsBrand = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for manufacturer (Manufacturer of the item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the details of the manufacturer - *

- */ - public ResourceReferenceDt getManufacturer() { - if (myManufacturer == null) { - myManufacturer = new ResourceReferenceDt(); - } - return myManufacturer; - } - - - /** - * Gets the value(s) for manufacturer (Manufacturer of the item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the details of the manufacturer - *

- */ - public ResourceReferenceDt getManufacturerElement() { - if (myManufacturer == null) { - myManufacturer = new ResourceReferenceDt(); - } - return myManufacturer; - } - - - /** - * Sets the value(s) for manufacturer (Manufacturer of the item) - * - *

- * Definition: - * Describes the details of the manufacturer - *

- */ - public Medication setManufacturer(ResourceReferenceDt theValue) { - myManufacturer = theValue; - return this; - } - - - /** - * Gets the value(s) for kind (product | package). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Medications are either a single administrable product or a package that contains one or more products. - *

- */ - public BoundCodeDt getKind() { - if (myKind == null) { - myKind = new BoundCodeDt(MedicationKindEnum.VALUESET_BINDER); - } - return myKind; - } - - - /** - * Gets the value(s) for kind (product | package). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Medications are either a single administrable product or a package that contains one or more products. - *

- */ - public BoundCodeDt getKindElement() { - if (myKind == null) { - myKind = new BoundCodeDt(MedicationKindEnum.VALUESET_BINDER); - } - return myKind; - } - - - /** - * Sets the value(s) for kind (product | package) - * - *

- * Definition: - * Medications are either a single administrable product or a package that contains one or more products. - *

- */ - public Medication setKind(BoundCodeDt theValue) { - myKind = theValue; - return this; - } - - /** - * Sets the value(s) for kind (product | package) - * - *

- * Definition: - * Medications are either a single administrable product or a package that contains one or more products. - *

- */ - public Medication setKind(MedicationKindEnum theValue) { - getKind().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for product (Administrable medication details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information that only applies to products (not packages) - *

- */ - public Product getProduct() { - if (myProduct == null) { - myProduct = new Product(); - } - return myProduct; - } - - - /** - * Gets the value(s) for product (Administrable medication details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information that only applies to products (not packages) - *

- */ - public Product getProductElement() { - if (myProduct == null) { - myProduct = new Product(); - } - return myProduct; - } - - - /** - * Sets the value(s) for product (Administrable medication details) - * - *

- * Definition: - * Information that only applies to products (not packages) - *

- */ - public Medication setProduct(Product theValue) { - myProduct = theValue; - return this; - } - - - /** - * Gets the value(s) for package (Details about packaged medications). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information that only applies to packages (not products) - *

- */ - public Package getPackage() { - if (myPackage == null) { - myPackage = new Package(); - } - return myPackage; - } - - - /** - * Gets the value(s) for package (Details about packaged medications). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information that only applies to packages (not products) - *

- */ - public Package getPackageElement() { - if (myPackage == null) { - myPackage = new Package(); - } - return myPackage; - } - - - /** - * Sets the value(s) for package (Details about packaged medications) - * - *

- * Definition: - * Information that only applies to packages (not products) - *

- */ - public Medication setPackage(Package theValue) { - myPackage = theValue; - return this; - } - - - /** - * Block class for child element: Medication.product (Administrable medication details) - * - *

- * Definition: - * Information that only applies to products (not packages) - *

- */ - @Block() - public static class Product - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="form", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="powder | tablets | carton +", - formalDefinition="Describes the form of the item. Powder; tables; carton" - ) - private CodeableConceptDt myForm; - - @Child(name="ingredient", order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Active or inactive ingredient", - formalDefinition="Identifies a particular constituent of interest in the product" - ) - private java.util.List myIngredient; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myForm, myIngredient); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myForm, myIngredient); - } - - /** - * Gets the value(s) for form (powder | tablets | carton +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the form of the item. Powder; tables; carton - *

- */ - public CodeableConceptDt getForm() { - if (myForm == null) { - myForm = new CodeableConceptDt(); - } - return myForm; - } - - - /** - * Gets the value(s) for form (powder | tablets | carton +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the form of the item. Powder; tables; carton - *

- */ - public CodeableConceptDt getFormElement() { - if (myForm == null) { - myForm = new CodeableConceptDt(); - } - return myForm; - } - - - /** - * Sets the value(s) for form (powder | tablets | carton +) - * - *

- * Definition: - * Describes the form of the item. Powder; tables; carton - *

- */ - public Product setForm(CodeableConceptDt theValue) { - myForm = theValue; - return this; - } - - - /** - * Gets the value(s) for ingredient (Active or inactive ingredient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a particular constituent of interest in the product - *

- */ - public java.util.List getIngredient() { - if (myIngredient == null) { - myIngredient = new java.util.ArrayList(); - } - return myIngredient; - } - - - /** - * Gets the value(s) for ingredient (Active or inactive ingredient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a particular constituent of interest in the product - *

- */ - public java.util.List getIngredientElement() { - if (myIngredient == null) { - myIngredient = new java.util.ArrayList(); - } - return myIngredient; - } - - - /** - * Sets the value(s) for ingredient (Active or inactive ingredient) - * - *

- * Definition: - * Identifies a particular constituent of interest in the product - *

- */ - public Product setIngredient(java.util.List theValue) { - myIngredient = theValue; - return this; - } - - /** - * Adds and returns a new value for ingredient (Active or inactive ingredient) - * - *

- * Definition: - * Identifies a particular constituent of interest in the product - *

- */ - public ProductIngredient addIngredient() { - ProductIngredient newType = new ProductIngredient(); - getIngredient().add(newType); - return newType; - } - - /** - * Gets the first repetition for ingredient (Active or inactive ingredient), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies a particular constituent of interest in the product - *

- */ - public ProductIngredient getIngredientFirstRep() { - if (getIngredient().isEmpty()) { - return addIngredient(); - } - return getIngredient().get(0); - } - - - } - - /** - * Block class for child element: Medication.product.ingredient (Active or inactive ingredient) - * - *

- * Definition: - * Identifies a particular constituent of interest in the product - *

- */ - @Block() - public static class ProductIngredient - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="item", order=0, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Substance.class, ca.uhn.fhir.model.dstu.resource.Medication.class }) - @Description( - shortDefinition="The product contained", - formalDefinition="The actual ingredient - either a substance (simple ingredient) or another medication" - ) - private ResourceReferenceDt myItem; - - @Child(name="amount", type=RatioDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="How much ingredient in product", - formalDefinition="Specifies how many (or how much) of the items there are in this Medication. E.g. 250 mg per tablet" - ) - private RatioDt myAmount; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myItem, myAmount); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myItem, myAmount); - } - - /** - * Gets the value(s) for item (The product contained). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual ingredient - either a substance (simple ingredient) or another medication - *

- */ - public ResourceReferenceDt getItem() { - if (myItem == null) { - myItem = new ResourceReferenceDt(); - } - return myItem; - } - - - /** - * Gets the value(s) for item (The product contained). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual ingredient - either a substance (simple ingredient) or another medication - *

- */ - public ResourceReferenceDt getItemElement() { - if (myItem == null) { - myItem = new ResourceReferenceDt(); - } - return myItem; - } - - - /** - * Sets the value(s) for item (The product contained) - * - *

- * Definition: - * The actual ingredient - either a substance (simple ingredient) or another medication - *

- */ - public ProductIngredient setItem(ResourceReferenceDt theValue) { - myItem = theValue; - return this; - } - - - /** - * Gets the value(s) for amount (How much ingredient in product). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies how many (or how much) of the items there are in this Medication. E.g. 250 mg per tablet - *

- */ - public RatioDt getAmount() { - if (myAmount == null) { - myAmount = new RatioDt(); - } - return myAmount; - } - - - /** - * Gets the value(s) for amount (How much ingredient in product). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies how many (or how much) of the items there are in this Medication. E.g. 250 mg per tablet - *

- */ - public RatioDt getAmountElement() { - if (myAmount == null) { - myAmount = new RatioDt(); - } - return myAmount; - } - - - /** - * Sets the value(s) for amount (How much ingredient in product) - * - *

- * Definition: - * Specifies how many (or how much) of the items there are in this Medication. E.g. 250 mg per tablet - *

- */ - public ProductIngredient setAmount(RatioDt theValue) { - myAmount = theValue; - return this; - } - - - - } - - - - /** - * Block class for child element: Medication.package (Details about packaged medications) - * - *

- * Definition: - * Information that only applies to packages (not products) - *

- */ - @Block() - public static class Package - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="container", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="E.g. box, vial, blister-pack", - formalDefinition="The kind of container that this package comes as" - ) - private CodeableConceptDt myContainer; - - @Child(name="content", order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="What is in the package?", - formalDefinition="A set of components that go to make up the described item." - ) - private java.util.List myContent; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContainer, myContent); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myContainer, myContent); - } - - /** - * Gets the value(s) for container (E.g. box, vial, blister-pack). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of container that this package comes as - *

- */ - public CodeableConceptDt getContainer() { - if (myContainer == null) { - myContainer = new CodeableConceptDt(); - } - return myContainer; - } - - - /** - * Gets the value(s) for container (E.g. box, vial, blister-pack). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of container that this package comes as - *

- */ - public CodeableConceptDt getContainerElement() { - if (myContainer == null) { - myContainer = new CodeableConceptDt(); - } - return myContainer; - } - - - /** - * Sets the value(s) for container (E.g. box, vial, blister-pack) - * - *

- * Definition: - * The kind of container that this package comes as - *

- */ - public Package setContainer(CodeableConceptDt theValue) { - myContainer = theValue; - return this; - } - - - /** - * Gets the value(s) for content (What is in the package?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of components that go to make up the described item. - *

- */ - public java.util.List getContent() { - if (myContent == null) { - myContent = new java.util.ArrayList(); - } - return myContent; - } - - - /** - * Gets the value(s) for content (What is in the package?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of components that go to make up the described item. - *

- */ - public java.util.List getContentElement() { - if (myContent == null) { - myContent = new java.util.ArrayList(); - } - return myContent; - } - - - /** - * Sets the value(s) for content (What is in the package?) - * - *

- * Definition: - * A set of components that go to make up the described item. - *

- */ - public Package setContent(java.util.List theValue) { - myContent = theValue; - return this; - } - - /** - * Adds and returns a new value for content (What is in the package?) - * - *

- * Definition: - * A set of components that go to make up the described item. - *

- */ - public PackageContent addContent() { - PackageContent newType = new PackageContent(); - getContent().add(newType); - return newType; - } - - /** - * Gets the first repetition for content (What is in the package?), - * creating it if it does not already exist. - * - *

- * Definition: - * A set of components that go to make up the described item. - *

- */ - public PackageContent getContentFirstRep() { - if (getContent().isEmpty()) { - return addContent(); - } - return getContent().get(0); - } - - - } - - /** - * Block class for child element: Medication.package.content (What is in the package?) - * - *

- * Definition: - * A set of components that go to make up the described item. - *

- */ - @Block() - public static class PackageContent - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="item", order=0, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class }) - @Description( - shortDefinition="A product in the package", - formalDefinition="Identifies one of the items in the package" - ) - private ResourceReferenceDt myItem; - - @Child(name="amount", type=QuantityDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="How many are in the package?", - formalDefinition="The amount of the product that is in the package" - ) - private QuantityDt myAmount; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myItem, myAmount); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myItem, myAmount); - } - - /** - * Gets the value(s) for item (A product in the package). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies one of the items in the package - *

- */ - public ResourceReferenceDt getItem() { - if (myItem == null) { - myItem = new ResourceReferenceDt(); - } - return myItem; - } - - - /** - * Gets the value(s) for item (A product in the package). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies one of the items in the package - *

- */ - public ResourceReferenceDt getItemElement() { - if (myItem == null) { - myItem = new ResourceReferenceDt(); - } - return myItem; - } - - - /** - * Sets the value(s) for item (A product in the package) - * - *

- * Definition: - * Identifies one of the items in the package - *

- */ - public PackageContent setItem(ResourceReferenceDt theValue) { - myItem = theValue; - return this; - } - - - /** - * Gets the value(s) for amount (How many are in the package?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public QuantityDt getAmount() { - if (myAmount == null) { - myAmount = new QuantityDt(); - } - return myAmount; - } - - - /** - * Gets the value(s) for amount (How many are in the package?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public QuantityDt getAmountElement() { - if (myAmount == null) { - myAmount = new QuantityDt(); - } - return myAmount; - } - - - /** - * Sets the value(s) for amount (How many are in the package?) - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public PackageContent setAmount(QuantityDt theValue) { - myAmount = theValue; - return this; - } - - /** - * Sets the value for amount (How many are in the package?) - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public PackageContent setAmount( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myAmount = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for amount (How many are in the package?) - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public PackageContent setAmount( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myAmount = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for amount (How many are in the package?) - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public PackageContent setAmount( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myAmount = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for amount (How many are in the package?) - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public PackageContent setAmount( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myAmount = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for amount (How many are in the package?) - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public PackageContent setAmount( double theValue) { - myAmount = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for amount (How many are in the package?) - * - *

- * Definition: - * The amount of the product that is in the package - *

- */ - public PackageContent setAmount( long theValue) { - myAmount = new QuantityDt(theValue); - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "Medication"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationAdministration.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationAdministration.java deleted file mode 100644 index 2c1d4a848fe..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationAdministration.java +++ /dev/null @@ -1,1881 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR MedicationAdministration Resource - * (Administration of medication to a patient) - * - *

- * Definition: - * Describes the event of a patient being given a dose of a medication. This may be as simple as swallowing a tablet or it may be a long running infusion.Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/MedicationAdministration - *

- * - */ -@ResourceDef(name="MedicationAdministration", profile="http://hl7.org/fhir/profiles/MedicationAdministration", id="medicationadministration") -public class MedicationAdministration - extends BaseResource implements IResource { - - /** - * Search parameter constant for device - *

- * Description: Return administrations with this administration device identity
- * Type: reference
- * Path: MedicationAdministration.device
- *

- */ - @SearchParamDefinition(name="device", path="MedicationAdministration.device", description="Return administrations with this administration device identity", type="reference" ) - public static final String SP_DEVICE = "device"; - - /** - * Fluent Client search parameter constant for device - *

- * Description: Return administrations with this administration device identity
- * Type: reference
- * Path: MedicationAdministration.device
- *

- */ - public static final ReferenceClientParam DEVICE = new ReferenceClientParam(SP_DEVICE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration.device". - */ - public static final Include INCLUDE_DEVICE = new Include("MedicationAdministration.device"); - - /** - * Search parameter constant for encounter - *

- * Description: Return administrations that share this encounter
- * Type: reference
- * Path: MedicationAdministration.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="MedicationAdministration.encounter", description="Return administrations that share this encounter", type="reference" ) - public static final String SP_ENCOUNTER = "encounter"; - - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Return administrations that share this encounter
- * Type: reference
- * Path: MedicationAdministration.encounter
- *

- */ - public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration.encounter". - */ - public static final Include INCLUDE_ENCOUNTER = new Include("MedicationAdministration.encounter"); - - /** - * Search parameter constant for identifier - *

- * Description: Return administrations with this external identity
- * Type: token
- * Path: MedicationAdministration.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="MedicationAdministration.identifier", description="Return administrations with this external identity", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Return administrations with this external identity
- * Type: token
- * Path: MedicationAdministration.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for medication - *

- * Description: Return administrations of this medication
- * Type: reference
- * Path: MedicationAdministration.medication
- *

- */ - @SearchParamDefinition(name="medication", path="MedicationAdministration.medication", description="Return administrations of this medication", type="reference" ) - public static final String SP_MEDICATION = "medication"; - - /** - * Fluent Client search parameter constant for medication - *

- * Description: Return administrations of this medication
- * Type: reference
- * Path: MedicationAdministration.medication
- *

- */ - public static final ReferenceClientParam MEDICATION = new ReferenceClientParam(SP_MEDICATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration.medication". - */ - public static final Include INCLUDE_MEDICATION = new Include("MedicationAdministration.medication"); - - /** - * Search parameter constant for notgiven - *

- * Description: Administrations that were not made
- * Type: token
- * Path: MedicationAdministration.wasNotGiven
- *

- */ - @SearchParamDefinition(name="notgiven", path="MedicationAdministration.wasNotGiven", description="Administrations that were not made", type="token" ) - public static final String SP_NOTGIVEN = "notgiven"; - - /** - * Fluent Client search parameter constant for notgiven - *

- * Description: Administrations that were not made
- * Type: token
- * Path: MedicationAdministration.wasNotGiven
- *

- */ - public static final TokenClientParam NOTGIVEN = new TokenClientParam(SP_NOTGIVEN); - - /** - * Search parameter constant for patient - *

- * Description: The identity of a patient to list administrations for
- * Type: reference
- * Path: MedicationAdministration.patient
- *

- */ - @SearchParamDefinition(name="patient", path="MedicationAdministration.patient", description="The identity of a patient to list administrations for", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: The identity of a patient to list administrations for
- * Type: reference
- * Path: MedicationAdministration.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("MedicationAdministration.patient"); - - /** - * Search parameter constant for prescription - *

- * Description: The identity of a prescription to list administrations from
- * Type: reference
- * Path: MedicationAdministration.prescription
- *

- */ - @SearchParamDefinition(name="prescription", path="MedicationAdministration.prescription", description="The identity of a prescription to list administrations from", type="reference" ) - public static final String SP_PRESCRIPTION = "prescription"; - - /** - * Fluent Client search parameter constant for prescription - *

- * Description: The identity of a prescription to list administrations from
- * Type: reference
- * Path: MedicationAdministration.prescription
- *

- */ - public static final ReferenceClientParam PRESCRIPTION = new ReferenceClientParam(SP_PRESCRIPTION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration.prescription". - */ - public static final Include INCLUDE_PRESCRIPTION = new Include("MedicationAdministration.prescription"); - - /** - * Search parameter constant for status - *

- * Description: MedicationAdministration event status (for example one of active/paused/completed/nullified)
- * Type: token
- * Path: MedicationAdministration.status
- *

- */ - @SearchParamDefinition(name="status", path="MedicationAdministration.status", description="MedicationAdministration event status (for example one of active/paused/completed/nullified)", type="token" ) - public static final String SP_STATUS = "status"; - - /** - * Fluent Client search parameter constant for status - *

- * Description: MedicationAdministration event status (for example one of active/paused/completed/nullified)
- * Type: token
- * Path: MedicationAdministration.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for whengiven - *

- * Description: Date of administration
- * Type: date
- * Path: MedicationAdministration.whenGiven
- *

- */ - @SearchParamDefinition(name="whengiven", path="MedicationAdministration.whenGiven", description="Date of administration", type="date" ) - public static final String SP_WHENGIVEN = "whengiven"; - - /** - * Fluent Client search parameter constant for whengiven - *

- * Description: Date of administration
- * Type: date
- * Path: MedicationAdministration.whenGiven
- *

- */ - public static final DateClientParam WHENGIVEN = new DateClientParam(SP_WHENGIVEN); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External identifier", - formalDefinition="External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated." - ) - private java.util.List myIdentifier; - - @Child(name="status", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="in progress | on hold | completed | entered in error | stopped", - formalDefinition="Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way." - ) - private BoundCodeDt myStatus; - - @Child(name="patient", order=2, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who received medication?", - formalDefinition="The person or animal to whom the medication was given." - ) - private ResourceReferenceDt myPatient; - - @Child(name="practitioner", order=3, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who administered substance?", - formalDefinition="The individual who was responsible for giving the medication to the patient." - ) - private ResourceReferenceDt myPractitioner; - - @Child(name="encounter", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="Encounter administered as part of", - formalDefinition="The visit or admission the or other contact between patient and health care provider the medication administration was performed as part of." - ) - private ResourceReferenceDt myEncounter; - - @Child(name="prescription", order=5, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.MedicationPrescription.class }) - @Description( - shortDefinition="Order administration performed against", - formalDefinition="The original request, instruction or authority to perform the administration." - ) - private ResourceReferenceDt myPrescription; - - @Child(name="wasNotGiven", type=BooleanDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="True if medication not administered", - formalDefinition="Set this to true if the record is saying that the medication was NOT administered." - ) - private BooleanDt myWasNotGiven; - - @Child(name="reasonNotGiven", type=CodeableConceptDt.class, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Reason administration not performed", - formalDefinition="A code indicating why the administration was not performed." - ) - private java.util.List myReasonNotGiven; - - @Child(name="whenGiven", type=PeriodDt.class, order=8, min=1, max=1) - @Description( - shortDefinition="Start and end time of administration", - formalDefinition="An interval of time during which the administration took place. For many administrations, such as swallowing a tablet the lower and upper values of the interval will be the same." - ) - private PeriodDt myWhenGiven; - - @Child(name="medication", order=9, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class }) - @Description( - shortDefinition="What was administered?", - formalDefinition="Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." - ) - private ResourceReferenceDt myMedication; - - @Child(name="device", order=10, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Device used to administer", - formalDefinition="The device used in administering the medication to the patient. E.g. a particular infusion pump" - ) - private java.util.List myDevice; - - @Child(name="dosage", order=11, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Medicine administration instructions to the patient/carer", - formalDefinition="Provides details of how much of the medication was administered" - ) - private java.util.List myDosage; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myStatus, myPatient, myPractitioner, myEncounter, myPrescription, myWasNotGiven, myReasonNotGiven, myWhenGiven, myMedication, myDevice, myDosage); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myPatient, myPractitioner, myEncounter, myPrescription, myWasNotGiven, myReasonNotGiven, myWhenGiven, myMedication, myDevice, myDosage); - } - - /** - * Gets the value(s) for identifier (External identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External identifier) - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public MedicationAdministration setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External identifier) - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External identifier) - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public MedicationAdministration addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External identifier) - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public MedicationAdministration addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for status (in progress | on hold | completed | entered in error | stopped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way. - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(MedicationAdministrationStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (in progress | on hold | completed | entered in error | stopped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way. - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(MedicationAdministrationStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (in progress | on hold | completed | entered in error | stopped) - * - *

- * Definition: - * Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way. - *

- */ - public MedicationAdministration setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (in progress | on hold | completed | entered in error | stopped) - * - *

- * Definition: - * Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way. - *

- */ - public MedicationAdministration setStatus(MedicationAdministrationStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for patient (Who received medication?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or animal to whom the medication was given. - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Who received medication?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or animal to whom the medication was given. - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Who received medication?) - * - *

- * Definition: - * The person or animal to whom the medication was given. - *

- */ - public MedicationAdministration setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for practitioner (Who administered substance?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The individual who was responsible for giving the medication to the patient. - *

- */ - public ResourceReferenceDt getPractitioner() { - if (myPractitioner == null) { - myPractitioner = new ResourceReferenceDt(); - } - return myPractitioner; - } - - - /** - * Gets the value(s) for practitioner (Who administered substance?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The individual who was responsible for giving the medication to the patient. - *

- */ - public ResourceReferenceDt getPractitionerElement() { - if (myPractitioner == null) { - myPractitioner = new ResourceReferenceDt(); - } - return myPractitioner; - } - - - /** - * Sets the value(s) for practitioner (Who administered substance?) - * - *

- * Definition: - * The individual who was responsible for giving the medication to the patient. - *

- */ - public MedicationAdministration setPractitioner(ResourceReferenceDt theValue) { - myPractitioner = theValue; - return this; - } - - - /** - * Gets the value(s) for encounter (Encounter administered as part of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The visit or admission the or other contact between patient and health care provider the medication administration was performed as part of. - *

- */ - public ResourceReferenceDt getEncounter() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Gets the value(s) for encounter (Encounter administered as part of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The visit or admission the or other contact between patient and health care provider the medication administration was performed as part of. - *

- */ - public ResourceReferenceDt getEncounterElement() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Sets the value(s) for encounter (Encounter administered as part of) - * - *

- * Definition: - * The visit or admission the or other contact between patient and health care provider the medication administration was performed as part of. - *

- */ - public MedicationAdministration setEncounter(ResourceReferenceDt theValue) { - myEncounter = theValue; - return this; - } - - - /** - * Gets the value(s) for prescription (Order administration performed against). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The original request, instruction or authority to perform the administration. - *

- */ - public ResourceReferenceDt getPrescription() { - if (myPrescription == null) { - myPrescription = new ResourceReferenceDt(); - } - return myPrescription; - } - - - /** - * Gets the value(s) for prescription (Order administration performed against). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The original request, instruction or authority to perform the administration. - *

- */ - public ResourceReferenceDt getPrescriptionElement() { - if (myPrescription == null) { - myPrescription = new ResourceReferenceDt(); - } - return myPrescription; - } - - - /** - * Sets the value(s) for prescription (Order administration performed against) - * - *

- * Definition: - * The original request, instruction or authority to perform the administration. - *

- */ - public MedicationAdministration setPrescription(ResourceReferenceDt theValue) { - myPrescription = theValue; - return this; - } - - - /** - * Gets the value(s) for wasNotGiven (True if medication not administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Set this to true if the record is saying that the medication was NOT administered. - *

- */ - public BooleanDt getWasNotGiven() { - if (myWasNotGiven == null) { - myWasNotGiven = new BooleanDt(); - } - return myWasNotGiven; - } - - - /** - * Gets the value(s) for wasNotGiven (True if medication not administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Set this to true if the record is saying that the medication was NOT administered. - *

- */ - public BooleanDt getWasNotGivenElement() { - if (myWasNotGiven == null) { - myWasNotGiven = new BooleanDt(); - } - return myWasNotGiven; - } - - - /** - * Sets the value(s) for wasNotGiven (True if medication not administered) - * - *

- * Definition: - * Set this to true if the record is saying that the medication was NOT administered. - *

- */ - public MedicationAdministration setWasNotGiven(BooleanDt theValue) { - myWasNotGiven = theValue; - return this; - } - - /** - * Sets the value for wasNotGiven (True if medication not administered) - * - *

- * Definition: - * Set this to true if the record is saying that the medication was NOT administered. - *

- */ - public MedicationAdministration setWasNotGiven( boolean theBoolean) { - myWasNotGiven = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for reasonNotGiven (Reason administration not performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code indicating why the administration was not performed. - *

- */ - public java.util.List getReasonNotGiven() { - if (myReasonNotGiven == null) { - myReasonNotGiven = new java.util.ArrayList(); - } - return myReasonNotGiven; - } - - - /** - * Gets the value(s) for reasonNotGiven (Reason administration not performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code indicating why the administration was not performed. - *

- */ - public java.util.List getReasonNotGivenElement() { - if (myReasonNotGiven == null) { - myReasonNotGiven = new java.util.ArrayList(); - } - return myReasonNotGiven; - } - - - /** - * Sets the value(s) for reasonNotGiven (Reason administration not performed) - * - *

- * Definition: - * A code indicating why the administration was not performed. - *

- */ - public MedicationAdministration setReasonNotGiven(java.util.List theValue) { - myReasonNotGiven = theValue; - return this; - } - - /** - * Adds and returns a new value for reasonNotGiven (Reason administration not performed) - * - *

- * Definition: - * A code indicating why the administration was not performed. - *

- */ - public CodeableConceptDt addReasonNotGiven() { - CodeableConceptDt newType = new CodeableConceptDt(); - getReasonNotGiven().add(newType); - return newType; - } - - /** - * Gets the first repetition for reasonNotGiven (Reason administration not performed), - * creating it if it does not already exist. - * - *

- * Definition: - * A code indicating why the administration was not performed. - *

- */ - public CodeableConceptDt getReasonNotGivenFirstRep() { - if (getReasonNotGiven().isEmpty()) { - return addReasonNotGiven(); - } - return getReasonNotGiven().get(0); - } - - /** - * Gets the value(s) for whenGiven (Start and end time of administration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An interval of time during which the administration took place. For many administrations, such as swallowing a tablet the lower and upper values of the interval will be the same. - *

- */ - public PeriodDt getWhenGiven() { - if (myWhenGiven == null) { - myWhenGiven = new PeriodDt(); - } - return myWhenGiven; - } - - - /** - * Gets the value(s) for whenGiven (Start and end time of administration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An interval of time during which the administration took place. For many administrations, such as swallowing a tablet the lower and upper values of the interval will be the same. - *

- */ - public PeriodDt getWhenGivenElement() { - if (myWhenGiven == null) { - myWhenGiven = new PeriodDt(); - } - return myWhenGiven; - } - - - /** - * Sets the value(s) for whenGiven (Start and end time of administration) - * - *

- * Definition: - * An interval of time during which the administration took place. For many administrations, such as swallowing a tablet the lower and upper values of the interval will be the same. - *

- */ - public MedicationAdministration setWhenGiven(PeriodDt theValue) { - myWhenGiven = theValue; - return this; - } - - - /** - * Gets the value(s) for medication (What was administered?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedication() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Gets the value(s) for medication (What was administered?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedicationElement() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Sets the value(s) for medication (What was administered?) - * - *

- * Definition: - * Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public MedicationAdministration setMedication(ResourceReferenceDt theValue) { - myMedication = theValue; - return this; - } - - - /** - * Gets the value(s) for device (Device used to administer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The device used in administering the medication to the patient. E.g. a particular infusion pump - *

- */ - public java.util.List getDevice() { - if (myDevice == null) { - myDevice = new java.util.ArrayList(); - } - return myDevice; - } - - - /** - * Gets the value(s) for device (Device used to administer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The device used in administering the medication to the patient. E.g. a particular infusion pump - *

- */ - public java.util.List getDeviceElement() { - if (myDevice == null) { - myDevice = new java.util.ArrayList(); - } - return myDevice; - } - - - /** - * Sets the value(s) for device (Device used to administer) - * - *

- * Definition: - * The device used in administering the medication to the patient. E.g. a particular infusion pump - *

- */ - public MedicationAdministration setDevice(java.util.List theValue) { - myDevice = theValue; - return this; - } - - /** - * Adds and returns a new value for device (Device used to administer) - * - *

- * Definition: - * The device used in administering the medication to the patient. E.g. a particular infusion pump - *

- */ - public ResourceReferenceDt addDevice() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getDevice().add(newType); - return newType; - } - - /** - * Gets the value(s) for dosage (Medicine administration instructions to the patient/carer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Provides details of how much of the medication was administered - *

- */ - public java.util.List getDosage() { - if (myDosage == null) { - myDosage = new java.util.ArrayList(); - } - return myDosage; - } - - - /** - * Gets the value(s) for dosage (Medicine administration instructions to the patient/carer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Provides details of how much of the medication was administered - *

- */ - public java.util.List getDosageElement() { - if (myDosage == null) { - myDosage = new java.util.ArrayList(); - } - return myDosage; - } - - - /** - * Sets the value(s) for dosage (Medicine administration instructions to the patient/carer) - * - *

- * Definition: - * Provides details of how much of the medication was administered - *

- */ - public MedicationAdministration setDosage(java.util.List theValue) { - myDosage = theValue; - return this; - } - - /** - * Adds and returns a new value for dosage (Medicine administration instructions to the patient/carer) - * - *

- * Definition: - * Provides details of how much of the medication was administered - *

- */ - public Dosage addDosage() { - Dosage newType = new Dosage(); - getDosage().add(newType); - return newType; - } - - /** - * Gets the first repetition for dosage (Medicine administration instructions to the patient/carer), - * creating it if it does not already exist. - * - *

- * Definition: - * Provides details of how much of the medication was administered - *

- */ - public Dosage getDosageFirstRep() { - if (getDosage().isEmpty()) { - return addDosage(); - } - return getDosage().get(0); - } - - /** - * Block class for child element: MedicationAdministration.dosage (Medicine administration instructions to the patient/carer) - * - *

- * Definition: - * Provides details of how much of the medication was administered - *

- */ - @Block() - public static class Dosage - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="timing", order=0, min=0, max=1, type={ - DateTimeDt.class, PeriodDt.class }) - @Description( - shortDefinition="When dose(s) were given", - formalDefinition="The timing schedule for giving the medication to the patient. This may be a single time point (using dateTime) or it may be a start and end dateTime (Period)" - ) - private IDatatype myTiming; - - @Child(name="asNeeded", order=1, min=0, max=1, type={ - BooleanDt.class, CodeableConceptDt.class }) - @Description( - shortDefinition="Take \"as needed\" f(or x)", - formalDefinition="If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication" - ) - private IDatatype myAsNeeded; - - @Child(name="site", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Body site administered to", - formalDefinition="A coded specification of the anatomic site where the medication first entered the body. E.g. \"left arm\"" - ) - private CodeableConceptDt mySite; - - @Child(name="route", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Path of substance into body", - formalDefinition="A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. E.g. topical, intravenous, etc." - ) - private CodeableConceptDt myRoute; - - @Child(name="method", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="How drug was administered", - formalDefinition="A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration." - ) - private CodeableConceptDt myMethod; - - @Child(name="quantity", type=QuantityDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Amount administered in one dose", - formalDefinition="The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection." - ) - private QuantityDt myQuantity; - - @Child(name="rate", type=RatioDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Dose quantity per unit of time", - formalDefinition="Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity." - ) - private RatioDt myRate; - - @Child(name="maxDosePerPeriod", type=RatioDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Total dose that was consumed per unit of time", - formalDefinition="The maximum total quantity of a therapeutic substance that was administered to the patient over the specified period of time. E.g. 1000mg in 24 hours." - ) - private RatioDt myMaxDosePerPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myTiming, myAsNeeded, mySite, myRoute, myMethod, myQuantity, myRate, myMaxDosePerPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myTiming, myAsNeeded, mySite, myRoute, myMethod, myQuantity, myRate, myMaxDosePerPeriod); - } - - /** - * Gets the value(s) for timing[x] (When dose(s) were given). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. This may be a single time point (using dateTime) or it may be a start and end dateTime (Period) - *

- */ - public IDatatype getTiming() { - return myTiming; - } - - - /** - * Gets the value(s) for timing[x] (When dose(s) were given). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. This may be a single time point (using dateTime) or it may be a start and end dateTime (Period) - *

- */ - public IDatatype getTimingElement() { - return myTiming; - } - - - /** - * Sets the value(s) for timing[x] (When dose(s) were given) - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. This may be a single time point (using dateTime) or it may be a start and end dateTime (Period) - *

- */ - public Dosage setTiming(IDatatype theValue) { - myTiming = theValue; - return this; - } - - - /** - * Gets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public IDatatype getAsNeeded() { - return myAsNeeded; - } - - - /** - * Gets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public IDatatype getAsNeededElement() { - return myAsNeeded; - } - - - /** - * Sets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)) - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public Dosage setAsNeeded(IDatatype theValue) { - myAsNeeded = theValue; - return this; - } - - - /** - * Gets the value(s) for site (Body site administered to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first entered the body. E.g. \"left arm\" - *

- */ - public CodeableConceptDt getSite() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Gets the value(s) for site (Body site administered to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first entered the body. E.g. \"left arm\" - *

- */ - public CodeableConceptDt getSiteElement() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Sets the value(s) for site (Body site administered to) - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first entered the body. E.g. \"left arm\" - *

- */ - public Dosage setSite(CodeableConceptDt theValue) { - mySite = theValue; - return this; - } - - - /** - * Gets the value(s) for route (Path of substance into body). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. E.g. topical, intravenous, etc. - *

- */ - public CodeableConceptDt getRoute() { - if (myRoute == null) { - myRoute = new CodeableConceptDt(); - } - return myRoute; - } - - - /** - * Gets the value(s) for route (Path of substance into body). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. E.g. topical, intravenous, etc. - *

- */ - public CodeableConceptDt getRouteElement() { - if (myRoute == null) { - myRoute = new CodeableConceptDt(); - } - return myRoute; - } - - - /** - * Sets the value(s) for route (Path of substance into body) - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. E.g. topical, intravenous, etc. - *

- */ - public Dosage setRoute(CodeableConceptDt theValue) { - myRoute = theValue; - return this; - } - - - /** - * Gets the value(s) for method (How drug was administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public CodeableConceptDt getMethod() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Gets the value(s) for method (How drug was administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public CodeableConceptDt getMethodElement() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Sets the value(s) for method (How drug was administered) - * - *

- * Definition: - * A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public Dosage setMethod(CodeableConceptDt theValue) { - myMethod = theValue; - return this; - } - - - /** - * Gets the value(s) for quantity (Amount administered in one dose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Amount administered in one dose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public Dosage setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public Dosage setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public Dosage setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public Dosage setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public Dosage setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public Dosage setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection. - *

- */ - public Dosage setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for rate (Dose quantity per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity. - *

- */ - public RatioDt getRate() { - if (myRate == null) { - myRate = new RatioDt(); - } - return myRate; - } - - - /** - * Gets the value(s) for rate (Dose quantity per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity. - *

- */ - public RatioDt getRateElement() { - if (myRate == null) { - myRate = new RatioDt(); - } - return myRate; - } - - - /** - * Sets the value(s) for rate (Dose quantity per unit of time) - * - *

- * Definition: - * Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity. - *

- */ - public Dosage setRate(RatioDt theValue) { - myRate = theValue; - return this; - } - - - /** - * Gets the value(s) for maxDosePerPeriod (Total dose that was consumed per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that was administered to the patient over the specified period of time. E.g. 1000mg in 24 hours. - *

- */ - public RatioDt getMaxDosePerPeriod() { - if (myMaxDosePerPeriod == null) { - myMaxDosePerPeriod = new RatioDt(); - } - return myMaxDosePerPeriod; - } - - - /** - * Gets the value(s) for maxDosePerPeriod (Total dose that was consumed per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that was administered to the patient over the specified period of time. E.g. 1000mg in 24 hours. - *

- */ - public RatioDt getMaxDosePerPeriodElement() { - if (myMaxDosePerPeriod == null) { - myMaxDosePerPeriod = new RatioDt(); - } - return myMaxDosePerPeriod; - } - - - /** - * Sets the value(s) for maxDosePerPeriod (Total dose that was consumed per unit of time) - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that was administered to the patient over the specified period of time. E.g. 1000mg in 24 hours. - *

- */ - public Dosage setMaxDosePerPeriod(RatioDt theValue) { - myMaxDosePerPeriod = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "MedicationAdministration"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationDispense.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationDispense.java deleted file mode 100644 index d15d3dd6397..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationDispense.java +++ /dev/null @@ -1,2669 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR MedicationDispense Resource - * (Dispensing a medication to a named patient) - * - *

- * Definition: - * Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication. - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/MedicationDispense - *

- * - */ -@ResourceDef(name="MedicationDispense", profile="http://hl7.org/fhir/profiles/MedicationDispense", id="medicationdispense") -public class MedicationDispense - extends BaseResource implements IResource { - - /** - * Search parameter constant for destination - *

- * Description: Return dispenses that should be sent to a secific destination
- * Type: reference
- * Path: MedicationDispense.dispense.destination
- *

- */ - @SearchParamDefinition(name="destination", path="MedicationDispense.dispense.destination", description="Return dispenses that should be sent to a secific destination", type="reference" ) - public static final String SP_DESTINATION = "destination"; - - /** - * Fluent Client search parameter constant for destination - *

- * Description: Return dispenses that should be sent to a secific destination
- * Type: reference
- * Path: MedicationDispense.dispense.destination
- *

- */ - public static final ReferenceClientParam DESTINATION = new ReferenceClientParam(SP_DESTINATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense.dispense.destination". - */ - public static final Include INCLUDE_DISPENSE_DESTINATION = new Include("MedicationDispense.dispense.destination"); - - /** - * Search parameter constant for dispenser - *

- * Description: Return all dispenses performed by a specific indiividual
- * Type: reference
- * Path: MedicationDispense.dispenser
- *

- */ - @SearchParamDefinition(name="dispenser", path="MedicationDispense.dispenser", description="Return all dispenses performed by a specific indiividual", type="reference" ) - public static final String SP_DISPENSER = "dispenser"; - - /** - * Fluent Client search parameter constant for dispenser - *

- * Description: Return all dispenses performed by a specific indiividual
- * Type: reference
- * Path: MedicationDispense.dispenser
- *

- */ - public static final ReferenceClientParam DISPENSER = new ReferenceClientParam(SP_DISPENSER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense.dispenser". - */ - public static final Include INCLUDE_DISPENSER = new Include("MedicationDispense.dispenser"); - - /** - * Search parameter constant for identifier - *

- * Description: Return dispenses with this external identity
- * Type: token
- * Path: MedicationDispense.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="MedicationDispense.identifier", description="Return dispenses with this external identity", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Return dispenses with this external identity
- * Type: token
- * Path: MedicationDispense.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for medication - *

- * Description: Returns dispenses of this medicine
- * Type: reference
- * Path: MedicationDispense.dispense.medication
- *

- */ - @SearchParamDefinition(name="medication", path="MedicationDispense.dispense.medication", description="Returns dispenses of this medicine", type="reference" ) - public static final String SP_MEDICATION = "medication"; - - /** - * Fluent Client search parameter constant for medication - *

- * Description: Returns dispenses of this medicine
- * Type: reference
- * Path: MedicationDispense.dispense.medication
- *

- */ - public static final ReferenceClientParam MEDICATION = new ReferenceClientParam(SP_MEDICATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense.dispense.medication". - */ - public static final Include INCLUDE_DISPENSE_MEDICATION = new Include("MedicationDispense.dispense.medication"); - - /** - * Search parameter constant for patient - *

- * Description: The identity of a patient to list dispenses for
- * Type: reference
- * Path: MedicationDispense.patient
- *

- */ - @SearchParamDefinition(name="patient", path="MedicationDispense.patient", description="The identity of a patient to list dispenses for", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: The identity of a patient to list dispenses for
- * Type: reference
- * Path: MedicationDispense.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("MedicationDispense.patient"); - - /** - * Search parameter constant for prescription - *

- * Description: The identity of a prescription to list dispenses from
- * Type: reference
- * Path: MedicationDispense.authorizingPrescription
- *

- */ - @SearchParamDefinition(name="prescription", path="MedicationDispense.authorizingPrescription", description="The identity of a prescription to list dispenses from", type="reference" ) - public static final String SP_PRESCRIPTION = "prescription"; - - /** - * Fluent Client search parameter constant for prescription - *

- * Description: The identity of a prescription to list dispenses from
- * Type: reference
- * Path: MedicationDispense.authorizingPrescription
- *

- */ - public static final ReferenceClientParam PRESCRIPTION = new ReferenceClientParam(SP_PRESCRIPTION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense.authorizingPrescription". - */ - public static final Include INCLUDE_AUTHORIZINGPRESCRIPTION = new Include("MedicationDispense.authorizingPrescription"); - - /** - * Search parameter constant for responsibleparty - *

- * Description: Return all dispenses with the specified responsible party
- * Type: reference
- * Path: MedicationDispense.substitution.responsibleParty
- *

- */ - @SearchParamDefinition(name="responsibleparty", path="MedicationDispense.substitution.responsibleParty", description="Return all dispenses with the specified responsible party", type="reference" ) - public static final String SP_RESPONSIBLEPARTY = "responsibleparty"; - - /** - * Fluent Client search parameter constant for responsibleparty - *

- * Description: Return all dispenses with the specified responsible party
- * Type: reference
- * Path: MedicationDispense.substitution.responsibleParty
- *

- */ - public static final ReferenceClientParam RESPONSIBLEPARTY = new ReferenceClientParam(SP_RESPONSIBLEPARTY); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense.substitution.responsibleParty". - */ - public static final Include INCLUDE_SUBSTITUTION_RESPONSIBLEPARTY = new Include("MedicationDispense.substitution.responsibleParty"); - - /** - * Search parameter constant for status - *

- * Description: Status of the dispense
- * Type: token
- * Path: MedicationDispense.dispense.status
- *

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

- * Description: Status of the dispense
- * Type: token
- * Path: MedicationDispense.dispense.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for type - *

- * Description: Return all dispenses of a specific type
- * Type: token
- * Path: MedicationDispense.dispense.type
- *

- */ - @SearchParamDefinition(name="type", path="MedicationDispense.dispense.type", description="Return all dispenses of a specific type", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: Return all dispenses of a specific type
- * Type: token
- * Path: MedicationDispense.dispense.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for whenhandedover - *

- * Description: Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting)
- * Type: date
- * Path: MedicationDispense.dispense.whenHandedOver
- *

- */ - @SearchParamDefinition(name="whenhandedover", path="MedicationDispense.dispense.whenHandedOver", description="Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting)", type="date" ) - public static final String SP_WHENHANDEDOVER = "whenhandedover"; - - /** - * Fluent Client search parameter constant for whenhandedover - *

- * Description: Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting)
- * Type: date
- * Path: MedicationDispense.dispense.whenHandedOver
- *

- */ - public static final DateClientParam WHENHANDEDOVER = new DateClientParam(SP_WHENHANDEDOVER); - - /** - * Search parameter constant for whenprepared - *

- * Description: Date when medication prepared
- * Type: date
- * Path: MedicationDispense.dispense.whenPrepared
- *

- */ - @SearchParamDefinition(name="whenprepared", path="MedicationDispense.dispense.whenPrepared", description="Date when medication prepared", type="date" ) - public static final String SP_WHENPREPARED = "whenprepared"; - - /** - * Fluent Client search parameter constant for whenprepared - *

- * Description: Date when medication prepared
- * Type: date
- * Path: MedicationDispense.dispense.whenPrepared
- *

- */ - public static final DateClientParam WHENPREPARED = new DateClientParam(SP_WHENPREPARED); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="External identifier", - formalDefinition="Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR." - ) - private IdentifierDt myIdentifier; - - @Child(name="status", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="in progress | on hold | completed | entered in error | stopped", - formalDefinition="A code specifying the state of the set of dispense events." - ) - private BoundCodeDt myStatus; - - @Child(name="patient", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who the dispense is for", - formalDefinition="A link to a resource representing the person to whom the medication will be given." - ) - private ResourceReferenceDt myPatient; - - @Child(name="dispenser", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Practitioner responsible for dispensing medication", - formalDefinition="The individual responsible for dispensing the medication" - ) - private ResourceReferenceDt myDispenser; - - @Child(name="authorizingPrescription", order=4, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.MedicationPrescription.class }) - @Description( - shortDefinition="Medication order that authorizes the dispense", - formalDefinition="Indicates the medication order that is being dispensed against." - ) - private java.util.List myAuthorizingPrescription; - - @Child(name="dispense", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Details for individual dispensed medicationdetails", - formalDefinition="Indicates the details of the dispense event such as the days supply and quantity of medication dispensed." - ) - private java.util.List myDispense; - - @Child(name="substitution", order=6, min=0, max=1) - @Description( - shortDefinition="Deals with substitution of one medicine for another", - formalDefinition="Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but doesn't happen, in other cases substitution is not expected but does happen. This block explains what substitition did or did not happen and why." - ) - private Substitution mySubstitution; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myStatus, myPatient, myDispenser, myAuthorizingPrescription, myDispense, mySubstitution); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myPatient, myDispenser, myAuthorizingPrescription, myDispense, mySubstitution); - } - - /** - * Gets the value(s) for identifier (External identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR. - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR. - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External identifier) - * - *

- * Definition: - * Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR. - *

- */ - public MedicationDispense setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (External identifier) - * - *

- * Definition: - * Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR. - *

- */ - public MedicationDispense setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (External identifier) - * - *

- * Definition: - * Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR. - *

- */ - public MedicationDispense setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for status (in progress | on hold | completed | entered in error | stopped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the state of the set of dispense events. - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(MedicationDispenseStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (in progress | on hold | completed | entered in error | stopped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the state of the set of dispense events. - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(MedicationDispenseStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (in progress | on hold | completed | entered in error | stopped) - * - *

- * Definition: - * A code specifying the state of the set of dispense events. - *

- */ - public MedicationDispense setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (in progress | on hold | completed | entered in error | stopped) - * - *

- * Definition: - * A code specifying the state of the set of dispense events. - *

- */ - public MedicationDispense setStatus(MedicationDispenseStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for patient (Who the dispense is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A link to a resource representing the person to whom the medication will be given. - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Who the dispense is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A link to a resource representing the person to whom the medication will be given. - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Who the dispense is for) - * - *

- * Definition: - * A link to a resource representing the person to whom the medication will be given. - *

- */ - public MedicationDispense setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for dispenser (Practitioner responsible for dispensing medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The individual responsible for dispensing the medication - *

- */ - public ResourceReferenceDt getDispenser() { - if (myDispenser == null) { - myDispenser = new ResourceReferenceDt(); - } - return myDispenser; - } - - - /** - * Gets the value(s) for dispenser (Practitioner responsible for dispensing medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The individual responsible for dispensing the medication - *

- */ - public ResourceReferenceDt getDispenserElement() { - if (myDispenser == null) { - myDispenser = new ResourceReferenceDt(); - } - return myDispenser; - } - - - /** - * Sets the value(s) for dispenser (Practitioner responsible for dispensing medication) - * - *

- * Definition: - * The individual responsible for dispensing the medication - *

- */ - public MedicationDispense setDispenser(ResourceReferenceDt theValue) { - myDispenser = theValue; - return this; - } - - - /** - * Gets the value(s) for authorizingPrescription (Medication order that authorizes the dispense). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the medication order that is being dispensed against. - *

- */ - public java.util.List getAuthorizingPrescription() { - if (myAuthorizingPrescription == null) { - myAuthorizingPrescription = new java.util.ArrayList(); - } - return myAuthorizingPrescription; - } - - - /** - * Gets the value(s) for authorizingPrescription (Medication order that authorizes the dispense). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the medication order that is being dispensed against. - *

- */ - public java.util.List getAuthorizingPrescriptionElement() { - if (myAuthorizingPrescription == null) { - myAuthorizingPrescription = new java.util.ArrayList(); - } - return myAuthorizingPrescription; - } - - - /** - * Sets the value(s) for authorizingPrescription (Medication order that authorizes the dispense) - * - *

- * Definition: - * Indicates the medication order that is being dispensed against. - *

- */ - public MedicationDispense setAuthorizingPrescription(java.util.List theValue) { - myAuthorizingPrescription = theValue; - return this; - } - - /** - * Adds and returns a new value for authorizingPrescription (Medication order that authorizes the dispense) - * - *

- * Definition: - * Indicates the medication order that is being dispensed against. - *

- */ - public ResourceReferenceDt addAuthorizingPrescription() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getAuthorizingPrescription().add(newType); - return newType; - } - - /** - * Gets the value(s) for dispense (Details for individual dispensed medicationdetails). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of medication dispensed. - *

- */ - public java.util.List getDispense() { - if (myDispense == null) { - myDispense = new java.util.ArrayList(); - } - return myDispense; - } - - - /** - * Gets the value(s) for dispense (Details for individual dispensed medicationdetails). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of medication dispensed. - *

- */ - public java.util.List getDispenseElement() { - if (myDispense == null) { - myDispense = new java.util.ArrayList(); - } - return myDispense; - } - - - /** - * Sets the value(s) for dispense (Details for individual dispensed medicationdetails) - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of medication dispensed. - *

- */ - public MedicationDispense setDispense(java.util.List theValue) { - myDispense = theValue; - return this; - } - - /** - * Adds and returns a new value for dispense (Details for individual dispensed medicationdetails) - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of medication dispensed. - *

- */ - public Dispense addDispense() { - Dispense newType = new Dispense(); - getDispense().add(newType); - return newType; - } - - /** - * Gets the first repetition for dispense (Details for individual dispensed medicationdetails), - * creating it if it does not already exist. - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of medication dispensed. - *

- */ - public Dispense getDispenseFirstRep() { - if (getDispense().isEmpty()) { - return addDispense(); - } - return getDispense().get(0); - } - - /** - * Gets the value(s) for substitution (Deals with substitution of one medicine for another). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but doesn't happen, in other cases substitution is not expected but does happen. This block explains what substitition did or did not happen and why. - *

- */ - public Substitution getSubstitution() { - if (mySubstitution == null) { - mySubstitution = new Substitution(); - } - return mySubstitution; - } - - - /** - * Gets the value(s) for substitution (Deals with substitution of one medicine for another). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but doesn't happen, in other cases substitution is not expected but does happen. This block explains what substitition did or did not happen and why. - *

- */ - public Substitution getSubstitutionElement() { - if (mySubstitution == null) { - mySubstitution = new Substitution(); - } - return mySubstitution; - } - - - /** - * Sets the value(s) for substitution (Deals with substitution of one medicine for another) - * - *

- * Definition: - * Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but doesn't happen, in other cases substitution is not expected but does happen. This block explains what substitition did or did not happen and why. - *

- */ - public MedicationDispense setSubstitution(Substitution theValue) { - mySubstitution = theValue; - return this; - } - - - /** - * Block class for child element: MedicationDispense.dispense (Details for individual dispensed medicationdetails) - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of medication dispensed. - *

- */ - @Block() - public static class Dispense - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="External identifier for individual item", - formalDefinition="Identifier assigned by the dispensing facility. This is an identifier assigned outside FHIR." - ) - private IdentifierDt myIdentifier; - - @Child(name="status", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="in progress | on hold | completed | entered in error | stopped", - formalDefinition="A code specifying the state of the dispense event." - ) - private BoundCodeDt myStatus; - - @Child(name="type", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Trial fill, partial fill, emergency fill, etc.", - formalDefinition="Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc." - ) - private CodeableConceptDt myType; - - @Child(name="quantity", type=QuantityDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Amount dispensed", - formalDefinition="The amount of medication that has been dispensed. Includes unit of measure." - ) - private QuantityDt myQuantity; - - @Child(name="medication", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class }) - @Description( - shortDefinition="What medication was supplied", - formalDefinition="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." - ) - private ResourceReferenceDt myMedication; - - @Child(name="whenPrepared", type=DateTimeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Dispense processing time", - formalDefinition="The time when the dispensed product was packaged and reviewed." - ) - private DateTimeDt myWhenPrepared; - - @Child(name="whenHandedOver", type=DateTimeDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Handover time", - formalDefinition="The time the dispensed product was provided to the patient or their representative." - ) - private DateTimeDt myWhenHandedOver; - - @Child(name="destination", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Where the medication was sent", - formalDefinition="Identification of the facility/location where the medication was shipped to, as part of the dispense event." - ) - private ResourceReferenceDt myDestination; - - @Child(name="receiver", order=8, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who collected the medication", - formalDefinition="Identifies the person who picked up the medication. This will usually be a patient or their carer, but some cases exist where it can be a healthcare professional" - ) - private java.util.List myReceiver; - - @Child(name="dosage", order=9, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Medicine administration instructions to the patient/carer", - formalDefinition="Indicates how the medication is to be used by the patient" - ) - private java.util.List myDosage; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myStatus, myType, myQuantity, myMedication, myWhenPrepared, myWhenHandedOver, myDestination, myReceiver, myDosage); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myType, myQuantity, myMedication, myWhenPrepared, myWhenHandedOver, myDestination, myReceiver, myDosage); - } - - /** - * Gets the value(s) for identifier (External identifier for individual item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned by the dispensing facility. This is an identifier assigned outside FHIR. - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External identifier for individual item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned by the dispensing facility. This is an identifier assigned outside FHIR. - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External identifier for individual item) - * - *

- * Definition: - * Identifier assigned by the dispensing facility. This is an identifier assigned outside FHIR. - *

- */ - public Dispense setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (External identifier for individual item) - * - *

- * Definition: - * Identifier assigned by the dispensing facility. This is an identifier assigned outside FHIR. - *

- */ - public Dispense setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (External identifier for individual item) - * - *

- * Definition: - * Identifier assigned by the dispensing facility. This is an identifier assigned outside FHIR. - *

- */ - public Dispense setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for status (in progress | on hold | completed | entered in error | stopped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the state of the dispense event. - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(MedicationDispenseStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (in progress | on hold | completed | entered in error | stopped). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the state of the dispense event. - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(MedicationDispenseStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (in progress | on hold | completed | entered in error | stopped) - * - *

- * Definition: - * A code specifying the state of the dispense event. - *

- */ - public Dispense setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (in progress | on hold | completed | entered in error | stopped) - * - *

- * Definition: - * A code specifying the state of the dispense event. - *

- */ - public Dispense setStatus(MedicationDispenseStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for type (Trial fill, partial fill, emergency fill, etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Trial fill, partial fill, emergency fill, etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Trial fill, partial fill, emergency fill, etc.) - * - *

- * Definition: - * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. - *

- */ - public Dispense setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for quantity (Amount dispensed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Amount dispensed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of medication that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for medication (What medication was supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedication() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Gets the value(s) for medication (What medication was supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedicationElement() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Sets the value(s) for medication (What medication was supplied) - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public Dispense setMedication(ResourceReferenceDt theValue) { - myMedication = theValue; - return this; - } - - - /** - * Gets the value(s) for whenPrepared (Dispense processing time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time when the dispensed product was packaged and reviewed. - *

- */ - public DateTimeDt getWhenPrepared() { - if (myWhenPrepared == null) { - myWhenPrepared = new DateTimeDt(); - } - return myWhenPrepared; - } - - - /** - * Gets the value(s) for whenPrepared (Dispense processing time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time when the dispensed product was packaged and reviewed. - *

- */ - public DateTimeDt getWhenPreparedElement() { - if (myWhenPrepared == null) { - myWhenPrepared = new DateTimeDt(); - } - return myWhenPrepared; - } - - - /** - * Sets the value(s) for whenPrepared (Dispense processing time) - * - *

- * Definition: - * The time when the dispensed product was packaged and reviewed. - *

- */ - public Dispense setWhenPrepared(DateTimeDt theValue) { - myWhenPrepared = theValue; - return this; - } - - /** - * Sets the value for whenPrepared (Dispense processing time) - * - *

- * Definition: - * The time when the dispensed product was packaged and reviewed. - *

- */ - public Dispense setWhenPrepared( Date theDate, TemporalPrecisionEnum thePrecision) { - myWhenPrepared = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for whenPrepared (Dispense processing time) - * - *

- * Definition: - * The time when the dispensed product was packaged and reviewed. - *

- */ - public Dispense setWhenPreparedWithSecondsPrecision( Date theDate) { - myWhenPrepared = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for whenHandedOver (Handover time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time the dispensed product was provided to the patient or their representative. - *

- */ - public DateTimeDt getWhenHandedOver() { - if (myWhenHandedOver == null) { - myWhenHandedOver = new DateTimeDt(); - } - return myWhenHandedOver; - } - - - /** - * Gets the value(s) for whenHandedOver (Handover time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time the dispensed product was provided to the patient or their representative. - *

- */ - public DateTimeDt getWhenHandedOverElement() { - if (myWhenHandedOver == null) { - myWhenHandedOver = new DateTimeDt(); - } - return myWhenHandedOver; - } - - - /** - * Sets the value(s) for whenHandedOver (Handover time) - * - *

- * Definition: - * The time the dispensed product was provided to the patient or their representative. - *

- */ - public Dispense setWhenHandedOver(DateTimeDt theValue) { - myWhenHandedOver = theValue; - return this; - } - - /** - * Sets the value for whenHandedOver (Handover time) - * - *

- * Definition: - * The time the dispensed product was provided to the patient or their representative. - *

- */ - public Dispense setWhenHandedOver( Date theDate, TemporalPrecisionEnum thePrecision) { - myWhenHandedOver = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for whenHandedOver (Handover time) - * - *

- * Definition: - * The time the dispensed product was provided to the patient or their representative. - *

- */ - public Dispense setWhenHandedOverWithSecondsPrecision( Date theDate) { - myWhenHandedOver = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for destination (Where the medication was sent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identification of the facility/location where the medication was shipped to, as part of the dispense event. - *

- */ - public ResourceReferenceDt getDestination() { - if (myDestination == null) { - myDestination = new ResourceReferenceDt(); - } - return myDestination; - } - - - /** - * Gets the value(s) for destination (Where the medication was sent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identification of the facility/location where the medication was shipped to, as part of the dispense event. - *

- */ - public ResourceReferenceDt getDestinationElement() { - if (myDestination == null) { - myDestination = new ResourceReferenceDt(); - } - return myDestination; - } - - - /** - * Sets the value(s) for destination (Where the medication was sent) - * - *

- * Definition: - * Identification of the facility/location where the medication was shipped to, as part of the dispense event. - *

- */ - public Dispense setDestination(ResourceReferenceDt theValue) { - myDestination = theValue; - return this; - } - - - /** - * Gets the value(s) for receiver (Who collected the medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the person who picked up the medication. This will usually be a patient or their carer, but some cases exist where it can be a healthcare professional - *

- */ - public java.util.List getReceiver() { - if (myReceiver == null) { - myReceiver = new java.util.ArrayList(); - } - return myReceiver; - } - - - /** - * Gets the value(s) for receiver (Who collected the medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the person who picked up the medication. This will usually be a patient or their carer, but some cases exist where it can be a healthcare professional - *

- */ - public java.util.List getReceiverElement() { - if (myReceiver == null) { - myReceiver = new java.util.ArrayList(); - } - return myReceiver; - } - - - /** - * Sets the value(s) for receiver (Who collected the medication) - * - *

- * Definition: - * Identifies the person who picked up the medication. This will usually be a patient or their carer, but some cases exist where it can be a healthcare professional - *

- */ - public Dispense setReceiver(java.util.List theValue) { - myReceiver = theValue; - return this; - } - - /** - * Adds and returns a new value for receiver (Who collected the medication) - * - *

- * Definition: - * Identifies the person who picked up the medication. This will usually be a patient or their carer, but some cases exist where it can be a healthcare professional - *

- */ - public ResourceReferenceDt addReceiver() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getReceiver().add(newType); - return newType; - } - - /** - * Gets the value(s) for dosage (Medicine administration instructions to the patient/carer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public java.util.List getDosage() { - if (myDosage == null) { - myDosage = new java.util.ArrayList(); - } - return myDosage; - } - - - /** - * Gets the value(s) for dosage (Medicine administration instructions to the patient/carer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public java.util.List getDosageElement() { - if (myDosage == null) { - myDosage = new java.util.ArrayList(); - } - return myDosage; - } - - - /** - * Sets the value(s) for dosage (Medicine administration instructions to the patient/carer) - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public Dispense setDosage(java.util.List theValue) { - myDosage = theValue; - return this; - } - - /** - * Adds and returns a new value for dosage (Medicine administration instructions to the patient/carer) - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public DispenseDosage addDosage() { - DispenseDosage newType = new DispenseDosage(); - getDosage().add(newType); - return newType; - } - - /** - * Gets the first repetition for dosage (Medicine administration instructions to the patient/carer), - * creating it if it does not already exist. - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public DispenseDosage getDosageFirstRep() { - if (getDosage().isEmpty()) { - return addDosage(); - } - return getDosage().get(0); - } - - - } - - /** - * Block class for child element: MedicationDispense.dispense.dosage (Medicine administration instructions to the patient/carer) - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - @Block() - public static class DispenseDosage - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="additionalInstructions", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="E.g. \"Take with food\"", - formalDefinition="Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded." - ) - private CodeableConceptDt myAdditionalInstructions; - - @Child(name="timing", order=1, min=0, max=1, type={ - DateTimeDt.class, PeriodDt.class, ScheduleDt.class }) - @Description( - shortDefinition="When medication should be administered", - formalDefinition="The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\"" - ) - private IDatatype myTiming; - - @Child(name="asNeeded", order=2, min=0, max=1, type={ - BooleanDt.class, CodeableConceptDt.class }) - @Description( - shortDefinition="Take \"as needed\" f(or x)", - formalDefinition="If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication" - ) - private IDatatype myAsNeeded; - - @Child(name="site", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Body site to administer to", - formalDefinition="A coded specification of the anatomic site where the medication first enters the body" - ) - private CodeableConceptDt mySite; - - @Child(name="route", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="How drug should enter body", - formalDefinition="A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject." - ) - private CodeableConceptDt myRoute; - - @Child(name="method", type=CodeableConceptDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Technique for administering medication", - formalDefinition="A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration." - ) - private CodeableConceptDt myMethod; - - @Child(name="quantity", type=QuantityDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Amount of medication per dose", - formalDefinition="The amount of therapeutic or other substance given at one administration event." - ) - private QuantityDt myQuantity; - - @Child(name="rate", type=RatioDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Amount of medication per unit of time", - formalDefinition="Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours." - ) - private RatioDt myRate; - - @Child(name="maxDosePerPeriod", type=RatioDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Upper limit on medication per unit of time", - formalDefinition="The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time, e.g. 1000mg in 24 hours." - ) - private RatioDt myMaxDosePerPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myAdditionalInstructions, myTiming, myAsNeeded, mySite, myRoute, myMethod, myQuantity, myRate, myMaxDosePerPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myAdditionalInstructions, myTiming, myAsNeeded, mySite, myRoute, myMethod, myQuantity, myRate, myMaxDosePerPeriod); - } - - /** - * Gets the value(s) for additionalInstructions (E.g. \"Take with food\"). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded. - *

- */ - public CodeableConceptDt getAdditionalInstructions() { - if (myAdditionalInstructions == null) { - myAdditionalInstructions = new CodeableConceptDt(); - } - return myAdditionalInstructions; - } - - - /** - * Gets the value(s) for additionalInstructions (E.g. \"Take with food\"). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded. - *

- */ - public CodeableConceptDt getAdditionalInstructionsElement() { - if (myAdditionalInstructions == null) { - myAdditionalInstructions = new CodeableConceptDt(); - } - return myAdditionalInstructions; - } - - - /** - * Sets the value(s) for additionalInstructions (E.g. \"Take with food\") - * - *

- * Definition: - * Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded. - *

- */ - public DispenseDosage setAdditionalInstructions(CodeableConceptDt theValue) { - myAdditionalInstructions = theValue; - return this; - } - - - /** - * Gets the value(s) for timing[x] (When medication should be administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public IDatatype getTiming() { - return myTiming; - } - - - /** - * Gets the value(s) for timing[x] (When medication should be administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public IDatatype getTimingElement() { - return myTiming; - } - - - /** - * Sets the value(s) for timing[x] (When medication should be administered) - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public DispenseDosage setTiming(IDatatype theValue) { - myTiming = theValue; - return this; - } - - - /** - * Gets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public IDatatype getAsNeeded() { - return myAsNeeded; - } - - - /** - * Gets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public IDatatype getAsNeededElement() { - return myAsNeeded; - } - - - /** - * Sets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)) - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public DispenseDosage setAsNeeded(IDatatype theValue) { - myAsNeeded = theValue; - return this; - } - - - /** - * Gets the value(s) for site (Body site to administer to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public CodeableConceptDt getSite() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Gets the value(s) for site (Body site to administer to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public CodeableConceptDt getSiteElement() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Sets the value(s) for site (Body site to administer to) - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public DispenseDosage setSite(CodeableConceptDt theValue) { - mySite = theValue; - return this; - } - - - /** - * Gets the value(s) for route (How drug should enter body). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject. - *

- */ - public CodeableConceptDt getRoute() { - if (myRoute == null) { - myRoute = new CodeableConceptDt(); - } - return myRoute; - } - - - /** - * Gets the value(s) for route (How drug should enter body). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject. - *

- */ - public CodeableConceptDt getRouteElement() { - if (myRoute == null) { - myRoute = new CodeableConceptDt(); - } - return myRoute; - } - - - /** - * Sets the value(s) for route (How drug should enter body) - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject. - *

- */ - public DispenseDosage setRoute(CodeableConceptDt theValue) { - myRoute = theValue; - return this; - } - - - /** - * Gets the value(s) for method (Technique for administering medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public CodeableConceptDt getMethod() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Gets the value(s) for method (Technique for administering medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public CodeableConceptDt getMethodElement() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Sets the value(s) for method (Technique for administering medication) - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public DispenseDosage setMethod(CodeableConceptDt theValue) { - myMethod = theValue; - return this; - } - - - /** - * Gets the value(s) for quantity (Amount of medication per dose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Amount of medication per dose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DispenseDosage setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DispenseDosage setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DispenseDosage setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DispenseDosage setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DispenseDosage setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DispenseDosage setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DispenseDosage setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for rate (Amount of medication per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public RatioDt getRate() { - if (myRate == null) { - myRate = new RatioDt(); - } - return myRate; - } - - - /** - * Gets the value(s) for rate (Amount of medication per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public RatioDt getRateElement() { - if (myRate == null) { - myRate = new RatioDt(); - } - return myRate; - } - - - /** - * Sets the value(s) for rate (Amount of medication per unit of time) - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public DispenseDosage setRate(RatioDt theValue) { - myRate = theValue; - return this; - } - - - /** - * Gets the value(s) for maxDosePerPeriod (Upper limit on medication per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time, e.g. 1000mg in 24 hours. - *

- */ - public RatioDt getMaxDosePerPeriod() { - if (myMaxDosePerPeriod == null) { - myMaxDosePerPeriod = new RatioDt(); - } - return myMaxDosePerPeriod; - } - - - /** - * Gets the value(s) for maxDosePerPeriod (Upper limit on medication per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time, e.g. 1000mg in 24 hours. - *

- */ - public RatioDt getMaxDosePerPeriodElement() { - if (myMaxDosePerPeriod == null) { - myMaxDosePerPeriod = new RatioDt(); - } - return myMaxDosePerPeriod; - } - - - /** - * Sets the value(s) for maxDosePerPeriod (Upper limit on medication per unit of time) - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time, e.g. 1000mg in 24 hours. - *

- */ - public DispenseDosage setMaxDosePerPeriod(RatioDt theValue) { - myMaxDosePerPeriod = theValue; - return this; - } - - - - } - - - - /** - * Block class for child element: MedicationDispense.substitution (Deals with substitution of one medicine for another) - * - *

- * Definition: - * Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but doesn't happen, in other cases substitution is not expected but does happen. This block explains what substitition did or did not happen and why. - *

- */ - @Block() - public static class Substitution - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Type of substitiution", - formalDefinition="A code signifying whether a different drug was dispensed from what was prescribed." - ) - private CodeableConceptDt myType; - - @Child(name="reason", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Why was substitution made", - formalDefinition="Indicates the reason for the substitution of (or lack of substitution) from what was prescribed." - ) - private java.util.List myReason; - - @Child(name="responsibleParty", order=2, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who is responsible for the substitution", - formalDefinition="The person or organization that has primary responsibility for the substitution" - ) - private java.util.List myResponsibleParty; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myReason, myResponsibleParty); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myReason, myResponsibleParty); - } - - /** - * Gets the value(s) for type (Type of substitiution). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code signifying whether a different drug was dispensed from what was prescribed. - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Type of substitiution). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code signifying whether a different drug was dispensed from what was prescribed. - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Type of substitiution) - * - *

- * Definition: - * A code signifying whether a different drug was dispensed from what was prescribed. - *

- */ - public Substitution setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for reason (Why was substitution made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the reason for the substitution of (or lack of substitution) from what was prescribed. - *

- */ - public java.util.List getReason() { - if (myReason == null) { - myReason = new java.util.ArrayList(); - } - return myReason; - } - - - /** - * Gets the value(s) for reason (Why was substitution made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the reason for the substitution of (or lack of substitution) from what was prescribed. - *

- */ - public java.util.List getReasonElement() { - if (myReason == null) { - myReason = new java.util.ArrayList(); - } - return myReason; - } - - - /** - * Sets the value(s) for reason (Why was substitution made) - * - *

- * Definition: - * Indicates the reason for the substitution of (or lack of substitution) from what was prescribed. - *

- */ - public Substitution setReason(java.util.List theValue) { - myReason = theValue; - return this; - } - - /** - * Adds and returns a new value for reason (Why was substitution made) - * - *

- * Definition: - * Indicates the reason for the substitution of (or lack of substitution) from what was prescribed. - *

- */ - public CodeableConceptDt addReason() { - CodeableConceptDt newType = new CodeableConceptDt(); - getReason().add(newType); - return newType; - } - - /** - * Gets the first repetition for reason (Why was substitution made), - * creating it if it does not already exist. - * - *

- * Definition: - * Indicates the reason for the substitution of (or lack of substitution) from what was prescribed. - *

- */ - public CodeableConceptDt getReasonFirstRep() { - if (getReason().isEmpty()) { - return addReason(); - } - return getReason().get(0); - } - - /** - * Gets the value(s) for responsibleParty (Who is responsible for the substitution). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or organization that has primary responsibility for the substitution - *

- */ - public java.util.List getResponsibleParty() { - if (myResponsibleParty == null) { - myResponsibleParty = new java.util.ArrayList(); - } - return myResponsibleParty; - } - - - /** - * Gets the value(s) for responsibleParty (Who is responsible for the substitution). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or organization that has primary responsibility for the substitution - *

- */ - public java.util.List getResponsiblePartyElement() { - if (myResponsibleParty == null) { - myResponsibleParty = new java.util.ArrayList(); - } - return myResponsibleParty; - } - - - /** - * Sets the value(s) for responsibleParty (Who is responsible for the substitution) - * - *

- * Definition: - * The person or organization that has primary responsibility for the substitution - *

- */ - public Substitution setResponsibleParty(java.util.List theValue) { - myResponsibleParty = theValue; - return this; - } - - /** - * Adds and returns a new value for responsibleParty (Who is responsible for the substitution) - * - *

- * Definition: - * The person or organization that has primary responsibility for the substitution - *

- */ - public ResourceReferenceDt addResponsibleParty() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getResponsibleParty().add(newType); - return newType; - } - - - } - - - - - @Override - public String getResourceName() { - return "MedicationDispense"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationPrescription.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationPrescription.java deleted file mode 100644 index 5e4644afcd6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationPrescription.java +++ /dev/null @@ -1,2385 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR MedicationPrescription Resource - * (Prescription of medication to for patient) - * - *

- * Definition: - * An order for both supply of the medication and the instructions for administration of the medicine to a patient. - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/MedicationPrescription - *

- * - */ -@ResourceDef(name="MedicationPrescription", profile="http://hl7.org/fhir/profiles/MedicationPrescription", id="medicationprescription") -public class MedicationPrescription - extends BaseResource implements IResource { - - /** - * Search parameter constant for datewritten - *

- * Description: Return prescriptions written on this date
- * Type: date
- * Path: MedicationPrescription.dateWritten
- *

- */ - @SearchParamDefinition(name="datewritten", path="MedicationPrescription.dateWritten", description="Return prescriptions written on this date", type="date" ) - public static final String SP_DATEWRITTEN = "datewritten"; - - /** - * Fluent Client search parameter constant for datewritten - *

- * Description: Return prescriptions written on this date
- * Type: date
- * Path: MedicationPrescription.dateWritten
- *

- */ - public static final DateClientParam DATEWRITTEN = new DateClientParam(SP_DATEWRITTEN); - - /** - * Search parameter constant for encounter - *

- * Description: Return prescriptions with this encounter identity
- * Type: reference
- * Path: MedicationPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="MedicationPrescription.encounter", description="Return prescriptions with this encounter identity", type="reference" ) - public static final String SP_ENCOUNTER = "encounter"; - - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Return prescriptions with this encounter identity
- * Type: reference
- * Path: MedicationPrescription.encounter
- *

- */ - public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationPrescription.encounter". - */ - public static final Include INCLUDE_ENCOUNTER = new Include("MedicationPrescription.encounter"); - - /** - * Search parameter constant for identifier - *

- * Description: Return prescriptions with this external identity
- * Type: token
- * Path: MedicationPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="MedicationPrescription.identifier", description="Return prescriptions with this external identity", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Return prescriptions with this external identity
- * Type: token
- * Path: MedicationPrescription.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for medication - *

- * Description: Code for medicine or text in medicine name
- * Type: reference
- * Path: MedicationPrescription.medication
- *

- */ - @SearchParamDefinition(name="medication", path="MedicationPrescription.medication", description="Code for medicine or text in medicine name", type="reference" ) - public static final String SP_MEDICATION = "medication"; - - /** - * Fluent Client search parameter constant for medication - *

- * Description: Code for medicine or text in medicine name
- * Type: reference
- * Path: MedicationPrescription.medication
- *

- */ - public static final ReferenceClientParam MEDICATION = new ReferenceClientParam(SP_MEDICATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationPrescription.medication". - */ - public static final Include INCLUDE_MEDICATION = new Include("MedicationPrescription.medication"); - - /** - * Search parameter constant for patient - *

- * Description: The identity of a patient to list dispenses for
- * Type: reference
- * Path: MedicationPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="MedicationPrescription.patient", description="The identity of a patient to list dispenses for", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: The identity of a patient to list dispenses for
- * Type: reference
- * Path: MedicationPrescription.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationPrescription.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("MedicationPrescription.patient"); - - /** - * Search parameter constant for status - *

- * Description: Status of the prescription
- * Type: token
- * Path: MedicationPrescription.status
- *

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

- * Description: Status of the prescription
- * Type: token
- * Path: MedicationPrescription.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External identifier", - formalDefinition="External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system." - ) - private java.util.List myIdentifier; - - @Child(name="dateWritten", type=DateTimeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="When prescription was authorized", - formalDefinition="The date (and perhaps time) when the prescription was written" - ) - private DateTimeDt myDateWritten; - - @Child(name="status", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="active | on hold | completed | entered in error | stopped | superceded", - formalDefinition="A code specifying the state of the order. Generally this will be active or completed state" - ) - private BoundCodeDt myStatus; - - @Child(name="patient", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who prescription is for", - formalDefinition="A link to a resource representing the person to whom the medication will be given." - ) - private ResourceReferenceDt myPatient; - - @Child(name="prescriber", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who ordered the medication(s)", - formalDefinition="The healthcare professional responsible for authorizing the prescription" - ) - private ResourceReferenceDt myPrescriber; - - @Child(name="encounter", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="Created during encounter / admission / stay", - formalDefinition="A link to a resource that identifies the particular occurrence of contact between patient and health care provider." - ) - private ResourceReferenceDt myEncounter; - - @Child(name="reason", order=6, min=0, max=1, type={ - CodeableConceptDt.class, Condition.class }) - @Description( - shortDefinition="Reason or indication for writing the prescription", - formalDefinition="Can be the reason or the indication for writing the prescription." - ) - private IDatatype myReason; - - @Child(name="medication", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class }) - @Description( - shortDefinition="Medication to be taken", - formalDefinition="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." - ) - private ResourceReferenceDt myMedication; - - @Child(name="dosageInstruction", order=8, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="How medication should be taken", - formalDefinition="Indicates how the medication is to be used by the patient" - ) - private java.util.List myDosageInstruction; - - @Child(name="dispense", order=9, min=0, max=1) - @Description( - shortDefinition="Medication supply authorization", - formalDefinition="Deals with details of the dispense part of the order" - ) - private Dispense myDispense; - - @Child(name="substitution", order=10, min=0, max=1) - @Description( - shortDefinition="Any restrictions on medication substitution?", - formalDefinition="Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done." - ) - private Substitution mySubstitution; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDateWritten, myStatus, myPatient, myPrescriber, myEncounter, myReason, myMedication, myDosageInstruction, myDispense, mySubstitution); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDateWritten, myStatus, myPatient, myPrescriber, myEncounter, myReason, myMedication, myDosageInstruction, myDispense, mySubstitution); - } - - /** - * Gets the value(s) for identifier (External identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system. - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system. - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External identifier) - * - *

- * Definition: - * External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system. - *

- */ - public MedicationPrescription setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External identifier) - * - *

- * Definition: - * External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system. - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system. - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External identifier) - * - *

- * Definition: - * External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public MedicationPrescription addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External identifier) - * - *

- * Definition: - * External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public MedicationPrescription addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for dateWritten (When prescription was authorized). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date (and perhaps time) when the prescription was written - *

- */ - public DateTimeDt getDateWritten() { - if (myDateWritten == null) { - myDateWritten = new DateTimeDt(); - } - return myDateWritten; - } - - - /** - * Gets the value(s) for dateWritten (When prescription was authorized). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date (and perhaps time) when the prescription was written - *

- */ - public DateTimeDt getDateWrittenElement() { - if (myDateWritten == null) { - myDateWritten = new DateTimeDt(); - } - return myDateWritten; - } - - - /** - * Sets the value(s) for dateWritten (When prescription was authorized) - * - *

- * Definition: - * The date (and perhaps time) when the prescription was written - *

- */ - public MedicationPrescription setDateWritten(DateTimeDt theValue) { - myDateWritten = theValue; - return this; - } - - /** - * Sets the value for dateWritten (When prescription was authorized) - * - *

- * Definition: - * The date (and perhaps time) when the prescription was written - *

- */ - public MedicationPrescription setDateWritten( Date theDate, TemporalPrecisionEnum thePrecision) { - myDateWritten = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for dateWritten (When prescription was authorized) - * - *

- * Definition: - * The date (and perhaps time) when the prescription was written - *

- */ - public MedicationPrescription setDateWrittenWithSecondsPrecision( Date theDate) { - myDateWritten = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for status (active | on hold | completed | entered in error | stopped | superceded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the state of the order. Generally this will be active or completed state - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(MedicationPrescriptionStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (active | on hold | completed | entered in error | stopped | superceded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the state of the order. Generally this will be active or completed state - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(MedicationPrescriptionStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (active | on hold | completed | entered in error | stopped | superceded) - * - *

- * Definition: - * A code specifying the state of the order. Generally this will be active or completed state - *

- */ - public MedicationPrescription setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (active | on hold | completed | entered in error | stopped | superceded) - * - *

- * Definition: - * A code specifying the state of the order. Generally this will be active or completed state - *

- */ - public MedicationPrescription setStatus(MedicationPrescriptionStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for patient (Who prescription is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A link to a resource representing the person to whom the medication will be given. - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Who prescription is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A link to a resource representing the person to whom the medication will be given. - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Who prescription is for) - * - *

- * Definition: - * A link to a resource representing the person to whom the medication will be given. - *

- */ - public MedicationPrescription setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for prescriber (Who ordered the medication(s)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The healthcare professional responsible for authorizing the prescription - *

- */ - public ResourceReferenceDt getPrescriber() { - if (myPrescriber == null) { - myPrescriber = new ResourceReferenceDt(); - } - return myPrescriber; - } - - - /** - * Gets the value(s) for prescriber (Who ordered the medication(s)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The healthcare professional responsible for authorizing the prescription - *

- */ - public ResourceReferenceDt getPrescriberElement() { - if (myPrescriber == null) { - myPrescriber = new ResourceReferenceDt(); - } - return myPrescriber; - } - - - /** - * Sets the value(s) for prescriber (Who ordered the medication(s)) - * - *

- * Definition: - * The healthcare professional responsible for authorizing the prescription - *

- */ - public MedicationPrescription setPrescriber(ResourceReferenceDt theValue) { - myPrescriber = theValue; - return this; - } - - - /** - * Gets the value(s) for encounter (Created during encounter / admission / stay). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A link to a resource that identifies the particular occurrence of contact between patient and health care provider. - *

- */ - public ResourceReferenceDt getEncounter() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Gets the value(s) for encounter (Created during encounter / admission / stay). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A link to a resource that identifies the particular occurrence of contact between patient and health care provider. - *

- */ - public ResourceReferenceDt getEncounterElement() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Sets the value(s) for encounter (Created during encounter / admission / stay) - * - *

- * Definition: - * A link to a resource that identifies the particular occurrence of contact between patient and health care provider. - *

- */ - public MedicationPrescription setEncounter(ResourceReferenceDt theValue) { - myEncounter = theValue; - return this; - } - - - /** - * Gets the value(s) for reason[x] (Reason or indication for writing the prescription). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Can be the reason or the indication for writing the prescription. - *

- */ - public IDatatype getReason() { - return myReason; - } - - - /** - * Gets the value(s) for reason[x] (Reason or indication for writing the prescription). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Can be the reason or the indication for writing the prescription. - *

- */ - public IDatatype getReasonElement() { - return myReason; - } - - - /** - * Sets the value(s) for reason[x] (Reason or indication for writing the prescription) - * - *

- * Definition: - * Can be the reason or the indication for writing the prescription. - *

- */ - public MedicationPrescription setReason(IDatatype theValue) { - myReason = theValue; - return this; - } - - - /** - * Gets the value(s) for medication (Medication to be taken). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedication() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Gets the value(s) for medication (Medication to be taken). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedicationElement() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Sets the value(s) for medication (Medication to be taken) - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public MedicationPrescription setMedication(ResourceReferenceDt theValue) { - myMedication = theValue; - return this; - } - - - /** - * Gets the value(s) for dosageInstruction (How medication should be taken). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public java.util.List getDosageInstruction() { - if (myDosageInstruction == null) { - myDosageInstruction = new java.util.ArrayList(); - } - return myDosageInstruction; - } - - - /** - * Gets the value(s) for dosageInstruction (How medication should be taken). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public java.util.List getDosageInstructionElement() { - if (myDosageInstruction == null) { - myDosageInstruction = new java.util.ArrayList(); - } - return myDosageInstruction; - } - - - /** - * Sets the value(s) for dosageInstruction (How medication should be taken) - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public MedicationPrescription setDosageInstruction(java.util.List theValue) { - myDosageInstruction = theValue; - return this; - } - - /** - * Adds and returns a new value for dosageInstruction (How medication should be taken) - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public DosageInstruction addDosageInstruction() { - DosageInstruction newType = new DosageInstruction(); - getDosageInstruction().add(newType); - return newType; - } - - /** - * Gets the first repetition for dosageInstruction (How medication should be taken), - * creating it if it does not already exist. - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - public DosageInstruction getDosageInstructionFirstRep() { - if (getDosageInstruction().isEmpty()) { - return addDosageInstruction(); - } - return getDosageInstruction().get(0); - } - - /** - * Gets the value(s) for dispense (Medication supply authorization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Deals with details of the dispense part of the order - *

- */ - public Dispense getDispense() { - if (myDispense == null) { - myDispense = new Dispense(); - } - return myDispense; - } - - - /** - * Gets the value(s) for dispense (Medication supply authorization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Deals with details of the dispense part of the order - *

- */ - public Dispense getDispenseElement() { - if (myDispense == null) { - myDispense = new Dispense(); - } - return myDispense; - } - - - /** - * Sets the value(s) for dispense (Medication supply authorization) - * - *

- * Definition: - * Deals with details of the dispense part of the order - *

- */ - public MedicationPrescription setDispense(Dispense theValue) { - myDispense = theValue; - return this; - } - - - /** - * Gets the value(s) for substitution (Any restrictions on medication substitution?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done. - *

- */ - public Substitution getSubstitution() { - if (mySubstitution == null) { - mySubstitution = new Substitution(); - } - return mySubstitution; - } - - - /** - * Gets the value(s) for substitution (Any restrictions on medication substitution?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done. - *

- */ - public Substitution getSubstitutionElement() { - if (mySubstitution == null) { - mySubstitution = new Substitution(); - } - return mySubstitution; - } - - - /** - * Sets the value(s) for substitution (Any restrictions on medication substitution?) - * - *

- * Definition: - * Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done. - *

- */ - public MedicationPrescription setSubstitution(Substitution theValue) { - mySubstitution = theValue; - return this; - } - - - /** - * Block class for child element: MedicationPrescription.dosageInstruction (How medication should be taken) - * - *

- * Definition: - * Indicates how the medication is to be used by the patient - *

- */ - @Block() - public static class DosageInstruction - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="text", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Dosage instructions expressed as text", - formalDefinition="Free text dosage instructions for cases where the instructions are too complex to code." - ) - private StringDt myText; - - @Child(name="additionalInstructions", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Supplemental instructions - e.g. \"with meals\"", - formalDefinition="Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded." - ) - private CodeableConceptDt myAdditionalInstructions; - - @Child(name="timing", order=2, min=0, max=1, type={ - DateTimeDt.class, PeriodDt.class, ScheduleDt.class }) - @Description( - shortDefinition="When medication should be administered", - formalDefinition="The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\"" - ) - private IDatatype myTiming; - - @Child(name="asNeeded", order=3, min=0, max=1, type={ - BooleanDt.class, CodeableConceptDt.class }) - @Description( - shortDefinition="Take \"as needed\" f(or x)", - formalDefinition="If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication" - ) - private IDatatype myAsNeeded; - - @Child(name="site", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Body site to administer to", - formalDefinition="A coded specification of the anatomic site where the medication first enters the body" - ) - private CodeableConceptDt mySite; - - @Child(name="route", type=CodeableConceptDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="How drug should enter body", - formalDefinition="A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient." - ) - private CodeableConceptDt myRoute; - - @Child(name="method", type=CodeableConceptDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Technique for administering medication", - formalDefinition="A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration." - ) - private CodeableConceptDt myMethod; - - @Child(name="doseQuantity", type=QuantityDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Amount of medication per dose", - formalDefinition="The amount of therapeutic or other substance given at one administration event." - ) - private QuantityDt myDoseQuantity; - - @Child(name="rate", type=RatioDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Amount of medication per unit of time", - formalDefinition="Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours." - ) - private RatioDt myRate; - - @Child(name="maxDosePerPeriod", type=RatioDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Upper limit on medication per unit of time", - formalDefinition="The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours." - ) - private RatioDt myMaxDosePerPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myText, myAdditionalInstructions, myTiming, myAsNeeded, mySite, myRoute, myMethod, myDoseQuantity, myRate, myMaxDosePerPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myText, myAdditionalInstructions, myTiming, myAsNeeded, mySite, myRoute, myMethod, myDoseQuantity, myRate, myMaxDosePerPeriod); - } - - /** - * Gets the value(s) for text (Dosage instructions expressed as text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Free text dosage instructions for cases where the instructions are too complex to code. - *

- */ - public StringDt getText() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (Dosage instructions expressed as text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Free text dosage instructions for cases where the instructions are too complex to code. - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Sets the value(s) for text (Dosage instructions expressed as text) - * - *

- * Definition: - * Free text dosage instructions for cases where the instructions are too complex to code. - *

- */ - public DosageInstruction setText(StringDt theValue) { - myText = theValue; - return this; - } - - /** - * Sets the value for text (Dosage instructions expressed as text) - * - *

- * Definition: - * Free text dosage instructions for cases where the instructions are too complex to code. - *

- */ - public DosageInstruction setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for additionalInstructions (Supplemental instructions - e.g. \"with meals\"). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded. - *

- */ - public CodeableConceptDt getAdditionalInstructions() { - if (myAdditionalInstructions == null) { - myAdditionalInstructions = new CodeableConceptDt(); - } - return myAdditionalInstructions; - } - - - /** - * Gets the value(s) for additionalInstructions (Supplemental instructions - e.g. \"with meals\"). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded. - *

- */ - public CodeableConceptDt getAdditionalInstructionsElement() { - if (myAdditionalInstructions == null) { - myAdditionalInstructions = new CodeableConceptDt(); - } - return myAdditionalInstructions; - } - - - /** - * Sets the value(s) for additionalInstructions (Supplemental instructions - e.g. \"with meals\") - * - *

- * Definition: - * Additional instructions such as \"Swallow with plenty of water\" which may or may not be coded. - *

- */ - public DosageInstruction setAdditionalInstructions(CodeableConceptDt theValue) { - myAdditionalInstructions = theValue; - return this; - } - - - /** - * Gets the value(s) for timing[x] (When medication should be administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public IDatatype getTiming() { - return myTiming; - } - - - /** - * Gets the value(s) for timing[x] (When medication should be administered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public IDatatype getTimingElement() { - return myTiming; - } - - - /** - * Sets the value(s) for timing[x] (When medication should be administered) - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public DosageInstruction setTiming(IDatatype theValue) { - myTiming = theValue; - return this; - } - - - /** - * Gets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public IDatatype getAsNeeded() { - return myAsNeeded; - } - - - /** - * Gets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public IDatatype getAsNeededElement() { - return myAsNeeded; - } - - - /** - * Sets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)) - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public DosageInstruction setAsNeeded(IDatatype theValue) { - myAsNeeded = theValue; - return this; - } - - - /** - * Gets the value(s) for site (Body site to administer to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public CodeableConceptDt getSite() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Gets the value(s) for site (Body site to administer to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public CodeableConceptDt getSiteElement() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Sets the value(s) for site (Body site to administer to) - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public DosageInstruction setSite(CodeableConceptDt theValue) { - mySite = theValue; - return this; - } - - - /** - * Gets the value(s) for route (How drug should enter body). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient. - *

- */ - public CodeableConceptDt getRoute() { - if (myRoute == null) { - myRoute = new CodeableConceptDt(); - } - return myRoute; - } - - - /** - * Gets the value(s) for route (How drug should enter body). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient. - *

- */ - public CodeableConceptDt getRouteElement() { - if (myRoute == null) { - myRoute = new CodeableConceptDt(); - } - return myRoute; - } - - - /** - * Sets the value(s) for route (How drug should enter body) - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient. - *

- */ - public DosageInstruction setRoute(CodeableConceptDt theValue) { - myRoute = theValue; - return this; - } - - - /** - * Gets the value(s) for method (Technique for administering medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public CodeableConceptDt getMethod() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Gets the value(s) for method (Technique for administering medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public CodeableConceptDt getMethodElement() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Sets the value(s) for method (Technique for administering medication) - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public DosageInstruction setMethod(CodeableConceptDt theValue) { - myMethod = theValue; - return this; - } - - - /** - * Gets the value(s) for doseQuantity (Amount of medication per dose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public QuantityDt getDoseQuantity() { - if (myDoseQuantity == null) { - myDoseQuantity = new QuantityDt(); - } - return myDoseQuantity; - } - - - /** - * Gets the value(s) for doseQuantity (Amount of medication per dose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public QuantityDt getDoseQuantityElement() { - if (myDoseQuantity == null) { - myDoseQuantity = new QuantityDt(); - } - return myDoseQuantity; - } - - - /** - * Sets the value(s) for doseQuantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DosageInstruction setDoseQuantity(QuantityDt theValue) { - myDoseQuantity = theValue; - return this; - } - - /** - * Sets the value for doseQuantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DosageInstruction setDoseQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myDoseQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DosageInstruction setDoseQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myDoseQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DosageInstruction setDoseQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myDoseQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DosageInstruction setDoseQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myDoseQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DosageInstruction setDoseQuantity( double theValue) { - myDoseQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for doseQuantity (Amount of medication per dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public DosageInstruction setDoseQuantity( long theValue) { - myDoseQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for rate (Amount of medication per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public RatioDt getRate() { - if (myRate == null) { - myRate = new RatioDt(); - } - return myRate; - } - - - /** - * Gets the value(s) for rate (Amount of medication per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public RatioDt getRateElement() { - if (myRate == null) { - myRate = new RatioDt(); - } - return myRate; - } - - - /** - * Sets the value(s) for rate (Amount of medication per unit of time) - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public DosageInstruction setRate(RatioDt theValue) { - myRate = theValue; - return this; - } - - - /** - * Gets the value(s) for maxDosePerPeriod (Upper limit on medication per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours. - *

- */ - public RatioDt getMaxDosePerPeriod() { - if (myMaxDosePerPeriod == null) { - myMaxDosePerPeriod = new RatioDt(); - } - return myMaxDosePerPeriod; - } - - - /** - * Gets the value(s) for maxDosePerPeriod (Upper limit on medication per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours. - *

- */ - public RatioDt getMaxDosePerPeriodElement() { - if (myMaxDosePerPeriod == null) { - myMaxDosePerPeriod = new RatioDt(); - } - return myMaxDosePerPeriod; - } - - - /** - * Sets the value(s) for maxDosePerPeriod (Upper limit on medication per unit of time) - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours. - *

- */ - public DosageInstruction setMaxDosePerPeriod(RatioDt theValue) { - myMaxDosePerPeriod = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: MedicationPrescription.dispense (Medication supply authorization) - * - *

- * Definition: - * Deals with details of the dispense part of the order - *

- */ - @Block() - public static class Dispense - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="medication", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class }) - @Description( - shortDefinition="Product to be supplied", - formalDefinition="Identifies the medication that is to be dispensed. This may be a more specifically defined than the medicationPrescription.medication . This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." - ) - private ResourceReferenceDt myMedication; - - @Child(name="validityPeriod", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Time period supply is authorized for", - formalDefinition="Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription." - ) - private PeriodDt myValidityPeriod; - - @Child(name="numberOfRepeatsAllowed", type=IntegerDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="# of refills authorized", - formalDefinition="An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill." - ) - private IntegerDt myNumberOfRepeatsAllowed; - - @Child(name="quantity", type=QuantityDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Amount of medication to supply per dispense", - formalDefinition="The amount that is to be dispensed." - ) - private QuantityDt myQuantity; - - @Child(name="expectedSupplyDuration", type=DurationDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Days supply per dispense", - formalDefinition="Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors." - ) - private DurationDt myExpectedSupplyDuration; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMedication, myValidityPeriod, myNumberOfRepeatsAllowed, myQuantity, myExpectedSupplyDuration); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myMedication, myValidityPeriod, myNumberOfRepeatsAllowed, myQuantity, myExpectedSupplyDuration); - } - - /** - * Gets the value(s) for medication (Product to be supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication that is to be dispensed. This may be a more specifically defined than the medicationPrescription.medication . This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedication() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Gets the value(s) for medication (Product to be supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication that is to be dispensed. This may be a more specifically defined than the medicationPrescription.medication . This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedicationElement() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Sets the value(s) for medication (Product to be supplied) - * - *

- * Definition: - * Identifies the medication that is to be dispensed. This may be a more specifically defined than the medicationPrescription.medication . This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public Dispense setMedication(ResourceReferenceDt theValue) { - myMedication = theValue; - return this; - } - - - /** - * Gets the value(s) for validityPeriod (Time period supply is authorized for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription. - *

- */ - public PeriodDt getValidityPeriod() { - if (myValidityPeriod == null) { - myValidityPeriod = new PeriodDt(); - } - return myValidityPeriod; - } - - - /** - * Gets the value(s) for validityPeriod (Time period supply is authorized for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription. - *

- */ - public PeriodDt getValidityPeriodElement() { - if (myValidityPeriod == null) { - myValidityPeriod = new PeriodDt(); - } - return myValidityPeriod; - } - - - /** - * Sets the value(s) for validityPeriod (Time period supply is authorized for) - * - *

- * Definition: - * Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription. - *

- */ - public Dispense setValidityPeriod(PeriodDt theValue) { - myValidityPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for numberOfRepeatsAllowed (# of refills authorized). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. - *

- */ - public IntegerDt getNumberOfRepeatsAllowed() { - if (myNumberOfRepeatsAllowed == null) { - myNumberOfRepeatsAllowed = new IntegerDt(); - } - return myNumberOfRepeatsAllowed; - } - - - /** - * Gets the value(s) for numberOfRepeatsAllowed (# of refills authorized). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. - *

- */ - public IntegerDt getNumberOfRepeatsAllowedElement() { - if (myNumberOfRepeatsAllowed == null) { - myNumberOfRepeatsAllowed = new IntegerDt(); - } - return myNumberOfRepeatsAllowed; - } - - - /** - * Sets the value(s) for numberOfRepeatsAllowed (# of refills authorized) - * - *

- * Definition: - * An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. - *

- */ - public Dispense setNumberOfRepeatsAllowed(IntegerDt theValue) { - myNumberOfRepeatsAllowed = theValue; - return this; - } - - /** - * Sets the value for numberOfRepeatsAllowed (# of refills authorized) - * - *

- * Definition: - * An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. - *

- */ - public Dispense setNumberOfRepeatsAllowed( int theInteger) { - myNumberOfRepeatsAllowed = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for quantity (Amount of medication to supply per dispense). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Amount of medication to supply per dispense). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Amount of medication to supply per dispense) - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public Dispense setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (Amount of medication to supply per dispense) - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of medication to supply per dispense) - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of medication to supply per dispense) - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of medication to supply per dispense) - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of medication to supply per dispense) - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public Dispense setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (Amount of medication to supply per dispense) - * - *

- * Definition: - * The amount that is to be dispensed. - *

- */ - public Dispense setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for expectedSupplyDuration (Days supply per dispense). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors. - *

- */ - public DurationDt getExpectedSupplyDuration() { - if (myExpectedSupplyDuration == null) { - myExpectedSupplyDuration = new DurationDt(); - } - return myExpectedSupplyDuration; - } - - - /** - * Gets the value(s) for expectedSupplyDuration (Days supply per dispense). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors. - *

- */ - public DurationDt getExpectedSupplyDurationElement() { - if (myExpectedSupplyDuration == null) { - myExpectedSupplyDuration = new DurationDt(); - } - return myExpectedSupplyDuration; - } - - - /** - * Sets the value(s) for expectedSupplyDuration (Days supply per dispense) - * - *

- * Definition: - * Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors. - *

- */ - public Dispense setExpectedSupplyDuration(DurationDt theValue) { - myExpectedSupplyDuration = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: MedicationPrescription.substitution (Any restrictions on medication substitution?) - * - *

- * Definition: - * Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done. - *

- */ - @Block() - public static class Substitution - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="generic | formulary +", - formalDefinition="A code signifying whether a different drug should be dispensed from what was prescribed." - ) - private CodeableConceptDt myType; - - @Child(name="reason", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Why should substitution (not) be made", - formalDefinition="Indicates the reason for the substitution, or why substitution must or must not be performed." - ) - private CodeableConceptDt myReason; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myReason); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myReason); - } - - /** - * Gets the value(s) for type (generic | formulary +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code signifying whether a different drug should be dispensed from what was prescribed. - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (generic | formulary +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code signifying whether a different drug should be dispensed from what was prescribed. - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (generic | formulary +) - * - *

- * Definition: - * A code signifying whether a different drug should be dispensed from what was prescribed. - *

- */ - public Substitution setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for reason (Why should substitution (not) be made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the reason for the substitution, or why substitution must or must not be performed. - *

- */ - public CodeableConceptDt getReason() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - - /** - * Gets the value(s) for reason (Why should substitution (not) be made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the reason for the substitution, or why substitution must or must not be performed. - *

- */ - public CodeableConceptDt getReasonElement() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - - /** - * Sets the value(s) for reason (Why should substitution (not) be made) - * - *

- * Definition: - * Indicates the reason for the substitution, or why substitution must or must not be performed. - *

- */ - public Substitution setReason(CodeableConceptDt theValue) { - myReason = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "MedicationPrescription"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationStatement.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationStatement.java deleted file mode 100644 index 1ed34489487..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MedicationStatement.java +++ /dev/null @@ -1,1546 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR MedicationStatement Resource - * (Administration of medication to a patient) - * - *

- * Definition: - * A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/MedicationStatement - *

- * - */ -@ResourceDef(name="MedicationStatement", profile="http://hl7.org/fhir/profiles/MedicationStatement", id="medicationstatement") -public class MedicationStatement - extends BaseResource implements IResource { - - /** - * Search parameter constant for device - *

- * Description: Return administrations with this administration device identity
- * Type: reference
- * Path: MedicationStatement.device
- *

- */ - @SearchParamDefinition(name="device", path="MedicationStatement.device", description="Return administrations with this administration device identity", type="reference" ) - public static final String SP_DEVICE = "device"; - - /** - * Fluent Client search parameter constant for device - *

- * Description: Return administrations with this administration device identity
- * Type: reference
- * Path: MedicationStatement.device
- *

- */ - public static final ReferenceClientParam DEVICE = new ReferenceClientParam(SP_DEVICE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationStatement.device". - */ - public static final Include INCLUDE_DEVICE = new Include("MedicationStatement.device"); - - /** - * Search parameter constant for identifier - *

- * Description: Return administrations with this external identity
- * Type: token
- * Path: MedicationStatement.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="MedicationStatement.identifier", description="Return administrations with this external identity", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Return administrations with this external identity
- * Type: token
- * Path: MedicationStatement.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for medication - *

- * Description: Code for medicine or text in medicine name
- * Type: reference
- * Path: MedicationStatement.medication
- *

- */ - @SearchParamDefinition(name="medication", path="MedicationStatement.medication", description="Code for medicine or text in medicine name", type="reference" ) - public static final String SP_MEDICATION = "medication"; - - /** - * Fluent Client search parameter constant for medication - *

- * Description: Code for medicine or text in medicine name
- * Type: reference
- * Path: MedicationStatement.medication
- *

- */ - public static final ReferenceClientParam MEDICATION = new ReferenceClientParam(SP_MEDICATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationStatement.medication". - */ - public static final Include INCLUDE_MEDICATION = new Include("MedicationStatement.medication"); - - /** - * Search parameter constant for patient - *

- * Description: The identity of a patient to list administrations for
- * Type: reference
- * Path: MedicationStatement.patient
- *

- */ - @SearchParamDefinition(name="patient", path="MedicationStatement.patient", description="The identity of a patient to list administrations for", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: The identity of a patient to list administrations for
- * Type: reference
- * Path: MedicationStatement.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationStatement.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("MedicationStatement.patient"); - - /** - * Search parameter constant for when-given - *

- * Description: Date of administration
- * Type: date
- * Path: MedicationStatement.whenGiven
- *

- */ - @SearchParamDefinition(name="when-given", path="MedicationStatement.whenGiven", description="Date of administration", type="date" ) - public static final String SP_WHEN_GIVEN = "when-given"; - - /** - * Fluent Client search parameter constant for when-given - *

- * Description: Date of administration
- * Type: date
- * Path: MedicationStatement.whenGiven
- *

- */ - public static final DateClientParam WHEN_GIVEN = new DateClientParam(SP_WHEN_GIVEN); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Identifier", - formalDefinition="External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated." - ) - private java.util.List myIdentifier; - - @Child(name="patient", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who was/is taking medication", - formalDefinition="The person or animal who is /was taking the medication." - ) - private ResourceReferenceDt myPatient; - - @Child(name="wasNotGiven", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="True if medication is/was not being taken", - formalDefinition="Set this to true if the record is saying that the medication was NOT taken." - ) - private BooleanDt myWasNotGiven; - - @Child(name="reasonNotGiven", type=CodeableConceptDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="True if asserting medication was not given", - formalDefinition="A code indicating why the medication was not taken." - ) - private java.util.List myReasonNotGiven; - - @Child(name="whenGiven", type=PeriodDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Over what period was medication consumed?", - formalDefinition="The interval of time during which it is being asserted that the patient was taking the medication." - ) - private PeriodDt myWhenGiven; - - @Child(name="medication", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class }) - @Description( - shortDefinition="What medication was taken?", - formalDefinition="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." - ) - private ResourceReferenceDt myMedication; - - @Child(name="device", order=6, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="E.g. infusion pump", - formalDefinition="An identifier or a link to a resource that identifies a device used in administering the medication to the patient." - ) - private java.util.List myDevice; - - @Child(name="dosage", order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Details of how medication was taken", - formalDefinition="Indicates how the medication is/was used by the patient" - ) - private java.util.List myDosage; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myPatient, myWasNotGiven, myReasonNotGiven, myWhenGiven, myMedication, myDevice, myDosage); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myPatient, myWasNotGiven, myReasonNotGiven, myWhenGiven, myMedication, myDevice, myDosage); - } - - /** - * Gets the value(s) for identifier (External Identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Identifier) - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public MedicationStatement setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Identifier) - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Identifier) - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public MedicationStatement addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Identifier) - * - *

- * Definition: - * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public MedicationStatement addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for patient (Who was/is taking medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or animal who is /was taking the medication. - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Who was/is taking medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or animal who is /was taking the medication. - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Who was/is taking medication) - * - *

- * Definition: - * The person or animal who is /was taking the medication. - *

- */ - public MedicationStatement setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for wasNotGiven (True if medication is/was not being taken). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Set this to true if the record is saying that the medication was NOT taken. - *

- */ - public BooleanDt getWasNotGiven() { - if (myWasNotGiven == null) { - myWasNotGiven = new BooleanDt(); - } - return myWasNotGiven; - } - - - /** - * Gets the value(s) for wasNotGiven (True if medication is/was not being taken). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Set this to true if the record is saying that the medication was NOT taken. - *

- */ - public BooleanDt getWasNotGivenElement() { - if (myWasNotGiven == null) { - myWasNotGiven = new BooleanDt(); - } - return myWasNotGiven; - } - - - /** - * Sets the value(s) for wasNotGiven (True if medication is/was not being taken) - * - *

- * Definition: - * Set this to true if the record is saying that the medication was NOT taken. - *

- */ - public MedicationStatement setWasNotGiven(BooleanDt theValue) { - myWasNotGiven = theValue; - return this; - } - - /** - * Sets the value for wasNotGiven (True if medication is/was not being taken) - * - *

- * Definition: - * Set this to true if the record is saying that the medication was NOT taken. - *

- */ - public MedicationStatement setWasNotGiven( boolean theBoolean) { - myWasNotGiven = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for reasonNotGiven (True if asserting medication was not given). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code indicating why the medication was not taken. - *

- */ - public java.util.List getReasonNotGiven() { - if (myReasonNotGiven == null) { - myReasonNotGiven = new java.util.ArrayList(); - } - return myReasonNotGiven; - } - - - /** - * Gets the value(s) for reasonNotGiven (True if asserting medication was not given). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code indicating why the medication was not taken. - *

- */ - public java.util.List getReasonNotGivenElement() { - if (myReasonNotGiven == null) { - myReasonNotGiven = new java.util.ArrayList(); - } - return myReasonNotGiven; - } - - - /** - * Sets the value(s) for reasonNotGiven (True if asserting medication was not given) - * - *

- * Definition: - * A code indicating why the medication was not taken. - *

- */ - public MedicationStatement setReasonNotGiven(java.util.List theValue) { - myReasonNotGiven = theValue; - return this; - } - - /** - * Adds and returns a new value for reasonNotGiven (True if asserting medication was not given) - * - *

- * Definition: - * A code indicating why the medication was not taken. - *

- */ - public CodeableConceptDt addReasonNotGiven() { - CodeableConceptDt newType = new CodeableConceptDt(); - getReasonNotGiven().add(newType); - return newType; - } - - /** - * Gets the first repetition for reasonNotGiven (True if asserting medication was not given), - * creating it if it does not already exist. - * - *

- * Definition: - * A code indicating why the medication was not taken. - *

- */ - public CodeableConceptDt getReasonNotGivenFirstRep() { - if (getReasonNotGiven().isEmpty()) { - return addReasonNotGiven(); - } - return getReasonNotGiven().get(0); - } - - /** - * Gets the value(s) for whenGiven (Over what period was medication consumed?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The interval of time during which it is being asserted that the patient was taking the medication. - *

- */ - public PeriodDt getWhenGiven() { - if (myWhenGiven == null) { - myWhenGiven = new PeriodDt(); - } - return myWhenGiven; - } - - - /** - * Gets the value(s) for whenGiven (Over what period was medication consumed?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The interval of time during which it is being asserted that the patient was taking the medication. - *

- */ - public PeriodDt getWhenGivenElement() { - if (myWhenGiven == null) { - myWhenGiven = new PeriodDt(); - } - return myWhenGiven; - } - - - /** - * Sets the value(s) for whenGiven (Over what period was medication consumed?) - * - *

- * Definition: - * The interval of time during which it is being asserted that the patient was taking the medication. - *

- */ - public MedicationStatement setWhenGiven(PeriodDt theValue) { - myWhenGiven = theValue; - return this; - } - - - /** - * Gets the value(s) for medication (What medication was taken?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedication() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Gets the value(s) for medication (What medication was taken?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getMedicationElement() { - if (myMedication == null) { - myMedication = new ResourceReferenceDt(); - } - return myMedication; - } - - - /** - * Sets the value(s) for medication (What medication was taken?) - * - *

- * Definition: - * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public MedicationStatement setMedication(ResourceReferenceDt theValue) { - myMedication = theValue; - return this; - } - - - /** - * Gets the value(s) for device (E.g. infusion pump). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier or a link to a resource that identifies a device used in administering the medication to the patient. - *

- */ - public java.util.List getDevice() { - if (myDevice == null) { - myDevice = new java.util.ArrayList(); - } - return myDevice; - } - - - /** - * Gets the value(s) for device (E.g. infusion pump). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier or a link to a resource that identifies a device used in administering the medication to the patient. - *

- */ - public java.util.List getDeviceElement() { - if (myDevice == null) { - myDevice = new java.util.ArrayList(); - } - return myDevice; - } - - - /** - * Sets the value(s) for device (E.g. infusion pump) - * - *

- * Definition: - * An identifier or a link to a resource that identifies a device used in administering the medication to the patient. - *

- */ - public MedicationStatement setDevice(java.util.List theValue) { - myDevice = theValue; - return this; - } - - /** - * Adds and returns a new value for device (E.g. infusion pump) - * - *

- * Definition: - * An identifier or a link to a resource that identifies a device used in administering the medication to the patient. - *

- */ - public ResourceReferenceDt addDevice() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getDevice().add(newType); - return newType; - } - - /** - * Gets the value(s) for dosage (Details of how medication was taken). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how the medication is/was used by the patient - *

- */ - public java.util.List getDosage() { - if (myDosage == null) { - myDosage = new java.util.ArrayList(); - } - return myDosage; - } - - - /** - * Gets the value(s) for dosage (Details of how medication was taken). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how the medication is/was used by the patient - *

- */ - public java.util.List getDosageElement() { - if (myDosage == null) { - myDosage = new java.util.ArrayList(); - } - return myDosage; - } - - - /** - * Sets the value(s) for dosage (Details of how medication was taken) - * - *

- * Definition: - * Indicates how the medication is/was used by the patient - *

- */ - public MedicationStatement setDosage(java.util.List theValue) { - myDosage = theValue; - return this; - } - - /** - * Adds and returns a new value for dosage (Details of how medication was taken) - * - *

- * Definition: - * Indicates how the medication is/was used by the patient - *

- */ - public Dosage addDosage() { - Dosage newType = new Dosage(); - getDosage().add(newType); - return newType; - } - - /** - * Gets the first repetition for dosage (Details of how medication was taken), - * creating it if it does not already exist. - * - *

- * Definition: - * Indicates how the medication is/was used by the patient - *

- */ - public Dosage getDosageFirstRep() { - if (getDosage().isEmpty()) { - return addDosage(); - } - return getDosage().get(0); - } - - /** - * Block class for child element: MedicationStatement.dosage (Details of how medication was taken) - * - *

- * Definition: - * Indicates how the medication is/was used by the patient - *

- */ - @Block() - public static class Dosage - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="timing", type=ScheduleDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="When/how often was medication taken?", - formalDefinition="The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\"" - ) - private ScheduleDt myTiming; - - @Child(name="asNeeded", order=1, min=0, max=1, type={ - BooleanDt.class, CodeableConceptDt.class }) - @Description( - shortDefinition="Take \"as needed\" f(or x)", - formalDefinition="If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication" - ) - private IDatatype myAsNeeded; - - @Child(name="site", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Where on body was medication administered?", - formalDefinition="A coded specification of the anatomic site where the medication first enters the body" - ) - private CodeableConceptDt mySite; - - @Child(name="route", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="How did the medication enter the body?", - formalDefinition="A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject." - ) - private CodeableConceptDt myRoute; - - @Child(name="method", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Technique used to administer medication", - formalDefinition="A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration." - ) - private CodeableConceptDt myMethod; - - @Child(name="quantity", type=QuantityDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Amount administered in one dose", - formalDefinition="The amount of therapeutic or other substance given at one administration event." - ) - private QuantityDt myQuantity; - - @Child(name="rate", type=RatioDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Dose quantity per unit of time", - formalDefinition="Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours." - ) - private RatioDt myRate; - - @Child(name="maxDosePerPeriod", type=RatioDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Maximum dose that was consumed per unit of time", - formalDefinition="The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours." - ) - private RatioDt myMaxDosePerPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myTiming, myAsNeeded, mySite, myRoute, myMethod, myQuantity, myRate, myMaxDosePerPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myTiming, myAsNeeded, mySite, myRoute, myMethod, myQuantity, myRate, myMaxDosePerPeriod); - } - - /** - * Gets the value(s) for timing (When/how often was medication taken?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public ScheduleDt getTiming() { - if (myTiming == null) { - myTiming = new ScheduleDt(); - } - return myTiming; - } - - - /** - * Gets the value(s) for timing (When/how often was medication taken?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public ScheduleDt getTimingElement() { - if (myTiming == null) { - myTiming = new ScheduleDt(); - } - return myTiming; - } - - - /** - * Sets the value(s) for timing (When/how often was medication taken?) - * - *

- * Definition: - * The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\" - *

- */ - public Dosage setTiming(ScheduleDt theValue) { - myTiming = theValue; - return this; - } - - - /** - * Gets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public IDatatype getAsNeeded() { - return myAsNeeded; - } - - - /** - * Gets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public IDatatype getAsNeededElement() { - return myAsNeeded; - } - - - /** - * Sets the value(s) for asNeeded[x] (Take \"as needed\" f(or x)) - * - *

- * Definition: - * If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication - *

- */ - public Dosage setAsNeeded(IDatatype theValue) { - myAsNeeded = theValue; - return this; - } - - - /** - * Gets the value(s) for site (Where on body was medication administered?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public CodeableConceptDt getSite() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Gets the value(s) for site (Where on body was medication administered?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public CodeableConceptDt getSiteElement() { - if (mySite == null) { - mySite = new CodeableConceptDt(); - } - return mySite; - } - - - /** - * Sets the value(s) for site (Where on body was medication administered?) - * - *

- * Definition: - * A coded specification of the anatomic site where the medication first enters the body - *

- */ - public Dosage setSite(CodeableConceptDt theValue) { - mySite = theValue; - return this; - } - - - /** - * Gets the value(s) for route (How did the medication enter the body?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject. - *

- */ - public CodeableConceptDt getRoute() { - if (myRoute == null) { - myRoute = new CodeableConceptDt(); - } - return myRoute; - } - - - /** - * Gets the value(s) for route (How did the medication enter the body?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject. - *

- */ - public CodeableConceptDt getRouteElement() { - if (myRoute == null) { - myRoute = new CodeableConceptDt(); - } - return myRoute; - } - - - /** - * Sets the value(s) for route (How did the medication enter the body?) - * - *

- * Definition: - * A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject. - *

- */ - public Dosage setRoute(CodeableConceptDt theValue) { - myRoute = theValue; - return this; - } - - - /** - * Gets the value(s) for method (Technique used to administer medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public CodeableConceptDt getMethod() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Gets the value(s) for method (Technique used to administer medication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public CodeableConceptDt getMethodElement() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Sets the value(s) for method (Technique used to administer medication) - * - *

- * Definition: - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.Terminologies used often pre-coordinate this term with the route and or form of administration. - *

- */ - public Dosage setMethod(CodeableConceptDt theValue) { - myMethod = theValue; - return this; - } - - - /** - * Gets the value(s) for quantity (Amount administered in one dose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Amount administered in one dose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public Dosage setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public Dosage setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public Dosage setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public Dosage setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public Dosage setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public Dosage setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (Amount administered in one dose) - * - *

- * Definition: - * The amount of therapeutic or other substance given at one administration event. - *

- */ - public Dosage setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for rate (Dose quantity per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public RatioDt getRate() { - if (myRate == null) { - myRate = new RatioDt(); - } - return myRate; - } - - - /** - * Gets the value(s) for rate (Dose quantity per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public RatioDt getRateElement() { - if (myRate == null) { - myRate = new RatioDt(); - } - return myRate; - } - - - /** - * Sets the value(s) for rate (Dose quantity per unit of time) - * - *

- * Definition: - * Identifies the speed with which the substance is introduced into the subject. Typically the rate for an infusion. 200ml in 2 hours. - *

- */ - public Dosage setRate(RatioDt theValue) { - myRate = theValue; - return this; - } - - - /** - * Gets the value(s) for maxDosePerPeriod (Maximum dose that was consumed per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours. - *

- */ - public RatioDt getMaxDosePerPeriod() { - if (myMaxDosePerPeriod == null) { - myMaxDosePerPeriod = new RatioDt(); - } - return myMaxDosePerPeriod; - } - - - /** - * Gets the value(s) for maxDosePerPeriod (Maximum dose that was consumed per unit of time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours. - *

- */ - public RatioDt getMaxDosePerPeriodElement() { - if (myMaxDosePerPeriod == null) { - myMaxDosePerPeriod = new RatioDt(); - } - return myMaxDosePerPeriod; - } - - - /** - * Sets the value(s) for maxDosePerPeriod (Maximum dose that was consumed per unit of time) - * - *

- * Definition: - * The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. E.g. 1000mg in 24 hours. - *

- */ - public Dosage setMaxDosePerPeriod(RatioDt theValue) { - myMaxDosePerPeriod = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "MedicationStatement"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MessageHeader.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MessageHeader.java deleted file mode 100644 index 8b7b27cd866..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/MessageHeader.java +++ /dev/null @@ -1,1869 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR MessageHeader Resource - * (A resource that describes a message that is exchanged between systems) - * - *

- * Definition: - * The header for a message exchange that is either requesting or responding to an action. The resource(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle - *

- * - *

- * Requirements: - * Many implementations are not prepared to use REST and need a messaging based infrastructure - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/MessageHeader - *

- * - */ -@ResourceDef(name="MessageHeader", profile="http://hl7.org/fhir/profiles/MessageHeader", id="messageheader") -public class MessageHeader - extends BaseResource implements IResource { - - - @Child(name="identifier", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Id of this message", - formalDefinition="The identifier of this message" - ) - private IdDt myIdentifier; - - @Child(name="timestamp", type=InstantDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Time that the message was sent", - formalDefinition="The time that the message was sent" - ) - private InstantDt myTimestamp; - - @Child(name="event", type=CodingDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Code for the event this message represents", - formalDefinition="Code that identifies the event this message represents and connects it with it's definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-type\"" - ) - private CodingDt myEvent; - - @Child(name="response", order=3, min=0, max=1) - @Description( - shortDefinition="If this is a reply to prior message", - formalDefinition="Information about the message that this message is a response to. Only present if this message is a response." - ) - private Response myResponse; - - @Child(name="source", order=4, min=1, max=1) - @Description( - shortDefinition="Message Source Application", - formalDefinition="The source application from which this message originated" - ) - private Source mySource; - - @Child(name="destination", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Message Destination Application(s)", - formalDefinition="The destination application which the message is intended for" - ) - private java.util.List myDestination; - - @Child(name="enterer", order=6, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="The source of the data entry", - formalDefinition="The person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions" - ) - private ResourceReferenceDt myEnterer; - - @Child(name="author", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="The source of the decision", - formalDefinition="The logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions" - ) - private ResourceReferenceDt myAuthor; - - @Child(name="receiver", order=8, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Intended \"real-world\" recipient for the data", - formalDefinition="Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient." - ) - private ResourceReferenceDt myReceiver; - - @Child(name="responsible", order=9, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Final responsibility for event", - formalDefinition="The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party" - ) - private ResourceReferenceDt myResponsible; - - @Child(name="reason", type=CodeableConceptDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Cause of event", - formalDefinition="Coded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message" - ) - private CodeableConceptDt myReason; - - @Child(name="data", order=11, min=0, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="The actual content of the message", - formalDefinition="The actual data of the message - a reference to the root/focus class of the event." - ) - private java.util.List myData; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myTimestamp, myEvent, myResponse, mySource, myDestination, myEnterer, myAuthor, myReceiver, myResponsible, myReason, myData); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myTimestamp, myEvent, myResponse, mySource, myDestination, myEnterer, myAuthor, myReceiver, myResponsible, myReason, myData); - } - - /** - * Gets the value(s) for identifier (Id of this message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier of this message - *

- */ - public IdDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Id of this message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier of this message - *

- */ - public IdDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Id of this message) - * - *

- * Definition: - * The identifier of this message - *

- */ - public MessageHeader setIdentifier(IdDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Id of this message) - * - *

- * Definition: - * The identifier of this message - *

- */ - public MessageHeader setIdentifier( String theId) { - myIdentifier = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for timestamp (Time that the message was sent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time that the message was sent - *

- */ - public InstantDt getTimestamp() { - if (myTimestamp == null) { - myTimestamp = new InstantDt(); - } - return myTimestamp; - } - - - /** - * Gets the value(s) for timestamp (Time that the message was sent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time that the message was sent - *

- */ - public InstantDt getTimestampElement() { - if (myTimestamp == null) { - myTimestamp = new InstantDt(); - } - return myTimestamp; - } - - - /** - * Sets the value(s) for timestamp (Time that the message was sent) - * - *

- * Definition: - * The time that the message was sent - *

- */ - public MessageHeader setTimestamp(InstantDt theValue) { - myTimestamp = theValue; - return this; - } - - /** - * Sets the value for timestamp (Time that the message was sent) - * - *

- * Definition: - * The time that the message was sent - *

- */ - public MessageHeader setTimestampWithMillisPrecision( Date theDate) { - myTimestamp = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for timestamp (Time that the message was sent) - * - *

- * Definition: - * The time that the message was sent - *

- */ - public MessageHeader setTimestamp( Date theDate, TemporalPrecisionEnum thePrecision) { - myTimestamp = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for event (Code for the event this message represents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code that identifies the event this message represents and connects it with it's definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-type\" - *

- */ - public CodingDt getEvent() { - if (myEvent == null) { - myEvent = new CodingDt(); - } - return myEvent; - } - - - /** - * Gets the value(s) for event (Code for the event this message represents). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code that identifies the event this message represents and connects it with it's definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-type\" - *

- */ - public CodingDt getEventElement() { - if (myEvent == null) { - myEvent = new CodingDt(); - } - return myEvent; - } - - - /** - * Sets the value(s) for event (Code for the event this message represents) - * - *

- * Definition: - * Code that identifies the event this message represents and connects it with it's definition. Events defined as part of the FHIR specification have the system value \"http://hl7.org/fhir/message-type\" - *

- */ - public MessageHeader setEvent(CodingDt theValue) { - myEvent = theValue; - return this; - } - - - /** - * Gets the value(s) for response (If this is a reply to prior message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the message that this message is a response to. Only present if this message is a response. - *

- */ - public Response getResponse() { - if (myResponse == null) { - myResponse = new Response(); - } - return myResponse; - } - - - /** - * Gets the value(s) for response (If this is a reply to prior message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Information about the message that this message is a response to. Only present if this message is a response. - *

- */ - public Response getResponseElement() { - if (myResponse == null) { - myResponse = new Response(); - } - return myResponse; - } - - - /** - * Sets the value(s) for response (If this is a reply to prior message) - * - *

- * Definition: - * Information about the message that this message is a response to. Only present if this message is a response. - *

- */ - public MessageHeader setResponse(Response theValue) { - myResponse = theValue; - return this; - } - - - /** - * Gets the value(s) for source (Message Source Application). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The source application from which this message originated - *

- */ - public Source getSource() { - if (mySource == null) { - mySource = new Source(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Message Source Application). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The source application from which this message originated - *

- */ - public Source getSourceElement() { - if (mySource == null) { - mySource = new Source(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Message Source Application) - * - *

- * Definition: - * The source application from which this message originated - *

- */ - public MessageHeader setSource(Source theValue) { - mySource = theValue; - return this; - } - - - /** - * Gets the value(s) for destination (Message Destination Application(s)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The destination application which the message is intended for - *

- */ - public java.util.List getDestination() { - if (myDestination == null) { - myDestination = new java.util.ArrayList(); - } - return myDestination; - } - - - /** - * Gets the value(s) for destination (Message Destination Application(s)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The destination application which the message is intended for - *

- */ - public java.util.List getDestinationElement() { - if (myDestination == null) { - myDestination = new java.util.ArrayList(); - } - return myDestination; - } - - - /** - * Sets the value(s) for destination (Message Destination Application(s)) - * - *

- * Definition: - * The destination application which the message is intended for - *

- */ - public MessageHeader setDestination(java.util.List theValue) { - myDestination = theValue; - return this; - } - - /** - * Adds and returns a new value for destination (Message Destination Application(s)) - * - *

- * Definition: - * The destination application which the message is intended for - *

- */ - public Destination addDestination() { - Destination newType = new Destination(); - getDestination().add(newType); - return newType; - } - - /** - * Gets the first repetition for destination (Message Destination Application(s)), - * creating it if it does not already exist. - * - *

- * Definition: - * The destination application which the message is intended for - *

- */ - public Destination getDestinationFirstRep() { - if (getDestination().isEmpty()) { - return addDestination(); - } - return getDestination().get(0); - } - - /** - * Gets the value(s) for enterer (The source of the data entry). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions - *

- */ - public ResourceReferenceDt getEnterer() { - if (myEnterer == null) { - myEnterer = new ResourceReferenceDt(); - } - return myEnterer; - } - - - /** - * Gets the value(s) for enterer (The source of the data entry). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions - *

- */ - public ResourceReferenceDt getEntererElement() { - if (myEnterer == null) { - myEnterer = new ResourceReferenceDt(); - } - return myEnterer; - } - - - /** - * Sets the value(s) for enterer (The source of the data entry) - * - *

- * Definition: - * The person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions - *

- */ - public MessageHeader setEnterer(ResourceReferenceDt theValue) { - myEnterer = theValue; - return this; - } - - - /** - * Gets the value(s) for author (The source of the decision). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions - *

- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (The source of the decision). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions - *

- */ - public ResourceReferenceDt getAuthorElement() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (The source of the decision) - * - *

- * Definition: - * The logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions - *

- */ - public MessageHeader setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for receiver (Intended \"real-world\" recipient for the data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient. - *

- */ - public ResourceReferenceDt getReceiver() { - if (myReceiver == null) { - myReceiver = new ResourceReferenceDt(); - } - return myReceiver; - } - - - /** - * Gets the value(s) for receiver (Intended \"real-world\" recipient for the data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient. - *

- */ - public ResourceReferenceDt getReceiverElement() { - if (myReceiver == null) { - myReceiver = new ResourceReferenceDt(); - } - return myReceiver; - } - - - /** - * Sets the value(s) for receiver (Intended \"real-world\" recipient for the data) - * - *

- * Definition: - * Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient. - *

- */ - public MessageHeader setReceiver(ResourceReferenceDt theValue) { - myReceiver = theValue; - return this; - } - - - /** - * Gets the value(s) for responsible (Final responsibility for event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party - *

- */ - public ResourceReferenceDt getResponsible() { - if (myResponsible == null) { - myResponsible = new ResourceReferenceDt(); - } - return myResponsible; - } - - - /** - * Gets the value(s) for responsible (Final responsibility for event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party - *

- */ - public ResourceReferenceDt getResponsibleElement() { - if (myResponsible == null) { - myResponsible = new ResourceReferenceDt(); - } - return myResponsible; - } - - - /** - * Sets the value(s) for responsible (Final responsibility for event) - * - *

- * Definition: - * The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party - *

- */ - public MessageHeader setResponsible(ResourceReferenceDt theValue) { - myResponsible = theValue; - return this; - } - - - /** - * Gets the value(s) for reason (Cause of event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message - *

- */ - public CodeableConceptDt getReason() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - - /** - * Gets the value(s) for reason (Cause of event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message - *

- */ - public CodeableConceptDt getReasonElement() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - - /** - * Sets the value(s) for reason (Cause of event) - * - *

- * Definition: - * Coded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message - *

- */ - public MessageHeader setReason(CodeableConceptDt theValue) { - myReason = theValue; - return this; - } - - - /** - * Gets the value(s) for data (The actual content of the message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual data of the message - a reference to the root/focus class of the event. - *

- */ - public java.util.List getData() { - if (myData == null) { - myData = new java.util.ArrayList(); - } - return myData; - } - - - /** - * Gets the value(s) for data (The actual content of the message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual data of the message - a reference to the root/focus class of the event. - *

- */ - public java.util.List getDataElement() { - if (myData == null) { - myData = new java.util.ArrayList(); - } - return myData; - } - - - /** - * Sets the value(s) for data (The actual content of the message) - * - *

- * Definition: - * The actual data of the message - a reference to the root/focus class of the event. - *

- */ - public MessageHeader setData(java.util.List theValue) { - myData = theValue; - return this; - } - - /** - * Adds and returns a new value for data (The actual content of the message) - * - *

- * Definition: - * The actual data of the message - a reference to the root/focus class of the event. - *

- */ - public ResourceReferenceDt addData() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getData().add(newType); - return newType; - } - - /** - * Block class for child element: MessageHeader.response (If this is a reply to prior message) - * - *

- * Definition: - * Information about the message that this message is a response to. Only present if this message is a response. - *

- */ - @Block() - public static class Response - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Id of original message", - formalDefinition="The id of the message that this message is a response to" - ) - private IdDt myIdentifier; - - @Child(name="code", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="ok | transient-error | fatal-error", - formalDefinition="Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not" - ) - private BoundCodeDt myCode; - - @Child(name="details", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.OperationOutcome.class }) - @Description( - shortDefinition="Specific list of hints/warnings/errors", - formalDefinition="Full details of any issues found in the message" - ) - private ResourceReferenceDt myDetails; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCode, myDetails); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCode, myDetails); - } - - /** - * Gets the value(s) for identifier (Id of original message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The id of the message that this message is a response to - *

- */ - public IdDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Id of original message). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The id of the message that this message is a response to - *

- */ - public IdDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Id of original message) - * - *

- * Definition: - * The id of the message that this message is a response to - *

- */ - public Response setIdentifier(IdDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Id of original message) - * - *

- * Definition: - * The id of the message that this message is a response to - *

- */ - public Response setIdentifier( String theId) { - myIdentifier = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for code (ok | transient-error | fatal-error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not - *

- */ - public BoundCodeDt getCode() { - if (myCode == null) { - myCode = new BoundCodeDt(ResponseTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (ok | transient-error | fatal-error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(ResponseTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Sets the value(s) for code (ok | transient-error | fatal-error) - * - *

- * Definition: - * Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not - *

- */ - public Response setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value(s) for code (ok | transient-error | fatal-error) - * - *

- * Definition: - * Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not - *

- */ - public Response setCode(ResponseTypeEnum theValue) { - getCode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for details (Specific list of hints/warnings/errors). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Full details of any issues found in the message - *

- */ - public ResourceReferenceDt getDetails() { - if (myDetails == null) { - myDetails = new ResourceReferenceDt(); - } - return myDetails; - } - - - /** - * Gets the value(s) for details (Specific list of hints/warnings/errors). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Full details of any issues found in the message - *

- */ - public ResourceReferenceDt getDetailsElement() { - if (myDetails == null) { - myDetails = new ResourceReferenceDt(); - } - return myDetails; - } - - - /** - * Sets the value(s) for details (Specific list of hints/warnings/errors) - * - *

- * Definition: - * Full details of any issues found in the message - *

- */ - public Response setDetails(ResourceReferenceDt theValue) { - myDetails = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: MessageHeader.source (Message Source Application) - * - *

- * Definition: - * The source application from which this message originated - *

- */ - @Block() - public static class Source - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Name of system", - formalDefinition="Human-readable name for the target system" - ) - private StringDt myName; - - @Child(name="software", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Name of software running the system", - formalDefinition="May include configuration or other information useful in debugging." - ) - private StringDt mySoftware; - - @Child(name="version", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Version of software running", - formalDefinition="Can convey versions of multiple systems in situations where a message passes through multiple hands." - ) - private StringDt myVersion; - - @Child(name="contact", type=ContactDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Human contact for problems", - formalDefinition="An e-mail, phone, website or other contact point to use to resolve issues with message communications." - ) - private ContactDt myContact; - - @Child(name="endpoint", type=UriDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Actual message source address or id", - formalDefinition="Identifies the routing target to send acknowledgements to." - ) - private UriDt myEndpoint; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, mySoftware, myVersion, myContact, myEndpoint); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, mySoftware, myVersion, myContact, myEndpoint); - } - - /** - * Gets the value(s) for name (Name of system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable name for the target system - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name of system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable name for the target system - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name of system) - * - *

- * Definition: - * Human-readable name for the target system - *

- */ - public Source setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name of system) - * - *

- * Definition: - * Human-readable name for the target system - *

- */ - public Source setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for software (Name of software running the system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * May include configuration or other information useful in debugging. - *

- */ - public StringDt getSoftware() { - if (mySoftware == null) { - mySoftware = new StringDt(); - } - return mySoftware; - } - - - /** - * Gets the value(s) for software (Name of software running the system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * May include configuration or other information useful in debugging. - *

- */ - public StringDt getSoftwareElement() { - if (mySoftware == null) { - mySoftware = new StringDt(); - } - return mySoftware; - } - - - /** - * Sets the value(s) for software (Name of software running the system) - * - *

- * Definition: - * May include configuration or other information useful in debugging. - *

- */ - public Source setSoftware(StringDt theValue) { - mySoftware = theValue; - return this; - } - - /** - * Sets the value for software (Name of software running the system) - * - *

- * Definition: - * May include configuration or other information useful in debugging. - *

- */ - public Source setSoftware( String theString) { - mySoftware = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (Version of software running). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Can convey versions of multiple systems in situations where a message passes through multiple hands. - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Version of software running). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Can convey versions of multiple systems in situations where a message passes through multiple hands. - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Version of software running) - * - *

- * Definition: - * Can convey versions of multiple systems in situations where a message passes through multiple hands. - *

- */ - public Source setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Version of software running) - * - *

- * Definition: - * Can convey versions of multiple systems in situations where a message passes through multiple hands. - *

- */ - public Source setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for contact (Human contact for problems). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An e-mail, phone, website or other contact point to use to resolve issues with message communications. - *

- */ - public ContactDt getContact() { - if (myContact == null) { - myContact = new ContactDt(); - } - return myContact; - } - - - /** - * Gets the value(s) for contact (Human contact for problems). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An e-mail, phone, website or other contact point to use to resolve issues with message communications. - *

- */ - public ContactDt getContactElement() { - if (myContact == null) { - myContact = new ContactDt(); - } - return myContact; - } - - - /** - * Sets the value(s) for contact (Human contact for problems) - * - *

- * Definition: - * An e-mail, phone, website or other contact point to use to resolve issues with message communications. - *

- */ - public Source setContact(ContactDt theValue) { - myContact = theValue; - return this; - } - - /** - * Sets the value for contact (Human contact for problems) - * - *

- * Definition: - * An e-mail, phone, website or other contact point to use to resolve issues with message communications. - *

- */ - public Source setContact( ContactUseEnum theContactUse, String theValue) { - myContact = new ContactDt(theContactUse, theValue); - return this; - } - - /** - * Sets the value for contact (Human contact for problems) - * - *

- * Definition: - * An e-mail, phone, website or other contact point to use to resolve issues with message communications. - *

- */ - public Source setContact( String theValue) { - myContact = new ContactDt(theValue); - return this; - } - - - /** - * Gets the value(s) for endpoint (Actual message source address or id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the routing target to send acknowledgements to. - *

- */ - public UriDt getEndpoint() { - if (myEndpoint == null) { - myEndpoint = new UriDt(); - } - return myEndpoint; - } - - - /** - * Gets the value(s) for endpoint (Actual message source address or id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the routing target to send acknowledgements to. - *

- */ - public UriDt getEndpointElement() { - if (myEndpoint == null) { - myEndpoint = new UriDt(); - } - return myEndpoint; - } - - - /** - * Sets the value(s) for endpoint (Actual message source address or id) - * - *

- * Definition: - * Identifies the routing target to send acknowledgements to. - *

- */ - public Source setEndpoint(UriDt theValue) { - myEndpoint = theValue; - return this; - } - - /** - * Sets the value for endpoint (Actual message source address or id) - * - *

- * Definition: - * Identifies the routing target to send acknowledgements to. - *

- */ - public Source setEndpoint( String theUri) { - myEndpoint = new UriDt(theUri); - return this; - } - - - - } - - - /** - * Block class for child element: MessageHeader.destination (Message Destination Application(s)) - * - *

- * Definition: - * The destination application which the message is intended for - *

- */ - @Block() - public static class Destination - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Name of system", - formalDefinition="Human-readable name for the source system" - ) - private StringDt myName; - - @Child(name="target", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Particular delivery destination within the destination", - formalDefinition="Identifies the target end system in situations where the initial message transmission is to an intermediary system." - ) - private ResourceReferenceDt myTarget; - - @Child(name="endpoint", type=UriDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Actual destination address or id", - formalDefinition="Indicates where the message should be routed to." - ) - private UriDt myEndpoint; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myTarget, myEndpoint); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myTarget, myEndpoint); - } - - /** - * Gets the value(s) for name (Name of system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable name for the source system - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name of system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable name for the source system - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name of system) - * - *

- * Definition: - * Human-readable name for the source system - *

- */ - public Destination setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name of system) - * - *

- * Definition: - * Human-readable name for the source system - *

- */ - public Destination setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for target (Particular delivery destination within the destination). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the target end system in situations where the initial message transmission is to an intermediary system. - *

- */ - public ResourceReferenceDt getTarget() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Particular delivery destination within the destination). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the target end system in situations where the initial message transmission is to an intermediary system. - *

- */ - public ResourceReferenceDt getTargetElement() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Particular delivery destination within the destination) - * - *

- * Definition: - * Identifies the target end system in situations where the initial message transmission is to an intermediary system. - *

- */ - public Destination setTarget(ResourceReferenceDt theValue) { - myTarget = theValue; - return this; - } - - - /** - * Gets the value(s) for endpoint (Actual destination address or id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates where the message should be routed to. - *

- */ - public UriDt getEndpoint() { - if (myEndpoint == null) { - myEndpoint = new UriDt(); - } - return myEndpoint; - } - - - /** - * Gets the value(s) for endpoint (Actual destination address or id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates where the message should be routed to. - *

- */ - public UriDt getEndpointElement() { - if (myEndpoint == null) { - myEndpoint = new UriDt(); - } - return myEndpoint; - } - - - /** - * Sets the value(s) for endpoint (Actual destination address or id) - * - *

- * Definition: - * Indicates where the message should be routed to. - *

- */ - public Destination setEndpoint(UriDt theValue) { - myEndpoint = theValue; - return this; - } - - /** - * Sets the value for endpoint (Actual destination address or id) - * - *

- * Definition: - * Indicates where the message should be routed to. - *

- */ - public Destination setEndpoint( String theUri) { - myEndpoint = new UriDt(theUri); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "MessageHeader"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Microarray.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Microarray.java deleted file mode 100644 index eda8aff9300..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Microarray.java +++ /dev/null @@ -1,2091 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Microarray Resource - * (Microarray) - * - *

- * Definition: - * A resource that displays result of a microarray - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Microarray - *

- * - */ -@ResourceDef(name="Microarray", profile="http://hl7.org/fhir/profiles/Microarray", id="microarray") -public class Microarray - extends BaseResource implements IResource { - - /** - * Search parameter constant for patient - *

- * Description: Patient described by the microarray
- * Type: reference
- * Path: Microarray.subject.patient
- *

- */ - @SearchParamDefinition(name="patient", path="Microarray.subject.patient", description="Patient described by the microarray", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: Patient described by the microarray
- * Type: reference
- * Path: Microarray.subject.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Microarray.subject.patient". - */ - public static final Include INCLUDE_SUBJECT_PATIENT = new Include("Microarray.subject.patient"); - - /** - * Search parameter constant for gene - *

- * Description: Gene studied in the microarray
- * Type: string
- * Path: Microarray.sample.gene.identity
- *

- */ - @SearchParamDefinition(name="gene", path="Microarray.sample.gene.identity", description="Gene studied in the microarray", type="string" ) - public static final String SP_GENE = "gene"; - - /** - * Fluent Client search parameter constant for gene - *

- * Description: Gene studied in the microarray
- * Type: string
- * Path: Microarray.sample.gene.identity
- *

- */ - public static final StringClientParam GENE = new StringClientParam(SP_GENE); - - /** - * Search parameter constant for coordinate - *

- * Description: Coordinate of the gene
- * Type: string
- * Path: Microarray.sample.gene.coordinate
- *

- */ - @SearchParamDefinition(name="coordinate", path="Microarray.sample.gene.coordinate", description="Coordinate of the gene", type="string" ) - public static final String SP_COORDINATE = "coordinate"; - - /** - * Fluent Client search parameter constant for coordinate - *

- * Description: Coordinate of the gene
- * Type: string
- * Path: Microarray.sample.gene.coordinate
- *

- */ - public static final StringClientParam COORDINATE = new StringClientParam(SP_COORDINATE); - - - @Child(name="subject", order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Subject of the microarray", - formalDefinition="Subject of the microarray" - ) - private java.util.List mySubject; - - @Child(name="organization", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Organization", - formalDefinition="Organization that does the microarray" - ) - private ResourceReferenceDt myOrganization; - - @Child(name="date", type=DateDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Date", - formalDefinition="Date when result of the microarray is updated" - ) - private DateDt myDate; - - @Child(name="scanner", order=3, min=1, max=1) - @Description( - shortDefinition="Scanner", - formalDefinition="Scanner used in the microarray" - ) - private Scanner myScanner; - - @Child(name="sample", order=4, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Sample", - formalDefinition="Sample of a grid on the chip" - ) - private java.util.List mySample; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myOrganization, myDate, myScanner, mySample); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myOrganization, myDate, myScanner, mySample); - } - - /** - * Gets the value(s) for subject (Subject of the microarray). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject of the microarray - *

- */ - public java.util.List getSubject() { - if (mySubject == null) { - mySubject = new java.util.ArrayList(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Subject of the microarray). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject of the microarray - *

- */ - public java.util.List getSubjectElement() { - if (mySubject == null) { - mySubject = new java.util.ArrayList(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Subject of the microarray) - * - *

- * Definition: - * Subject of the microarray - *

- */ - public Microarray setSubject(java.util.List theValue) { - mySubject = theValue; - return this; - } - - /** - * Adds and returns a new value for subject (Subject of the microarray) - * - *

- * Definition: - * Subject of the microarray - *

- */ - public Subject addSubject() { - Subject newType = new Subject(); - getSubject().add(newType); - return newType; - } - - /** - * Gets the first repetition for subject (Subject of the microarray), - * creating it if it does not already exist. - * - *

- * Definition: - * Subject of the microarray - *

- */ - public Subject getSubjectFirstRep() { - if (getSubject().isEmpty()) { - return addSubject(); - } - return getSubject().get(0); - } - - /** - * Gets the value(s) for organization (Organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that does the microarray - *

- */ - public ResourceReferenceDt getOrganization() { - if (myOrganization == null) { - myOrganization = new ResourceReferenceDt(); - } - return myOrganization; - } - - - /** - * Gets the value(s) for organization (Organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that does the microarray - *

- */ - public ResourceReferenceDt getOrganizationElement() { - if (myOrganization == null) { - myOrganization = new ResourceReferenceDt(); - } - return myOrganization; - } - - - /** - * Sets the value(s) for organization (Organization) - * - *

- * Definition: - * Organization that does the microarray - *

- */ - public Microarray setOrganization(ResourceReferenceDt theValue) { - myOrganization = theValue; - return this; - } - - - /** - * Gets the value(s) for date (Date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when result of the microarray is updated - *

- */ - public DateDt getDate() { - if (myDate == null) { - myDate = new DateDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when result of the microarray is updated - *

- */ - public DateDt getDateElement() { - if (myDate == null) { - myDate = new DateDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Date) - * - *

- * Definition: - * Date when result of the microarray is updated - *

- */ - public Microarray setDate(DateDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Date) - * - *

- * Definition: - * Date when result of the microarray is updated - *

- */ - public Microarray setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Date) - * - *

- * Definition: - * Date when result of the microarray is updated - *

- */ - public Microarray setDateWithDayPrecision( Date theDate) { - myDate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for scanner (Scanner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Scanner used in the microarray - *

- */ - public Scanner getScanner() { - if (myScanner == null) { - myScanner = new Scanner(); - } - return myScanner; - } - - - /** - * Gets the value(s) for scanner (Scanner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Scanner used in the microarray - *

- */ - public Scanner getScannerElement() { - if (myScanner == null) { - myScanner = new Scanner(); - } - return myScanner; - } - - - /** - * Sets the value(s) for scanner (Scanner) - * - *

- * Definition: - * Scanner used in the microarray - *

- */ - public Microarray setScanner(Scanner theValue) { - myScanner = theValue; - return this; - } - - - /** - * Gets the value(s) for sample (Sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sample of a grid on the chip - *

- */ - public java.util.List getSample() { - if (mySample == null) { - mySample = new java.util.ArrayList(); - } - return mySample; - } - - - /** - * Gets the value(s) for sample (Sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sample of a grid on the chip - *

- */ - public java.util.List getSampleElement() { - if (mySample == null) { - mySample = new java.util.ArrayList(); - } - return mySample; - } - - - /** - * Sets the value(s) for sample (Sample) - * - *

- * Definition: - * Sample of a grid on the chip - *

- */ - public Microarray setSample(java.util.List theValue) { - mySample = theValue; - return this; - } - - /** - * Adds and returns a new value for sample (Sample) - * - *

- * Definition: - * Sample of a grid on the chip - *

- */ - public Sample addSample() { - Sample newType = new Sample(); - getSample().add(newType); - return newType; - } - - /** - * Gets the first repetition for sample (Sample), - * creating it if it does not already exist. - * - *

- * Definition: - * Sample of a grid on the chip - *

- */ - public Sample getSampleFirstRep() { - if (getSample().isEmpty()) { - return addSample(); - } - return getSample().get(0); - } - - /** - * Block class for child element: Microarray.subject (Subject of the microarray) - * - *

- * Definition: - * Subject of the microarray - *

- */ - @Block() - public static class Subject - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="patient", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Resource that corresponds to the subject", - formalDefinition="Resource that corresponds to the subject" - ) - private ResourceReferenceDt myPatient; - - @Child(name="sampleId", type=StringDt.class, order=1, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Id of the sample that belongs to the subject", - formalDefinition="Id of the sample that belongs to the subject" - ) - private java.util.List mySampleId; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPatient, mySampleId); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPatient, mySampleId); - } - - /** - * Gets the value(s) for patient (Resource that corresponds to the subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Resource that corresponds to the subject - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Resource that corresponds to the subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Resource that corresponds to the subject - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Resource that corresponds to the subject) - * - *

- * Definition: - * Resource that corresponds to the subject - *

- */ - public Subject setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for sampleId (Id of the sample that belongs to the subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the sample that belongs to the subject - *

- */ - public java.util.List getSampleId() { - if (mySampleId == null) { - mySampleId = new java.util.ArrayList(); - } - return mySampleId; - } - - - /** - * Gets the value(s) for sampleId (Id of the sample that belongs to the subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the sample that belongs to the subject - *

- */ - public java.util.List getSampleIdElement() { - if (mySampleId == null) { - mySampleId = new java.util.ArrayList(); - } - return mySampleId; - } - - - /** - * Sets the value(s) for sampleId (Id of the sample that belongs to the subject) - * - *

- * Definition: - * Id of the sample that belongs to the subject - *

- */ - public Subject setSampleId(java.util.List theValue) { - mySampleId = theValue; - return this; - } - - /** - * Adds and returns a new value for sampleId (Id of the sample that belongs to the subject) - * - *

- * Definition: - * Id of the sample that belongs to the subject - *

- */ - public StringDt addSampleId() { - StringDt newType = new StringDt(); - getSampleId().add(newType); - return newType; - } - - /** - * Gets the first repetition for sampleId (Id of the sample that belongs to the subject), - * creating it if it does not already exist. - * - *

- * Definition: - * Id of the sample that belongs to the subject - *

- */ - public StringDt getSampleIdFirstRep() { - if (getSampleId().isEmpty()) { - return addSampleId(); - } - return getSampleId().get(0); - } - /** - * Adds a new value for sampleId (Id of the sample that belongs to the subject) - * - *

- * Definition: - * Id of the sample that belongs to the subject - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Subject addSampleId( String theString) { - if (mySampleId == null) { - mySampleId = new java.util.ArrayList(); - } - mySampleId.add(new StringDt(theString)); - return this; - } - - - - } - - - /** - * Block class for child element: Microarray.scanner (Scanner) - * - *

- * Definition: - * Scanner used in the microarray - *

- */ - @Block() - public static class Scanner - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="manufacturer", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Scanner manufacturer", - formalDefinition="Manufactuerer of the scanner" - ) - private ResourceReferenceDt myManufacturer; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Scanner name", - formalDefinition="Name of scanner model" - ) - private StringDt myName; - - @Child(name="version", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Scanner version", - formalDefinition="Version of the model" - ) - private StringDt myVersion; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myManufacturer, myName, myVersion); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myManufacturer, myName, myVersion); - } - - /** - * Gets the value(s) for manufacturer (Scanner manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Manufactuerer of the scanner - *

- */ - public ResourceReferenceDt getManufacturer() { - if (myManufacturer == null) { - myManufacturer = new ResourceReferenceDt(); - } - return myManufacturer; - } - - - /** - * Gets the value(s) for manufacturer (Scanner manufacturer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Manufactuerer of the scanner - *

- */ - public ResourceReferenceDt getManufacturerElement() { - if (myManufacturer == null) { - myManufacturer = new ResourceReferenceDt(); - } - return myManufacturer; - } - - - /** - * Sets the value(s) for manufacturer (Scanner manufacturer) - * - *

- * Definition: - * Manufactuerer of the scanner - *

- */ - public Scanner setManufacturer(ResourceReferenceDt theValue) { - myManufacturer = theValue; - return this; - } - - - /** - * Gets the value(s) for name (Scanner name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of scanner model - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Scanner name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of scanner model - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Scanner name) - * - *

- * Definition: - * Name of scanner model - *

- */ - public Scanner setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Scanner name) - * - *

- * Definition: - * Name of scanner model - *

- */ - public Scanner setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (Scanner version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Version of the model - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Scanner version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Version of the model - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Scanner version) - * - *

- * Definition: - * Version of the model - *

- */ - public Scanner setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Scanner version) - * - *

- * Definition: - * Version of the model - *

- */ - public Scanner setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Microarray.sample (Sample) - * - *

- * Definition: - * Sample of a grid on the chip - *

- */ - @Block() - public static class Sample - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identity", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Id of the sample", - formalDefinition="Id of the sample" - ) - private StringDt myIdentity; - - @Child(name="organism", type=CodeableConceptDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Sample", - formalDefinition="Organism that the sample belong s to" - ) - private CodeableConceptDt myOrganism; - - @Child(name="specimen", order=2, min=0, max=1) - @Description( - shortDefinition="Organism", - formalDefinition="Specimen used on the grid" - ) - private SampleSpecimen mySpecimen; - - @Child(name="gene", order=3, min=1, max=1) - @Description( - shortDefinition="Gene of study", - formalDefinition="Gene of study" - ) - private SampleGene myGene; - - @Child(name="intensity", type=DecimalDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Intensity", - formalDefinition="Intensity(expression) of the gene" - ) - private DecimalDt myIntensity; - - @Child(name="isControl", type=BooleanDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Control", - formalDefinition="Whether the grid is a control in the experiment" - ) - private BooleanDt myIsControl; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myOrganism, mySpecimen, myGene, myIntensity, myIsControl); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myOrganism, mySpecimen, myGene, myIntensity, myIsControl); - } - - /** - * Gets the value(s) for identity (Id of the sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the sample - *

- */ - public StringDt getIdentity() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (Id of the sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of the sample - *

- */ - public StringDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Sets the value(s) for identity (Id of the sample) - * - *

- * Definition: - * Id of the sample - *

- */ - public Sample setIdentity(StringDt theValue) { - myIdentity = theValue; - return this; - } - - /** - * Sets the value for identity (Id of the sample) - * - *

- * Definition: - * Id of the sample - *

- */ - public Sample setIdentity( String theString) { - myIdentity = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for organism (Sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organism that the sample belong s to - *

- */ - public CodeableConceptDt getOrganism() { - if (myOrganism == null) { - myOrganism = new CodeableConceptDt(); - } - return myOrganism; - } - - - /** - * Gets the value(s) for organism (Sample). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organism that the sample belong s to - *

- */ - public CodeableConceptDt getOrganismElement() { - if (myOrganism == null) { - myOrganism = new CodeableConceptDt(); - } - return myOrganism; - } - - - /** - * Sets the value(s) for organism (Sample) - * - *

- * Definition: - * Organism that the sample belong s to - *

- */ - public Sample setOrganism(CodeableConceptDt theValue) { - myOrganism = theValue; - return this; - } - - - /** - * Gets the value(s) for specimen (Organism). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specimen used on the grid - *

- */ - public SampleSpecimen getSpecimen() { - if (mySpecimen == null) { - mySpecimen = new SampleSpecimen(); - } - return mySpecimen; - } - - - /** - * Gets the value(s) for specimen (Organism). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specimen used on the grid - *

- */ - public SampleSpecimen getSpecimenElement() { - if (mySpecimen == null) { - mySpecimen = new SampleSpecimen(); - } - return mySpecimen; - } - - - /** - * Sets the value(s) for specimen (Organism) - * - *

- * Definition: - * Specimen used on the grid - *

- */ - public Sample setSpecimen(SampleSpecimen theValue) { - mySpecimen = theValue; - return this; - } - - - /** - * Gets the value(s) for gene (Gene of study). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Gene of study - *

- */ - public SampleGene getGene() { - if (myGene == null) { - myGene = new SampleGene(); - } - return myGene; - } - - - /** - * Gets the value(s) for gene (Gene of study). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Gene of study - *

- */ - public SampleGene getGeneElement() { - if (myGene == null) { - myGene = new SampleGene(); - } - return myGene; - } - - - /** - * Sets the value(s) for gene (Gene of study) - * - *

- * Definition: - * Gene of study - *

- */ - public Sample setGene(SampleGene theValue) { - myGene = theValue; - return this; - } - - - /** - * Gets the value(s) for intensity (Intensity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Intensity(expression) of the gene - *

- */ - public DecimalDt getIntensity() { - if (myIntensity == null) { - myIntensity = new DecimalDt(); - } - return myIntensity; - } - - - /** - * Gets the value(s) for intensity (Intensity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Intensity(expression) of the gene - *

- */ - public DecimalDt getIntensityElement() { - if (myIntensity == null) { - myIntensity = new DecimalDt(); - } - return myIntensity; - } - - - /** - * Sets the value(s) for intensity (Intensity) - * - *

- * Definition: - * Intensity(expression) of the gene - *

- */ - public Sample setIntensity(DecimalDt theValue) { - myIntensity = theValue; - return this; - } - - /** - * Sets the value for intensity (Intensity) - * - *

- * Definition: - * Intensity(expression) of the gene - *

- */ - public Sample setIntensity( long theValue) { - myIntensity = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for intensity (Intensity) - * - *

- * Definition: - * Intensity(expression) of the gene - *

- */ - public Sample setIntensity( double theValue) { - myIntensity = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for intensity (Intensity) - * - *

- * Definition: - * Intensity(expression) of the gene - *

- */ - public Sample setIntensity( java.math.BigDecimal theValue) { - myIntensity = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for isControl (Control). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the grid is a control in the experiment - *

- */ - public BooleanDt getIsControl() { - if (myIsControl == null) { - myIsControl = new BooleanDt(); - } - return myIsControl; - } - - - /** - * Gets the value(s) for isControl (Control). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the grid is a control in the experiment - *

- */ - public BooleanDt getIsControlElement() { - if (myIsControl == null) { - myIsControl = new BooleanDt(); - } - return myIsControl; - } - - - /** - * Sets the value(s) for isControl (Control) - * - *

- * Definition: - * Whether the grid is a control in the experiment - *

- */ - public Sample setIsControl(BooleanDt theValue) { - myIsControl = theValue; - return this; - } - - /** - * Sets the value for isControl (Control) - * - *

- * Definition: - * Whether the grid is a control in the experiment - *

- */ - public Sample setIsControl( boolean theBoolean) { - myIsControl = new BooleanDt(theBoolean); - return this; - } - - - - } - - /** - * Block class for child element: Microarray.sample.specimen (Organism) - * - *

- * Definition: - * Specimen used on the grid - *

- */ - @Block() - public static class SampleSpecimen - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Specimen type", - formalDefinition="Type of the specimen" - ) - private StringDt myType; - - @Child(name="source", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Specimen source", - formalDefinition="Source of the specimen" - ) - private CodeableConceptDt mySource; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySource); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySource); - } - - /** - * Gets the value(s) for type (Specimen type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the specimen - *

- */ - public StringDt getType() { - if (myType == null) { - myType = new StringDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Specimen type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the specimen - *

- */ - public StringDt getTypeElement() { - if (myType == null) { - myType = new StringDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Specimen type) - * - *

- * Definition: - * Type of the specimen - *

- */ - public SampleSpecimen setType(StringDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value for type (Specimen type) - * - *

- * Definition: - * Type of the specimen - *

- */ - public SampleSpecimen setType( String theString) { - myType = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for source (Specimen source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Source of the specimen - *

- */ - public CodeableConceptDt getSource() { - if (mySource == null) { - mySource = new CodeableConceptDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Specimen source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Source of the specimen - *

- */ - public CodeableConceptDt getSourceElement() { - if (mySource == null) { - mySource = new CodeableConceptDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Specimen source) - * - *

- * Definition: - * Source of the specimen - *

- */ - public SampleSpecimen setSource(CodeableConceptDt theValue) { - mySource = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Microarray.sample.gene (Gene of study) - * - *

- * Definition: - * Gene of study - *

- */ - @Block() - public static class SampleGene - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identity", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identifier of the gene", - formalDefinition="Identifier of the gene" - ) - private StringDt myIdentity; - - @Child(name="coordinate", order=1, min=0, max=1) - @Description( - shortDefinition="Coordinate of the gene", - formalDefinition="Coordinate of the gene" - ) - private SampleGeneCoordinate myCoordinate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myCoordinate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myCoordinate); - } - - /** - * Gets the value(s) for identity (Identifier of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the gene - *

- */ - public StringDt getIdentity() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (Identifier of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the gene - *

- */ - public StringDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Sets the value(s) for identity (Identifier of the gene) - * - *

- * Definition: - * Identifier of the gene - *

- */ - public SampleGene setIdentity(StringDt theValue) { - myIdentity = theValue; - return this; - } - - /** - * Sets the value for identity (Identifier of the gene) - * - *

- * Definition: - * Identifier of the gene - *

- */ - public SampleGene setIdentity( String theString) { - myIdentity = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for coordinate (Coordinate of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coordinate of the gene - *

- */ - public SampleGeneCoordinate getCoordinate() { - if (myCoordinate == null) { - myCoordinate = new SampleGeneCoordinate(); - } - return myCoordinate; - } - - - /** - * Gets the value(s) for coordinate (Coordinate of the gene). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Coordinate of the gene - *

- */ - public SampleGeneCoordinate getCoordinateElement() { - if (myCoordinate == null) { - myCoordinate = new SampleGeneCoordinate(); - } - return myCoordinate; - } - - - /** - * Sets the value(s) for coordinate (Coordinate of the gene) - * - *

- * Definition: - * Coordinate of the gene - *

- */ - public SampleGene setCoordinate(SampleGeneCoordinate theValue) { - myCoordinate = theValue; - return this; - } - - - - } - - /** - * Block class for child element: Microarray.sample.gene.coordinate (Coordinate of the gene) - * - *

- * Definition: - * Coordinate of the gene - *

- */ - @Block() - public static class SampleGeneCoordinate - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="chromosome", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Chromosome", - formalDefinition="Chromosome" - ) - private StringDt myChromosome; - - @Child(name="start", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Start position", - formalDefinition="Start position" - ) - private IntegerDt myStart; - - @Child(name="end", type=IntegerDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="End position", - formalDefinition="End position" - ) - private IntegerDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myChromosome, myStart, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myChromosome, myStart, myEnd); - } - - /** - * Gets the value(s) for chromosome (Chromosome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Chromosome - *

- */ - public StringDt getChromosome() { - if (myChromosome == null) { - myChromosome = new StringDt(); - } - return myChromosome; - } - - - /** - * Gets the value(s) for chromosome (Chromosome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Chromosome - *

- */ - public StringDt getChromosomeElement() { - if (myChromosome == null) { - myChromosome = new StringDt(); - } - return myChromosome; - } - - - /** - * Sets the value(s) for chromosome (Chromosome) - * - *

- * Definition: - * Chromosome - *

- */ - public SampleGeneCoordinate setChromosome(StringDt theValue) { - myChromosome = theValue; - return this; - } - - /** - * Sets the value for chromosome (Chromosome) - * - *

- * Definition: - * Chromosome - *

- */ - public SampleGeneCoordinate setChromosome( String theString) { - myChromosome = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for start (Start position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position - *

- */ - public IntegerDt getStart() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Start position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Start position - *

- */ - public IntegerDt getStartElement() { - if (myStart == null) { - myStart = new IntegerDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Start position) - * - *

- * Definition: - * Start position - *

- */ - public SampleGeneCoordinate setStart(IntegerDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Start position) - * - *

- * Definition: - * Start position - *

- */ - public SampleGeneCoordinate setStart( int theInteger) { - myStart = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (End position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position - *

- */ - public IntegerDt getEnd() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (End position). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * End position - *

- */ - public IntegerDt getEndElement() { - if (myEnd == null) { - myEnd = new IntegerDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (End position) - * - *

- * Definition: - * End position - *

- */ - public SampleGeneCoordinate setEnd(IntegerDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (End position) - * - *

- * Definition: - * End position - *

- */ - public SampleGeneCoordinate setEnd( int theInteger) { - myEnd = new IntegerDt(theInteger); - return this; - } - - - - } - - - - - - - @Override - public String getResourceName() { - return "Microarray"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Observation.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Observation.java deleted file mode 100644 index 171f4f47247..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Observation.java +++ /dev/null @@ -1,2307 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Observation Resource - * (Measurements and simple assertions) - * - *

- * Definition: - * Measurements and simple assertions made about a patient, device or other subject - *

- * - *

- * Requirements: - * Observations are a key aspect of healthcare. This resource is used to capture those that do not require more sophisticated mechanisms. - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Observation - *

- * - */ -@ResourceDef(name="Observation", profile="http://hl7.org/fhir/profiles/Observation", id="observation") -public class Observation - extends BaseResource implements IResource { - - /** - * Search parameter constant for name - *

- * Description: The name of the observation type
- * Type: token
- * Path: Observation.name
- *

- */ - @SearchParamDefinition(name="name", path="Observation.name", description="The name of the observation type", type="token" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: The name of the observation type
- * Type: token
- * Path: Observation.name
- *

- */ - public static final TokenClientParam NAME = new TokenClientParam(SP_NAME); - - /** - * Search parameter constant for value-quantity - *

- * Description: The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)
- * Type: quantity
- * Path: Observation.value[x]
- *

- */ - @SearchParamDefinition(name="value-quantity", path="Observation.value[x]", description="The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", type="quantity" ) - public static final String SP_VALUE_QUANTITY = "value-quantity"; - - /** - * Fluent Client search parameter constant for value-quantity - *

- * Description: The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)
- * Type: quantity
- * Path: Observation.value[x]
- *

- */ - public static final QuantityClientParam VALUE_QUANTITY = new QuantityClientParam(SP_VALUE_QUANTITY); - - /** - * Search parameter constant for value-concept - *

- * Description: The value of the observation, if the value is a CodeableConcept
- * Type: token
- * Path: Observation.value[x]
- *

- */ - @SearchParamDefinition(name="value-concept", path="Observation.value[x]", description="The value of the observation, if the value is a CodeableConcept", type="token" ) - public static final String SP_VALUE_CONCEPT = "value-concept"; - - /** - * Fluent Client search parameter constant for value-concept - *

- * Description: The value of the observation, if the value is a CodeableConcept
- * Type: token
- * Path: Observation.value[x]
- *

- */ - public static final TokenClientParam VALUE_CONCEPT = new TokenClientParam(SP_VALUE_CONCEPT); - - /** - * Search parameter constant for value-date - *

- * Description: The value of the observation, if the value is a Period
- * Type: date
- * Path: Observation.value[x]
- *

- */ - @SearchParamDefinition(name="value-date", path="Observation.value[x]", description="The value of the observation, if the value is a Period", type="date" ) - public static final String SP_VALUE_DATE = "value-date"; - - /** - * Fluent Client search parameter constant for value-date - *

- * Description: The value of the observation, if the value is a Period
- * Type: date
- * Path: Observation.value[x]
- *

- */ - public static final DateClientParam VALUE_DATE = new DateClientParam(SP_VALUE_DATE); - - /** - * Search parameter constant for value-string - *

- * Description: The value of the observation, if the value is a string, and also searches in CodeableConcept.text
- * Type: string
- * Path: Observation.value[x]
- *

- */ - @SearchParamDefinition(name="value-string", path="Observation.value[x]", description="The value of the observation, if the value is a string, and also searches in CodeableConcept.text", type="string" ) - public static final String SP_VALUE_STRING = "value-string"; - - /** - * Fluent Client search parameter constant for value-string - *

- * Description: The value of the observation, if the value is a string, and also searches in CodeableConcept.text
- * Type: string
- * Path: Observation.value[x]
- *

- */ - public static final StringClientParam VALUE_STRING = new StringClientParam(SP_VALUE_STRING); - - /** - * Search parameter constant for date - *

- * Description: Obtained date/time. If the obtained element is a period, a date that falls in the period
- * Type: date
- * Path: Observation.applies[x]
- *

- */ - @SearchParamDefinition(name="date", path="Observation.applies[x]", description="Obtained date/time. If the obtained element is a period, a date that falls in the period", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: Obtained date/time. If the obtained element is a period, a date that falls in the period
- * Type: date
- * Path: Observation.applies[x]
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for status - *

- * Description: The status of the observation
- * Type: token
- * Path: Observation.status
- *

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

- * Description: The status of the observation
- * Type: token
- * Path: Observation.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for reliability - *

- * Description: The reliability of the observation
- * Type: token
- * Path: Observation.reliability
- *

- */ - @SearchParamDefinition(name="reliability", path="Observation.reliability", description="The reliability of the observation", type="token" ) - public static final String SP_RELIABILITY = "reliability"; - - /** - * Fluent Client search parameter constant for reliability - *

- * Description: The reliability of the observation
- * Type: token
- * Path: Observation.reliability
- *

- */ - public static final TokenClientParam RELIABILITY = new TokenClientParam(SP_RELIABILITY); - - /** - * Search parameter constant for subject - *

- * Description: The subject that the observation is about
- * Type: reference
- * Path: Observation.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Observation.subject", description="The subject that the observation is about", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject that the observation is about
- * Type: reference
- * Path: Observation.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Observation.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Observation.subject"); - - /** - * Search parameter constant for performer - *

- * Description: Who and/or what performed the observation
- * Type: reference
- * Path: Observation.performer
- *

- */ - @SearchParamDefinition(name="performer", path="Observation.performer", description="Who and/or what performed the observation", type="reference" ) - public static final String SP_PERFORMER = "performer"; - - /** - * Fluent Client search parameter constant for performer - *

- * Description: Who and/or what performed the observation
- * Type: reference
- * Path: Observation.performer
- *

- */ - public static final ReferenceClientParam PERFORMER = new ReferenceClientParam(SP_PERFORMER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Observation.performer". - */ - public static final Include INCLUDE_PERFORMER = new Include("Observation.performer"); - - /** - * Search parameter constant for specimen - *

- * Description:
- * Type: reference
- * Path: Observation.specimen
- *

- */ - @SearchParamDefinition(name="specimen", path="Observation.specimen", description="", type="reference" ) - public static final String SP_SPECIMEN = "specimen"; - - /** - * Fluent Client search parameter constant for specimen - *

- * Description:
- * Type: reference
- * Path: Observation.specimen
- *

- */ - public static final ReferenceClientParam SPECIMEN = new ReferenceClientParam(SP_SPECIMEN); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Observation.specimen". - */ - public static final Include INCLUDE_SPECIMEN = new Include("Observation.specimen"); - - /** - * Search parameter constant for related-type - *

- * Description:
- * Type: token
- * Path: Observation.related.type
- *

- */ - @SearchParamDefinition(name="related-type", path="Observation.related.type", description="", type="token" ) - public static final String SP_RELATED_TYPE = "related-type"; - - /** - * Fluent Client search parameter constant for related-type - *

- * Description:
- * Type: token
- * Path: Observation.related.type
- *

- */ - public static final TokenClientParam RELATED_TYPE = new TokenClientParam(SP_RELATED_TYPE); - - /** - * Search parameter constant for related-target - *

- * Description:
- * Type: reference
- * Path: Observation.related.target
- *

- */ - @SearchParamDefinition(name="related-target", path="Observation.related.target", description="", type="reference" ) - public static final String SP_RELATED_TARGET = "related-target"; - - /** - * Fluent Client search parameter constant for related-target - *

- * Description:
- * Type: reference
- * Path: Observation.related.target
- *

- */ - public static final ReferenceClientParam RELATED_TARGET = new ReferenceClientParam(SP_RELATED_TARGET); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Observation.related.target". - */ - public static final Include INCLUDE_RELATED_TARGET = new Include("Observation.related.target"); - - /** - * Search parameter constant for name-value-quantity - *

- * Description: Both name and one of the value parameters
- * Type: composite
- * Path: name & value-[x]
- *

- */ - @SearchParamDefinition(name="name-value-quantity", path="name & value-[x]", description="Both name and one of the value parameters", type="composite" , compositeOf={ "name", "value-quantity" } ) - public static final String SP_NAME_VALUE_QUANTITY = "name-value-quantity"; - - /** - * Fluent Client search parameter constant for name-value-quantity - *

- * Description: Both name and one of the value parameters
- * Type: composite
- * Path: name & value-[x]
- *

- */ - public static final CompositeClientParam NAME_VALUE_QUANTITY = new CompositeClientParam(SP_NAME_VALUE_QUANTITY); - - /** - * Search parameter constant for name-value-concept - *

- * Description: Both name and one of the value parameters
- * Type: composite
- * Path: name & value-[x]
- *

- */ - @SearchParamDefinition(name="name-value-concept", path="name & value-[x]", description="Both name and one of the value parameters", type="composite" , compositeOf={ "name", "value-concept" } ) - public static final String SP_NAME_VALUE_CONCEPT = "name-value-concept"; - - /** - * Fluent Client search parameter constant for name-value-concept - *

- * Description: Both name and one of the value parameters
- * Type: composite
- * Path: name & value-[x]
- *

- */ - public static final CompositeClientParam NAME_VALUE_CONCEPT = new CompositeClientParam(SP_NAME_VALUE_CONCEPT); - - /** - * Search parameter constant for name-value-date - *

- * Description: Both name and one of the value parameters
- * Type: composite
- * Path: name & value-[x]
- *

- */ - @SearchParamDefinition(name="name-value-date", path="name & value-[x]", description="Both name and one of the value parameters", type="composite" , compositeOf={ "name", "value-date" } ) - public static final String SP_NAME_VALUE_DATE = "name-value-date"; - - /** - * Fluent Client search parameter constant for name-value-date - *

- * Description: Both name and one of the value parameters
- * Type: composite
- * Path: name & value-[x]
- *

- */ - public static final CompositeClientParam NAME_VALUE_DATE = new CompositeClientParam(SP_NAME_VALUE_DATE); - - /** - * Search parameter constant for name-value-string - *

- * Description: Both name and one of the value parameters
- * Type: composite
- * Path: name & value-[x]
- *

- */ - @SearchParamDefinition(name="name-value-string", path="name & value-[x]", description="Both name and one of the value parameters", type="composite" , compositeOf={ "name", "value-string" } ) - public static final String SP_NAME_VALUE_STRING = "name-value-string"; - - /** - * Fluent Client search parameter constant for name-value-string - *

- * Description: Both name and one of the value parameters
- * Type: composite
- * Path: name & value-[x]
- *

- */ - public static final CompositeClientParam NAME_VALUE_STRING = new CompositeClientParam(SP_NAME_VALUE_STRING); - - /** - * Search parameter constant for related-target-related-type - *

- * Description: Related Observations - search on related-type and related-target together
- * Type: composite
- * Path: related-target & related-type
- *

- */ - @SearchParamDefinition(name="related-target-related-type", path="related-target & related-type", description="Related Observations - search on related-type and related-target together", type="composite" , compositeOf={ "related-target", "related-type" } ) - public static final String SP_RELATED_TARGET_RELATED_TYPE = "related-target-related-type"; - - /** - * Fluent Client search parameter constant for related-target-related-type - *

- * Description: Related Observations - search on related-type and related-target together
- * Type: composite
- * Path: related-target & related-type
- *

- */ - public static final CompositeClientParam RELATED_TARGET_RELATED_TYPE = new CompositeClientParam(SP_RELATED_TARGET_RELATED_TYPE); - - - @Child(name="name", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Type of observation (code / type)", - formalDefinition="Describes what was observed. Sometimes this is called the observation \"code\"" - ) - private CodeableConceptDt myName; - - @Child(name="value", order=1, min=0, max=1, type={ - QuantityDt.class, CodeableConceptDt.class, AttachmentDt.class, RatioDt.class, PeriodDt.class, SampledDataDt.class, StringDt.class }) - @Description( - shortDefinition="Actual result", - formalDefinition="The information determined as a result of making the observation, if the information has a simple value" - ) - private IDatatype myValue; - - @Child(name="interpretation", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="High, low, normal, etc.", - formalDefinition="The assessment made based on the result of the observation." - ) - private BoundCodeableConceptDt myInterpretation; - - @Child(name="comments", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Comments about result", - formalDefinition="May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result." - ) - private StringDt myComments; - - @Child(name="applies", order=4, min=0, max=1, type={ - DateTimeDt.class, PeriodDt.class }) - @Description( - shortDefinition="Physiologically Relevant time/time-period for observation", - formalDefinition="The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself" - ) - private IDatatype myApplies; - - @Child(name="issued", type=InstantDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Date/Time this was made available", - formalDefinition="" - ) - private InstantDt myIssued; - - @Child(name="status", type=CodeDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="registered | preliminary | final | amended +", - formalDefinition="The status of the result value" - ) - private BoundCodeDt myStatus; - - @Child(name="reliability", type=CodeDt.class, order=7, min=1, max=1) - @Description( - shortDefinition="ok | ongoing | early | questionable | calibrating | error +", - formalDefinition="An estimate of the degree to which quality issues have impacted on the value reported" - ) - private BoundCodeDt myReliability; - - @Child(name="bodySite", type=CodeableConceptDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Observed body part", - formalDefinition="Indicates where on the subject's body the observation was made." - ) - private CodeableConceptDt myBodySite; - - @Child(name="method", type=CodeableConceptDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="How it was done", - formalDefinition="Indicates the mechanism used to perform the observation" - ) - private CodeableConceptDt myMethod; - - @Child(name="identifier", type=IdentifierDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Unique Id for this particular observation", - formalDefinition="A unique identifier for the simple observation" - ) - private IdentifierDt myIdentifier; - - @Child(name="subject", order=11, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Who and/or what this is about", - formalDefinition="The thing the observation is being made about" - ) - private ResourceReferenceDt mySubject; - - @Child(name="specimen", order=12, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Specimen.class }) - @Description( - shortDefinition="Specimen used for this observation", - formalDefinition="The specimen that was used when this observation was made" - ) - private ResourceReferenceDt mySpecimen; - - @Child(name="performer", order=13, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Who did the observation", - formalDefinition="Who was responsible for asserting the observed value as \"true\"" - ) - private java.util.List myPerformer; - - @Child(name="referenceRange", order=14, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Provides guide for interpretation", - formalDefinition="Guidance on how to interpret the value by comparison to a normal or recommended range" - ) - private java.util.List myReferenceRange; - - @Child(name="related", order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Observations related to this observation", - formalDefinition="Related observations - either components, or previous observations, or statements of derivation" - ) - private java.util.List myRelated; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myValue, myInterpretation, myComments, myApplies, myIssued, myStatus, myReliability, myBodySite, myMethod, myIdentifier, mySubject, mySpecimen, myPerformer, myReferenceRange, myRelated); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myValue, myInterpretation, myComments, myApplies, myIssued, myStatus, myReliability, myBodySite, myMethod, myIdentifier, mySubject, mySpecimen, myPerformer, myReferenceRange, myRelated); - } - - /** - * Gets the value(s) for name (Type of observation (code / type)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes what was observed. Sometimes this is called the observation \"code\" - *

- */ - public CodeableConceptDt getName() { - if (myName == null) { - myName = new CodeableConceptDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Type of observation (code / type)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes what was observed. Sometimes this is called the observation \"code\" - *

- */ - public CodeableConceptDt getNameElement() { - if (myName == null) { - myName = new CodeableConceptDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Type of observation (code / type)) - * - *

- * Definition: - * Describes what was observed. Sometimes this is called the observation \"code\" - *

- */ - public Observation setName(CodeableConceptDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for value[x] (Actual result). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The information determined as a result of making the observation, if the information has a simple value - *

- */ - public IDatatype getValue() { - return myValue; - } - - - /** - * Gets the value(s) for value[x] (Actual result). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The information determined as a result of making the observation, if the information has a simple value - *

- */ - public IDatatype getValueElement() { - return myValue; - } - - - /** - * Sets the value(s) for value[x] (Actual result) - * - *

- * Definition: - * The information determined as a result of making the observation, if the information has a simple value - *

- */ - public Observation setValue(IDatatype theValue) { - myValue = theValue; - return this; - } - - - /** - * Gets the value(s) for interpretation (High, low, normal, etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The assessment made based on the result of the observation. - *

- */ - public BoundCodeableConceptDt getInterpretation() { - if (myInterpretation == null) { - myInterpretation = new BoundCodeableConceptDt(ObservationInterpretationCodesEnum.VALUESET_BINDER); - } - return myInterpretation; - } - - - /** - * Gets the value(s) for interpretation (High, low, normal, etc.). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The assessment made based on the result of the observation. - *

- */ - public BoundCodeableConceptDt getInterpretationElement() { - if (myInterpretation == null) { - myInterpretation = new BoundCodeableConceptDt(ObservationInterpretationCodesEnum.VALUESET_BINDER); - } - return myInterpretation; - } - - - /** - * Sets the value(s) for interpretation (High, low, normal, etc.) - * - *

- * Definition: - * The assessment made based on the result of the observation. - *

- */ - public Observation setInterpretation(BoundCodeableConceptDt theValue) { - myInterpretation = theValue; - return this; - } - - /** - * Sets the value(s) for interpretation (High, low, normal, etc.) - * - *

- * Definition: - * The assessment made based on the result of the observation. - *

- */ - public Observation setInterpretation(ObservationInterpretationCodesEnum theValue) { - getInterpretation().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for comments (Comments about result). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result. - *

- */ - public StringDt getComments() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (Comments about result). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result. - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Sets the value(s) for comments (Comments about result) - * - *

- * Definition: - * May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result. - *

- */ - public Observation setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - /** - * Sets the value for comments (Comments about result) - * - *

- * Definition: - * May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result. - *

- */ - public Observation setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for applies[x] (Physiologically Relevant time/time-period for observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself - *

- */ - public IDatatype getApplies() { - return myApplies; - } - - - /** - * Gets the value(s) for applies[x] (Physiologically Relevant time/time-period for observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself - *

- */ - public IDatatype getAppliesElement() { - return myApplies; - } - - - /** - * Sets the value(s) for applies[x] (Physiologically Relevant time/time-period for observation) - * - *

- * Definition: - * The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself - *

- */ - public Observation setApplies(IDatatype theValue) { - myApplies = theValue; - return this; - } - - - /** - * Gets the value(s) for issued (Date/Time this was made available). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getIssued() { - if (myIssued == null) { - myIssued = new InstantDt(); - } - return myIssued; - } - - - /** - * Gets the value(s) for issued (Date/Time this was made available). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getIssuedElement() { - if (myIssued == null) { - myIssued = new InstantDt(); - } - return myIssued; - } - - - /** - * Sets the value(s) for issued (Date/Time this was made available) - * - *

- * Definition: - * - *

- */ - public Observation setIssued(InstantDt theValue) { - myIssued = theValue; - return this; - } - - /** - * Sets the value for issued (Date/Time this was made available) - * - *

- * Definition: - * - *

- */ - public Observation setIssuedWithMillisPrecision( Date theDate) { - myIssued = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for issued (Date/Time this was made available) - * - *

- * Definition: - * - *

- */ - public Observation setIssued( Date theDate, TemporalPrecisionEnum thePrecision) { - myIssued = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for status (registered | preliminary | final | amended +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the result value - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ObservationStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (registered | preliminary | final | amended +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the result value - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ObservationStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (registered | preliminary | final | amended +) - * - *

- * Definition: - * The status of the result value - *

- */ - public Observation setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (registered | preliminary | final | amended +) - * - *

- * Definition: - * The status of the result value - *

- */ - public Observation setStatus(ObservationStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An estimate of the degree to which quality issues have impacted on the value reported - *

- */ - public BoundCodeDt getReliability() { - if (myReliability == null) { - myReliability = new BoundCodeDt(ObservationReliabilityEnum.VALUESET_BINDER); - } - return myReliability; - } - - - /** - * Gets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An estimate of the degree to which quality issues have impacted on the value reported - *

- */ - public BoundCodeDt getReliabilityElement() { - if (myReliability == null) { - myReliability = new BoundCodeDt(ObservationReliabilityEnum.VALUESET_BINDER); - } - return myReliability; - } - - - /** - * Sets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error +) - * - *

- * Definition: - * An estimate of the degree to which quality issues have impacted on the value reported - *

- */ - public Observation setReliability(BoundCodeDt theValue) { - myReliability = theValue; - return this; - } - - /** - * Sets the value(s) for reliability (ok | ongoing | early | questionable | calibrating | error +) - * - *

- * Definition: - * An estimate of the degree to which quality issues have impacted on the value reported - *

- */ - public Observation setReliability(ObservationReliabilityEnum theValue) { - getReliability().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for bodySite (Observed body part). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates where on the subject's body the observation was made. - *

- */ - public CodeableConceptDt getBodySite() { - if (myBodySite == null) { - myBodySite = new CodeableConceptDt(); - } - return myBodySite; - } - - - /** - * Gets the value(s) for bodySite (Observed body part). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates where on the subject's body the observation was made. - *

- */ - public CodeableConceptDt getBodySiteElement() { - if (myBodySite == null) { - myBodySite = new CodeableConceptDt(); - } - return myBodySite; - } - - - /** - * Sets the value(s) for bodySite (Observed body part) - * - *

- * Definition: - * Indicates where on the subject's body the observation was made. - *

- */ - public Observation setBodySite(CodeableConceptDt theValue) { - myBodySite = theValue; - return this; - } - - - /** - * Gets the value(s) for method (How it was done). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the mechanism used to perform the observation - *

- */ - public CodeableConceptDt getMethod() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Gets the value(s) for method (How it was done). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the mechanism used to perform the observation - *

- */ - public CodeableConceptDt getMethodElement() { - if (myMethod == null) { - myMethod = new CodeableConceptDt(); - } - return myMethod; - } - - - /** - * Sets the value(s) for method (How it was done) - * - *

- * Definition: - * Indicates the mechanism used to perform the observation - *

- */ - public Observation setMethod(CodeableConceptDt theValue) { - myMethod = theValue; - return this; - } - - - /** - * Gets the value(s) for identifier (Unique Id for this particular observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier for the simple observation - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Unique Id for this particular observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique identifier for the simple observation - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Unique Id for this particular observation) - * - *

- * Definition: - * A unique identifier for the simple observation - *

- */ - public Observation setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Unique Id for this particular observation) - * - *

- * Definition: - * A unique identifier for the simple observation - *

- */ - public Observation setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Unique Id for this particular observation) - * - *

- * Definition: - * A unique identifier for the simple observation - *

- */ - public Observation setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for subject (Who and/or what this is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The thing the observation is being made about - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who and/or what this is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The thing the observation is being made about - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who and/or what this is about) - * - *

- * Definition: - * The thing the observation is being made about - *

- */ - public Observation setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for specimen (Specimen used for this observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specimen that was used when this observation was made - *

- */ - public ResourceReferenceDt getSpecimen() { - if (mySpecimen == null) { - mySpecimen = new ResourceReferenceDt(); - } - return mySpecimen; - } - - - /** - * Gets the value(s) for specimen (Specimen used for this observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specimen that was used when this observation was made - *

- */ - public ResourceReferenceDt getSpecimenElement() { - if (mySpecimen == null) { - mySpecimen = new ResourceReferenceDt(); - } - return mySpecimen; - } - - - /** - * Sets the value(s) for specimen (Specimen used for this observation) - * - *

- * Definition: - * The specimen that was used when this observation was made - *

- */ - public Observation setSpecimen(ResourceReferenceDt theValue) { - mySpecimen = theValue; - return this; - } - - - /** - * Gets the value(s) for performer (Who did the observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who was responsible for asserting the observed value as \"true\" - *

- */ - public java.util.List getPerformer() { - if (myPerformer == null) { - myPerformer = new java.util.ArrayList(); - } - return myPerformer; - } - - - /** - * Gets the value(s) for performer (Who did the observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Who was responsible for asserting the observed value as \"true\" - *

- */ - public java.util.List getPerformerElement() { - if (myPerformer == null) { - myPerformer = new java.util.ArrayList(); - } - return myPerformer; - } - - - /** - * Sets the value(s) for performer (Who did the observation) - * - *

- * Definition: - * Who was responsible for asserting the observed value as \"true\" - *

- */ - public Observation setPerformer(java.util.List theValue) { - myPerformer = theValue; - return this; - } - - /** - * Adds and returns a new value for performer (Who did the observation) - * - *

- * Definition: - * Who was responsible for asserting the observed value as \"true\" - *

- */ - public ResourceReferenceDt addPerformer() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getPerformer().add(newType); - return newType; - } - - /** - * Gets the value(s) for referenceRange (Provides guide for interpretation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance on how to interpret the value by comparison to a normal or recommended range - *

- */ - public java.util.List getReferenceRange() { - if (myReferenceRange == null) { - myReferenceRange = new java.util.ArrayList(); - } - return myReferenceRange; - } - - - /** - * Gets the value(s) for referenceRange (Provides guide for interpretation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Guidance on how to interpret the value by comparison to a normal or recommended range - *

- */ - public java.util.List getReferenceRangeElement() { - if (myReferenceRange == null) { - myReferenceRange = new java.util.ArrayList(); - } - return myReferenceRange; - } - - - /** - * Sets the value(s) for referenceRange (Provides guide for interpretation) - * - *

- * Definition: - * Guidance on how to interpret the value by comparison to a normal or recommended range - *

- */ - public Observation setReferenceRange(java.util.List theValue) { - myReferenceRange = theValue; - return this; - } - - /** - * Adds and returns a new value for referenceRange (Provides guide for interpretation) - * - *

- * Definition: - * Guidance on how to interpret the value by comparison to a normal or recommended range - *

- */ - public ReferenceRange addReferenceRange() { - ReferenceRange newType = new ReferenceRange(); - getReferenceRange().add(newType); - return newType; - } - - /** - * Gets the first repetition for referenceRange (Provides guide for interpretation), - * creating it if it does not already exist. - * - *

- * Definition: - * Guidance on how to interpret the value by comparison to a normal or recommended range - *

- */ - public ReferenceRange getReferenceRangeFirstRep() { - if (getReferenceRange().isEmpty()) { - return addReferenceRange(); - } - return getReferenceRange().get(0); - } - - /** - * Gets the value(s) for related (Observations related to this observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Related observations - either components, or previous observations, or statements of derivation - *

- */ - public java.util.List getRelated() { - if (myRelated == null) { - myRelated = new java.util.ArrayList(); - } - return myRelated; - } - - - /** - * Gets the value(s) for related (Observations related to this observation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Related observations - either components, or previous observations, or statements of derivation - *

- */ - public java.util.List getRelatedElement() { - if (myRelated == null) { - myRelated = new java.util.ArrayList(); - } - return myRelated; - } - - - /** - * Sets the value(s) for related (Observations related to this observation) - * - *

- * Definition: - * Related observations - either components, or previous observations, or statements of derivation - *

- */ - public Observation setRelated(java.util.List theValue) { - myRelated = theValue; - return this; - } - - /** - * Adds and returns a new value for related (Observations related to this observation) - * - *

- * Definition: - * Related observations - either components, or previous observations, or statements of derivation - *

- */ - public Related addRelated() { - Related newType = new Related(); - getRelated().add(newType); - return newType; - } - - /** - * Gets the first repetition for related (Observations related to this observation), - * creating it if it does not already exist. - * - *

- * Definition: - * Related observations - either components, or previous observations, or statements of derivation - *

- */ - public Related getRelatedFirstRep() { - if (getRelated().isEmpty()) { - return addRelated(); - } - return getRelated().get(0); - } - - /** - * Block class for child element: Observation.referenceRange (Provides guide for interpretation) - * - *

- * Definition: - * Guidance on how to interpret the value by comparison to a normal or recommended range - *

- */ - @Block() - public static class ReferenceRange - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="low", type=QuantityDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Low Range, if relevant", - formalDefinition="The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3" - ) - private QuantityDt myLow; - - @Child(name="high", type=QuantityDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="High Range, if relevant", - formalDefinition="The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5" - ) - private QuantityDt myHigh; - - @Child(name="meaning", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Indicates the meaning/use of this range of this range", - formalDefinition="Code for the meaning of the reference range" - ) - private CodeableConceptDt myMeaning; - - @Child(name="age", type=RangeDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Applicable age range, if relevant", - formalDefinition="The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so" - ) - private RangeDt myAge; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh, myMeaning, myAge); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLow, myHigh, myMeaning, myAge); - } - - /** - * Gets the value(s) for low (Low Range, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public QuantityDt getLow() { - if (myLow == null) { - myLow = new QuantityDt(); - } - return myLow; - } - - - /** - * Gets the value(s) for low (Low Range, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public QuantityDt getLowElement() { - if (myLow == null) { - myLow = new QuantityDt(); - } - return myLow; - } - - - /** - * Sets the value(s) for low (Low Range, if relevant) - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public ReferenceRange setLow(QuantityDt theValue) { - myLow = theValue; - return this; - } - - /** - * Sets the value for low (Low Range, if relevant) - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public ReferenceRange setLow( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myLow = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for low (Low Range, if relevant) - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public ReferenceRange setLow( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myLow = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for low (Low Range, if relevant) - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public ReferenceRange setLow( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myLow = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for low (Low Range, if relevant) - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public ReferenceRange setLow( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myLow = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for low (Low Range, if relevant) - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public ReferenceRange setLow( double theValue) { - myLow = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for low (Low Range, if relevant) - * - *

- * Definition: - * The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3 - *

- */ - public ReferenceRange setLow( long theValue) { - myLow = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for high (High Range, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public QuantityDt getHigh() { - if (myHigh == null) { - myHigh = new QuantityDt(); - } - return myHigh; - } - - - /** - * Gets the value(s) for high (High Range, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public QuantityDt getHighElement() { - if (myHigh == null) { - myHigh = new QuantityDt(); - } - return myHigh; - } - - - /** - * Sets the value(s) for high (High Range, if relevant) - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public ReferenceRange setHigh(QuantityDt theValue) { - myHigh = theValue; - return this; - } - - /** - * Sets the value for high (High Range, if relevant) - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public ReferenceRange setHigh( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myHigh = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for high (High Range, if relevant) - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public ReferenceRange setHigh( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myHigh = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for high (High Range, if relevant) - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public ReferenceRange setHigh( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myHigh = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for high (High Range, if relevant) - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public ReferenceRange setHigh( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myHigh = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for high (High Range, if relevant) - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public ReferenceRange setHigh( double theValue) { - myHigh = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for high (High Range, if relevant) - * - *

- * Definition: - * The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5 - *

- */ - public ReferenceRange setHigh( long theValue) { - myHigh = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for meaning (Indicates the meaning/use of this range of this range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code for the meaning of the reference range - *

- */ - public CodeableConceptDt getMeaning() { - if (myMeaning == null) { - myMeaning = new CodeableConceptDt(); - } - return myMeaning; - } - - - /** - * Gets the value(s) for meaning (Indicates the meaning/use of this range of this range). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code for the meaning of the reference range - *

- */ - public CodeableConceptDt getMeaningElement() { - if (myMeaning == null) { - myMeaning = new CodeableConceptDt(); - } - return myMeaning; - } - - - /** - * Sets the value(s) for meaning (Indicates the meaning/use of this range of this range) - * - *

- * Definition: - * Code for the meaning of the reference range - *

- */ - public ReferenceRange setMeaning(CodeableConceptDt theValue) { - myMeaning = theValue; - return this; - } - - - /** - * Gets the value(s) for age (Applicable age range, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so - *

- */ - public RangeDt getAge() { - if (myAge == null) { - myAge = new RangeDt(); - } - return myAge; - } - - - /** - * Gets the value(s) for age (Applicable age range, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so - *

- */ - public RangeDt getAgeElement() { - if (myAge == null) { - myAge = new RangeDt(); - } - return myAge; - } - - - /** - * Sets the value(s) for age (Applicable age range, if relevant) - * - *

- * Definition: - * The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so - *

- */ - public ReferenceRange setAge(RangeDt theValue) { - myAge = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Observation.related (Observations related to this observation) - * - *

- * Definition: - * Related observations - either components, or previous observations, or statements of derivation - *

- */ - @Block() - public static class Related - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by", - formalDefinition="A code specifying the kind of relationship that exists with the target observation" - ) - private BoundCodeDt myType; - - @Child(name="target", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Observation.class }) - @Description( - shortDefinition="Observation that is related to this one", - formalDefinition="A reference to the observation that is related to this observation" - ) - private ResourceReferenceDt myTarget; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myTarget); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myTarget); - } - - /** - * Gets the value(s) for type (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the kind of relationship that exists with the target observation - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(ObservationRelationshipTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the kind of relationship that exists with the target observation - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(ObservationRelationshipTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by) - * - *

- * Definition: - * A code specifying the kind of relationship that exists with the target observation - *

- */ - public Related setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by) - * - *

- * Definition: - * A code specifying the kind of relationship that exists with the target observation - *

- */ - public Related setType(ObservationRelationshipTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for target (Observation that is related to this one). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to the observation that is related to this observation - *

- */ - public ResourceReferenceDt getTarget() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Observation that is related to this one). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to the observation that is related to this observation - *

- */ - public ResourceReferenceDt getTargetElement() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Observation that is related to this one) - * - *

- * Definition: - * A reference to the observation that is related to this observation - *

- */ - public Related setTarget(ResourceReferenceDt theValue) { - myTarget = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Observation"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/OperationOutcome.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/OperationOutcome.java deleted file mode 100644 index 4da1bab154b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/OperationOutcome.java +++ /dev/null @@ -1,495 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.List; - -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.StringDt; - - -/** - * HAPI/FHIR OperationOutcome Resource - * (Information about the success/failure of an action) - * - *

- * Definition: - * A collection of error, warning or information messages that result from a system action - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/OperationOutcome - *

- * - */ -@ResourceDef(name="OperationOutcome", profile="http://hl7.org/fhir/profiles/OperationOutcome", id="operationoutcome") -public class OperationOutcome extends BaseResource implements ca.uhn.fhir.model.base.resource.BaseOperationOutcome { - - - @Child(name="issue", order=0, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A single issue associated with the action", - formalDefinition="An error, warning or information message that results from a system action" - ) - private java.util.List myIssue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIssue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIssue); - } - - /** - * Gets the value(s) for issue (A single issue associated with the action). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An error, warning or information message that results from a system action - *

- */ - public java.util.List getIssue() { - if (myIssue == null) { - myIssue = new java.util.ArrayList(); - } - return myIssue; - } - - - /** - * Gets the value(s) for issue (A single issue associated with the action). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An error, warning or information message that results from a system action - *

- */ - public java.util.List getIssueElement() { - if (myIssue == null) { - myIssue = new java.util.ArrayList(); - } - return myIssue; - } - - - /** - * Sets the value(s) for issue (A single issue associated with the action) - * - *

- * Definition: - * An error, warning or information message that results from a system action - *

- */ - public OperationOutcome setIssue(java.util.List theValue) { - myIssue = theValue; - return this; - } - - /** - * Adds and returns a new value for issue (A single issue associated with the action) - * - *

- * Definition: - * An error, warning or information message that results from a system action - *

- */ - public Issue addIssue() { - Issue newType = new Issue(); - getIssue().add(newType); - return newType; - } - - /** - * Gets the first repetition for issue (A single issue associated with the action), - * creating it if it does not already exist. - * - *

- * Definition: - * An error, warning or information message that results from a system action - *

- */ - public Issue getIssueFirstRep() { - if (getIssue().isEmpty()) { - return addIssue(); - } - return getIssue().get(0); - } - - /** - * Block class for child element: OperationOutcome.issue (A single issue associated with the action) - * - *

- * Definition: - * An error, warning or information message that results from a system action - *

- */ - @Block() - public static class Issue - extends BaseIssue implements IResourceBlock { - - @Child(name="severity", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="fatal | error | warning | information", - formalDefinition="Indicates whether the issue indicates a variation from successful processing" - ) - private BoundCodeDt mySeverity; - - @Child(name="type", type=CodingDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Error or warning code", - formalDefinition="A code indicating the type of error, warning or information message." - ) - private CodingDt myType; - - @Child(name="details", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Additional description of the issue", - formalDefinition="Additional description of the issue" - ) - private StringDt myDetails; - - @Child(name="location", type=StringDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="XPath of element(s) related to issue", - formalDefinition="A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised." - ) - private java.util.List myLocation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySeverity, myType, myDetails, myLocation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySeverity, myType, myDetails, myLocation); - } - - /** - * Gets the value(s) for severity (fatal | error | warning | information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the issue indicates a variation from successful processing - *

- */ - public BoundCodeDt getSeverity() { - if (mySeverity == null) { - mySeverity = new BoundCodeDt(IssueSeverityEnum.VALUESET_BINDER); - } - return mySeverity; - } - - - /** - * Gets the value(s) for severity (fatal | error | warning | information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the issue indicates a variation from successful processing - *

- */ - public BoundCodeDt getSeverityElement() { - if (mySeverity == null) { - mySeverity = new BoundCodeDt(IssueSeverityEnum.VALUESET_BINDER); - } - return mySeverity; - } - - - /** - * Sets the value(s) for severity (fatal | error | warning | information) - * - *

- * Definition: - * Indicates whether the issue indicates a variation from successful processing - *

- */ - public Issue setSeverity(BoundCodeDt theValue) { - mySeverity = theValue; - return this; - } - - /** - * Sets the value(s) for severity (fatal | error | warning | information) - * - *

- * Definition: - * Indicates whether the issue indicates a variation from successful processing - *

- */ - public Issue setSeverity(IssueSeverityEnum theValue) { - getSeverity().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for type (Error or warning code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code indicating the type of error, warning or information message. - *

- */ - public CodingDt getType() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Error or warning code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code indicating the type of error, warning or information message. - *

- */ - public CodingDt getTypeElement() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Error or warning code) - * - *

- * Definition: - * A code indicating the type of error, warning or information message. - *

- */ - public Issue setType(CodingDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for details (Additional description of the issue). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional description of the issue - *

- */ - public StringDt getDetails() { - if (myDetails == null) { - myDetails = new StringDt(); - } - return myDetails; - } - - - /** - * Gets the value(s) for details (Additional description of the issue). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional description of the issue - *

- */ - public StringDt getDetailsElement() { - if (myDetails == null) { - myDetails = new StringDt(); - } - return myDetails; - } - - - /** - * Sets the value(s) for details (Additional description of the issue) - * - *

- * Definition: - * Additional description of the issue - *

- */ - public Issue setDetails(StringDt theValue) { - myDetails = theValue; - return this; - } - - /** - * Sets the value for details (Additional description of the issue) - * - *

- * Definition: - * Additional description of the issue - *

- */ - public Issue setDetails( String theString) { - myDetails = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for location (XPath of element(s) related to issue). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised. - *

- */ - public java.util.List getLocation() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (XPath of element(s) related to issue). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised. - *

- */ - public java.util.List getLocationElement() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (XPath of element(s) related to issue) - * - *

- * Definition: - * A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised. - *

- */ - public Issue setLocation(java.util.List theValue) { - myLocation = theValue; - return this; - } - - /** - * Adds and returns a new value for location (XPath of element(s) related to issue) - * - *

- * Definition: - * A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised. - *

- */ - public StringDt addLocation() { - StringDt newType = new StringDt(); - getLocation().add(newType); - return newType; - } - - /** - * Gets the first repetition for location (XPath of element(s) related to issue), - * creating it if it does not already exist. - * - *

- * Definition: - * A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised. - *

- */ - public StringDt getLocationFirstRep() { - if (getLocation().isEmpty()) { - return addLocation(); - } - return getLocation().get(0); - } - /** - * Adds a new value for location (XPath of element(s) related to issue) - * - *

- * Definition: - * A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Issue addLocation( String theString) { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - myLocation.add(new StringDt(theString)); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "OperationOutcome"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Order.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Order.java deleted file mode 100644 index 58cc722ca45..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Order.java +++ /dev/null @@ -1,1215 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Order Resource - * (A request to perform an action) - * - *

- * Definition: - * - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Order - *

- * - */ -@ResourceDef(name="Order", profile="http://hl7.org/fhir/profiles/Order", id="order") -public class Order - extends BaseResource implements IResource { - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: Order.date
- *

- */ - @SearchParamDefinition(name="date", path="Order.date", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: Order.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Order.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Order.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Order.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Order.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Order.subject"); - - /** - * Search parameter constant for source - *

- * Description:
- * Type: reference
- * Path: Order.source
- *

- */ - @SearchParamDefinition(name="source", path="Order.source", description="", type="reference" ) - public static final String SP_SOURCE = "source"; - - /** - * Fluent Client search parameter constant for source - *

- * Description:
- * Type: reference
- * Path: Order.source
- *

- */ - public static final ReferenceClientParam SOURCE = new ReferenceClientParam(SP_SOURCE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Order.source". - */ - public static final Include INCLUDE_SOURCE = new Include("Order.source"); - - /** - * Search parameter constant for target - *

- * Description:
- * Type: reference
- * Path: Order.target
- *

- */ - @SearchParamDefinition(name="target", path="Order.target", description="", type="reference" ) - public static final String SP_TARGET = "target"; - - /** - * Fluent Client search parameter constant for target - *

- * Description:
- * Type: reference
- * Path: Order.target
- *

- */ - public static final ReferenceClientParam TARGET = new ReferenceClientParam(SP_TARGET); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Order.target". - */ - public static final Include INCLUDE_TARGET = new Include("Order.target"); - - /** - * Search parameter constant for authority - *

- * Description:
- * Type: reference
- * Path: Order.authority
- *

- */ - @SearchParamDefinition(name="authority", path="Order.authority", description="", type="reference" ) - public static final String SP_AUTHORITY = "authority"; - - /** - * Fluent Client search parameter constant for authority - *

- * Description:
- * Type: reference
- * Path: Order.authority
- *

- */ - public static final ReferenceClientParam AUTHORITY = new ReferenceClientParam(SP_AUTHORITY); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Order.authority". - */ - public static final Include INCLUDE_AUTHORITY = new Include("Order.authority"); - - /** - * Search parameter constant for when_code - *

- * Description:
- * Type: token
- * Path: Order.when.code
- *

- */ - @SearchParamDefinition(name="when_code", path="Order.when.code", description="", type="token" ) - public static final String SP_WHEN_CODE = "when_code"; - - /** - * Fluent Client search parameter constant for when_code - *

- * Description:
- * Type: token
- * Path: Order.when.code
- *

- */ - public static final TokenClientParam WHEN_CODE = new TokenClientParam(SP_WHEN_CODE); - - /** - * Search parameter constant for when - *

- * Description:
- * Type: date
- * Path: Order.when.schedule
- *

- */ - @SearchParamDefinition(name="when", path="Order.when.schedule", description="", type="date" ) - public static final String SP_WHEN = "when"; - - /** - * Fluent Client search parameter constant for when - *

- * Description:
- * Type: date
- * Path: Order.when.schedule
- *

- */ - public static final DateClientParam WHEN = new DateClientParam(SP_WHEN); - - /** - * Search parameter constant for detail - *

- * Description:
- * Type: reference
- * Path: Order.detail
- *

- */ - @SearchParamDefinition(name="detail", path="Order.detail", description="", type="reference" ) - public static final String SP_DETAIL = "detail"; - - /** - * Fluent Client search parameter constant for detail - *

- * Description:
- * Type: reference
- * Path: Order.detail
- *

- */ - public static final ReferenceClientParam DETAIL = new ReferenceClientParam(SP_DETAIL); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Order.detail". - */ - public static final Include INCLUDE_DETAIL = new Include("Order.detail"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Identifiers assigned to this order by the orderer or by the receiver", - formalDefinition="" - ) - private java.util.List myIdentifier; - - @Child(name="date", type=DateTimeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="When the order was made", - formalDefinition="" - ) - private DateTimeDt myDate; - - @Child(name="subject", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Patient this order is about", - formalDefinition="" - ) - private ResourceReferenceDt mySubject; - - @Child(name="source", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who initiated the order", - formalDefinition="" - ) - private ResourceReferenceDt mySource; - - @Child(name="target", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who is intended to fulfill the order", - formalDefinition="" - ) - private ResourceReferenceDt myTarget; - - @Child(name="reason", order=5, min=0, max=1, type={ - CodeableConceptDt.class, IResource.class }) - @Description( - shortDefinition="Text - why the order was made", - formalDefinition="" - ) - private IDatatype myReason; - - @Child(name="authority", order=6, min=0, max=1, type={ - IResource.class }) - @Description( - shortDefinition="If required by policy", - formalDefinition="" - ) - private ResourceReferenceDt myAuthority; - - @Child(name="when", order=7, min=0, max=1) - @Description( - shortDefinition="When order should be fulfilled", - formalDefinition="" - ) - private When myWhen; - - @Child(name="detail", order=8, min=1, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="What action is being ordered", - formalDefinition="" - ) - private java.util.List myDetail; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDate, mySubject, mySource, myTarget, myReason, myAuthority, myWhen, myDetail); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDate, mySubject, mySource, myTarget, myReason, myAuthority, myWhen, myDetail); - } - - /** - * Gets the value(s) for identifier (Identifiers assigned to this order by the orderer or by the receiver). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifiers assigned to this order by the orderer or by the receiver). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifiers assigned to this order by the orderer or by the receiver) - * - *

- * Definition: - * - *

- */ - public Order setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Identifiers assigned to this order by the orderer or by the receiver) - * - *

- * Definition: - * - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Identifiers assigned to this order by the orderer or by the receiver), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Identifiers assigned to this order by the orderer or by the receiver) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Order addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Identifiers assigned to this order by the orderer or by the receiver) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Order addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for date (When the order was made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (When the order was made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (When the order was made) - * - *

- * Definition: - * - *

- */ - public Order setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When the order was made) - * - *

- * Definition: - * - *

- */ - public Order setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (When the order was made) - * - *

- * Definition: - * - *

- */ - public Order setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for subject (Patient this order is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Patient this order is about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Patient this order is about) - * - *

- * Definition: - * - *

- */ - public Order setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for source (Who initiated the order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getSource() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Who initiated the order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getSourceElement() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Who initiated the order) - * - *

- * Definition: - * - *

- */ - public Order setSource(ResourceReferenceDt theValue) { - mySource = theValue; - return this; - } - - - /** - * Gets the value(s) for target (Who is intended to fulfill the order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getTarget() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Who is intended to fulfill the order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getTargetElement() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Who is intended to fulfill the order) - * - *

- * Definition: - * - *

- */ - public Order setTarget(ResourceReferenceDt theValue) { - myTarget = theValue; - return this; - } - - - /** - * Gets the value(s) for reason[x] (Text - why the order was made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IDatatype getReason() { - return myReason; - } - - - /** - * Gets the value(s) for reason[x] (Text - why the order was made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IDatatype getReasonElement() { - return myReason; - } - - - /** - * Sets the value(s) for reason[x] (Text - why the order was made) - * - *

- * Definition: - * - *

- */ - public Order setReason(IDatatype theValue) { - myReason = theValue; - return this; - } - - - /** - * Gets the value(s) for authority (If required by policy). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAuthority() { - if (myAuthority == null) { - myAuthority = new ResourceReferenceDt(); - } - return myAuthority; - } - - - /** - * Gets the value(s) for authority (If required by policy). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAuthorityElement() { - if (myAuthority == null) { - myAuthority = new ResourceReferenceDt(); - } - return myAuthority; - } - - - /** - * Sets the value(s) for authority (If required by policy) - * - *

- * Definition: - * - *

- */ - public Order setAuthority(ResourceReferenceDt theValue) { - myAuthority = theValue; - return this; - } - - - /** - * Gets the value(s) for when (When order should be fulfilled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public When getWhen() { - if (myWhen == null) { - myWhen = new When(); - } - return myWhen; - } - - - /** - * Gets the value(s) for when (When order should be fulfilled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public When getWhenElement() { - if (myWhen == null) { - myWhen = new When(); - } - return myWhen; - } - - - /** - * Sets the value(s) for when (When order should be fulfilled) - * - *

- * Definition: - * - *

- */ - public Order setWhen(When theValue) { - myWhen = theValue; - return this; - } - - - /** - * Gets the value(s) for detail (What action is being ordered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getDetail() { - if (myDetail == null) { - myDetail = new java.util.ArrayList(); - } - return myDetail; - } - - - /** - * Gets the value(s) for detail (What action is being ordered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getDetailElement() { - if (myDetail == null) { - myDetail = new java.util.ArrayList(); - } - return myDetail; - } - - - /** - * Sets the value(s) for detail (What action is being ordered) - * - *

- * Definition: - * - *

- */ - public Order setDetail(java.util.List theValue) { - myDetail = theValue; - return this; - } - - /** - * Adds and returns a new value for detail (What action is being ordered) - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt addDetail() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getDetail().add(newType); - return newType; - } - - /** - * Block class for child element: Order.when (When order should be fulfilled) - * - *

- * Definition: - * - *

- */ - @Block() - public static class When - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Code specifies when request should be done. The code may simply be a priority code", - formalDefinition="" - ) - private CodeableConceptDt myCode; - - @Child(name="schedule", type=ScheduleDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="A formal schedule", - formalDefinition="" - ) - private ScheduleDt mySchedule; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, mySchedule); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, mySchedule); - } - - /** - * Gets the value(s) for code (Code specifies when request should be done. The code may simply be a priority code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Code specifies when request should be done. The code may simply be a priority code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Code specifies when request should be done. The code may simply be a priority code) - * - *

- * Definition: - * - *

- */ - public When setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for schedule (A formal schedule). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ScheduleDt getSchedule() { - if (mySchedule == null) { - mySchedule = new ScheduleDt(); - } - return mySchedule; - } - - - /** - * Gets the value(s) for schedule (A formal schedule). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ScheduleDt getScheduleElement() { - if (mySchedule == null) { - mySchedule = new ScheduleDt(); - } - return mySchedule; - } - - - /** - * Sets the value(s) for schedule (A formal schedule) - * - *

- * Definition: - * - *

- */ - public When setSchedule(ScheduleDt theValue) { - mySchedule = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Order"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/OrderResponse.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/OrderResponse.java deleted file mode 100644 index 74028a0e101..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/OrderResponse.java +++ /dev/null @@ -1,966 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR OrderResponse Resource - * (A response to an order) - * - *

- * Definition: - * A response to an order - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/OrderResponse - *

- * - */ -@ResourceDef(name="OrderResponse", profile="http://hl7.org/fhir/profiles/OrderResponse", id="orderresponse") -public class OrderResponse - extends BaseResource implements IResource { - - /** - * Search parameter constant for request - *

- * Description:
- * Type: reference
- * Path: OrderResponse.request
- *

- */ - @SearchParamDefinition(name="request", path="OrderResponse.request", description="", type="reference" ) - public static final String SP_REQUEST = "request"; - - /** - * Fluent Client search parameter constant for request - *

- * Description:
- * Type: reference
- * Path: OrderResponse.request
- *

- */ - public static final ReferenceClientParam REQUEST = new ReferenceClientParam(SP_REQUEST); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OrderResponse.request". - */ - public static final Include INCLUDE_REQUEST = new Include("OrderResponse.request"); - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: OrderResponse.date
- *

- */ - @SearchParamDefinition(name="date", path="OrderResponse.date", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: OrderResponse.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for who - *

- * Description:
- * Type: reference
- * Path: OrderResponse.who
- *

- */ - @SearchParamDefinition(name="who", path="OrderResponse.who", description="", type="reference" ) - public static final String SP_WHO = "who"; - - /** - * Fluent Client search parameter constant for who - *

- * Description:
- * Type: reference
- * Path: OrderResponse.who
- *

- */ - public static final ReferenceClientParam WHO = new ReferenceClientParam(SP_WHO); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OrderResponse.who". - */ - public static final Include INCLUDE_WHO = new Include("OrderResponse.who"); - - /** - * Search parameter constant for code - *

- * Description:
- * Type: token
- * Path: OrderResponse.code
- *

- */ - @SearchParamDefinition(name="code", path="OrderResponse.code", description="", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description:
- * Type: token
- * Path: OrderResponse.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for fulfillment - *

- * Description:
- * Type: reference
- * Path: OrderResponse.fulfillment
- *

- */ - @SearchParamDefinition(name="fulfillment", path="OrderResponse.fulfillment", description="", type="reference" ) - public static final String SP_FULFILLMENT = "fulfillment"; - - /** - * Fluent Client search parameter constant for fulfillment - *

- * Description:
- * Type: reference
- * Path: OrderResponse.fulfillment
- *

- */ - public static final ReferenceClientParam FULFILLMENT = new ReferenceClientParam(SP_FULFILLMENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OrderResponse.fulfillment". - */ - public static final Include INCLUDE_FULFILLMENT = new Include("OrderResponse.fulfillment"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Identifiers assigned to this order by the orderer or by the receiver", - formalDefinition="Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems" - ) - private java.util.List myIdentifier; - - @Child(name="request", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Order.class }) - @Description( - shortDefinition="The order that this is a response to", - formalDefinition="A reference to the order that this is in response to" - ) - private ResourceReferenceDt myRequest; - - @Child(name="date", type=DateTimeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="When the response was made", - formalDefinition="The date and time at which this order response was made (created/posted)" - ) - private DateTimeDt myDate; - - @Child(name="who", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Who made the response", - formalDefinition="The person, organization, or device credited with making the response" - ) - private ResourceReferenceDt myWho; - - @Child(name="authority", order=4, min=0, max=1, type={ - CodeableConceptDt.class, IResource.class }) - @Description( - shortDefinition="If required by policy", - formalDefinition="A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection" - ) - private IDatatype myAuthority; - - @Child(name="code", type=CodeDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete", - formalDefinition="What this response says about the status of the original order" - ) - private BoundCodeDt myCode; - - @Child(name="description", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Additional description of the response", - formalDefinition="Additional description about the response - e.g. a text description provided by a human user when making decisions about the order" - ) - private StringDt myDescription; - - @Child(name="fulfillment", order=7, min=0, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="Details of the outcome of performing the order", - formalDefinition="Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order" - ) - private java.util.List myFulfillment; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myRequest, myDate, myWho, myAuthority, myCode, myDescription, myFulfillment); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRequest, myDate, myWho, myAuthority, myCode, myDescription, myFulfillment); - } - - /** - * Gets the value(s) for identifier (Identifiers assigned to this order by the orderer or by the receiver). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifiers assigned to this order by the orderer or by the receiver). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifiers assigned to this order by the orderer or by the receiver) - * - *

- * Definition: - * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems - *

- */ - public OrderResponse setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Identifiers assigned to this order by the orderer or by the receiver) - * - *

- * Definition: - * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Identifiers assigned to this order by the orderer or by the receiver), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Identifiers assigned to this order by the orderer or by the receiver) - * - *

- * Definition: - * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public OrderResponse addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Identifiers assigned to this order by the orderer or by the receiver) - * - *

- * Definition: - * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public OrderResponse addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for request (The order that this is a response to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to the order that this is in response to - *

- */ - public ResourceReferenceDt getRequest() { - if (myRequest == null) { - myRequest = new ResourceReferenceDt(); - } - return myRequest; - } - - - /** - * Gets the value(s) for request (The order that this is a response to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to the order that this is in response to - *

- */ - public ResourceReferenceDt getRequestElement() { - if (myRequest == null) { - myRequest = new ResourceReferenceDt(); - } - return myRequest; - } - - - /** - * Sets the value(s) for request (The order that this is a response to) - * - *

- * Definition: - * A reference to the order that this is in response to - *

- */ - public OrderResponse setRequest(ResourceReferenceDt theValue) { - myRequest = theValue; - return this; - } - - - /** - * Gets the value(s) for date (When the response was made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and time at which this order response was made (created/posted) - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (When the response was made). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and time at which this order response was made (created/posted) - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (When the response was made) - * - *

- * Definition: - * The date and time at which this order response was made (created/posted) - *

- */ - public OrderResponse setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When the response was made) - * - *

- * Definition: - * The date and time at which this order response was made (created/posted) - *

- */ - public OrderResponse setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (When the response was made) - * - *

- * Definition: - * The date and time at which this order response was made (created/posted) - *

- */ - public OrderResponse setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for who (Who made the response). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person, organization, or device credited with making the response - *

- */ - public ResourceReferenceDt getWho() { - if (myWho == null) { - myWho = new ResourceReferenceDt(); - } - return myWho; - } - - - /** - * Gets the value(s) for who (Who made the response). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person, organization, or device credited with making the response - *

- */ - public ResourceReferenceDt getWhoElement() { - if (myWho == null) { - myWho = new ResourceReferenceDt(); - } - return myWho; - } - - - /** - * Sets the value(s) for who (Who made the response) - * - *

- * Definition: - * The person, organization, or device credited with making the response - *

- */ - public OrderResponse setWho(ResourceReferenceDt theValue) { - myWho = theValue; - return this; - } - - - /** - * Gets the value(s) for authority[x] (If required by policy). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection - *

- */ - public IDatatype getAuthority() { - return myAuthority; - } - - - /** - * Gets the value(s) for authority[x] (If required by policy). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection - *

- */ - public IDatatype getAuthorityElement() { - return myAuthority; - } - - - /** - * Sets the value(s) for authority[x] (If required by policy) - * - *

- * Definition: - * A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection - *

- */ - public OrderResponse setAuthority(IDatatype theValue) { - myAuthority = theValue; - return this; - } - - - /** - * Gets the value(s) for code (pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * What this response says about the status of the original order - *

- */ - public BoundCodeDt getCode() { - if (myCode == null) { - myCode = new BoundCodeDt(OrderOutcomeStatusEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * What this response says about the status of the original order - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(OrderOutcomeStatusEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Sets the value(s) for code (pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete) - * - *

- * Definition: - * What this response says about the status of the original order - *

- */ - public OrderResponse setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value(s) for code (pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete) - * - *

- * Definition: - * What this response says about the status of the original order - *

- */ - public OrderResponse setCode(OrderOutcomeStatusEnum theValue) { - getCode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for description (Additional description of the response). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Additional description of the response). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Additional description of the response) - * - *

- * Definition: - * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order - *

- */ - public OrderResponse setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Additional description of the response) - * - *

- * Definition: - * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order - *

- */ - public OrderResponse setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for fulfillment (Details of the outcome of performing the order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order - *

- */ - public java.util.List getFulfillment() { - if (myFulfillment == null) { - myFulfillment = new java.util.ArrayList(); - } - return myFulfillment; - } - - - /** - * Gets the value(s) for fulfillment (Details of the outcome of performing the order). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order - *

- */ - public java.util.List getFulfillmentElement() { - if (myFulfillment == null) { - myFulfillment = new java.util.ArrayList(); - } - return myFulfillment; - } - - - /** - * Sets the value(s) for fulfillment (Details of the outcome of performing the order) - * - *

- * Definition: - * Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order - *

- */ - public OrderResponse setFulfillment(java.util.List theValue) { - myFulfillment = theValue; - return this; - } - - /** - * Adds and returns a new value for fulfillment (Details of the outcome of performing the order) - * - *

- * Definition: - * Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order - *

- */ - public ResourceReferenceDt addFulfillment() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getFulfillment().add(newType); - return newType; - } - - - - @Override - public String getResourceName() { - return "OrderResponse"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Organization.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Organization.java deleted file mode 100644 index 3e94a7dd53c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Organization.java +++ /dev/null @@ -1,1536 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Organization Resource - * (A grouping of people or organizations with a common purpose) - * - *

- * Definition: - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Organization - *

- * - */ -@ResourceDef(name="Organization", profile="http://hl7.org/fhir/profiles/Organization", id="organization") -public class Organization - extends BaseResource implements IResource { - - /** - * Search parameter constant for name - *

- * Description: A portion of the organization's name
- * Type: string
- * Path: Organization.name
- *

- */ - @SearchParamDefinition(name="name", path="Organization.name", description="A portion of the organization's name", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: A portion of the organization's name
- * Type: string
- * Path: Organization.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for phonetic - *

- * Description: A portion of the organization's name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - @SearchParamDefinition(name="phonetic", path="", description="A portion of the organization's name using some kind of phonetic matching algorithm", type="string" ) - public static final String SP_PHONETIC = "phonetic"; - - /** - * Fluent Client search parameter constant for phonetic - *

- * Description: A portion of the organization's name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - public static final StringClientParam PHONETIC = new StringClientParam(SP_PHONETIC); - - /** - * Search parameter constant for type - *

- * Description: A code for the type of organization
- * Type: token
- * Path: Organization.type
- *

- */ - @SearchParamDefinition(name="type", path="Organization.type", description="A code for the type of organization", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: A code for the type of organization
- * Type: token
- * Path: Organization.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for identifier - *

- * Description: Any identifier for the organization (not the accreditation issuer's identifier)
- * Type: token
- * Path: Organization.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Organization.identifier", description="Any identifier for the organization (not the accreditation issuer's identifier)", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Any identifier for the organization (not the accreditation issuer's identifier)
- * Type: token
- * Path: Organization.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for partof - *

- * Description: Search all organizations that are part of the given organization
- * Type: reference
- * Path: Organization.partOf
- *

- */ - @SearchParamDefinition(name="partof", path="Organization.partOf", description="Search all organizations that are part of the given organization", type="reference" ) - public static final String SP_PARTOF = "partof"; - - /** - * Fluent Client search parameter constant for partof - *

- * Description: Search all organizations that are part of the given organization
- * Type: reference
- * Path: Organization.partOf
- *

- */ - public static final ReferenceClientParam PARTOF = new ReferenceClientParam(SP_PARTOF); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.partOf". - */ - public static final Include INCLUDE_PARTOF = new Include("Organization.partOf"); - - /** - * Search parameter constant for active - *

- * Description: Whether the organization's record is active
- * Type: token
- * Path: Organization.active
- *

- */ - @SearchParamDefinition(name="active", path="Organization.active", description="Whether the organization's record is active", type="token" ) - public static final String SP_ACTIVE = "active"; - - /** - * Fluent Client search parameter constant for active - *

- * Description: Whether the organization's record is active
- * Type: token
- * Path: Organization.active
- *

- */ - public static final TokenClientParam ACTIVE = new TokenClientParam(SP_ACTIVE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Identifies this organization across multiple systems", - formalDefinition="Identifier for the organization that is used to identify the organization across multiple disparate systems" - ) - private java.util.List myIdentifier; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Name used for the organization", - formalDefinition="A name associated with the organization" - ) - private StringDt myName; - - @Child(name="type", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Kind of organization", - formalDefinition="The kind of organization that this is" - ) - private BoundCodeableConceptDt myType; - - @Child(name="telecom", type=ContactDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A contact detail for the organization", - formalDefinition="A contact detail for the organization" - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="An address for the organization", - formalDefinition="An address for the organization" - ) - private java.util.List myAddress; - - @Child(name="partOf", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="The organization of which this organization forms a part", - formalDefinition="The organization of which this organization forms a part" - ) - private ResourceReferenceDt myPartOf; - - @Child(name="contact", order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Contact for the organization for a certain purpose", - formalDefinition="" - ) - private java.util.List myContact; - - @Child(name="location", order=7, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Location(s) the organization uses to provide services", - formalDefinition="Location(s) the organization uses to provide services" - ) - private java.util.List myLocation; - - @Child(name="active", type=BooleanDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Whether the organization's record is still in active use", - formalDefinition="Whether the organization's record is still in active use" - ) - private BooleanDt myActive; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myType, myTelecom, myAddress, myPartOf, myContact, myLocation, myActive); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myType, myTelecom, myAddress, myPartOf, myContact, myLocation, myActive); - } - - /** - * Gets the value(s) for identifier (Identifies this organization across multiple systems). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifies this organization across multiple systems). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifies this organization across multiple systems) - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public Organization setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Identifies this organization across multiple systems) - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Identifies this organization across multiple systems), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Identifies this organization across multiple systems) - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Organization addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Identifies this organization across multiple systems) - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Organization addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for name (Name used for the organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the organization - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name used for the organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the organization - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name used for the organization) - * - *

- * Definition: - * A name associated with the organization - *

- */ - public Organization setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name used for the organization) - * - *

- * Definition: - * A name associated with the organization - *

- */ - public Organization setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (Kind of organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public BoundCodeableConceptDt getType() { - if (myType == null) { - myType = new BoundCodeableConceptDt(OrganizationTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (Kind of organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public BoundCodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeableConceptDt(OrganizationTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (Kind of organization) - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public Organization setType(BoundCodeableConceptDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (Kind of organization) - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public Organization setType(OrganizationTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (A contact detail for the organization) - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public Organization setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (A contact detail for the organization) - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (A contact detail for the organization), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (A contact detail for the organization) - * - *

- * Definition: - * A contact detail for the organization - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Organization addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (A contact detail for the organization) - * - *

- * Definition: - * A contact detail for the organization - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Organization addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for address (An address for the organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An address for the organization - *

- */ - public java.util.List getAddress() { - if (myAddress == null) { - myAddress = new java.util.ArrayList(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (An address for the organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An address for the organization - *

- */ - public java.util.List getAddressElement() { - if (myAddress == null) { - myAddress = new java.util.ArrayList(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (An address for the organization) - * - *

- * Definition: - * An address for the organization - *

- */ - public Organization setAddress(java.util.List theValue) { - myAddress = theValue; - return this; - } - - /** - * Adds and returns a new value for address (An address for the organization) - * - *

- * Definition: - * An address for the organization - *

- */ - public AddressDt addAddress() { - AddressDt newType = new AddressDt(); - getAddress().add(newType); - return newType; - } - - /** - * Gets the first repetition for address (An address for the organization), - * creating it if it does not already exist. - * - *

- * Definition: - * An address for the organization - *

- */ - public AddressDt getAddressFirstRep() { - if (getAddress().isEmpty()) { - return addAddress(); - } - return getAddress().get(0); - } - - /** - * Gets the value(s) for partOf (The organization of which this organization forms a part). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The organization of which this organization forms a part - *

- */ - public ResourceReferenceDt getPartOf() { - if (myPartOf == null) { - myPartOf = new ResourceReferenceDt(); - } - return myPartOf; - } - - - /** - * Gets the value(s) for partOf (The organization of which this organization forms a part). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The organization of which this organization forms a part - *

- */ - public ResourceReferenceDt getPartOfElement() { - if (myPartOf == null) { - myPartOf = new ResourceReferenceDt(); - } - return myPartOf; - } - - - /** - * Sets the value(s) for partOf (The organization of which this organization forms a part) - * - *

- * Definition: - * The organization of which this organization forms a part - *

- */ - public Organization setPartOf(ResourceReferenceDt theValue) { - myPartOf = theValue; - return this; - } - - - /** - * Gets the value(s) for contact (Contact for the organization for a certain purpose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContact() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - - /** - * Gets the value(s) for contact (Contact for the organization for a certain purpose). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContactElement() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - - /** - * Sets the value(s) for contact (Contact for the organization for a certain purpose) - * - *

- * Definition: - * - *

- */ - public Organization setContact(java.util.List theValue) { - myContact = theValue; - return this; - } - - /** - * Adds and returns a new value for contact (Contact for the organization for a certain purpose) - * - *

- * Definition: - * - *

- */ - public Contact addContact() { - Contact newType = new Contact(); - getContact().add(newType); - return newType; - } - - /** - * Gets the first repetition for contact (Contact for the organization for a certain purpose), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public Contact getContactFirstRep() { - if (getContact().isEmpty()) { - return addContact(); - } - return getContact().get(0); - } - - /** - * Gets the value(s) for location (Location(s) the organization uses to provide services). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public java.util.List getLocation() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Location(s) the organization uses to provide services). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public java.util.List getLocationElement() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Location(s) the organization uses to provide services) - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public Organization setLocation(java.util.List theValue) { - myLocation = theValue; - return this; - } - - /** - * Adds and returns a new value for location (Location(s) the organization uses to provide services) - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public ResourceReferenceDt addLocation() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getLocation().add(newType); - return newType; - } - - /** - * Gets the value(s) for active (Whether the organization's record is still in active use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public BooleanDt getActive() { - if (myActive == null) { - myActive = new BooleanDt(); - } - return myActive; - } - - - /** - * Gets the value(s) for active (Whether the organization's record is still in active use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public BooleanDt getActiveElement() { - if (myActive == null) { - myActive = new BooleanDt(); - } - return myActive; - } - - - /** - * Sets the value(s) for active (Whether the organization's record is still in active use) - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public Organization setActive(BooleanDt theValue) { - myActive = theValue; - return this; - } - - /** - * Sets the value for active (Whether the organization's record is still in active use) - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public Organization setActive( boolean theBoolean) { - myActive = new BooleanDt(theBoolean); - return this; - } - - - /** - * Block class for child element: Organization.contact (Contact for the organization for a certain purpose) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Contact - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="purpose", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="The type of contact", - formalDefinition="Indicates a purpose for which the contact can be reached" - ) - private CodeableConceptDt myPurpose; - - @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="A name associated with the contact", - formalDefinition="A name associated with the contact" - ) - private HumanNameDt myName; - - @Child(name="telecom", type=ContactDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Contact details (telephone, email, etc) for a contact", - formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the party may be contacted." - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Visiting or postal addresses for the contact", - formalDefinition="Visiting or postal addresses for the contact" - ) - private AddressDt myAddress; - - @Child(name="gender", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Gender for administrative purposes", - formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." - ) - private BoundCodeableConceptDt myGender; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPurpose, myName, myTelecom, myAddress, myGender); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPurpose, myName, myTelecom, myAddress, myGender); - } - - /** - * Gets the value(s) for purpose (The type of contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates a purpose for which the contact can be reached - *

- */ - public CodeableConceptDt getPurpose() { - if (myPurpose == null) { - myPurpose = new CodeableConceptDt(); - } - return myPurpose; - } - - - /** - * Gets the value(s) for purpose (The type of contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates a purpose for which the contact can be reached - *

- */ - public CodeableConceptDt getPurposeElement() { - if (myPurpose == null) { - myPurpose = new CodeableConceptDt(); - } - return myPurpose; - } - - - /** - * Sets the value(s) for purpose (The type of contact) - * - *

- * Definition: - * Indicates a purpose for which the contact can be reached - *

- */ - public Contact setPurpose(CodeableConceptDt theValue) { - myPurpose = theValue; - return this; - } - - - /** - * Gets the value(s) for name (A name associated with the contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the contact - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (A name associated with the contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the contact - *

- */ - public HumanNameDt getNameElement() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (A name associated with the contact) - * - *

- * Definition: - * A name associated with the contact - *

- */ - public Contact setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for telecom (Contact details (telephone, email, etc) for a contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (Contact details (telephone, email, etc) for a contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (Contact details (telephone, email, etc) for a contact) - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public Contact setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (Contact details (telephone, email, etc) for a contact) - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (Contact details (telephone, email, etc) for a contact), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (Contact details (telephone, email, etc) for a contact) - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Contact addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (Contact details (telephone, email, etc) for a contact) - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Contact addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for address (Visiting or postal addresses for the contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Visiting or postal addresses for the contact - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (Visiting or postal addresses for the contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Visiting or postal addresses for the contact - *

- */ - public AddressDt getAddressElement() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (Visiting or postal addresses for the contact) - * - *

- * Definition: - * Visiting or postal addresses for the contact - *

- */ - public Contact setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGender() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGenderElement() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Contact setGender(BoundCodeableConceptDt theValue) { - myGender = theValue; - return this; - } - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Contact setGender(AdministrativeGenderCodesEnum theValue) { - getGender().setValueAsEnum(theValue); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Organization"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Other.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Other.java deleted file mode 100644 index dc92fd3e044..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Other.java +++ /dev/null @@ -1,706 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Other Resource - * (Resource for non-supported content) - * - *

- * Definition: - * Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest - *

- * - *

- * Requirements: - * Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources. - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Other - *

- * - */ -@ResourceDef(name="Other", profile="http://hl7.org/fhir/profiles/Other", id="other") -public class Other - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Other.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Other.subject", description="", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description:
- * Type: reference
- * Path: Other.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Other.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Other.subject"); - - /** - * Search parameter constant for created - *

- * Description:
- * Type: date
- * Path: Other.created
- *

- */ - @SearchParamDefinition(name="created", path="Other.created", description="", type="date" ) - public static final String SP_CREATED = "created"; - - /** - * Fluent Client search parameter constant for created - *

- * Description:
- * Type: date
- * Path: Other.created
- *

- */ - public static final DateClientParam CREATED = new DateClientParam(SP_CREATED); - - /** - * Search parameter constant for code - *

- * Description:
- * Type: token
- * Path: Other.code
- *

- */ - @SearchParamDefinition(name="code", path="Other.code", description="", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description:
- * Type: token
- * Path: Other.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Business identifier", - formalDefinition="Identifier assigned to the resource for business purposes, outside the context of FHIR" - ) - private java.util.List myIdentifier; - - @Child(name="code", type=CodeableConceptDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Kind of Resource", - formalDefinition="Identifies the 'type' of resource - equivalent to the resource name for other resources." - ) - private CodeableConceptDt myCode; - - @Child(name="subject", order=2, min=0, max=1, type={ - IResource.class }) - @Description( - shortDefinition="Identifies the", - formalDefinition="Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resoruce." - ) - private ResourceReferenceDt mySubject; - - @Child(name="author", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Who created", - formalDefinition="Indicates who was responsible for creating the resource instance" - ) - private ResourceReferenceDt myAuthor; - - @Child(name="created", type=DateDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="When created", - formalDefinition="Identifies when the resource was first created" - ) - private DateDt myCreated; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCode, mySubject, myAuthor, myCreated); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCode, mySubject, myAuthor, myCreated); - } - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned to the resource for business purposes, outside the context of FHIR - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Business identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned to the resource for business purposes, outside the context of FHIR - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Business identifier) - * - *

- * Definition: - * Identifier assigned to the resource for business purposes, outside the context of FHIR - *

- */ - public Other setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier assigned to the resource for business purposes, outside the context of FHIR - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Business identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifier assigned to the resource for business purposes, outside the context of FHIR - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier assigned to the resource for business purposes, outside the context of FHIR - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Other addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Business identifier) - * - *

- * Definition: - * Identifier assigned to the resource for business purposes, outside the context of FHIR - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Other addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for code (Kind of Resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the 'type' of resource - equivalent to the resource name for other resources. - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Kind of Resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the 'type' of resource - equivalent to the resource name for other resources. - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Kind of Resource) - * - *

- * Definition: - * Identifies the 'type' of resource - equivalent to the resource name for other resources. - *

- */ - public Other setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for subject (Identifies the). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resoruce. - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Identifies the). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resoruce. - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Identifies the) - * - *

- * Definition: - * Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resoruce. - *

- */ - public Other setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Who created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates who was responsible for creating the resource instance - *

- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Who created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates who was responsible for creating the resource instance - *

- */ - public ResourceReferenceDt getAuthorElement() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Who created) - * - *

- * Definition: - * Indicates who was responsible for creating the resource instance - *

- */ - public Other setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for created (When created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies when the resource was first created - *

- */ - public DateDt getCreated() { - if (myCreated == null) { - myCreated = new DateDt(); - } - return myCreated; - } - - - /** - * Gets the value(s) for created (When created). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies when the resource was first created - *

- */ - public DateDt getCreatedElement() { - if (myCreated == null) { - myCreated = new DateDt(); - } - return myCreated; - } - - - /** - * Sets the value(s) for created (When created) - * - *

- * Definition: - * Identifies when the resource was first created - *

- */ - public Other setCreated(DateDt theValue) { - myCreated = theValue; - return this; - } - - /** - * Sets the value for created (When created) - * - *

- * Definition: - * Identifies when the resource was first created - *

- */ - public Other setCreated( Date theDate, TemporalPrecisionEnum thePrecision) { - myCreated = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for created (When created) - * - *

- * Definition: - * Identifies when the resource was first created - *

- */ - public Other setCreatedWithDayPrecision( Date theDate) { - myCreated = new DateDt(theDate); - return this; - } - - - - - @Override - public String getResourceName() { - return "Other"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java deleted file mode 100644 index b8b8371f0de..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java +++ /dev/null @@ -1,2772 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Patient Resource - * (Information about a person or animal receiving health care services) - * - *

- * Definition: - * Demographics and other administrative information about a person or animal receiving care or other health-related services - *

- * - *

- * Requirements: - * Tracking patient is the center of the healthcare process - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Patient - *

- * - */ -@ResourceDef(name="Patient", profile="http://hl7.org/fhir/profiles/Patient", id="patient") -public class Patient - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: A patient identifier
- * Type: token
- * Path: Patient.identifier
- *

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

- * Description: A patient identifier
- * Type: token
- * Path: Patient.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for name - *

- * Description: A portion of either family or given name of the patient
- * Type: string
- * Path: Patient.name
- *

- */ - @SearchParamDefinition(name="name", path="Patient.name", description="A portion of either family or given name of the patient", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: A portion of either family or given name of the patient
- * Type: string
- * Path: Patient.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for family - *

- * Description: A portion of the family name of the patient
- * Type: string
- * Path: Patient.name.family
- *

- */ - @SearchParamDefinition(name="family", path="Patient.name.family", description="A portion of the family name of the patient", type="string" ) - public static final String SP_FAMILY = "family"; - - /** - * Fluent Client search parameter constant for family - *

- * Description: A portion of the family name of the patient
- * Type: string
- * Path: Patient.name.family
- *

- */ - public static final StringClientParam FAMILY = new StringClientParam(SP_FAMILY); - - /** - * Search parameter constant for given - *

- * Description: A portion of the given name of the patient
- * Type: string
- * Path: Patient.name.given
- *

- */ - @SearchParamDefinition(name="given", path="Patient.name.given", description="A portion of the given name of the patient", type="string" ) - public static final String SP_GIVEN = "given"; - - /** - * Fluent Client search parameter constant for given - *

- * Description: A portion of the given name of the patient
- * Type: string
- * Path: Patient.name.given
- *

- */ - public static final StringClientParam GIVEN = new StringClientParam(SP_GIVEN); - - /** - * Search parameter constant for phonetic - *

- * Description: A portion of either family or given name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - @SearchParamDefinition(name="phonetic", path="", description="A portion of either family or given name using some kind of phonetic matching algorithm", type="string" ) - public static final String SP_PHONETIC = "phonetic"; - - /** - * Fluent Client search parameter constant for phonetic - *

- * Description: A portion of either family or given name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - public static final StringClientParam PHONETIC = new StringClientParam(SP_PHONETIC); - - /** - * Search parameter constant for telecom - *

- * Description: The value in any kind of telecom details of the patient
- * Type: string
- * Path: Patient.telecom
- *

- */ - @SearchParamDefinition(name="telecom", path="Patient.telecom", description="The value in any kind of telecom details of the patient", type="string" ) - public static final String SP_TELECOM = "telecom"; - - /** - * Fluent Client search parameter constant for telecom - *

- * Description: The value in any kind of telecom details of the patient
- * Type: string
- * Path: Patient.telecom
- *

- */ - public static final StringClientParam TELECOM = new StringClientParam(SP_TELECOM); - - /** - * Search parameter constant for address - *

- * Description: An address in any kind of address/part of the patient
- * Type: string
- * Path: Patient.address
- *

- */ - @SearchParamDefinition(name="address", path="Patient.address", description="An address in any kind of address/part of the patient", type="string" ) - public static final String SP_ADDRESS = "address"; - - /** - * Fluent Client search parameter constant for address - *

- * Description: An address in any kind of address/part of the patient
- * Type: string
- * Path: Patient.address
- *

- */ - public static final StringClientParam ADDRESS = new StringClientParam(SP_ADDRESS); - - /** - * Search parameter constant for gender - *

- * Description: Gender of the patient
- * Type: token
- * Path: Patient.gender
- *

- */ - @SearchParamDefinition(name="gender", path="Patient.gender", description="Gender of the patient", type="token" ) - public static final String SP_GENDER = "gender"; - - /** - * Fluent Client search parameter constant for gender - *

- * Description: Gender of the patient
- * Type: token
- * Path: Patient.gender
- *

- */ - public static final TokenClientParam GENDER = new TokenClientParam(SP_GENDER); - - /** - * Search parameter constant for language - *

- * Description: Language code (irrespective of use value)
- * Type: token
- * Path: Patient.communication
- *

- */ - @SearchParamDefinition(name="language", path="Patient.communication", description="Language code (irrespective of use value)", type="token" ) - public static final String SP_LANGUAGE = "language"; - - /** - * Fluent Client search parameter constant for language - *

- * Description: Language code (irrespective of use value)
- * Type: token
- * Path: Patient.communication
- *

- */ - public static final TokenClientParam LANGUAGE = new TokenClientParam(SP_LANGUAGE); - - /** - * Search parameter constant for birthdate - *

- * Description: The patient's date of birth
- * Type: date
- * Path: Patient.birthDate
- *

- */ - @SearchParamDefinition(name="birthdate", path="Patient.birthDate", description="The patient's date of birth", type="date" ) - public static final String SP_BIRTHDATE = "birthdate"; - - /** - * Fluent Client search parameter constant for birthdate - *

- * Description: The patient's date of birth
- * Type: date
- * Path: Patient.birthDate
- *

- */ - public static final DateClientParam BIRTHDATE = new DateClientParam(SP_BIRTHDATE); - - /** - * Search parameter constant for provider - *

- * Description: The organization at which this person is a patient
- * Type: reference
- * Path: Patient.managingOrganization
- *

- */ - @SearchParamDefinition(name="provider", path="Patient.managingOrganization", description="The organization at which this person is a patient", type="reference" ) - public static final String SP_PROVIDER = "provider"; - - /** - * Fluent Client search parameter constant for provider - *

- * Description: The organization at which this person is a patient
- * Type: reference
- * Path: Patient.managingOrganization
- *

- */ - public static final ReferenceClientParam PROVIDER = new ReferenceClientParam(SP_PROVIDER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Patient.managingOrganization". - */ - public static final Include INCLUDE_MANAGINGORGANIZATION = new Include("Patient.managingOrganization"); - - /** - * Search parameter constant for active - *

- * Description: Whether the patient record is active
- * Type: token
- * Path: Patient.active
- *

- */ - @SearchParamDefinition(name="active", path="Patient.active", description="Whether the patient record is active", type="token" ) - public static final String SP_ACTIVE = "active"; - - /** - * Fluent Client search parameter constant for active - *

- * Description: Whether the patient record is active
- * Type: token
- * Path: Patient.active
- *

- */ - public static final TokenClientParam ACTIVE = new TokenClientParam(SP_ACTIVE); - - /** - * Search parameter constant for animal-species - *

- * Description: The species for animal patients
- * Type: token
- * Path: Patient.animal.species
- *

- */ - @SearchParamDefinition(name="animal-species", path="Patient.animal.species", description="The species for animal patients", type="token" ) - public static final String SP_ANIMAL_SPECIES = "animal-species"; - - /** - * Fluent Client search parameter constant for animal-species - *

- * Description: The species for animal patients
- * Type: token
- * Path: Patient.animal.species
- *

- */ - public static final TokenClientParam ANIMAL_SPECIES = new TokenClientParam(SP_ANIMAL_SPECIES); - - /** - * Search parameter constant for animal-breed - *

- * Description: The breed for animal patients
- * Type: token
- * Path: Patient.animal.breed
- *

- */ - @SearchParamDefinition(name="animal-breed", path="Patient.animal.breed", description="The breed for animal patients", type="token" ) - public static final String SP_ANIMAL_BREED = "animal-breed"; - - /** - * Fluent Client search parameter constant for animal-breed - *

- * Description: The breed for animal patients
- * Type: token
- * Path: Patient.animal.breed
- *

- */ - public static final TokenClientParam ANIMAL_BREED = new TokenClientParam(SP_ANIMAL_BREED); - - /** - * Search parameter constant for link - *

- * Description: All patients linked to the given patient
- * Type: reference
- * Path: Patient.link.other
- *

- */ - @SearchParamDefinition(name="link", path="Patient.link.other", description="All patients linked to the given patient", type="reference" ) - public static final String SP_LINK = "link"; - - /** - * Fluent Client search parameter constant for link - *

- * Description: All patients linked to the given patient
- * Type: reference
- * Path: Patient.link.other
- *

- */ - public static final ReferenceClientParam LINK = new ReferenceClientParam(SP_LINK); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Patient.link.other". - */ - public static final Include INCLUDE_LINK_OTHER = new Include("Patient.link.other"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="An identifier for the person as this patient", - formalDefinition="An identifier that applies to this person as a patient" - ) - private java.util.List myIdentifier; - - @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A name associated with the patient", - formalDefinition="A name associated with the individual." - ) - private java.util.List myName; - - @Child(name="telecom", type=ContactDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A contact detail for the individual", - formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted." - ) - private java.util.List myTelecom; - - @Child(name="gender", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Gender for administrative purposes", - formalDefinition="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes." - ) - private BoundCodeableConceptDt myGender; - - @Child(name="birthDate", type=DateTimeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="The date and time of birth for the individual", - formalDefinition="The date and time of birth for the individual" - ) - private DateTimeDt myBirthDate; - - @Child(name="deceased", order=5, min=0, max=1, type={ - BooleanDt.class, DateTimeDt.class }) - @Description( - shortDefinition="Indicates if the individual is deceased or not", - formalDefinition="Indicates if the individual is deceased or not" - ) - private IDatatype myDeceased; - - @Child(name="address", type=AddressDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Addresses for the individual", - formalDefinition="Addresses for the individual" - ) - private java.util.List myAddress; - - @Child(name="maritalStatus", type=CodeableConceptDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Marital (civil) status of a person", - formalDefinition="This field contains a patient's most recent marital (civil) status." - ) - private BoundCodeableConceptDt myMaritalStatus; - - @Child(name="multipleBirth", order=8, min=0, max=1, type={ - BooleanDt.class, IntegerDt.class }) - @Description( - shortDefinition="Whether patient is part of a multiple birth", - formalDefinition="Indicates whether the patient is part of a multiple or indicates the actual birth order." - ) - private IDatatype myMultipleBirth; - - @Child(name="photo", type=AttachmentDt.class, order=9, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Image of the person", - formalDefinition="Image of the person" - ) - private java.util.List myPhoto; - - @Child(name="contact", order=10, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A contact party (e.g. guardian, partner, friend) for the patient", - formalDefinition="A contact party (e.g. guardian, partner, friend) for the patient" - ) - private java.util.List myContact; - - @Child(name="animal", order=11, min=0, max=1) - @Description( - shortDefinition="If this patient is an animal (non-human)", - formalDefinition="This element has a value if the patient is an animal" - ) - private Animal myAnimal; - - @Child(name="communication", type=CodeableConceptDt.class, order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Languages which may be used to communicate with the patient about his or her health", - formalDefinition="Languages which may be used to communicate with the patient about his or her health" - ) - private java.util.List myCommunication; - - @Child(name="careProvider", order=13, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Patient's nominated care provider", - formalDefinition="Patient's nominated care provider" - ) - private java.util.List myCareProvider; - - @Child(name="managingOrganization", order=14, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Organization that is the custodian of the patient record", - formalDefinition="Organization that is the custodian of the patient record" - ) - private ResourceReferenceDt myManagingOrganization; - - @Child(name="link", order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Link to another patient resource that concerns the same actual person", - formalDefinition="Link to another patient resource that concerns the same actual person" - ) - private java.util.List myLink; - - @Child(name="active", type=BooleanDt.class, order=16, min=0, max=1) - @Description( - shortDefinition="Whether this patient's record is in active use", - formalDefinition="Whether this patient record is in active use" - ) - private BooleanDt myActive; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink, myActive); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink, myActive); - } - - /** - * Gets the value(s) for identifier (An identifier for the person as this patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that applies to this person as a patient - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (An identifier for the person as this patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that applies to this person as a patient - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (An identifier for the person as this patient) - * - *

- * Definition: - * An identifier that applies to this person as a patient - *

- */ - public Patient setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (An identifier for the person as this patient) - * - *

- * Definition: - * An identifier that applies to this person as a patient - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (An identifier for the person as this patient), - * creating it if it does not already exist. - * - *

- * Definition: - * An identifier that applies to this person as a patient - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (An identifier for the person as this patient) - * - *

- * Definition: - * An identifier that applies to this person as a patient - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Patient addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (An identifier for the person as this patient) - * - *

- * Definition: - * An identifier that applies to this person as a patient - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Patient addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for name (A name associated with the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the individual. - *

- */ - public java.util.List getName() { - if (myName == null) { - myName = new java.util.ArrayList(); - } - return myName; - } - - - /** - * Gets the value(s) for name (A name associated with the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the individual. - *

- */ - public java.util.List getNameElement() { - if (myName == null) { - myName = new java.util.ArrayList(); - } - return myName; - } - - - /** - * Sets the value(s) for name (A name associated with the patient) - * - *

- * Definition: - * A name associated with the individual. - *

- */ - public Patient setName(java.util.List theValue) { - myName = theValue; - return this; - } - - /** - * Adds and returns a new value for name (A name associated with the patient) - * - *

- * Definition: - * A name associated with the individual. - *

- */ - public HumanNameDt addName() { - HumanNameDt newType = new HumanNameDt(); - getName().add(newType); - return newType; - } - - /** - * Gets the first repetition for name (A name associated with the patient), - * creating it if it does not already exist. - * - *

- * Definition: - * A name associated with the individual. - *

- */ - public HumanNameDt getNameFirstRep() { - if (getName().isEmpty()) { - return addName(); - } - return getName().get(0); - } - - /** - * Gets the value(s) for telecom (A contact detail for the individual). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the individual). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (A contact detail for the individual) - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. - *

- */ - public Patient setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (A contact detail for the individual) - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (A contact detail for the individual), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (A contact detail for the individual) - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Patient addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (A contact detail for the individual) - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Patient addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGender() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGenderElement() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. - *

- */ - public Patient setGender(BoundCodeableConceptDt theValue) { - myGender = theValue; - return this; - } - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. - *

- */ - public Patient setGender(AdministrativeGenderCodesEnum theValue) { - getGender().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for birthDate (The date and time of birth for the individual). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and time of birth for the individual - *

- */ - public DateTimeDt getBirthDate() { - if (myBirthDate == null) { - myBirthDate = new DateTimeDt(); - } - return myBirthDate; - } - - - /** - * Gets the value(s) for birthDate (The date and time of birth for the individual). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and time of birth for the individual - *

- */ - public DateTimeDt getBirthDateElement() { - if (myBirthDate == null) { - myBirthDate = new DateTimeDt(); - } - return myBirthDate; - } - - - /** - * Sets the value(s) for birthDate (The date and time of birth for the individual) - * - *

- * Definition: - * The date and time of birth for the individual - *

- */ - public Patient setBirthDate(DateTimeDt theValue) { - myBirthDate = theValue; - return this; - } - - /** - * Sets the value for birthDate (The date and time of birth for the individual) - * - *

- * Definition: - * The date and time of birth for the individual - *

- */ - public Patient setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myBirthDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for birthDate (The date and time of birth for the individual) - * - *

- * Definition: - * The date and time of birth for the individual - *

- */ - public Patient setBirthDateWithSecondsPrecision( Date theDate) { - myBirthDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for deceased[x] (Indicates if the individual is deceased or not). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates if the individual is deceased or not - *

- */ - public IDatatype getDeceased() { - return myDeceased; - } - - - /** - * Gets the value(s) for deceased[x] (Indicates if the individual is deceased or not). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates if the individual is deceased or not - *

- */ - public IDatatype getDeceasedElement() { - return myDeceased; - } - - - /** - * Sets the value(s) for deceased[x] (Indicates if the individual is deceased or not) - * - *

- * Definition: - * Indicates if the individual is deceased or not - *

- */ - public Patient setDeceased(IDatatype theValue) { - myDeceased = theValue; - return this; - } - - - /** - * Gets the value(s) for address (Addresses for the individual). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Addresses for the individual - *

- */ - public java.util.List getAddress() { - if (myAddress == null) { - myAddress = new java.util.ArrayList(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (Addresses for the individual). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Addresses for the individual - *

- */ - public java.util.List getAddressElement() { - if (myAddress == null) { - myAddress = new java.util.ArrayList(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (Addresses for the individual) - * - *

- * Definition: - * Addresses for the individual - *

- */ - public Patient setAddress(java.util.List theValue) { - myAddress = theValue; - return this; - } - - /** - * Adds and returns a new value for address (Addresses for the individual) - * - *

- * Definition: - * Addresses for the individual - *

- */ - public AddressDt addAddress() { - AddressDt newType = new AddressDt(); - getAddress().add(newType); - return newType; - } - - /** - * Gets the first repetition for address (Addresses for the individual), - * creating it if it does not already exist. - * - *

- * Definition: - * Addresses for the individual - *

- */ - public AddressDt getAddressFirstRep() { - if (getAddress().isEmpty()) { - return addAddress(); - } - return getAddress().get(0); - } - - /** - * Gets the value(s) for maritalStatus (Marital (civil) status of a person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This field contains a patient's most recent marital (civil) status. - *

- */ - public BoundCodeableConceptDt getMaritalStatus() { - if (myMaritalStatus == null) { - myMaritalStatus = new BoundCodeableConceptDt(MaritalStatusCodesEnum.VALUESET_BINDER); - } - return myMaritalStatus; - } - - - /** - * Gets the value(s) for maritalStatus (Marital (civil) status of a person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This field contains a patient's most recent marital (civil) status. - *

- */ - public BoundCodeableConceptDt getMaritalStatusElement() { - if (myMaritalStatus == null) { - myMaritalStatus = new BoundCodeableConceptDt(MaritalStatusCodesEnum.VALUESET_BINDER); - } - return myMaritalStatus; - } - - - /** - * Sets the value(s) for maritalStatus (Marital (civil) status of a person) - * - *

- * Definition: - * This field contains a patient's most recent marital (civil) status. - *

- */ - public Patient setMaritalStatus(BoundCodeableConceptDt theValue) { - myMaritalStatus = theValue; - return this; - } - - /** - * Sets the value(s) for maritalStatus (Marital (civil) status of a person) - * - *

- * Definition: - * This field contains a patient's most recent marital (civil) status. - *

- */ - public Patient setMaritalStatus(MaritalStatusCodesEnum theValue) { - getMaritalStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for multipleBirth[x] (Whether patient is part of a multiple birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the patient is part of a multiple or indicates the actual birth order. - *

- */ - public IDatatype getMultipleBirth() { - return myMultipleBirth; - } - - - /** - * Gets the value(s) for multipleBirth[x] (Whether patient is part of a multiple birth). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the patient is part of a multiple or indicates the actual birth order. - *

- */ - public IDatatype getMultipleBirthElement() { - return myMultipleBirth; - } - - - /** - * Sets the value(s) for multipleBirth[x] (Whether patient is part of a multiple birth) - * - *

- * Definition: - * Indicates whether the patient is part of a multiple or indicates the actual birth order. - *

- */ - public Patient setMultipleBirth(IDatatype theValue) { - myMultipleBirth = theValue; - return this; - } - - - /** - * Gets the value(s) for photo (Image of the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Image of the person - *

- */ - public java.util.List getPhoto() { - if (myPhoto == null) { - myPhoto = new java.util.ArrayList(); - } - return myPhoto; - } - - - /** - * Gets the value(s) for photo (Image of the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Image of the person - *

- */ - public java.util.List getPhotoElement() { - if (myPhoto == null) { - myPhoto = new java.util.ArrayList(); - } - return myPhoto; - } - - - /** - * Sets the value(s) for photo (Image of the person) - * - *

- * Definition: - * Image of the person - *

- */ - public Patient setPhoto(java.util.List theValue) { - myPhoto = theValue; - return this; - } - - /** - * Adds and returns a new value for photo (Image of the person) - * - *

- * Definition: - * Image of the person - *

- */ - public AttachmentDt addPhoto() { - AttachmentDt newType = new AttachmentDt(); - getPhoto().add(newType); - return newType; - } - - /** - * Gets the first repetition for photo (Image of the person), - * creating it if it does not already exist. - * - *

- * Definition: - * Image of the person - *

- */ - public AttachmentDt getPhotoFirstRep() { - if (getPhoto().isEmpty()) { - return addPhoto(); - } - return getPhoto().get(0); - } - - /** - * Gets the value(s) for contact (A contact party (e.g. guardian, partner, friend) for the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact party (e.g. guardian, partner, friend) for the patient - *

- */ - public java.util.List getContact() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - - /** - * Gets the value(s) for contact (A contact party (e.g. guardian, partner, friend) for the patient). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact party (e.g. guardian, partner, friend) for the patient - *

- */ - public java.util.List getContactElement() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - - /** - * Sets the value(s) for contact (A contact party (e.g. guardian, partner, friend) for the patient) - * - *

- * Definition: - * A contact party (e.g. guardian, partner, friend) for the patient - *

- */ - public Patient setContact(java.util.List theValue) { - myContact = theValue; - return this; - } - - /** - * Adds and returns a new value for contact (A contact party (e.g. guardian, partner, friend) for the patient) - * - *

- * Definition: - * A contact party (e.g. guardian, partner, friend) for the patient - *

- */ - public Contact addContact() { - Contact newType = new Contact(); - getContact().add(newType); - return newType; - } - - /** - * Gets the first repetition for contact (A contact party (e.g. guardian, partner, friend) for the patient), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact party (e.g. guardian, partner, friend) for the patient - *

- */ - public Contact getContactFirstRep() { - if (getContact().isEmpty()) { - return addContact(); - } - return getContact().get(0); - } - - /** - * Gets the value(s) for animal (If this patient is an animal (non-human)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This element has a value if the patient is an animal - *

- */ - public Animal getAnimal() { - if (myAnimal == null) { - myAnimal = new Animal(); - } - return myAnimal; - } - - - /** - * Gets the value(s) for animal (If this patient is an animal (non-human)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This element has a value if the patient is an animal - *

- */ - public Animal getAnimalElement() { - if (myAnimal == null) { - myAnimal = new Animal(); - } - return myAnimal; - } - - - /** - * Sets the value(s) for animal (If this patient is an animal (non-human)) - * - *

- * Definition: - * This element has a value if the patient is an animal - *

- */ - public Patient setAnimal(Animal theValue) { - myAnimal = theValue; - return this; - } - - - /** - * Gets the value(s) for communication (Languages which may be used to communicate with the patient about his or her health). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Languages which may be used to communicate with the patient about his or her health - *

- */ - public java.util.List getCommunication() { - if (myCommunication == null) { - myCommunication = new java.util.ArrayList(); - } - return myCommunication; - } - - - /** - * Gets the value(s) for communication (Languages which may be used to communicate with the patient about his or her health). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Languages which may be used to communicate with the patient about his or her health - *

- */ - public java.util.List getCommunicationElement() { - if (myCommunication == null) { - myCommunication = new java.util.ArrayList(); - } - return myCommunication; - } - - - /** - * Sets the value(s) for communication (Languages which may be used to communicate with the patient about his or her health) - * - *

- * Definition: - * Languages which may be used to communicate with the patient about his or her health - *

- */ - public Patient setCommunication(java.util.List theValue) { - myCommunication = theValue; - return this; - } - - /** - * Adds and returns a new value for communication (Languages which may be used to communicate with the patient about his or her health) - * - *

- * Definition: - * Languages which may be used to communicate with the patient about his or her health - *

- */ - public CodeableConceptDt addCommunication() { - CodeableConceptDt newType = new CodeableConceptDt(); - getCommunication().add(newType); - return newType; - } - - /** - * Gets the first repetition for communication (Languages which may be used to communicate with the patient about his or her health), - * creating it if it does not already exist. - * - *

- * Definition: - * Languages which may be used to communicate with the patient about his or her health - *

- */ - public CodeableConceptDt getCommunicationFirstRep() { - if (getCommunication().isEmpty()) { - return addCommunication(); - } - return getCommunication().get(0); - } - - /** - * Gets the value(s) for careProvider (Patient's nominated care provider). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient's nominated care provider - *

- */ - public java.util.List getCareProvider() { - if (myCareProvider == null) { - myCareProvider = new java.util.ArrayList(); - } - return myCareProvider; - } - - - /** - * Gets the value(s) for careProvider (Patient's nominated care provider). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Patient's nominated care provider - *

- */ - public java.util.List getCareProviderElement() { - if (myCareProvider == null) { - myCareProvider = new java.util.ArrayList(); - } - return myCareProvider; - } - - - /** - * Sets the value(s) for careProvider (Patient's nominated care provider) - * - *

- * Definition: - * Patient's nominated care provider - *

- */ - public Patient setCareProvider(java.util.List theValue) { - myCareProvider = theValue; - return this; - } - - /** - * Adds and returns a new value for careProvider (Patient's nominated care provider) - * - *

- * Definition: - * Patient's nominated care provider - *

- */ - public ResourceReferenceDt addCareProvider() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getCareProvider().add(newType); - return newType; - } - - /** - * Gets the value(s) for managingOrganization (Organization that is the custodian of the patient record). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that is the custodian of the patient record - *

- */ - public ResourceReferenceDt getManagingOrganization() { - if (myManagingOrganization == null) { - myManagingOrganization = new ResourceReferenceDt(); - } - return myManagingOrganization; - } - - - /** - * Gets the value(s) for managingOrganization (Organization that is the custodian of the patient record). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that is the custodian of the patient record - *

- */ - public ResourceReferenceDt getManagingOrganizationElement() { - if (myManagingOrganization == null) { - myManagingOrganization = new ResourceReferenceDt(); - } - return myManagingOrganization; - } - - - /** - * Sets the value(s) for managingOrganization (Organization that is the custodian of the patient record) - * - *

- * Definition: - * Organization that is the custodian of the patient record - *

- */ - public Patient setManagingOrganization(ResourceReferenceDt theValue) { - myManagingOrganization = theValue; - return this; - } - - - /** - * Gets the value(s) for link (Link to another patient resource that concerns the same actual person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Link to another patient resource that concerns the same actual person - *

- */ - public java.util.List getLink() { - if (myLink == null) { - myLink = new java.util.ArrayList(); - } - return myLink; - } - - - /** - * Gets the value(s) for link (Link to another patient resource that concerns the same actual person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Link to another patient resource that concerns the same actual person - *

- */ - public java.util.List getLinkElement() { - if (myLink == null) { - myLink = new java.util.ArrayList(); - } - return myLink; - } - - - /** - * Sets the value(s) for link (Link to another patient resource that concerns the same actual person) - * - *

- * Definition: - * Link to another patient resource that concerns the same actual person - *

- */ - public Patient setLink(java.util.List theValue) { - myLink = theValue; - return this; - } - - /** - * Adds and returns a new value for link (Link to another patient resource that concerns the same actual person) - * - *

- * Definition: - * Link to another patient resource that concerns the same actual person - *

- */ - public Link addLink() { - Link newType = new Link(); - getLink().add(newType); - return newType; - } - - /** - * Gets the first repetition for link (Link to another patient resource that concerns the same actual person), - * creating it if it does not already exist. - * - *

- * Definition: - * Link to another patient resource that concerns the same actual person - *

- */ - public Link getLinkFirstRep() { - if (getLink().isEmpty()) { - return addLink(); - } - return getLink().get(0); - } - - /** - * Gets the value(s) for active (Whether this patient's record is in active use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this patient record is in active use - *

- */ - public BooleanDt getActive() { - if (myActive == null) { - myActive = new BooleanDt(); - } - return myActive; - } - - - /** - * Gets the value(s) for active (Whether this patient's record is in active use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this patient record is in active use - *

- */ - public BooleanDt getActiveElement() { - if (myActive == null) { - myActive = new BooleanDt(); - } - return myActive; - } - - - /** - * Sets the value(s) for active (Whether this patient's record is in active use) - * - *

- * Definition: - * Whether this patient record is in active use - *

- */ - public Patient setActive(BooleanDt theValue) { - myActive = theValue; - return this; - } - - /** - * Sets the value for active (Whether this patient's record is in active use) - * - *

- * Definition: - * Whether this patient record is in active use - *

- */ - public Patient setActive( boolean theBoolean) { - myActive = new BooleanDt(theBoolean); - return this; - } - - - /** - * Block class for child element: Patient.contact (A contact party (e.g. guardian, partner, friend) for the patient) - * - *

- * Definition: - * A contact party (e.g. guardian, partner, friend) for the patient - *

- */ - @Block() - public static class Contact - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="relationship", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="The kind of relationship", - formalDefinition="The nature of the relationship between the patient and the contact person" - ) - private java.util.List myRelationship; - - @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="A name associated with the person", - formalDefinition="A name associated with the person" - ) - private HumanNameDt myName; - - @Child(name="telecom", type=ContactDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A contact detail for the person", - formalDefinition="A contact detail for the person, e.g. a telephone number or an email address." - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Address for the contact person", - formalDefinition="Address for the contact person" - ) - private AddressDt myAddress; - - @Child(name="gender", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Gender for administrative purposes", - formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." - ) - private BoundCodeableConceptDt myGender; - - @Child(name="organization", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Organization that is associated with the contact", - formalDefinition="Organization on behalf of which the contact is acting or for which the contact is working." - ) - private ResourceReferenceDt myOrganization; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRelationship, myName, myTelecom, myAddress, myGender, myOrganization); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRelationship, myName, myTelecom, myAddress, myGender, myOrganization); - } - - /** - * Gets the value(s) for relationship (The kind of relationship). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The nature of the relationship between the patient and the contact person - *

- */ - public java.util.List getRelationship() { - if (myRelationship == null) { - myRelationship = new java.util.ArrayList(); - } - return myRelationship; - } - - - /** - * Gets the value(s) for relationship (The kind of relationship). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The nature of the relationship between the patient and the contact person - *

- */ - public java.util.List getRelationshipElement() { - if (myRelationship == null) { - myRelationship = new java.util.ArrayList(); - } - return myRelationship; - } - - - /** - * Sets the value(s) for relationship (The kind of relationship) - * - *

- * Definition: - * The nature of the relationship between the patient and the contact person - *

- */ - public Contact setRelationship(java.util.List theValue) { - myRelationship = theValue; - return this; - } - - /** - * Adds and returns a new value for relationship (The kind of relationship) - * - *

- * Definition: - * The nature of the relationship between the patient and the contact person - *

- */ - public CodeableConceptDt addRelationship() { - CodeableConceptDt newType = new CodeableConceptDt(); - getRelationship().add(newType); - return newType; - } - - /** - * Gets the first repetition for relationship (The kind of relationship), - * creating it if it does not already exist. - * - *

- * Definition: - * The nature of the relationship between the patient and the contact person - *

- */ - public CodeableConceptDt getRelationshipFirstRep() { - if (getRelationship().isEmpty()) { - return addRelationship(); - } - return getRelationship().get(0); - } - - /** - * Gets the value(s) for name (A name associated with the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the person - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (A name associated with the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the person - *

- */ - public HumanNameDt getNameElement() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (A name associated with the person) - * - *

- * Definition: - * A name associated with the person - *

- */ - public Contact setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (A contact detail for the person) - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public Contact setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (A contact detail for the person) - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (A contact detail for the person), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (A contact detail for the person) - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Contact addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (A contact detail for the person) - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Contact addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for address (Address for the contact person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Address for the contact person - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (Address for the contact person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Address for the contact person - *

- */ - public AddressDt getAddressElement() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (Address for the contact person) - * - *

- * Definition: - * Address for the contact person - *

- */ - public Contact setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGender() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGenderElement() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Contact setGender(BoundCodeableConceptDt theValue) { - myGender = theValue; - return this; - } - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Contact setGender(AdministrativeGenderCodesEnum theValue) { - getGender().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for organization (Organization that is associated with the contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization on behalf of which the contact is acting or for which the contact is working. - *

- */ - public ResourceReferenceDt getOrganization() { - if (myOrganization == null) { - myOrganization = new ResourceReferenceDt(); - } - return myOrganization; - } - - - /** - * Gets the value(s) for organization (Organization that is associated with the contact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization on behalf of which the contact is acting or for which the contact is working. - *

- */ - public ResourceReferenceDt getOrganizationElement() { - if (myOrganization == null) { - myOrganization = new ResourceReferenceDt(); - } - return myOrganization; - } - - - /** - * Sets the value(s) for organization (Organization that is associated with the contact) - * - *

- * Definition: - * Organization on behalf of which the contact is acting or for which the contact is working. - *

- */ - public Contact setOrganization(ResourceReferenceDt theValue) { - myOrganization = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Patient.animal (If this patient is an animal (non-human)) - * - *

- * Definition: - * This element has a value if the patient is an animal - *

- */ - @Block() - public static class Animal - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="species", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="E.g. Dog, Cow", - formalDefinition="Identifies the high level categorization of the kind of animal" - ) - private BoundCodeableConceptDt mySpecies; - - @Child(name="breed", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="E.g. Poodle, Angus", - formalDefinition="Identifies the detailed categorization of the kind of animal." - ) - private CodeableConceptDt myBreed; - - @Child(name="genderStatus", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="E.g. Neutered, Intact", - formalDefinition="Indicates the current state of the animal's reproductive organs" - ) - private CodeableConceptDt myGenderStatus; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySpecies, myBreed, myGenderStatus); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySpecies, myBreed, myGenderStatus); - } - - /** - * Gets the value(s) for species (E.g. Dog, Cow). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the high level categorization of the kind of animal - *

- */ - public BoundCodeableConceptDt getSpecies() { - if (mySpecies == null) { - mySpecies = new BoundCodeableConceptDt(AnimalSpeciesEnum.VALUESET_BINDER); - } - return mySpecies; - } - - - /** - * Gets the value(s) for species (E.g. Dog, Cow). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the high level categorization of the kind of animal - *

- */ - public BoundCodeableConceptDt getSpeciesElement() { - if (mySpecies == null) { - mySpecies = new BoundCodeableConceptDt(AnimalSpeciesEnum.VALUESET_BINDER); - } - return mySpecies; - } - - - /** - * Sets the value(s) for species (E.g. Dog, Cow) - * - *

- * Definition: - * Identifies the high level categorization of the kind of animal - *

- */ - public Animal setSpecies(BoundCodeableConceptDt theValue) { - mySpecies = theValue; - return this; - } - - /** - * Sets the value(s) for species (E.g. Dog, Cow) - * - *

- * Definition: - * Identifies the high level categorization of the kind of animal - *

- */ - public Animal setSpecies(AnimalSpeciesEnum theValue) { - getSpecies().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for breed (E.g. Poodle, Angus). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the detailed categorization of the kind of animal. - *

- */ - public CodeableConceptDt getBreed() { - if (myBreed == null) { - myBreed = new CodeableConceptDt(); - } - return myBreed; - } - - - /** - * Gets the value(s) for breed (E.g. Poodle, Angus). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the detailed categorization of the kind of animal. - *

- */ - public CodeableConceptDt getBreedElement() { - if (myBreed == null) { - myBreed = new CodeableConceptDt(); - } - return myBreed; - } - - - /** - * Sets the value(s) for breed (E.g. Poodle, Angus) - * - *

- * Definition: - * Identifies the detailed categorization of the kind of animal. - *

- */ - public Animal setBreed(CodeableConceptDt theValue) { - myBreed = theValue; - return this; - } - - - /** - * Gets the value(s) for genderStatus (E.g. Neutered, Intact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the current state of the animal's reproductive organs - *

- */ - public CodeableConceptDt getGenderStatus() { - if (myGenderStatus == null) { - myGenderStatus = new CodeableConceptDt(); - } - return myGenderStatus; - } - - - /** - * Gets the value(s) for genderStatus (E.g. Neutered, Intact). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the current state of the animal's reproductive organs - *

- */ - public CodeableConceptDt getGenderStatusElement() { - if (myGenderStatus == null) { - myGenderStatus = new CodeableConceptDt(); - } - return myGenderStatus; - } - - - /** - * Sets the value(s) for genderStatus (E.g. Neutered, Intact) - * - *

- * Definition: - * Indicates the current state of the animal's reproductive organs - *

- */ - public Animal setGenderStatus(CodeableConceptDt theValue) { - myGenderStatus = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Patient.link (Link to another patient resource that concerns the same actual person) - * - *

- * Definition: - * Link to another patient resource that concerns the same actual person - *

- */ - @Block() - public static class Link - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="other", order=0, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="The other patient resource that the link refers to", - formalDefinition="The other patient resource that the link refers to" - ) - private ResourceReferenceDt myOther; - - @Child(name="type", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="replace | refer | seealso - type of link", - formalDefinition="The type of link between this patient resource and another patient resource." - ) - private BoundCodeDt myType; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOther, myType); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOther, myType); - } - - /** - * Gets the value(s) for other (The other patient resource that the link refers to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The other patient resource that the link refers to - *

- */ - public ResourceReferenceDt getOther() { - if (myOther == null) { - myOther = new ResourceReferenceDt(); - } - return myOther; - } - - - /** - * Gets the value(s) for other (The other patient resource that the link refers to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The other patient resource that the link refers to - *

- */ - public ResourceReferenceDt getOtherElement() { - if (myOther == null) { - myOther = new ResourceReferenceDt(); - } - return myOther; - } - - - /** - * Sets the value(s) for other (The other patient resource that the link refers to) - * - *

- * Definition: - * The other patient resource that the link refers to - *

- */ - public Link setOther(ResourceReferenceDt theValue) { - myOther = theValue; - return this; - } - - - /** - * Gets the value(s) for type (replace | refer | seealso - type of link). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of link between this patient resource and another patient resource. - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(LinkTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (replace | refer | seealso - type of link). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of link between this patient resource and another patient resource. - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(LinkTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (replace | refer | seealso - type of link) - * - *

- * Definition: - * The type of link between this patient resource and another patient resource. - *

- */ - public Link setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (replace | refer | seealso - type of link) - * - *

- * Definition: - * The type of link between this patient resource and another patient resource. - *

- */ - public Link setType(LinkTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Patient"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Practitioner.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Practitioner.java deleted file mode 100644 index 40388ed6c22..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Practitioner.java +++ /dev/null @@ -1,1844 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Practitioner Resource - * (A person with a formal responsibility in the provisioning of healthcare or related services) - * - *

- * Definition: - * A person who is directly or indirectly involved in the provisioning of healthcare - *

- * - *

- * Requirements: - * Need to track doctors, staff, locums etc. for both healthcare practitioners, funders, etc. - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Practitioner - *

- * - */ -@ResourceDef(name="Practitioner", profile="http://hl7.org/fhir/profiles/Practitioner", id="practitioner") -public class Practitioner - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: A practitioner's Identifier
- * Type: token
- * Path: Practitioner.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Practitioner.identifier", description="A practitioner's Identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: A practitioner's Identifier
- * Type: token
- * Path: Practitioner.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for name - *

- * Description: A portion of either family or given name
- * Type: string
- * Path: Practitioner.name
- *

- */ - @SearchParamDefinition(name="name", path="Practitioner.name", description="A portion of either family or given name", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: A portion of either family or given name
- * Type: string
- * Path: Practitioner.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for family - *

- * Description: A portion of the family name
- * Type: string
- * Path: Practitioner.name
- *

- */ - @SearchParamDefinition(name="family", path="Practitioner.name", description="A portion of the family name", type="string" ) - public static final String SP_FAMILY = "family"; - - /** - * Fluent Client search parameter constant for family - *

- * Description: A portion of the family name
- * Type: string
- * Path: Practitioner.name
- *

- */ - public static final StringClientParam FAMILY = new StringClientParam(SP_FAMILY); - - /** - * Search parameter constant for given - *

- * Description: A portion of the given name
- * Type: string
- * Path: Practitioner.name
- *

- */ - @SearchParamDefinition(name="given", path="Practitioner.name", description="A portion of the given name", type="string" ) - public static final String SP_GIVEN = "given"; - - /** - * Fluent Client search parameter constant for given - *

- * Description: A portion of the given name
- * Type: string
- * Path: Practitioner.name
- *

- */ - public static final StringClientParam GIVEN = new StringClientParam(SP_GIVEN); - - /** - * Search parameter constant for phonetic - *

- * Description: A portion of either family or given name using some kind of phonetic matching algorithm
- * Type: string
- * Path: Practitioner.name
- *

- */ - @SearchParamDefinition(name="phonetic", path="Practitioner.name", description="A portion of either family or given name using some kind of phonetic matching algorithm", type="string" ) - public static final String SP_PHONETIC = "phonetic"; - - /** - * Fluent Client search parameter constant for phonetic - *

- * Description: A portion of either family or given name using some kind of phonetic matching algorithm
- * Type: string
- * Path: Practitioner.name
- *

- */ - public static final StringClientParam PHONETIC = new StringClientParam(SP_PHONETIC); - - /** - * Search parameter constant for telecom - *

- * Description: The value in any kind of contact
- * Type: string
- * Path: Practitioner.telecom
- *

- */ - @SearchParamDefinition(name="telecom", path="Practitioner.telecom", description="The value in any kind of contact", type="string" ) - public static final String SP_TELECOM = "telecom"; - - /** - * Fluent Client search parameter constant for telecom - *

- * Description: The value in any kind of contact
- * Type: string
- * Path: Practitioner.telecom
- *

- */ - public static final StringClientParam TELECOM = new StringClientParam(SP_TELECOM); - - /** - * Search parameter constant for address - *

- * Description: An address in any kind of address/part
- * Type: string
- * Path: Practitioner.address
- *

- */ - @SearchParamDefinition(name="address", path="Practitioner.address", description="An address in any kind of address/part", type="string" ) - public static final String SP_ADDRESS = "address"; - - /** - * Fluent Client search parameter constant for address - *

- * Description: An address in any kind of address/part
- * Type: string
- * Path: Practitioner.address
- *

- */ - public static final StringClientParam ADDRESS = new StringClientParam(SP_ADDRESS); - - /** - * Search parameter constant for gender - *

- * Description: Gender of the practitioner
- * Type: token
- * Path: Practitioner.gender
- *

- */ - @SearchParamDefinition(name="gender", path="Practitioner.gender", description="Gender of the practitioner", type="token" ) - public static final String SP_GENDER = "gender"; - - /** - * Fluent Client search parameter constant for gender - *

- * Description: Gender of the practitioner
- * Type: token
- * Path: Practitioner.gender
- *

- */ - public static final TokenClientParam GENDER = new TokenClientParam(SP_GENDER); - - /** - * Search parameter constant for organization - *

- * Description: The identity of the organization the practitioner represents / acts on behalf of
- * Type: reference
- * Path: Practitioner.organization
- *

- */ - @SearchParamDefinition(name="organization", path="Practitioner.organization", description="The identity of the organization the practitioner represents / acts on behalf of", type="reference" ) - public static final String SP_ORGANIZATION = "organization"; - - /** - * Fluent Client search parameter constant for organization - *

- * Description: The identity of the organization the practitioner represents / acts on behalf of
- * Type: reference
- * Path: Practitioner.organization
- *

- */ - public static final ReferenceClientParam ORGANIZATION = new ReferenceClientParam(SP_ORGANIZATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Practitioner.organization". - */ - public static final Include INCLUDE_ORGANIZATION = new Include("Practitioner.organization"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A identifier for the person as this agent", - formalDefinition="An identifier that applies to this person in this role" - ) - private java.util.List myIdentifier; - - @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="A name associated with the person", - formalDefinition="A name associated with the person" - ) - private HumanNameDt myName; - - @Child(name="telecom", type=ContactDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A contact detail for the practitioner", - formalDefinition="A contact detail for the practitioner, e.g. a telephone number or an email address." - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Where practitioner can be found/visited", - formalDefinition="The postal address where the practitioner can be found or visited or to which mail can be delivered" - ) - private AddressDt myAddress; - - @Child(name="gender", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Gender for administrative purposes", - formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." - ) - private BoundCodeableConceptDt myGender; - - @Child(name="birthDate", type=DateTimeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="The date and time of birth for the practitioner", - formalDefinition="The date and time of birth for the practitioner" - ) - private DateTimeDt myBirthDate; - - @Child(name="photo", type=AttachmentDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Image of the person", - formalDefinition="Image of the person" - ) - private java.util.List myPhoto; - - @Child(name="organization", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="The represented organization", - formalDefinition="The organization that the practitioner represents" - ) - private ResourceReferenceDt myOrganization; - - @Child(name="role", type=CodeableConceptDt.class, order=8, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Roles which this practitioner may perform", - formalDefinition="Roles which this practitioner is authorized to perform for the organization" - ) - private java.util.List> myRole; - - @Child(name="specialty", type=CodeableConceptDt.class, order=9, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Specific specialty of the practitioner", - formalDefinition="Specific specialty of the practitioner" - ) - private java.util.List> mySpecialty; - - @Child(name="period", type=PeriodDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="The period during which the practitioner is authorized to perform in these role(s)", - formalDefinition="The period during which the person is authorized to act as a practitioner in these role(s) for the organization" - ) - private PeriodDt myPeriod; - - @Child(name="location", order=11, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="The location(s) at which this practitioner provides care", - formalDefinition="The location(s) at which this practitioner provides care" - ) - private java.util.List myLocation; - - @Child(name="qualification", order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Qualifications obtained by training and certification", - formalDefinition="" - ) - private java.util.List myQualification; - - @Child(name="communication", type=CodeableConceptDt.class, order=13, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A language the practitioner is able to use in patient communication", - formalDefinition="A language the practitioner is able to use in patient communication" - ) - private java.util.List myCommunication; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myTelecom, myAddress, myGender, myBirthDate, myPhoto, myOrganization, myRole, mySpecialty, myPeriod, myLocation, myQualification, myCommunication); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myTelecom, myAddress, myGender, myBirthDate, myPhoto, myOrganization, myRole, mySpecialty, myPeriod, myLocation, myQualification, myCommunication); - } - - /** - * Gets the value(s) for identifier (A identifier for the person as this agent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that applies to this person in this role - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (A identifier for the person as this agent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that applies to this person in this role - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (A identifier for the person as this agent) - * - *

- * Definition: - * An identifier that applies to this person in this role - *

- */ - public Practitioner setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (A identifier for the person as this agent) - * - *

- * Definition: - * An identifier that applies to this person in this role - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (A identifier for the person as this agent), - * creating it if it does not already exist. - * - *

- * Definition: - * An identifier that applies to this person in this role - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (A identifier for the person as this agent) - * - *

- * Definition: - * An identifier that applies to this person in this role - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Practitioner addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (A identifier for the person as this agent) - * - *

- * Definition: - * An identifier that applies to this person in this role - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Practitioner addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for name (A name associated with the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the person - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (A name associated with the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the person - *

- */ - public HumanNameDt getNameElement() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (A name associated with the person) - * - *

- * Definition: - * A name associated with the person - *

- */ - public Practitioner setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the practitioner, e.g. a telephone number or an email address. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the practitioner, e.g. a telephone number or an email address. - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (A contact detail for the practitioner) - * - *

- * Definition: - * A contact detail for the practitioner, e.g. a telephone number or an email address. - *

- */ - public Practitioner setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (A contact detail for the practitioner) - * - *

- * Definition: - * A contact detail for the practitioner, e.g. a telephone number or an email address. - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (A contact detail for the practitioner), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail for the practitioner, e.g. a telephone number or an email address. - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (A contact detail for the practitioner) - * - *

- * Definition: - * A contact detail for the practitioner, e.g. a telephone number or an email address. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Practitioner addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (A contact detail for the practitioner) - * - *

- * Definition: - * A contact detail for the practitioner, e.g. a telephone number or an email address. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Practitioner addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for address (Where practitioner can be found/visited). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The postal address where the practitioner can be found or visited or to which mail can be delivered - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (Where practitioner can be found/visited). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The postal address where the practitioner can be found or visited or to which mail can be delivered - *

- */ - public AddressDt getAddressElement() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (Where practitioner can be found/visited) - * - *

- * Definition: - * The postal address where the practitioner can be found or visited or to which mail can be delivered - *

- */ - public Practitioner setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGender() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGenderElement() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Practitioner setGender(BoundCodeableConceptDt theValue) { - myGender = theValue; - return this; - } - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Practitioner setGender(AdministrativeGenderCodesEnum theValue) { - getGender().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for birthDate (The date and time of birth for the practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and time of birth for the practitioner - *

- */ - public DateTimeDt getBirthDate() { - if (myBirthDate == null) { - myBirthDate = new DateTimeDt(); - } - return myBirthDate; - } - - - /** - * Gets the value(s) for birthDate (The date and time of birth for the practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and time of birth for the practitioner - *

- */ - public DateTimeDt getBirthDateElement() { - if (myBirthDate == null) { - myBirthDate = new DateTimeDt(); - } - return myBirthDate; - } - - - /** - * Sets the value(s) for birthDate (The date and time of birth for the practitioner) - * - *

- * Definition: - * The date and time of birth for the practitioner - *

- */ - public Practitioner setBirthDate(DateTimeDt theValue) { - myBirthDate = theValue; - return this; - } - - /** - * Sets the value for birthDate (The date and time of birth for the practitioner) - * - *

- * Definition: - * The date and time of birth for the practitioner - *

- */ - public Practitioner setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myBirthDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for birthDate (The date and time of birth for the practitioner) - * - *

- * Definition: - * The date and time of birth for the practitioner - *

- */ - public Practitioner setBirthDateWithSecondsPrecision( Date theDate) { - myBirthDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for photo (Image of the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Image of the person - *

- */ - public java.util.List getPhoto() { - if (myPhoto == null) { - myPhoto = new java.util.ArrayList(); - } - return myPhoto; - } - - - /** - * Gets the value(s) for photo (Image of the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Image of the person - *

- */ - public java.util.List getPhotoElement() { - if (myPhoto == null) { - myPhoto = new java.util.ArrayList(); - } - return myPhoto; - } - - - /** - * Sets the value(s) for photo (Image of the person) - * - *

- * Definition: - * Image of the person - *

- */ - public Practitioner setPhoto(java.util.List theValue) { - myPhoto = theValue; - return this; - } - - /** - * Adds and returns a new value for photo (Image of the person) - * - *

- * Definition: - * Image of the person - *

- */ - public AttachmentDt addPhoto() { - AttachmentDt newType = new AttachmentDt(); - getPhoto().add(newType); - return newType; - } - - /** - * Gets the first repetition for photo (Image of the person), - * creating it if it does not already exist. - * - *

- * Definition: - * Image of the person - *

- */ - public AttachmentDt getPhotoFirstRep() { - if (getPhoto().isEmpty()) { - return addPhoto(); - } - return getPhoto().get(0); - } - - /** - * Gets the value(s) for organization (The represented organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The organization that the practitioner represents - *

- */ - public ResourceReferenceDt getOrganization() { - if (myOrganization == null) { - myOrganization = new ResourceReferenceDt(); - } - return myOrganization; - } - - - /** - * Gets the value(s) for organization (The represented organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The organization that the practitioner represents - *

- */ - public ResourceReferenceDt getOrganizationElement() { - if (myOrganization == null) { - myOrganization = new ResourceReferenceDt(); - } - return myOrganization; - } - - - /** - * Sets the value(s) for organization (The represented organization) - * - *

- * Definition: - * The organization that the practitioner represents - *

- */ - public Practitioner setOrganization(ResourceReferenceDt theValue) { - myOrganization = theValue; - return this; - } - - - /** - * Gets the value(s) for role (Roles which this practitioner may perform). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Roles which this practitioner is authorized to perform for the organization - *

- */ - public java.util.List> getRole() { - if (myRole == null) { - myRole = new java.util.ArrayList>(); - } - return myRole; - } - - - /** - * Gets the value(s) for role (Roles which this practitioner may perform). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Roles which this practitioner is authorized to perform for the organization - *

- */ - public java.util.List> getRoleElement() { - if (myRole == null) { - myRole = new java.util.ArrayList>(); - } - return myRole; - } - - - /** - * Sets the value(s) for role (Roles which this practitioner may perform) - * - *

- * Definition: - * Roles which this practitioner is authorized to perform for the organization - *

- */ - public Practitioner setRole(java.util.List> theValue) { - myRole = theValue; - return this; - } - - /** - * Add a value for role (Roles which this practitioner may perform) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addRole()} method. - * - *

- * Definition: - * Roles which this practitioner is authorized to perform for the organization - *

- */ - public BoundCodeableConceptDt addRole(PractitionerRoleEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(PractitionerRoleEnum.VALUESET_BINDER, theValue); - getRole().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for role (Roles which this practitioner may perform), - * creating it if it does not already exist. - * - *

- * Definition: - * Roles which this practitioner is authorized to perform for the organization - *

- */ - public BoundCodeableConceptDt getRoleFirstRep() { - if (getRole().size() == 0) { - addRole(); - } - return getRole().get(0); - } - - /** - * Add a value for role (Roles which this practitioner may perform) - * - *

- * Definition: - * Roles which this practitioner is authorized to perform for the organization - *

- */ - public BoundCodeableConceptDt addRole() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(PractitionerRoleEnum.VALUESET_BINDER); - getRole().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for role (Roles which this practitioner may perform) - * - *

- * Definition: - * Roles which this practitioner is authorized to perform for the organization - *

- */ - public Practitioner setRole(PractitionerRoleEnum theValue) { - getRole().clear(); - addRole(theValue); - return this; - } - - - /** - * Gets the value(s) for specialty (Specific specialty of the practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specific specialty of the practitioner - *

- */ - public java.util.List> getSpecialty() { - if (mySpecialty == null) { - mySpecialty = new java.util.ArrayList>(); - } - return mySpecialty; - } - - - /** - * Gets the value(s) for specialty (Specific specialty of the practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specific specialty of the practitioner - *

- */ - public java.util.List> getSpecialtyElement() { - if (mySpecialty == null) { - mySpecialty = new java.util.ArrayList>(); - } - return mySpecialty; - } - - - /** - * Sets the value(s) for specialty (Specific specialty of the practitioner) - * - *

- * Definition: - * Specific specialty of the practitioner - *

- */ - public Practitioner setSpecialty(java.util.List> theValue) { - mySpecialty = theValue; - return this; - } - - /** - * Add a value for specialty (Specific specialty of the practitioner) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addSpecialty()} method. - * - *

- * Definition: - * Specific specialty of the practitioner - *

- */ - public BoundCodeableConceptDt addSpecialty(PractitionerSpecialtyEnum theValue) { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(PractitionerSpecialtyEnum.VALUESET_BINDER, theValue); - getSpecialty().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for specialty (Specific specialty of the practitioner), - * creating it if it does not already exist. - * - *

- * Definition: - * Specific specialty of the practitioner - *

- */ - public BoundCodeableConceptDt getSpecialtyFirstRep() { - if (getSpecialty().size() == 0) { - addSpecialty(); - } - return getSpecialty().get(0); - } - - /** - * Add a value for specialty (Specific specialty of the practitioner) - * - *

- * Definition: - * Specific specialty of the practitioner - *

- */ - public BoundCodeableConceptDt addSpecialty() { - BoundCodeableConceptDt retVal = new BoundCodeableConceptDt(PractitionerSpecialtyEnum.VALUESET_BINDER); - getSpecialty().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for specialty (Specific specialty of the practitioner) - * - *

- * Definition: - * Specific specialty of the practitioner - *

- */ - public Practitioner setSpecialty(PractitionerSpecialtyEnum theValue) { - getSpecialty().clear(); - addSpecialty(theValue); - return this; - } - - - /** - * Gets the value(s) for period (The period during which the practitioner is authorized to perform in these role(s)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The period during which the person is authorized to act as a practitioner in these role(s) for the organization - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (The period during which the practitioner is authorized to perform in these role(s)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The period during which the person is authorized to act as a practitioner in these role(s) for the organization - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (The period during which the practitioner is authorized to perform in these role(s)) - * - *

- * Definition: - * The period during which the person is authorized to act as a practitioner in these role(s) for the organization - *

- */ - public Practitioner setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for location (The location(s) at which this practitioner provides care). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The location(s) at which this practitioner provides care - *

- */ - public java.util.List getLocation() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (The location(s) at which this practitioner provides care). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The location(s) at which this practitioner provides care - *

- */ - public java.util.List getLocationElement() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (The location(s) at which this practitioner provides care) - * - *

- * Definition: - * The location(s) at which this practitioner provides care - *

- */ - public Practitioner setLocation(java.util.List theValue) { - myLocation = theValue; - return this; - } - - /** - * Adds and returns a new value for location (The location(s) at which this practitioner provides care) - * - *

- * Definition: - * The location(s) at which this practitioner provides care - *

- */ - public ResourceReferenceDt addLocation() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getLocation().add(newType); - return newType; - } - - /** - * Gets the value(s) for qualification (Qualifications obtained by training and certification). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getQualification() { - if (myQualification == null) { - myQualification = new java.util.ArrayList(); - } - return myQualification; - } - - - /** - * Gets the value(s) for qualification (Qualifications obtained by training and certification). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getQualificationElement() { - if (myQualification == null) { - myQualification = new java.util.ArrayList(); - } - return myQualification; - } - - - /** - * Sets the value(s) for qualification (Qualifications obtained by training and certification) - * - *

- * Definition: - * - *

- */ - public Practitioner setQualification(java.util.List theValue) { - myQualification = theValue; - return this; - } - - /** - * Adds and returns a new value for qualification (Qualifications obtained by training and certification) - * - *

- * Definition: - * - *

- */ - public Qualification addQualification() { - Qualification newType = new Qualification(); - getQualification().add(newType); - return newType; - } - - /** - * Gets the first repetition for qualification (Qualifications obtained by training and certification), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public Qualification getQualificationFirstRep() { - if (getQualification().isEmpty()) { - return addQualification(); - } - return getQualification().get(0); - } - - /** - * Gets the value(s) for communication (A language the practitioner is able to use in patient communication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A language the practitioner is able to use in patient communication - *

- */ - public java.util.List getCommunication() { - if (myCommunication == null) { - myCommunication = new java.util.ArrayList(); - } - return myCommunication; - } - - - /** - * Gets the value(s) for communication (A language the practitioner is able to use in patient communication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A language the practitioner is able to use in patient communication - *

- */ - public java.util.List getCommunicationElement() { - if (myCommunication == null) { - myCommunication = new java.util.ArrayList(); - } - return myCommunication; - } - - - /** - * Sets the value(s) for communication (A language the practitioner is able to use in patient communication) - * - *

- * Definition: - * A language the practitioner is able to use in patient communication - *

- */ - public Practitioner setCommunication(java.util.List theValue) { - myCommunication = theValue; - return this; - } - - /** - * Adds and returns a new value for communication (A language the practitioner is able to use in patient communication) - * - *

- * Definition: - * A language the practitioner is able to use in patient communication - *

- */ - public CodeableConceptDt addCommunication() { - CodeableConceptDt newType = new CodeableConceptDt(); - getCommunication().add(newType); - return newType; - } - - /** - * Gets the first repetition for communication (A language the practitioner is able to use in patient communication), - * creating it if it does not already exist. - * - *

- * Definition: - * A language the practitioner is able to use in patient communication - *

- */ - public CodeableConceptDt getCommunicationFirstRep() { - if (getCommunication().isEmpty()) { - return addCommunication(); - } - return getCommunication().get(0); - } - - /** - * Block class for child element: Practitioner.qualification (Qualifications obtained by training and certification) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Qualification - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Coded representation of the qualification", - formalDefinition="" - ) - private CodeableConceptDt myCode; - - @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Period during which the qualification is valid", - formalDefinition="Period during which the qualification is valid" - ) - private PeriodDt myPeriod; - - @Child(name="issuer", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Organization that regulates and issues the qualification", - formalDefinition="Organization that regulates and issues the qualification" - ) - private ResourceReferenceDt myIssuer; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myPeriod, myIssuer); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myPeriod, myIssuer); - } - - /** - * Gets the value(s) for code (Coded representation of the qualification). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Coded representation of the qualification). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Coded representation of the qualification) - * - *

- * Definition: - * - *

- */ - public Qualification setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for period (Period during which the qualification is valid). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Period during which the qualification is valid - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (Period during which the qualification is valid). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Period during which the qualification is valid - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (Period during which the qualification is valid) - * - *

- * Definition: - * Period during which the qualification is valid - *

- */ - public Qualification setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for issuer (Organization that regulates and issues the qualification). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that regulates and issues the qualification - *

- */ - public ResourceReferenceDt getIssuer() { - if (myIssuer == null) { - myIssuer = new ResourceReferenceDt(); - } - return myIssuer; - } - - - /** - * Gets the value(s) for issuer (Organization that regulates and issues the qualification). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that regulates and issues the qualification - *

- */ - public ResourceReferenceDt getIssuerElement() { - if (myIssuer == null) { - myIssuer = new ResourceReferenceDt(); - } - return myIssuer; - } - - - /** - * Sets the value(s) for issuer (Organization that regulates and issues the qualification) - * - *

- * Definition: - * Organization that regulates and issues the qualification - *

- */ - public Qualification setIssuer(ResourceReferenceDt theValue) { - myIssuer = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Practitioner"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Procedure.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Procedure.java deleted file mode 100644 index 14068adfbad..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Procedure.java +++ /dev/null @@ -1,1688 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Procedure Resource - * (An action that is performed on a patient) - * - *

- * Definition: - * An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Procedure - *

- * - */ -@ResourceDef(name="Procedure", profile="http://hl7.org/fhir/profiles/Procedure", id="procedure") -public class Procedure - extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *

- * Description: Type of procedure
- * Type: token
- * Path: Procedure.type
- *

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

- * Description: Type of procedure
- * Type: token
- * Path: Procedure.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for subject - *

- * Description: The identity of a patient to list procedures for
- * Type: reference
- * Path: Procedure.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Procedure.subject", description="The identity of a patient to list procedures for", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The identity of a patient to list procedures for
- * Type: reference
- * Path: Procedure.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Procedure.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Procedure.subject"); - - /** - * Search parameter constant for date - *

- * Description: The date the procedure was performed on
- * Type: date
- * Path: Procedure.date
- *

- */ - @SearchParamDefinition(name="date", path="Procedure.date", description="The date the procedure was performed on", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: The date the procedure was performed on
- * Type: date
- * Path: Procedure.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this procedure", - formalDefinition="This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="subject", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Who procedure was performed on", - formalDefinition="The person on whom the procedure was performed" - ) - private ResourceReferenceDt mySubject; - - @Child(name="type", type=CodeableConceptDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Identification of the procedure", - formalDefinition="The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded" - ) - private CodeableConceptDt myType; - - @Child(name="bodySite", type=CodeableConceptDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Precise location details", - formalDefinition="Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion" - ) - private java.util.List myBodySite; - - @Child(name="indication", type=CodeableConceptDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Reason procedure performed", - formalDefinition="The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text" - ) - private java.util.List myIndication; - - @Child(name="performer", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="The people who performed the procedure", - formalDefinition="Limited to 'real' people rather than equipment" - ) - private java.util.List myPerformer; - - @Child(name="date", type=PeriodDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="The date the procedure was performed", - formalDefinition="The dates over which the procedure was performed. Allows a period to support complex procedures that span more that one date, and also allows for the length of the procedure to be captured." - ) - private PeriodDt myDate; - - @Child(name="encounter", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="The encounter when procedure performed", - formalDefinition="The encounter during which the procedure was performed" - ) - private ResourceReferenceDt myEncounter; - - @Child(name="outcome", type=StringDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="What was result of procedure?", - formalDefinition="What was the outcome of the procedure - did it resolve reasons why the procedure was performed?" - ) - private StringDt myOutcome; - - @Child(name="report", order=9, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.DiagnosticReport.class }) - @Description( - shortDefinition="Any report that results from the procedure", - formalDefinition="This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies" - ) - private java.util.List myReport; - - @Child(name="complication", type=CodeableConceptDt.class, order=10, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Complication following the procedure", - formalDefinition="Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues" - ) - private java.util.List myComplication; - - @Child(name="followUp", type=StringDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Instructions for follow up", - formalDefinition="If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used" - ) - private StringDt myFollowUp; - - @Child(name="relatedItem", order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A procedure that is related to this one", - formalDefinition="Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure" - ) - private java.util.List myRelatedItem; - - @Child(name="notes", type=StringDt.class, order=13, min=0, max=1) - @Description( - shortDefinition="Additional information about procedure", - formalDefinition="Any other notes about the procedure - e.g. the operative notes" - ) - private StringDt myNotes; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, mySubject, myType, myBodySite, myIndication, myPerformer, myDate, myEncounter, myOutcome, myReport, myComplication, myFollowUp, myRelatedItem, myNotes); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, mySubject, myType, myBodySite, myIndication, myPerformer, myDate, myEncounter, myOutcome, myReport, myComplication, myFollowUp, myRelatedItem, myNotes); - } - - /** - * Gets the value(s) for identifier (External Ids for this procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this procedure) - * - *

- * Definition: - * This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public Procedure setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this procedure) - * - *

- * Definition: - * This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this procedure), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this procedure) - * - *

- * Definition: - * This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Procedure addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this procedure) - * - *

- * Definition: - * This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Procedure addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for subject (Who procedure was performed on). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person on whom the procedure was performed - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Who procedure was performed on). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person on whom the procedure was performed - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Who procedure was performed on) - * - *

- * Definition: - * The person on whom the procedure was performed - *

- */ - public Procedure setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for type (Identification of the procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Identification of the procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Identification of the procedure) - * - *

- * Definition: - * The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded - *

- */ - public Procedure setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for bodySite (Precise location details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion - *

- */ - public java.util.List getBodySite() { - if (myBodySite == null) { - myBodySite = new java.util.ArrayList(); - } - return myBodySite; - } - - - /** - * Gets the value(s) for bodySite (Precise location details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion - *

- */ - public java.util.List getBodySiteElement() { - if (myBodySite == null) { - myBodySite = new java.util.ArrayList(); - } - return myBodySite; - } - - - /** - * Sets the value(s) for bodySite (Precise location details) - * - *

- * Definition: - * Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion - *

- */ - public Procedure setBodySite(java.util.List theValue) { - myBodySite = theValue; - return this; - } - - /** - * Adds and returns a new value for bodySite (Precise location details) - * - *

- * Definition: - * Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion - *

- */ - public CodeableConceptDt addBodySite() { - CodeableConceptDt newType = new CodeableConceptDt(); - getBodySite().add(newType); - return newType; - } - - /** - * Gets the first repetition for bodySite (Precise location details), - * creating it if it does not already exist. - * - *

- * Definition: - * Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion - *

- */ - public CodeableConceptDt getBodySiteFirstRep() { - if (getBodySite().isEmpty()) { - return addBodySite(); - } - return getBodySite().get(0); - } - - /** - * Gets the value(s) for indication (Reason procedure performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text - *

- */ - public java.util.List getIndication() { - if (myIndication == null) { - myIndication = new java.util.ArrayList(); - } - return myIndication; - } - - - /** - * Gets the value(s) for indication (Reason procedure performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text - *

- */ - public java.util.List getIndicationElement() { - if (myIndication == null) { - myIndication = new java.util.ArrayList(); - } - return myIndication; - } - - - /** - * Sets the value(s) for indication (Reason procedure performed) - * - *

- * Definition: - * The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text - *

- */ - public Procedure setIndication(java.util.List theValue) { - myIndication = theValue; - return this; - } - - /** - * Adds and returns a new value for indication (Reason procedure performed) - * - *

- * Definition: - * The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text - *

- */ - public CodeableConceptDt addIndication() { - CodeableConceptDt newType = new CodeableConceptDt(); - getIndication().add(newType); - return newType; - } - - /** - * Gets the first repetition for indication (Reason procedure performed), - * creating it if it does not already exist. - * - *

- * Definition: - * The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text - *

- */ - public CodeableConceptDt getIndicationFirstRep() { - if (getIndication().isEmpty()) { - return addIndication(); - } - return getIndication().get(0); - } - - /** - * Gets the value(s) for performer (The people who performed the procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Limited to 'real' people rather than equipment - *

- */ - public java.util.List getPerformer() { - if (myPerformer == null) { - myPerformer = new java.util.ArrayList(); - } - return myPerformer; - } - - - /** - * Gets the value(s) for performer (The people who performed the procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Limited to 'real' people rather than equipment - *

- */ - public java.util.List getPerformerElement() { - if (myPerformer == null) { - myPerformer = new java.util.ArrayList(); - } - return myPerformer; - } - - - /** - * Sets the value(s) for performer (The people who performed the procedure) - * - *

- * Definition: - * Limited to 'real' people rather than equipment - *

- */ - public Procedure setPerformer(java.util.List theValue) { - myPerformer = theValue; - return this; - } - - /** - * Adds and returns a new value for performer (The people who performed the procedure) - * - *

- * Definition: - * Limited to 'real' people rather than equipment - *

- */ - public Performer addPerformer() { - Performer newType = new Performer(); - getPerformer().add(newType); - return newType; - } - - /** - * Gets the first repetition for performer (The people who performed the procedure), - * creating it if it does not already exist. - * - *

- * Definition: - * Limited to 'real' people rather than equipment - *

- */ - public Performer getPerformerFirstRep() { - if (getPerformer().isEmpty()) { - return addPerformer(); - } - return getPerformer().get(0); - } - - /** - * Gets the value(s) for date (The date the procedure was performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The dates over which the procedure was performed. Allows a period to support complex procedures that span more that one date, and also allows for the length of the procedure to be captured. - *

- */ - public PeriodDt getDate() { - if (myDate == null) { - myDate = new PeriodDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (The date the procedure was performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The dates over which the procedure was performed. Allows a period to support complex procedures that span more that one date, and also allows for the length of the procedure to be captured. - *

- */ - public PeriodDt getDateElement() { - if (myDate == null) { - myDate = new PeriodDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (The date the procedure was performed) - * - *

- * Definition: - * The dates over which the procedure was performed. Allows a period to support complex procedures that span more that one date, and also allows for the length of the procedure to be captured. - *

- */ - public Procedure setDate(PeriodDt theValue) { - myDate = theValue; - return this; - } - - - /** - * Gets the value(s) for encounter (The encounter when procedure performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The encounter during which the procedure was performed - *

- */ - public ResourceReferenceDt getEncounter() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Gets the value(s) for encounter (The encounter when procedure performed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The encounter during which the procedure was performed - *

- */ - public ResourceReferenceDt getEncounterElement() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Sets the value(s) for encounter (The encounter when procedure performed) - * - *

- * Definition: - * The encounter during which the procedure was performed - *

- */ - public Procedure setEncounter(ResourceReferenceDt theValue) { - myEncounter = theValue; - return this; - } - - - /** - * Gets the value(s) for outcome (What was result of procedure?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * What was the outcome of the procedure - did it resolve reasons why the procedure was performed? - *

- */ - public StringDt getOutcome() { - if (myOutcome == null) { - myOutcome = new StringDt(); - } - return myOutcome; - } - - - /** - * Gets the value(s) for outcome (What was result of procedure?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * What was the outcome of the procedure - did it resolve reasons why the procedure was performed? - *

- */ - public StringDt getOutcomeElement() { - if (myOutcome == null) { - myOutcome = new StringDt(); - } - return myOutcome; - } - - - /** - * Sets the value(s) for outcome (What was result of procedure?) - * - *

- * Definition: - * What was the outcome of the procedure - did it resolve reasons why the procedure was performed? - *

- */ - public Procedure setOutcome(StringDt theValue) { - myOutcome = theValue; - return this; - } - - /** - * Sets the value for outcome (What was result of procedure?) - * - *

- * Definition: - * What was the outcome of the procedure - did it resolve reasons why the procedure was performed? - *

- */ - public Procedure setOutcome( String theString) { - myOutcome = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for report (Any report that results from the procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies - *

- */ - public java.util.List getReport() { - if (myReport == null) { - myReport = new java.util.ArrayList(); - } - return myReport; - } - - - /** - * Gets the value(s) for report (Any report that results from the procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies - *

- */ - public java.util.List getReportElement() { - if (myReport == null) { - myReport = new java.util.ArrayList(); - } - return myReport; - } - - - /** - * Sets the value(s) for report (Any report that results from the procedure) - * - *

- * Definition: - * This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies - *

- */ - public Procedure setReport(java.util.List theValue) { - myReport = theValue; - return this; - } - - /** - * Adds and returns a new value for report (Any report that results from the procedure) - * - *

- * Definition: - * This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies - *

- */ - public ResourceReferenceDt addReport() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getReport().add(newType); - return newType; - } - - /** - * Gets the value(s) for complication (Complication following the procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues - *

- */ - public java.util.List getComplication() { - if (myComplication == null) { - myComplication = new java.util.ArrayList(); - } - return myComplication; - } - - - /** - * Gets the value(s) for complication (Complication following the procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues - *

- */ - public java.util.List getComplicationElement() { - if (myComplication == null) { - myComplication = new java.util.ArrayList(); - } - return myComplication; - } - - - /** - * Sets the value(s) for complication (Complication following the procedure) - * - *

- * Definition: - * Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues - *

- */ - public Procedure setComplication(java.util.List theValue) { - myComplication = theValue; - return this; - } - - /** - * Adds and returns a new value for complication (Complication following the procedure) - * - *

- * Definition: - * Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues - *

- */ - public CodeableConceptDt addComplication() { - CodeableConceptDt newType = new CodeableConceptDt(); - getComplication().add(newType); - return newType; - } - - /** - * Gets the first repetition for complication (Complication following the procedure), - * creating it if it does not already exist. - * - *

- * Definition: - * Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues - *

- */ - public CodeableConceptDt getComplicationFirstRep() { - if (getComplication().isEmpty()) { - return addComplication(); - } - return getComplication().get(0); - } - - /** - * Gets the value(s) for followUp (Instructions for follow up). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used - *

- */ - public StringDt getFollowUp() { - if (myFollowUp == null) { - myFollowUp = new StringDt(); - } - return myFollowUp; - } - - - /** - * Gets the value(s) for followUp (Instructions for follow up). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used - *

- */ - public StringDt getFollowUpElement() { - if (myFollowUp == null) { - myFollowUp = new StringDt(); - } - return myFollowUp; - } - - - /** - * Sets the value(s) for followUp (Instructions for follow up) - * - *

- * Definition: - * If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used - *

- */ - public Procedure setFollowUp(StringDt theValue) { - myFollowUp = theValue; - return this; - } - - /** - * Sets the value for followUp (Instructions for follow up) - * - *

- * Definition: - * If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used - *

- */ - public Procedure setFollowUp( String theString) { - myFollowUp = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for relatedItem (A procedure that is related to this one). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure - *

- */ - public java.util.List getRelatedItem() { - if (myRelatedItem == null) { - myRelatedItem = new java.util.ArrayList(); - } - return myRelatedItem; - } - - - /** - * Gets the value(s) for relatedItem (A procedure that is related to this one). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure - *

- */ - public java.util.List getRelatedItemElement() { - if (myRelatedItem == null) { - myRelatedItem = new java.util.ArrayList(); - } - return myRelatedItem; - } - - - /** - * Sets the value(s) for relatedItem (A procedure that is related to this one) - * - *

- * Definition: - * Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure - *

- */ - public Procedure setRelatedItem(java.util.List theValue) { - myRelatedItem = theValue; - return this; - } - - /** - * Adds and returns a new value for relatedItem (A procedure that is related to this one) - * - *

- * Definition: - * Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure - *

- */ - public RelatedItem addRelatedItem() { - RelatedItem newType = new RelatedItem(); - getRelatedItem().add(newType); - return newType; - } - - /** - * Gets the first repetition for relatedItem (A procedure that is related to this one), - * creating it if it does not already exist. - * - *

- * Definition: - * Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure - *

- */ - public RelatedItem getRelatedItemFirstRep() { - if (getRelatedItem().isEmpty()) { - return addRelatedItem(); - } - return getRelatedItem().get(0); - } - - /** - * Gets the value(s) for notes (Additional information about procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Any other notes about the procedure - e.g. the operative notes - *

- */ - public StringDt getNotes() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Gets the value(s) for notes (Additional information about procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Any other notes about the procedure - e.g. the operative notes - *

- */ - public StringDt getNotesElement() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - - /** - * Sets the value(s) for notes (Additional information about procedure) - * - *

- * Definition: - * Any other notes about the procedure - e.g. the operative notes - *

- */ - public Procedure setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - /** - * Sets the value for notes (Additional information about procedure) - * - *

- * Definition: - * Any other notes about the procedure - e.g. the operative notes - *

- */ - public Procedure setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Block class for child element: Procedure.performer (The people who performed the procedure) - * - *

- * Definition: - * Limited to 'real' people rather than equipment - *

- */ - @Block() - public static class Performer - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="person", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="The reference to the practitioner", - formalDefinition="The practitioner who was involved in the procedure" - ) - private ResourceReferenceDt myPerson; - - @Child(name="role", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="The role the person was in", - formalDefinition="E.g. surgeon, anaethetist, endoscopist" - ) - private CodeableConceptDt myRole; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPerson, myRole); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPerson, myRole); - } - - /** - * Gets the value(s) for person (The reference to the practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The practitioner who was involved in the procedure - *

- */ - public ResourceReferenceDt getPerson() { - if (myPerson == null) { - myPerson = new ResourceReferenceDt(); - } - return myPerson; - } - - - /** - * Gets the value(s) for person (The reference to the practitioner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The practitioner who was involved in the procedure - *

- */ - public ResourceReferenceDt getPersonElement() { - if (myPerson == null) { - myPerson = new ResourceReferenceDt(); - } - return myPerson; - } - - - /** - * Sets the value(s) for person (The reference to the practitioner) - * - *

- * Definition: - * The practitioner who was involved in the procedure - *

- */ - public Performer setPerson(ResourceReferenceDt theValue) { - myPerson = theValue; - return this; - } - - - /** - * Gets the value(s) for role (The role the person was in). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * E.g. surgeon, anaethetist, endoscopist - *

- */ - public CodeableConceptDt getRole() { - if (myRole == null) { - myRole = new CodeableConceptDt(); - } - return myRole; - } - - - /** - * Gets the value(s) for role (The role the person was in). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * E.g. surgeon, anaethetist, endoscopist - *

- */ - public CodeableConceptDt getRoleElement() { - if (myRole == null) { - myRole = new CodeableConceptDt(); - } - return myRole; - } - - - /** - * Sets the value(s) for role (The role the person was in) - * - *

- * Definition: - * E.g. surgeon, anaethetist, endoscopist - *

- */ - public Performer setRole(CodeableConceptDt theValue) { - myRole = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Procedure.relatedItem (A procedure that is related to this one) - * - *

- * Definition: - * Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure - *

- */ - @Block() - public static class RelatedItem - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="caused-by | because-of", - formalDefinition="The nature of the relationship" - ) - private BoundCodeDt myType; - - @Child(name="target", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.AdverseReaction.class, ca.uhn.fhir.model.dstu.resource.AllergyIntolerance.class, ca.uhn.fhir.model.dstu.resource.CarePlan.class, ca.uhn.fhir.model.dstu.resource.Condition.class, ca.uhn.fhir.model.dstu.resource.DeviceObservationReport.class, ca.uhn.fhir.model.dstu.resource.DiagnosticReport.class, ca.uhn.fhir.model.dstu.resource.FamilyHistory.class, ca.uhn.fhir.model.dstu.resource.ImagingStudy.class, ca.uhn.fhir.model.dstu.resource.Immunization.class, ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation.class, ca.uhn.fhir.model.dstu.resource.MedicationAdministration.class, ca.uhn.fhir.model.dstu.resource.MedicationDispense.class, ca.uhn.fhir.model.dstu.resource.MedicationPrescription.class, ca.uhn.fhir.model.dstu.resource.MedicationStatement.class, ca.uhn.fhir.model.dstu.resource.Observation.class, ca.uhn.fhir.model.dstu.resource.Procedure.class }) - @Description( - shortDefinition="The related item - e.g. a procedure", - formalDefinition="" - ) - private ResourceReferenceDt myTarget; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myTarget); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myTarget); - } - - /** - * Gets the value(s) for type (caused-by | because-of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The nature of the relationship - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(ProcedureRelationshipTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (caused-by | because-of). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The nature of the relationship - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(ProcedureRelationshipTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (caused-by | because-of) - * - *

- * Definition: - * The nature of the relationship - *

- */ - public RelatedItem setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (caused-by | because-of) - * - *

- * Definition: - * The nature of the relationship - *

- */ - public RelatedItem setType(ProcedureRelationshipTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for target (The related item - e.g. a procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getTarget() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (The related item - e.g. a procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getTargetElement() { - if (myTarget == null) { - myTarget = new ResourceReferenceDt(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (The related item - e.g. a procedure) - * - *

- * Definition: - * - *

- */ - public RelatedItem setTarget(ResourceReferenceDt theValue) { - myTarget = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Procedure"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Profile.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Profile.java deleted file mode 100644 index 9725c6bb849..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Profile.java +++ /dev/null @@ -1,6799 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Profile Resource - * (Resource Profile) - * - *

- * Definition: - * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Profile - *

- * - */ -@ResourceDef(name="Profile", profile="http://hl7.org/fhir/profiles/Profile", id="profile") -public class Profile - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the profile
- * Type: token
- * Path: Profile.identifier
- *

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

- * Description: The identifier of the profile
- * Type: token
- * Path: Profile.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the profile
- * Type: token
- * Path: Profile.version
- *

- */ - @SearchParamDefinition(name="version", path="Profile.version", description="The version identifier of the profile", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the profile
- * Type: token
- * Path: Profile.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: Name of the profile
- * Type: string
- * Path: Profile.name
- *

- */ - @SearchParamDefinition(name="name", path="Profile.name", description="Name of the profile", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: Name of the profile
- * Type: string
- * Path: Profile.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the profile
- * Type: string
- * Path: Profile.publisher
- *

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

- * Description: Name of the publisher of the profile
- * Type: string
- * Path: Profile.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the profile
- * Type: string
- * Path: Profile.description
- *

- */ - @SearchParamDefinition(name="description", path="Profile.description", description="Text search in the description of the profile", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the profile
- * Type: string
- * Path: Profile.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: The current status of the profile
- * Type: token
- * Path: Profile.status
- *

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

- * Description: The current status of the profile
- * Type: token
- * Path: Profile.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The profile publication date
- * Type: date
- * Path: Profile.date
- *

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

- * Description: The profile publication date
- * Type: date
- * Path: Profile.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for code - *

- * Description: A code for the profile in the format uri::code (server may choose to do subsumption)
- * Type: token
- * Path: Profile.code
- *

- */ - @SearchParamDefinition(name="code", path="Profile.code", description="A code for the profile in the format uri::code (server may choose to do subsumption)", type="token" ) - public static final String SP_CODE = "code"; - - /** - * Fluent Client search parameter constant for code - *

- * Description: A code for the profile in the format uri::code (server may choose to do subsumption)
- * Type: token
- * Path: Profile.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for extension - *

- * Description: An extension code (use or definition)
- * Type: token
- * Path: Profile.extensionDefn.code
- *

- */ - @SearchParamDefinition(name="extension", path="Profile.extensionDefn.code", description="An extension code (use or definition)", type="token" ) - public static final String SP_EXTENSION = "extension"; - - /** - * Fluent Client search parameter constant for extension - *

- * Description: An extension code (use or definition)
- * Type: token
- * Path: Profile.extensionDefn.code
- *

- */ - public static final TokenClientParam EXTENSION = new TokenClientParam(SP_EXTENSION); - - /** - * Search parameter constant for valueset - *

- * Description: A vocabulary binding code
- * Type: reference
- * Path: Profile.structure.element.definition.binding.reference[x]
- *

- */ - @SearchParamDefinition(name="valueset", path="Profile.structure.element.definition.binding.reference[x]", description="A vocabulary binding code", type="reference" ) - public static final String SP_VALUESET = "valueset"; - - /** - * Fluent Client search parameter constant for valueset - *

- * Description: A vocabulary binding code
- * Type: reference
- * Path: Profile.structure.element.definition.binding.reference[x]
- *

- */ - public static final ReferenceClientParam VALUESET = new ReferenceClientParam(SP_VALUESET); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Profile.structure.element.definition.binding.reference[x]". - */ - public static final Include INCLUDE_STRUCTURE_ELEMENT_DEFINITION_BINDING_REFERENCE = new Include("Profile.structure.element.definition.binding.reference[x]"); - - /** - * Search parameter constant for type - *

- * Description: Type of resource that is constrained in the profile
- * Type: token
- * Path: Profile.structure.type
- *

- */ - @SearchParamDefinition(name="type", path="Profile.structure.type", description="Type of resource that is constrained in the profile", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: Type of resource that is constrained in the profile
- * Type: token
- * Path: Profile.structure.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - - @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Logical id to reference this profile", - formalDefinition="The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" - ) - private StringDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Logical id for this version of the profile", - formalDefinition="The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" - ) - private StringDt myVersion; - - @Child(name="name", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Informal name for this profile", - formalDefinition="A free text natural language name identifying the Profile" - ) - private StringDt myName; - - @Child(name="publisher", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Name of the publisher (Organization or individual)", - formalDefinition="Details of the individual or organization who accepts responsibility for publishing the profile" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Contact information of the publisher", - formalDefinition="Contact details to assist a user in finding and communicating with the publisher" - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Natural language description of the profile", - formalDefinition="A free text natural language description of the profile and its use" - ) - private StringDt myDescription; - - @Child(name="code", type=CodingDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Assist with indexing and finding", - formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates." - ) - private java.util.List myCode; - - @Child(name="status", type=CodeDt.class, order=7, min=1, max=1) - @Description( - shortDefinition="draft | active | retired", - formalDefinition="The status of the profile" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="If for testing purposes, not real usage", - formalDefinition="This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="date", type=DateTimeDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Date for this version of the profile", - formalDefinition="The date that this version of the profile was published" - ) - private DateTimeDt myDate; - - @Child(name="requirements", type=StringDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Scope and Usage this profile is for", - formalDefinition="The Scope and Usage that this profile was created to meet" - ) - private StringDt myRequirements; - - @Child(name="fhirVersion", type=IdDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="FHIR Version this profile targets", - formalDefinition="The version of the FHIR specification on which this profile is based" - ) - private IdDt myFhirVersion; - - @Child(name="mapping", order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External specification that the content is mapped to", - formalDefinition="An external specification that the content is mapped to" - ) - private java.util.List myMapping; - - @Child(name="structure", order=13, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A constraint on a resource or a data type", - formalDefinition="A constraint statement about what contents a resource or data type may have" - ) - private java.util.List myStructure; - - @Child(name="extensionDefn", order=14, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Definition of an extension", - formalDefinition="An extension defined as part of the profile" - ) - private java.util.List myExtensionDefn; - - @Child(name="query", order=15, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Definition of a named query", - formalDefinition="Definition of a named query and its parameters and their meaning" - ) - private java.util.List myQuery; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myRequirements, myFhirVersion, myMapping, myStructure, myExtensionDefn, myQuery); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myRequirements, myFhirVersion, myMapping, myStructure, myExtensionDefn, myQuery); - } - - /** - * Gets the value(s) for identifier (Logical id to reference this profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Logical id to reference this profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Logical id to reference this profile) - * - *

- * Definition: - * The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public Profile setIdentifier(StringDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Logical id to reference this profile) - * - *

- * Definition: - * The identifier that is used to identify this profile when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public Profile setIdentifier( String theString) { - myIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (Logical id for this version of the profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Logical id for this version of the profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Logical id for this version of the profile) - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public Profile setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Logical id for this version of the profile) - * - *

- * Definition: - * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public Profile setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (Informal name for this profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Informal name for this profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Informal name for this profile) - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public Profile setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Informal name for this profile) - * - *

- * Definition: - * A free text natural language name identifying the Profile - *

- */ - public Profile setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publisher (Name of the publisher (Organization or individual)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public StringDt getPublisher() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (Name of the publisher (Organization or individual)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Sets the value(s) for publisher (Name of the publisher (Organization or individual)) - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public Profile setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - /** - * Sets the value for publisher (Name of the publisher (Organization or individual)) - * - *

- * Definition: - * Details of the individual or organization who accepts responsibility for publishing the profile - *

- */ - public Profile setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (Contact information of the publisher). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (Contact information of the publisher). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public Profile setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (Contact information of the publisher), - * creating it if it does not already exist. - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Profile addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contact details to assist a user in finding and communicating with the publisher - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Profile addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for description (Natural language description of the profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Natural language description of the profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Natural language description of the profile) - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public Profile setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Natural language description of the profile) - * - *

- * Definition: - * A free text natural language description of the profile and its use - *

- */ - public Profile setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (Assist with indexing and finding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public java.util.List getCode() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Assist with indexing and finding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public java.util.List getCodeElement() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Assist with indexing and finding) - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public Profile setCode(java.util.List theValue) { - myCode = theValue; - return this; - } - - /** - * Adds and returns a new value for code (Assist with indexing and finding) - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public CodingDt addCode() { - CodingDt newType = new CodingDt(); - getCode().add(newType); - return newType; - } - - /** - * Gets the first repetition for code (Assist with indexing and finding), - * creating it if it does not already exist. - * - *

- * Definition: - * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. - *

- */ - public CodingDt getCodeFirstRep() { - if (getCode().isEmpty()) { - return addCode(); - } - return getCode().get(0); - } - - /** - * Gets the value(s) for status (draft | active | retired). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the profile - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ResourceProfileStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (draft | active | retired). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the profile - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ResourceProfileStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (draft | active | retired) - * - *

- * Definition: - * The status of the profile - *

- */ - public Profile setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (draft | active | retired) - * - *

- * Definition: - * The status of the profile - *

- */ - public Profile setStatus(ResourceProfileStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (If for testing purposes, not real usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimental() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (If for testing purposes, not real usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Sets the value(s) for experimental (If for testing purposes, not real usage) - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Profile setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - /** - * Sets the value for experimental (If for testing purposes, not real usage) - * - *

- * Definition: - * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Profile setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (Date for this version of the profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Date for this version of the profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Date for this version of the profile) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public Profile setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Date for this version of the profile) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public Profile setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Date for this version of the profile) - * - *

- * Definition: - * The date that this version of the profile was published - *

- */ - public Profile setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for requirements (Scope and Usage this profile is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Scope and Usage that this profile was created to meet - *

- */ - public StringDt getRequirements() { - if (myRequirements == null) { - myRequirements = new StringDt(); - } - return myRequirements; - } - - - /** - * Gets the value(s) for requirements (Scope and Usage this profile is for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Scope and Usage that this profile was created to meet - *

- */ - public StringDt getRequirementsElement() { - if (myRequirements == null) { - myRequirements = new StringDt(); - } - return myRequirements; - } - - - /** - * Sets the value(s) for requirements (Scope and Usage this profile is for) - * - *

- * Definition: - * The Scope and Usage that this profile was created to meet - *

- */ - public Profile setRequirements(StringDt theValue) { - myRequirements = theValue; - return this; - } - - /** - * Sets the value for requirements (Scope and Usage this profile is for) - * - *

- * Definition: - * The Scope and Usage that this profile was created to meet - *

- */ - public Profile setRequirements( String theString) { - myRequirements = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for fhirVersion (FHIR Version this profile targets). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the FHIR specification on which this profile is based - *

- */ - public IdDt getFhirVersion() { - if (myFhirVersion == null) { - myFhirVersion = new IdDt(); - } - return myFhirVersion; - } - - - /** - * Gets the value(s) for fhirVersion (FHIR Version this profile targets). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the FHIR specification on which this profile is based - *

- */ - public IdDt getFhirVersionElement() { - if (myFhirVersion == null) { - myFhirVersion = new IdDt(); - } - return myFhirVersion; - } - - - /** - * Sets the value(s) for fhirVersion (FHIR Version this profile targets) - * - *

- * Definition: - * The version of the FHIR specification on which this profile is based - *

- */ - public Profile setFhirVersion(IdDt theValue) { - myFhirVersion = theValue; - return this; - } - - /** - * Sets the value for fhirVersion (FHIR Version this profile targets) - * - *

- * Definition: - * The version of the FHIR specification on which this profile is based - *

- */ - public Profile setFhirVersion( String theId) { - myFhirVersion = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for mapping (External specification that the content is mapped to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public java.util.List getMapping() { - if (myMapping == null) { - myMapping = new java.util.ArrayList(); - } - return myMapping; - } - - - /** - * Gets the value(s) for mapping (External specification that the content is mapped to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public java.util.List getMappingElement() { - if (myMapping == null) { - myMapping = new java.util.ArrayList(); - } - return myMapping; - } - - - /** - * Sets the value(s) for mapping (External specification that the content is mapped to) - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public Profile setMapping(java.util.List theValue) { - myMapping = theValue; - return this; - } - - /** - * Adds and returns a new value for mapping (External specification that the content is mapped to) - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public Mapping addMapping() { - Mapping newType = new Mapping(); - getMapping().add(newType); - return newType; - } - - /** - * Gets the first repetition for mapping (External specification that the content is mapped to), - * creating it if it does not already exist. - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - public Mapping getMappingFirstRep() { - if (getMapping().isEmpty()) { - return addMapping(); - } - return getMapping().get(0); - } - - /** - * Gets the value(s) for structure (A constraint on a resource or a data type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A constraint statement about what contents a resource or data type may have - *

- */ - public java.util.List getStructure() { - if (myStructure == null) { - myStructure = new java.util.ArrayList(); - } - return myStructure; - } - - - /** - * Gets the value(s) for structure (A constraint on a resource or a data type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A constraint statement about what contents a resource or data type may have - *

- */ - public java.util.List getStructureElement() { - if (myStructure == null) { - myStructure = new java.util.ArrayList(); - } - return myStructure; - } - - - /** - * Sets the value(s) for structure (A constraint on a resource or a data type) - * - *

- * Definition: - * A constraint statement about what contents a resource or data type may have - *

- */ - public Profile setStructure(java.util.List theValue) { - myStructure = theValue; - return this; - } - - /** - * Adds and returns a new value for structure (A constraint on a resource or a data type) - * - *

- * Definition: - * A constraint statement about what contents a resource or data type may have - *

- */ - public Structure addStructure() { - Structure newType = new Structure(); - getStructure().add(newType); - return newType; - } - - /** - * Gets the first repetition for structure (A constraint on a resource or a data type), - * creating it if it does not already exist. - * - *

- * Definition: - * A constraint statement about what contents a resource or data type may have - *

- */ - public Structure getStructureFirstRep() { - if (getStructure().isEmpty()) { - return addStructure(); - } - return getStructure().get(0); - } - - /** - * Gets the value(s) for extensionDefn (Definition of an extension). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An extension defined as part of the profile - *

- */ - public java.util.List getExtensionDefn() { - if (myExtensionDefn == null) { - myExtensionDefn = new java.util.ArrayList(); - } - return myExtensionDefn; - } - - - /** - * Gets the value(s) for extensionDefn (Definition of an extension). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An extension defined as part of the profile - *

- */ - public java.util.List getExtensionDefnElement() { - if (myExtensionDefn == null) { - myExtensionDefn = new java.util.ArrayList(); - } - return myExtensionDefn; - } - - - /** - * Sets the value(s) for extensionDefn (Definition of an extension) - * - *

- * Definition: - * An extension defined as part of the profile - *

- */ - public Profile setExtensionDefn(java.util.List theValue) { - myExtensionDefn = theValue; - return this; - } - - /** - * Adds and returns a new value for extensionDefn (Definition of an extension) - * - *

- * Definition: - * An extension defined as part of the profile - *

- */ - public ExtensionDefn addExtensionDefn() { - ExtensionDefn newType = new ExtensionDefn(); - getExtensionDefn().add(newType); - return newType; - } - - /** - * Gets the first repetition for extensionDefn (Definition of an extension), - * creating it if it does not already exist. - * - *

- * Definition: - * An extension defined as part of the profile - *

- */ - public ExtensionDefn getExtensionDefnFirstRep() { - if (getExtensionDefn().isEmpty()) { - return addExtensionDefn(); - } - return getExtensionDefn().get(0); - } - - /** - * Gets the value(s) for query (Definition of a named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public java.util.List getQuery() { - if (myQuery == null) { - myQuery = new java.util.ArrayList(); - } - return myQuery; - } - - - /** - * Gets the value(s) for query (Definition of a named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public java.util.List getQueryElement() { - if (myQuery == null) { - myQuery = new java.util.ArrayList(); - } - return myQuery; - } - - - /** - * Sets the value(s) for query (Definition of a named query) - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public Profile setQuery(java.util.List theValue) { - myQuery = theValue; - return this; - } - - /** - * Adds and returns a new value for query (Definition of a named query) - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public Query addQuery() { - Query newType = new Query(); - getQuery().add(newType); - return newType; - } - - /** - * Gets the first repetition for query (Definition of a named query), - * creating it if it does not already exist. - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - public Query getQueryFirstRep() { - if (getQuery().isEmpty()) { - return addQuery(); - } - return getQuery().get(0); - } - - /** - * Block class for child element: Profile.mapping (External specification that the content is mapped to) - * - *

- * Definition: - * An external specification that the content is mapped to - *

- */ - @Block() - public static class Mapping - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identity", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Internal id when this mapping is used", - formalDefinition="An Internal id that is used to identify this mapping set when specific mappings are made" - ) - private IdDt myIdentity; - - @Child(name="uri", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Identifies what this mapping refers to", - formalDefinition="A URI that identifies the specification that this mapping is expressed to" - ) - private UriDt myUri; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Names what this mapping refers to", - formalDefinition="A name for the specification that is being mapped to" - ) - private StringDt myName; - - @Child(name="comments", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Versions, Issues, Scope limitations etc", - formalDefinition="Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage" - ) - private StringDt myComments; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myUri, myName, myComments); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myUri, myName, myComments); - } - - /** - * Gets the value(s) for identity (Internal id when this mapping is used). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An Internal id that is used to identify this mapping set when specific mappings are made - *

- */ - public IdDt getIdentity() { - if (myIdentity == null) { - myIdentity = new IdDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (Internal id when this mapping is used). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An Internal id that is used to identify this mapping set when specific mappings are made - *

- */ - public IdDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new IdDt(); - } - return myIdentity; - } - - - /** - * Sets the value(s) for identity (Internal id when this mapping is used) - * - *

- * Definition: - * An Internal id that is used to identify this mapping set when specific mappings are made - *

- */ - public Mapping setIdentity(IdDt theValue) { - myIdentity = theValue; - return this; - } - - /** - * Sets the value for identity (Internal id when this mapping is used) - * - *

- * Definition: - * An Internal id that is used to identify this mapping set when specific mappings are made - *

- */ - public Mapping setIdentity( String theId) { - myIdentity = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for uri (Identifies what this mapping refers to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public UriDt getUri() { - if (myUri == null) { - myUri = new UriDt(); - } - return myUri; - } - - - /** - * Gets the value(s) for uri (Identifies what this mapping refers to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public UriDt getUriElement() { - if (myUri == null) { - myUri = new UriDt(); - } - return myUri; - } - - - /** - * Sets the value(s) for uri (Identifies what this mapping refers to) - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public Mapping setUri(UriDt theValue) { - myUri = theValue; - return this; - } - - /** - * Sets the value for uri (Identifies what this mapping refers to) - * - *

- * Definition: - * A URI that identifies the specification that this mapping is expressed to - *

- */ - public Mapping setUri( String theUri) { - myUri = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for name (Names what this mapping refers to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Names what this mapping refers to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Names what this mapping refers to) - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public Mapping setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Names what this mapping refers to) - * - *

- * Definition: - * A name for the specification that is being mapped to - *

- */ - public Mapping setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for comments (Versions, Issues, Scope limitations etc). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public StringDt getComments() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (Versions, Issues, Scope limitations etc). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Sets the value(s) for comments (Versions, Issues, Scope limitations etc) - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public Mapping setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - /** - * Sets the value for comments (Versions, Issues, Scope limitations etc) - * - *

- * Definition: - * Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage - *

- */ - public Mapping setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Profile.structure (A constraint on a resource or a data type) - * - *

- * Definition: - * A constraint statement about what contents a resource or data type may have - *

- */ - @Block() - public static class Structure - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="The Resource or Data Type being described", - formalDefinition="The Resource or Data type being described" - ) - private BoundCodeDt myType; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Name for this particular structure (reference target)", - formalDefinition="The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile)" - ) - private StringDt myName; - - @Child(name="publish", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="This definition is published (i.e. for validation)", - formalDefinition="This definition of a profile on a structure is published as a formal statement. Some structural definitions might be defined purely for internal use within the profile, and not intended to be used outside that context" - ) - private BooleanDt myPublish; - - @Child(name="purpose", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Human summary: why describe this resource?", - formalDefinition="Human summary: why describe this resource?" - ) - private StringDt myPurpose; - - @Child(name="element", order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Definition of elements in the resource (if no profile)", - formalDefinition="Captures constraints on each element within the resource" - ) - private java.util.List myElement; - - @Child(name="searchParam", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Search params defined", - formalDefinition="Additional search parameters for implementations to support and/or make use of" - ) - private java.util.List mySearchParam; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myName, myPublish, myPurpose, myElement, mySearchParam); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myName, myPublish, myPurpose, myElement, mySearchParam); - } - - /** - * Gets the value(s) for type (The Resource or Data Type being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Resource or Data type being described - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(FHIRDefinedTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (The Resource or Data Type being described). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Resource or Data type being described - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(FHIRDefinedTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (The Resource or Data Type being described) - * - *

- * Definition: - * The Resource or Data type being described - *

- */ - public Structure setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (The Resource or Data Type being described) - * - *

- * Definition: - * The Resource or Data type being described - *

- */ - public Structure setType(FHIRDefinedTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for name (Name for this particular structure (reference target)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile) - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name for this particular structure (reference target)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile) - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name for this particular structure (reference target)) - * - *

- * Definition: - * The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile) - *

- */ - public Structure setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name for this particular structure (reference target)) - * - *

- * Definition: - * The name of this resource constraint statement (to refer to it from other resource constraints - from Profile.structure.element.definition.type.profile) - *

- */ - public Structure setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publish (This definition is published (i.e. for validation)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This definition of a profile on a structure is published as a formal statement. Some structural definitions might be defined purely for internal use within the profile, and not intended to be used outside that context - *

- */ - public BooleanDt getPublish() { - if (myPublish == null) { - myPublish = new BooleanDt(); - } - return myPublish; - } - - - /** - * Gets the value(s) for publish (This definition is published (i.e. for validation)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This definition of a profile on a structure is published as a formal statement. Some structural definitions might be defined purely for internal use within the profile, and not intended to be used outside that context - *

- */ - public BooleanDt getPublishElement() { - if (myPublish == null) { - myPublish = new BooleanDt(); - } - return myPublish; - } - - - /** - * Sets the value(s) for publish (This definition is published (i.e. for validation)) - * - *

- * Definition: - * This definition of a profile on a structure is published as a formal statement. Some structural definitions might be defined purely for internal use within the profile, and not intended to be used outside that context - *

- */ - public Structure setPublish(BooleanDt theValue) { - myPublish = theValue; - return this; - } - - /** - * Sets the value for publish (This definition is published (i.e. for validation)) - * - *

- * Definition: - * This definition of a profile on a structure is published as a formal statement. Some structural definitions might be defined purely for internal use within the profile, and not intended to be used outside that context - *

- */ - public Structure setPublish( boolean theBoolean) { - myPublish = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for purpose (Human summary: why describe this resource?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human summary: why describe this resource? - *

- */ - public StringDt getPurpose() { - if (myPurpose == null) { - myPurpose = new StringDt(); - } - return myPurpose; - } - - - /** - * Gets the value(s) for purpose (Human summary: why describe this resource?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human summary: why describe this resource? - *

- */ - public StringDt getPurposeElement() { - if (myPurpose == null) { - myPurpose = new StringDt(); - } - return myPurpose; - } - - - /** - * Sets the value(s) for purpose (Human summary: why describe this resource?) - * - *

- * Definition: - * Human summary: why describe this resource? - *

- */ - public Structure setPurpose(StringDt theValue) { - myPurpose = theValue; - return this; - } - - /** - * Sets the value for purpose (Human summary: why describe this resource?) - * - *

- * Definition: - * Human summary: why describe this resource? - *

- */ - public Structure setPurpose( String theString) { - myPurpose = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for element (Definition of elements in the resource (if no profile)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public java.util.List getElement() { - if (myElement == null) { - myElement = new java.util.ArrayList(); - } - return myElement; - } - - - /** - * Gets the value(s) for element (Definition of elements in the resource (if no profile)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public java.util.List getElementElement() { - if (myElement == null) { - myElement = new java.util.ArrayList(); - } - return myElement; - } - - - /** - * Sets the value(s) for element (Definition of elements in the resource (if no profile)) - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public Structure setElement(java.util.List theValue) { - myElement = theValue; - return this; - } - - /** - * Adds and returns a new value for element (Definition of elements in the resource (if no profile)) - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public StructureElement addElement() { - StructureElement newType = new StructureElement(); - getElement().add(newType); - return newType; - } - - /** - * Gets the first repetition for element (Definition of elements in the resource (if no profile)), - * creating it if it does not already exist. - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - public StructureElement getElementFirstRep() { - if (getElement().isEmpty()) { - return addElement(); - } - return getElement().get(0); - } - - /** - * Gets the value(s) for searchParam (Search params defined). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public java.util.List getSearchParam() { - if (mySearchParam == null) { - mySearchParam = new java.util.ArrayList(); - } - return mySearchParam; - } - - - /** - * Gets the value(s) for searchParam (Search params defined). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public java.util.List getSearchParamElement() { - if (mySearchParam == null) { - mySearchParam = new java.util.ArrayList(); - } - return mySearchParam; - } - - - /** - * Sets the value(s) for searchParam (Search params defined) - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public Structure setSearchParam(java.util.List theValue) { - mySearchParam = theValue; - return this; - } - - /** - * Adds and returns a new value for searchParam (Search params defined) - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public StructureSearchParam addSearchParam() { - StructureSearchParam newType = new StructureSearchParam(); - getSearchParam().add(newType); - return newType; - } - - /** - * Gets the first repetition for searchParam (Search params defined), - * creating it if it does not already exist. - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - public StructureSearchParam getSearchParamFirstRep() { - if (getSearchParam().isEmpty()) { - return addSearchParam(); - } - return getSearchParam().get(0); - } - - - } - - /** - * Block class for child element: Profile.structure.element (Definition of elements in the resource (if no profile)) - * - *

- * Definition: - * Captures constraints on each element within the resource - *

- */ - @Block() - public static class StructureElement - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="path", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="The path of the element (see the formal definitions)", - formalDefinition="The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource" - ) - private StringDt myPath; - - @Child(name="representation", type=CodeDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="How this element is represented in instances", - formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case" - ) - private java.util.List> myRepresentation; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Name for this particular element definition (reference target)", - formalDefinition="The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element" - ) - private StringDt myName; - - @Child(name="slicing", order=3, min=0, max=1) - @Description( - shortDefinition="This element is sliced - slices follow", - formalDefinition="Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)" - ) - private StructureElementSlicing mySlicing; - - @Child(name="definition", order=4, min=0, max=1) - @Description( - shortDefinition="More specific definition of the element", - formalDefinition="Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource" - ) - private StructureElementDefinition myDefinition; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPath, myRepresentation, myName, mySlicing, myDefinition); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPath, myRepresentation, myName, mySlicing, myDefinition); - } - - /** - * Gets the value(s) for path (The path of the element (see the formal definitions)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource - *

- */ - public StringDt getPath() { - if (myPath == null) { - myPath = new StringDt(); - } - return myPath; - } - - - /** - * Gets the value(s) for path (The path of the element (see the formal definitions)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource - *

- */ - public StringDt getPathElement() { - if (myPath == null) { - myPath = new StringDt(); - } - return myPath; - } - - - /** - * Sets the value(s) for path (The path of the element (see the formal definitions)) - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource - *

- */ - public StructureElement setPath(StringDt theValue) { - myPath = theValue; - return this; - } - - /** - * Sets the value for path (The path of the element (see the formal definitions)) - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource - *

- */ - public StructureElement setPath( String theString) { - myPath = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for representation (How this element is represented in instances). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public java.util.List> getRepresentation() { - if (myRepresentation == null) { - myRepresentation = new java.util.ArrayList>(); - } - return myRepresentation; - } - - - /** - * Gets the value(s) for representation (How this element is represented in instances). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public java.util.List> getRepresentationElement() { - if (myRepresentation == null) { - myRepresentation = new java.util.ArrayList>(); - } - return myRepresentation; - } - - - /** - * Sets the value(s) for representation (How this element is represented in instances) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public StructureElement setRepresentation(java.util.List> theValue) { - myRepresentation = theValue; - return this; - } - - /** - * Add a value for representation (How this element is represented in instances) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addRepresentation()} method. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt addRepresentation(PropertyRepresentationEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER, theValue); - getRepresentation().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for representation (How this element is represented in instances), - * creating it if it does not already exist. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt getRepresentationFirstRep() { - if (getRepresentation().size() == 0) { - addRepresentation(); - } - return getRepresentation().get(0); - } - - /** - * Add a value for representation (How this element is represented in instances) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt addRepresentation() { - BoundCodeDt retVal = new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER); - getRepresentation().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for representation (How this element is represented in instances) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public StructureElement setRepresentation(PropertyRepresentationEnum theValue) { - getRepresentation().clear(); - addRepresentation(theValue); - return this; - } - - - /** - * Gets the value(s) for name (Name for this particular element definition (reference target)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name for this particular element definition (reference target)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name for this particular element definition (reference target)) - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public StructureElement setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name for this particular element definition (reference target)) - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using Profile.structure.element.definition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public StructureElement setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for slicing (This element is sliced - slices follow). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - public StructureElementSlicing getSlicing() { - if (mySlicing == null) { - mySlicing = new StructureElementSlicing(); - } - return mySlicing; - } - - - /** - * Gets the value(s) for slicing (This element is sliced - slices follow). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - public StructureElementSlicing getSlicingElement() { - if (mySlicing == null) { - mySlicing = new StructureElementSlicing(); - } - return mySlicing; - } - - - /** - * Sets the value(s) for slicing (This element is sliced - slices follow) - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - public StructureElement setSlicing(StructureElementSlicing theValue) { - mySlicing = theValue; - return this; - } - - - /** - * Gets the value(s) for definition (More specific definition of the element). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource - *

- */ - public StructureElementDefinition getDefinition() { - if (myDefinition == null) { - myDefinition = new StructureElementDefinition(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (More specific definition of the element). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource - *

- */ - public StructureElementDefinition getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new StructureElementDefinition(); - } - return myDefinition; - } - - - /** - * Sets the value(s) for definition (More specific definition of the element) - * - *

- * Definition: - * Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource - *

- */ - public StructureElement setDefinition(StructureElementDefinition theValue) { - myDefinition = theValue; - return this; - } - - - - } - - /** - * Block class for child element: Profile.structure.element.slicing (This element is sliced - slices follow) - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - @Block() - public static class StructureElementSlicing - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="discriminator", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Element that used to distinguish the slices", - formalDefinition="Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices" - ) - private IdDt myDiscriminator; - - @Child(name="ordered", type=BooleanDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="If elements must be in same order as slices", - formalDefinition="If the matching elements have to occur in the same order as defined in the profile" - ) - private BooleanDt myOrdered; - - @Child(name="rules", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="closed | open | openAtEnd", - formalDefinition="Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end" - ) - private BoundCodeDt myRules; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDiscriminator, myOrdered, myRules); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDiscriminator, myOrdered, myRules); - } - - /** - * Gets the value(s) for discriminator (Element that used to distinguish the slices). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices - *

- */ - public IdDt getDiscriminator() { - if (myDiscriminator == null) { - myDiscriminator = new IdDt(); - } - return myDiscriminator; - } - - - /** - * Gets the value(s) for discriminator (Element that used to distinguish the slices). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices - *

- */ - public IdDt getDiscriminatorElement() { - if (myDiscriminator == null) { - myDiscriminator = new IdDt(); - } - return myDiscriminator; - } - - - /** - * Sets the value(s) for discriminator (Element that used to distinguish the slices) - * - *

- * Definition: - * Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices - *

- */ - public StructureElementSlicing setDiscriminator(IdDt theValue) { - myDiscriminator = theValue; - return this; - } - - /** - * Sets the value for discriminator (Element that used to distinguish the slices) - * - *

- * Definition: - * Designates which child element is used to discriminate between the slices when processing an instance. The value of the child element in the instance SHALL completely distinguish which slice the element in the resource matches based on the allowed values for that element in each of the slices - *

- */ - public StructureElementSlicing setDiscriminator( String theId) { - myDiscriminator = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for ordered (If elements must be in same order as slices). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public BooleanDt getOrdered() { - if (myOrdered == null) { - myOrdered = new BooleanDt(); - } - return myOrdered; - } - - - /** - * Gets the value(s) for ordered (If elements must be in same order as slices). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public BooleanDt getOrderedElement() { - if (myOrdered == null) { - myOrdered = new BooleanDt(); - } - return myOrdered; - } - - - /** - * Sets the value(s) for ordered (If elements must be in same order as slices) - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public StructureElementSlicing setOrdered(BooleanDt theValue) { - myOrdered = theValue; - return this; - } - - /** - * Sets the value for ordered (If elements must be in same order as slices) - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public StructureElementSlicing setOrdered( boolean theBoolean) { - myOrdered = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for rules (closed | open | openAtEnd). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public BoundCodeDt getRules() { - if (myRules == null) { - myRules = new BoundCodeDt(SlicingRulesEnum.VALUESET_BINDER); - } - return myRules; - } - - - /** - * Gets the value(s) for rules (closed | open | openAtEnd). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public BoundCodeDt getRulesElement() { - if (myRules == null) { - myRules = new BoundCodeDt(SlicingRulesEnum.VALUESET_BINDER); - } - return myRules; - } - - - /** - * Sets the value(s) for rules (closed | open | openAtEnd) - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public StructureElementSlicing setRules(BoundCodeDt theValue) { - myRules = theValue; - return this; - } - - /** - * Sets the value(s) for rules (closed | open | openAtEnd) - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public StructureElementSlicing setRules(SlicingRulesEnum theValue) { - getRules().setValueAsEnum(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: Profile.structure.element.definition (More specific definition of the element) - * - *

- * Definition: - * Definition of the content of the element to provide a more specific definition than that contained for the element in the base resource - *

- */ - @Block() - public static class StructureElementDefinition - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="short", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Concise definition for xml presentation", - formalDefinition="A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification)" - ) - private StringDt myShort; - - @Child(name="formal", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Full formal definition in human language", - formalDefinition="The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource" - ) - private StringDt myFormal; - - @Child(name="comments", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Comments about the use of this element", - formalDefinition="Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc." - ) - private StringDt myComments; - - @Child(name="requirements", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Why is this needed?", - formalDefinition="Explains why this element is needed and why it's been constrained as it has" - ) - private StringDt myRequirements; - - @Child(name="synonym", type=StringDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Other names", - formalDefinition="Identifies additional names by which this element might also be known" - ) - private java.util.List mySynonym; - - @Child(name="min", type=IntegerDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Minimum Cardinality", - formalDefinition="The minimum number of times this element SHALL appear in the instance" - ) - private IntegerDt myMin; - - @Child(name="max", type=StringDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="Maximum Cardinality (a number or *)", - formalDefinition="The maximum number of times this element is permitted to appear in the instance" - ) - private StringDt myMax; - - @Child(name="type", order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Data type and Profile for this element", - formalDefinition="The data type or resource that the value of this element is permitted to be" - ) - private java.util.List myType; - - @Child(name="nameReference", type=StringDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="To another element constraint (by element.name)", - formalDefinition="Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element" - ) - private StringDt myNameReference; - - @Child(name="value", type=IDatatype.class, order=9, min=0, max=1) - @Description( - shortDefinition="Fixed value: [as defined for a primitive type]", - formalDefinition="Specifies a primitive value that SHALL hold for this element in the instance" - ) - private IDatatype myValue; - - @Child(name="example", type=IDatatype.class, order=10, min=0, max=1) - @Description( - shortDefinition="Example value: [as defined for type]", - formalDefinition="An example value for this element" - ) - private IDatatype myExample; - - @Child(name="maxLength", type=IntegerDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="Length for strings", - formalDefinition="Indicates the shortest length that SHALL be supported by conformant instances without truncation" - ) - private IntegerDt myMaxLength; - - @Child(name="condition", type=IdDt.class, order=12, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Reference to invariant about presence", - formalDefinition="A reference to an invariant that may make additional statements about the cardinality or value in the instance" - ) - private java.util.List myCondition; - - @Child(name="constraint", order=13, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Condition that must evaluate to true", - formalDefinition="Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance" - ) - private java.util.List myConstraint; - - @Child(name="mustSupport", type=BooleanDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="If the element must supported", - formalDefinition="If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported" - ) - private BooleanDt myMustSupport; - - @Child(name="isModifier", type=BooleanDt.class, order=15, min=1, max=1) - @Description( - shortDefinition="If this modifies the meaning of other elements", - formalDefinition="If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system." - ) - private BooleanDt myIsModifier; - - @Child(name="binding", order=16, min=0, max=1) - @Description( - shortDefinition="ValueSet details if this is coded", - formalDefinition="Binds to a value set if this element is coded (code, Coding, CodeableConcept)" - ) - private StructureElementDefinitionBinding myBinding; - - @Child(name="mapping", order=17, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Map element to another set of definitions", - formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element" - ) - private java.util.List myMapping; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myValue, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myBinding, myMapping); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myValue, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myBinding, myMapping); - } - - /** - * Gets the value(s) for short (Concise definition for xml presentation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public StringDt getShort() { - if (myShort == null) { - myShort = new StringDt(); - } - return myShort; - } - - - /** - * Gets the value(s) for short (Concise definition for xml presentation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public StringDt getShortElement() { - if (myShort == null) { - myShort = new StringDt(); - } - return myShort; - } - - - /** - * Sets the value(s) for short (Concise definition for xml presentation) - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public StructureElementDefinition setShort(StringDt theValue) { - myShort = theValue; - return this; - } - - /** - * Sets the value for short (Concise definition for xml presentation) - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public StructureElementDefinition setShort( String theString) { - myShort = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for formal (Full formal definition in human language). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public StringDt getFormal() { - if (myFormal == null) { - myFormal = new StringDt(); - } - return myFormal; - } - - - /** - * Gets the value(s) for formal (Full formal definition in human language). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public StringDt getFormalElement() { - if (myFormal == null) { - myFormal = new StringDt(); - } - return myFormal; - } - - - /** - * Sets the value(s) for formal (Full formal definition in human language) - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public StructureElementDefinition setFormal(StringDt theValue) { - myFormal = theValue; - return this; - } - - /** - * Sets the value for formal (Full formal definition in human language) - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public StructureElementDefinition setFormal( String theString) { - myFormal = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for comments (Comments about the use of this element). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public StringDt getComments() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (Comments about the use of this element). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Sets the value(s) for comments (Comments about the use of this element) - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public StructureElementDefinition setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - /** - * Sets the value for comments (Comments about the use of this element) - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public StructureElementDefinition setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for requirements (Why is this needed?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public StringDt getRequirements() { - if (myRequirements == null) { - myRequirements = new StringDt(); - } - return myRequirements; - } - - - /** - * Gets the value(s) for requirements (Why is this needed?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public StringDt getRequirementsElement() { - if (myRequirements == null) { - myRequirements = new StringDt(); - } - return myRequirements; - } - - - /** - * Sets the value(s) for requirements (Why is this needed?) - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public StructureElementDefinition setRequirements(StringDt theValue) { - myRequirements = theValue; - return this; - } - - /** - * Sets the value for requirements (Why is this needed?) - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public StructureElementDefinition setRequirements( String theString) { - myRequirements = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for synonym (Other names). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public java.util.List getSynonym() { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - return mySynonym; - } - - - /** - * Gets the value(s) for synonym (Other names). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public java.util.List getSynonymElement() { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - return mySynonym; - } - - - /** - * Sets the value(s) for synonym (Other names) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StructureElementDefinition setSynonym(java.util.List theValue) { - mySynonym = theValue; - return this; - } - - /** - * Adds and returns a new value for synonym (Other names) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StringDt addSynonym() { - StringDt newType = new StringDt(); - getSynonym().add(newType); - return newType; - } - - /** - * Gets the first repetition for synonym (Other names), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StringDt getSynonymFirstRep() { - if (getSynonym().isEmpty()) { - return addSynonym(); - } - return getSynonym().get(0); - } - /** - * Adds a new value for synonym (Other names) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public StructureElementDefinition addSynonym( String theString) { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - mySynonym.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for min (Minimum Cardinality). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public IntegerDt getMin() { - if (myMin == null) { - myMin = new IntegerDt(); - } - return myMin; - } - - - /** - * Gets the value(s) for min (Minimum Cardinality). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public IntegerDt getMinElement() { - if (myMin == null) { - myMin = new IntegerDt(); - } - return myMin; - } - - - /** - * Sets the value(s) for min (Minimum Cardinality) - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public StructureElementDefinition setMin(IntegerDt theValue) { - myMin = theValue; - return this; - } - - /** - * Sets the value for min (Minimum Cardinality) - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public StructureElementDefinition setMin( int theInteger) { - myMin = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for max (Maximum Cardinality (a number or *)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public StringDt getMax() { - if (myMax == null) { - myMax = new StringDt(); - } - return myMax; - } - - - /** - * Gets the value(s) for max (Maximum Cardinality (a number or *)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public StringDt getMaxElement() { - if (myMax == null) { - myMax = new StringDt(); - } - return myMax; - } - - - /** - * Sets the value(s) for max (Maximum Cardinality (a number or *)) - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public StructureElementDefinition setMax(StringDt theValue) { - myMax = theValue; - return this; - } - - /** - * Sets the value for max (Maximum Cardinality (a number or *)) - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public StructureElementDefinition setMax( String theString) { - myMax = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (Data type and Profile for this element). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public java.util.List getType() { - if (myType == null) { - myType = new java.util.ArrayList(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Data type and Profile for this element). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public java.util.List getTypeElement() { - if (myType == null) { - myType = new java.util.ArrayList(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Data type and Profile for this element) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public StructureElementDefinition setType(java.util.List theValue) { - myType = theValue; - return this; - } - - /** - * Adds and returns a new value for type (Data type and Profile for this element) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public StructureElementDefinitionType addType() { - StructureElementDefinitionType newType = new StructureElementDefinitionType(); - getType().add(newType); - return newType; - } - - /** - * Gets the first repetition for type (Data type and Profile for this element), - * creating it if it does not already exist. - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public StructureElementDefinitionType getTypeFirstRep() { - if (getType().isEmpty()) { - return addType(); - } - return getType().get(0); - } - - /** - * Gets the value(s) for nameReference (To another element constraint (by element.name)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public StringDt getNameReference() { - if (myNameReference == null) { - myNameReference = new StringDt(); - } - return myNameReference; - } - - - /** - * Gets the value(s) for nameReference (To another element constraint (by element.name)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public StringDt getNameReferenceElement() { - if (myNameReference == null) { - myNameReference = new StringDt(); - } - return myNameReference; - } - - - /** - * Sets the value(s) for nameReference (To another element constraint (by element.name)) - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public StructureElementDefinition setNameReference(StringDt theValue) { - myNameReference = theValue; - return this; - } - - /** - * Sets the value for nameReference (To another element constraint (by element.name)) - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public StructureElementDefinition setNameReference( String theString) { - myNameReference = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for value[x] (Fixed value: [as defined for a primitive type]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a primitive value that SHALL hold for this element in the instance - *

- */ - public IDatatype getValue() { - return myValue; - } - - - /** - * Gets the value(s) for value[x] (Fixed value: [as defined for a primitive type]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a primitive value that SHALL hold for this element in the instance - *

- */ - public IDatatype getValueElement() { - return myValue; - } - - - /** - * Sets the value(s) for value[x] (Fixed value: [as defined for a primitive type]) - * - *

- * Definition: - * Specifies a primitive value that SHALL hold for this element in the instance - *

- */ - public StructureElementDefinition setValue(IDatatype theValue) { - myValue = theValue; - return this; - } - - - /** - * Gets the value(s) for example[x] (Example value: [as defined for type]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An example value for this element - *

- */ - public IDatatype getExample() { - return myExample; - } - - - /** - * Gets the value(s) for example[x] (Example value: [as defined for type]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An example value for this element - *

- */ - public IDatatype getExampleElement() { - return myExample; - } - - - /** - * Sets the value(s) for example[x] (Example value: [as defined for type]) - * - *

- * Definition: - * An example value for this element - *

- */ - public StructureElementDefinition setExample(IDatatype theValue) { - myExample = theValue; - return this; - } - - - /** - * Gets the value(s) for maxLength (Length for strings). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the shortest length that SHALL be supported by conformant instances without truncation - *

- */ - public IntegerDt getMaxLength() { - if (myMaxLength == null) { - myMaxLength = new IntegerDt(); - } - return myMaxLength; - } - - - /** - * Gets the value(s) for maxLength (Length for strings). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the shortest length that SHALL be supported by conformant instances without truncation - *

- */ - public IntegerDt getMaxLengthElement() { - if (myMaxLength == null) { - myMaxLength = new IntegerDt(); - } - return myMaxLength; - } - - - /** - * Sets the value(s) for maxLength (Length for strings) - * - *

- * Definition: - * Indicates the shortest length that SHALL be supported by conformant instances without truncation - *

- */ - public StructureElementDefinition setMaxLength(IntegerDt theValue) { - myMaxLength = theValue; - return this; - } - - /** - * Sets the value for maxLength (Length for strings) - * - *

- * Definition: - * Indicates the shortest length that SHALL be supported by conformant instances without truncation - *

- */ - public StructureElementDefinition setMaxLength( int theInteger) { - myMaxLength = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for condition (Reference to invariant about presence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public java.util.List getCondition() { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - return myCondition; - } - - - /** - * Gets the value(s) for condition (Reference to invariant about presence). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public java.util.List getConditionElement() { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - return myCondition; - } - - - /** - * Sets the value(s) for condition (Reference to invariant about presence) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public StructureElementDefinition setCondition(java.util.List theValue) { - myCondition = theValue; - return this; - } - - /** - * Adds and returns a new value for condition (Reference to invariant about presence) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public IdDt addCondition() { - IdDt newType = new IdDt(); - getCondition().add(newType); - return newType; - } - - /** - * Gets the first repetition for condition (Reference to invariant about presence), - * creating it if it does not already exist. - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public IdDt getConditionFirstRep() { - if (getCondition().isEmpty()) { - return addCondition(); - } - return getCondition().get(0); - } - /** - * Adds a new value for condition (Reference to invariant about presence) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public StructureElementDefinition addCondition( String theId) { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - myCondition.add(new IdDt(theId)); - return this; - } - - - /** - * Gets the value(s) for constraint (Condition that must evaluate to true). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public java.util.List getConstraint() { - if (myConstraint == null) { - myConstraint = new java.util.ArrayList(); - } - return myConstraint; - } - - - /** - * Gets the value(s) for constraint (Condition that must evaluate to true). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public java.util.List getConstraintElement() { - if (myConstraint == null) { - myConstraint = new java.util.ArrayList(); - } - return myConstraint; - } - - - /** - * Sets the value(s) for constraint (Condition that must evaluate to true) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public StructureElementDefinition setConstraint(java.util.List theValue) { - myConstraint = theValue; - return this; - } - - /** - * Adds and returns a new value for constraint (Condition that must evaluate to true) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public StructureElementDefinitionConstraint addConstraint() { - StructureElementDefinitionConstraint newType = new StructureElementDefinitionConstraint(); - getConstraint().add(newType); - return newType; - } - - /** - * Gets the first repetition for constraint (Condition that must evaluate to true), - * creating it if it does not already exist. - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public StructureElementDefinitionConstraint getConstraintFirstRep() { - if (getConstraint().isEmpty()) { - return addConstraint(); - } - return getConstraint().get(0); - } - - /** - * Gets the value(s) for mustSupport (If the element must supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public BooleanDt getMustSupport() { - if (myMustSupport == null) { - myMustSupport = new BooleanDt(); - } - return myMustSupport; - } - - - /** - * Gets the value(s) for mustSupport (If the element must supported). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public BooleanDt getMustSupportElement() { - if (myMustSupport == null) { - myMustSupport = new BooleanDt(); - } - return myMustSupport; - } - - - /** - * Sets the value(s) for mustSupport (If the element must supported) - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public StructureElementDefinition setMustSupport(BooleanDt theValue) { - myMustSupport = theValue; - return this; - } - - /** - * Sets the value for mustSupport (If the element must supported) - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public StructureElementDefinition setMustSupport( boolean theBoolean) { - myMustSupport = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for isModifier (If this modifies the meaning of other elements). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public BooleanDt getIsModifier() { - if (myIsModifier == null) { - myIsModifier = new BooleanDt(); - } - return myIsModifier; - } - - - /** - * Gets the value(s) for isModifier (If this modifies the meaning of other elements). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public BooleanDt getIsModifierElement() { - if (myIsModifier == null) { - myIsModifier = new BooleanDt(); - } - return myIsModifier; - } - - - /** - * Sets the value(s) for isModifier (If this modifies the meaning of other elements) - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public StructureElementDefinition setIsModifier(BooleanDt theValue) { - myIsModifier = theValue; - return this; - } - - /** - * Sets the value for isModifier (If this modifies the meaning of other elements) - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public StructureElementDefinition setIsModifier( boolean theBoolean) { - myIsModifier = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for binding (ValueSet details if this is coded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public StructureElementDefinitionBinding getBinding() { - if (myBinding == null) { - myBinding = new StructureElementDefinitionBinding(); - } - return myBinding; - } - - - /** - * Gets the value(s) for binding (ValueSet details if this is coded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public StructureElementDefinitionBinding getBindingElement() { - if (myBinding == null) { - myBinding = new StructureElementDefinitionBinding(); - } - return myBinding; - } - - - /** - * Sets the value(s) for binding (ValueSet details if this is coded) - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public StructureElementDefinition setBinding(StructureElementDefinitionBinding theValue) { - myBinding = theValue; - return this; - } - - - /** - * Gets the value(s) for mapping (Map element to another set of definitions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public java.util.List getMapping() { - if (myMapping == null) { - myMapping = new java.util.ArrayList(); - } - return myMapping; - } - - - /** - * Gets the value(s) for mapping (Map element to another set of definitions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public java.util.List getMappingElement() { - if (myMapping == null) { - myMapping = new java.util.ArrayList(); - } - return myMapping; - } - - - /** - * Sets the value(s) for mapping (Map element to another set of definitions) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public StructureElementDefinition setMapping(java.util.List theValue) { - myMapping = theValue; - return this; - } - - /** - * Adds and returns a new value for mapping (Map element to another set of definitions) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public StructureElementDefinitionMapping addMapping() { - StructureElementDefinitionMapping newType = new StructureElementDefinitionMapping(); - getMapping().add(newType); - return newType; - } - - /** - * Gets the first repetition for mapping (Map element to another set of definitions), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public StructureElementDefinitionMapping getMappingFirstRep() { - if (getMapping().isEmpty()) { - return addMapping(); - } - return getMapping().get(0); - } - - - } - - /** - * Block class for child element: Profile.structure.element.definition.type (Data type and Profile for this element) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - @Block() - public static class StructureElementDefinitionType - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Name of Data type or Resource", - formalDefinition="" - ) - private BoundCodeDt myCode; - - @Child(name="profile", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Profile.structure to apply", - formalDefinition="Identifies a profile that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile" - ) - private UriDt myProfile; - - @Child(name="aggregation", type=CodeDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="contained | referenced | bundled - how aggregated", - formalDefinition="If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle" - ) - private java.util.List> myAggregation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myProfile, myAggregation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myProfile, myAggregation); - } - - /** - * Gets the value(s) for code (Name of Data type or Resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getCode() { - if (myCode == null) { - myCode = new BoundCodeDt(DataTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Name of Data type or Resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(DataTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Name of Data type or Resource) - * - *

- * Definition: - * - *

- */ - public StructureElementDefinitionType setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value(s) for code (Name of Data type or Resource) - * - *

- * Definition: - * - *

- */ - public StructureElementDefinitionType setCode(DataTypeEnum theValue) { - getCode().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for profile (Profile.structure to apply). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a profile that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public UriDt getProfile() { - if (myProfile == null) { - myProfile = new UriDt(); - } - return myProfile; - } - - - /** - * Gets the value(s) for profile (Profile.structure to apply). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a profile that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public UriDt getProfileElement() { - if (myProfile == null) { - myProfile = new UriDt(); - } - return myProfile; - } - - - /** - * Sets the value(s) for profile (Profile.structure to apply) - * - *

- * Definition: - * Identifies a profile that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public StructureElementDefinitionType setProfile(UriDt theValue) { - myProfile = theValue; - return this; - } - - /** - * Sets the value for profile (Profile.structure to apply) - * - *

- * Definition: - * Identifies a profile that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public StructureElementDefinitionType setProfile( String theUri) { - myProfile = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for aggregation (contained | referenced | bundled - how aggregated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public java.util.List> getAggregation() { - if (myAggregation == null) { - myAggregation = new java.util.ArrayList>(); - } - return myAggregation; - } - - - /** - * Gets the value(s) for aggregation (contained | referenced | bundled - how aggregated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public java.util.List> getAggregationElement() { - if (myAggregation == null) { - myAggregation = new java.util.ArrayList>(); - } - return myAggregation; - } - - - /** - * Sets the value(s) for aggregation (contained | referenced | bundled - how aggregated) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public StructureElementDefinitionType setAggregation(java.util.List> theValue) { - myAggregation = theValue; - return this; - } - - /** - * Add a value for aggregation (contained | referenced | bundled - how aggregated) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addAggregation()} method. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt addAggregation(AggregationModeEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER, theValue); - getAggregation().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for aggregation (contained | referenced | bundled - how aggregated), - * creating it if it does not already exist. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt getAggregationFirstRep() { - if (getAggregation().size() == 0) { - addAggregation(); - } - return getAggregation().get(0); - } - - /** - * Add a value for aggregation (contained | referenced | bundled - how aggregated) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt addAggregation() { - BoundCodeDt retVal = new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER); - getAggregation().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for aggregation (contained | referenced | bundled - how aggregated) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public StructureElementDefinitionType setAggregation(AggregationModeEnum theValue) { - getAggregation().clear(); - addAggregation(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: Profile.structure.element.definition.constraint (Condition that must evaluate to true) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - @Block() - public static class StructureElementDefinitionConstraint - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="key", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Target of 'condition' reference above", - formalDefinition="Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality" - ) - private IdDt myKey; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Short human label", - formalDefinition="Used to label the constraint in OCL or in short displays incapable of displaying the full human description" - ) - private StringDt myName; - - @Child(name="severity", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="error | warning", - formalDefinition="Identifies the impact constraint violation has on the conformance of the instance" - ) - private BoundCodeDt mySeverity; - - @Child(name="human", type=StringDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Human description of constraint", - formalDefinition="Text that can be used to describe the constraint in messages identifying that the constraint has been violated" - ) - private StringDt myHuman; - - @Child(name="xpath", type=StringDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="XPath expression of constraint", - formalDefinition="XPath expression of constraint" - ) - private StringDt myXpath; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myKey, myName, mySeverity, myHuman, myXpath); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myKey, myName, mySeverity, myHuman, myXpath); - } - - /** - * Gets the value(s) for key (Target of 'condition' reference above). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public IdDt getKey() { - if (myKey == null) { - myKey = new IdDt(); - } - return myKey; - } - - - /** - * Gets the value(s) for key (Target of 'condition' reference above). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public IdDt getKeyElement() { - if (myKey == null) { - myKey = new IdDt(); - } - return myKey; - } - - - /** - * Sets the value(s) for key (Target of 'condition' reference above) - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public StructureElementDefinitionConstraint setKey(IdDt theValue) { - myKey = theValue; - return this; - } - - /** - * Sets the value for key (Target of 'condition' reference above) - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public StructureElementDefinitionConstraint setKey( String theId) { - myKey = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for name (Short human label). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Short human label). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Short human label) - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public StructureElementDefinitionConstraint setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Short human label) - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public StructureElementDefinitionConstraint setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for severity (error | warning). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public BoundCodeDt getSeverity() { - if (mySeverity == null) { - mySeverity = new BoundCodeDt(ConstraintSeverityEnum.VALUESET_BINDER); - } - return mySeverity; - } - - - /** - * Gets the value(s) for severity (error | warning). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public BoundCodeDt getSeverityElement() { - if (mySeverity == null) { - mySeverity = new BoundCodeDt(ConstraintSeverityEnum.VALUESET_BINDER); - } - return mySeverity; - } - - - /** - * Sets the value(s) for severity (error | warning) - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public StructureElementDefinitionConstraint setSeverity(BoundCodeDt theValue) { - mySeverity = theValue; - return this; - } - - /** - * Sets the value(s) for severity (error | warning) - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public StructureElementDefinitionConstraint setSeverity(ConstraintSeverityEnum theValue) { - getSeverity().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for human (Human description of constraint). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public StringDt getHuman() { - if (myHuman == null) { - myHuman = new StringDt(); - } - return myHuman; - } - - - /** - * Gets the value(s) for human (Human description of constraint). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public StringDt getHumanElement() { - if (myHuman == null) { - myHuman = new StringDt(); - } - return myHuman; - } - - - /** - * Sets the value(s) for human (Human description of constraint) - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public StructureElementDefinitionConstraint setHuman(StringDt theValue) { - myHuman = theValue; - return this; - } - - /** - * Sets the value for human (Human description of constraint) - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public StructureElementDefinitionConstraint setHuman( String theString) { - myHuman = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for xpath (XPath expression of constraint). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * XPath expression of constraint - *

- */ - public StringDt getXpath() { - if (myXpath == null) { - myXpath = new StringDt(); - } - return myXpath; - } - - - /** - * Gets the value(s) for xpath (XPath expression of constraint). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * XPath expression of constraint - *

- */ - public StringDt getXpathElement() { - if (myXpath == null) { - myXpath = new StringDt(); - } - return myXpath; - } - - - /** - * Sets the value(s) for xpath (XPath expression of constraint) - * - *

- * Definition: - * XPath expression of constraint - *

- */ - public StructureElementDefinitionConstraint setXpath(StringDt theValue) { - myXpath = theValue; - return this; - } - - /** - * Sets the value for xpath (XPath expression of constraint) - * - *

- * Definition: - * XPath expression of constraint - *

- */ - public StructureElementDefinitionConstraint setXpath( String theString) { - myXpath = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Profile.structure.element.definition.binding (ValueSet details if this is coded) - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - @Block() - public static class StructureElementDefinitionBinding - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Descriptive Name", - formalDefinition="A descriptive name for this - can be useful for generating implementation artifacts" - ) - private StringDt myName; - - @Child(name="isExtensible", type=BooleanDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Can additional codes be used?", - formalDefinition="If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone" - ) - private BooleanDt myIsExtensible; - - @Child(name="conformance", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="required | preferred | example", - formalDefinition="Indicates the degree of conformance expectations associated with this binding" - ) - private BoundCodeDt myConformance; - - @Child(name="description", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Human explanation of the value set", - formalDefinition="Describes the intended use of this particular set of codes" - ) - private StringDt myDescription; - - @Child(name="reference", order=4, min=0, max=1, type={ - UriDt.class, ValueSet.class }) - @Description( - shortDefinition="Source of value set", - formalDefinition="Points to the value set or external definition that identifies the set of codes to be used" - ) - private IDatatype myReference; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myIsExtensible, myConformance, myDescription, myReference); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myIsExtensible, myConformance, myDescription, myReference); - } - - /** - * Gets the value(s) for name (Descriptive Name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Descriptive Name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Descriptive Name) - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public StructureElementDefinitionBinding setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Descriptive Name) - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public StructureElementDefinitionBinding setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for isExtensible (Can additional codes be used?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public BooleanDt getIsExtensible() { - if (myIsExtensible == null) { - myIsExtensible = new BooleanDt(); - } - return myIsExtensible; - } - - - /** - * Gets the value(s) for isExtensible (Can additional codes be used?). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public BooleanDt getIsExtensibleElement() { - if (myIsExtensible == null) { - myIsExtensible = new BooleanDt(); - } - return myIsExtensible; - } - - - /** - * Sets the value(s) for isExtensible (Can additional codes be used?) - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public StructureElementDefinitionBinding setIsExtensible(BooleanDt theValue) { - myIsExtensible = theValue; - return this; - } - - /** - * Sets the value for isExtensible (Can additional codes be used?) - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public StructureElementDefinitionBinding setIsExtensible( boolean theBoolean) { - myIsExtensible = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for conformance (required | preferred | example). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public BoundCodeDt getConformance() { - if (myConformance == null) { - myConformance = new BoundCodeDt(BindingConformanceEnum.VALUESET_BINDER); - } - return myConformance; - } - - - /** - * Gets the value(s) for conformance (required | preferred | example). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public BoundCodeDt getConformanceElement() { - if (myConformance == null) { - myConformance = new BoundCodeDt(BindingConformanceEnum.VALUESET_BINDER); - } - return myConformance; - } - - - /** - * Sets the value(s) for conformance (required | preferred | example) - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public StructureElementDefinitionBinding setConformance(BoundCodeDt theValue) { - myConformance = theValue; - return this; - } - - /** - * Sets the value(s) for conformance (required | preferred | example) - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public StructureElementDefinitionBinding setConformance(BindingConformanceEnum theValue) { - getConformance().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for description (Human explanation of the value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Human explanation of the value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Human explanation of the value set) - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public StructureElementDefinitionBinding setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Human explanation of the value set) - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public StructureElementDefinitionBinding setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for reference[x] (Source of value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Points to the value set or external definition that identifies the set of codes to be used - *

- */ - public IDatatype getReference() { - return myReference; - } - - - /** - * Gets the value(s) for reference[x] (Source of value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Points to the value set or external definition that identifies the set of codes to be used - *

- */ - public IDatatype getReferenceElement() { - return myReference; - } - - - /** - * Sets the value(s) for reference[x] (Source of value set) - * - *

- * Definition: - * Points to the value set or external definition that identifies the set of codes to be used - *

- */ - public StructureElementDefinitionBinding setReference(IDatatype theValue) { - myReference = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Profile.structure.element.definition.mapping (Map element to another set of definitions) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - @Block() - public static class StructureElementDefinitionMapping - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identity", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Reference to mapping declaration", - formalDefinition="An internal reference to the definition of a mapping" - ) - private IdDt myIdentity; - - @Child(name="map", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Details of the mapping", - formalDefinition="Expresses what part of the target specification corresponds to this element" - ) - private StringDt myMap; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myMap); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myMap); - } - - /** - * Gets the value(s) for identity (Reference to mapping declaration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public IdDt getIdentity() { - if (myIdentity == null) { - myIdentity = new IdDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (Reference to mapping declaration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public IdDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new IdDt(); - } - return myIdentity; - } - - - /** - * Sets the value(s) for identity (Reference to mapping declaration) - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public StructureElementDefinitionMapping setIdentity(IdDt theValue) { - myIdentity = theValue; - return this; - } - - /** - * Sets the value for identity (Reference to mapping declaration) - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public StructureElementDefinitionMapping setIdentity( String theId) { - myIdentity = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for map (Details of the mapping). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public StringDt getMap() { - if (myMap == null) { - myMap = new StringDt(); - } - return myMap; - } - - - /** - * Gets the value(s) for map (Details of the mapping). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public StringDt getMapElement() { - if (myMap == null) { - myMap = new StringDt(); - } - return myMap; - } - - - /** - * Sets the value(s) for map (Details of the mapping) - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public StructureElementDefinitionMapping setMap(StringDt theValue) { - myMap = theValue; - return this; - } - - /** - * Sets the value for map (Details of the mapping) - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public StructureElementDefinitionMapping setMap( String theString) { - myMap = new StringDt(theString); - return this; - } - - - - } - - - - - /** - * Block class for child element: Profile.structure.searchParam (Search params defined) - * - *

- * Definition: - * Additional search parameters for implementations to support and/or make use of - *

- */ - @Block() - public static class StructureSearchParam - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Name of search parameter", - formalDefinition="The name of the standard or custom search parameter" - ) - private StringDt myName; - - @Child(name="type", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="number | date | string | token | reference | composite | quantity", - formalDefinition="The type of value a search parameter refers to, and how the content is interpreted" - ) - private BoundCodeDt myType; - - @Child(name="documentation", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Contents and meaning of search parameter", - formalDefinition="A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does" - ) - private StringDt myDocumentation; - - @Child(name="xpath", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="XPath that extracts the parameter set", - formalDefinition="An XPath expression that returns a set of elements for the search parameter" - ) - private StringDt myXpath; - - @Child(name="target", type=CodeDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Types of resource (if a resource reference)", - formalDefinition="Types of resource (if a resource is referenced)" - ) - private java.util.List> myTarget; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myType, myDocumentation, myXpath, myTarget); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myType, myDocumentation, myXpath, myTarget); - } - - /** - * Gets the value(s) for name (Name of search parameter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the standard or custom search parameter - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name of search parameter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the standard or custom search parameter - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name of search parameter) - * - *

- * Definition: - * The name of the standard or custom search parameter - *

- */ - public StructureSearchParam setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name of search parameter) - * - *

- * Definition: - * The name of the standard or custom search parameter - *

- */ - public StructureSearchParam setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (number | date | string | token | reference | composite | quantity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(SearchParamTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (number | date | string | token | reference | composite | quantity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(SearchParamTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (number | date | string | token | reference | composite | quantity) - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public StructureSearchParam setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (number | date | string | token | reference | composite | quantity) - * - *

- * Definition: - * The type of value a search parameter refers to, and how the content is interpreted - *

- */ - public StructureSearchParam setType(SearchParamTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for documentation (Contents and meaning of search parameter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Contents and meaning of search parameter). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Contents and meaning of search parameter) - * - *

- * Definition: - * A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does - *

- */ - public StructureSearchParam setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Contents and meaning of search parameter) - * - *

- * Definition: - * A specification for search parameters. For standard parameters, provides additional information on how the parameter is used in this solution. For custom parameters, provides a description of what the parameter does - *

- */ - public StructureSearchParam setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for xpath (XPath that extracts the parameter set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An XPath expression that returns a set of elements for the search parameter - *

- */ - public StringDt getXpath() { - if (myXpath == null) { - myXpath = new StringDt(); - } - return myXpath; - } - - - /** - * Gets the value(s) for xpath (XPath that extracts the parameter set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An XPath expression that returns a set of elements for the search parameter - *

- */ - public StringDt getXpathElement() { - if (myXpath == null) { - myXpath = new StringDt(); - } - return myXpath; - } - - - /** - * Sets the value(s) for xpath (XPath that extracts the parameter set) - * - *

- * Definition: - * An XPath expression that returns a set of elements for the search parameter - *

- */ - public StructureSearchParam setXpath(StringDt theValue) { - myXpath = theValue; - return this; - } - - /** - * Sets the value for xpath (XPath that extracts the parameter set) - * - *

- * Definition: - * An XPath expression that returns a set of elements for the search parameter - *

- */ - public StructureSearchParam setXpath( String theString) { - myXpath = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for target (Types of resource (if a resource reference)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public java.util.List> getTarget() { - if (myTarget == null) { - myTarget = new java.util.ArrayList>(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Types of resource (if a resource reference)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public java.util.List> getTargetElement() { - if (myTarget == null) { - myTarget = new java.util.ArrayList>(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Types of resource (if a resource reference)) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public StructureSearchParam setTarget(java.util.List> theValue) { - myTarget = theValue; - return this; - } - - /** - * Add a value for target (Types of resource (if a resource reference)) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addTarget()} method. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt addTarget(ResourceTypeEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER, theValue); - getTarget().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for target (Types of resource (if a resource reference)), - * creating it if it does not already exist. - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt getTargetFirstRep() { - if (getTarget().size() == 0) { - addTarget(); - } - return getTarget().get(0); - } - - /** - * Add a value for target (Types of resource (if a resource reference)) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public BoundCodeDt addTarget() { - BoundCodeDt retVal = new BoundCodeDt(ResourceTypeEnum.VALUESET_BINDER); - getTarget().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for target (Types of resource (if a resource reference)) - * - *

- * Definition: - * Types of resource (if a resource is referenced) - *

- */ - public StructureSearchParam setTarget(ResourceTypeEnum theValue) { - getTarget().clear(); - addTarget(theValue); - return this; - } - - - - } - - - - /** - * Block class for child element: Profile.extensionDefn (Definition of an extension) - * - *

- * Definition: - * An extension defined as part of the profile - *

- */ - @Block() - public static class ExtensionDefn - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Identifies the extension in this profile", - formalDefinition="A unique code (within the profile) used to identify the extension" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Use this name when displaying the value", - formalDefinition="Defined so that applications can use this name when displaying the value of the extension to the user" - ) - private StringDt myDisplay; - - @Child(name="contextType", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="resource | datatype | mapping | extension", - formalDefinition="Identifies the type of context to which the extension applies" - ) - private BoundCodeDt myContextType; - - @Child(name="context", type=StringDt.class, order=3, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Where the extension can be used in instances", - formalDefinition="Identifies the types of resource or data type elements to which the extension can be applied" - ) - private java.util.List myContext; - - @Child(name="definition", type=StructureElementDefinition.class, order=4, min=1, max=1) - @Description( - shortDefinition="Definition of the extension and its content", - formalDefinition="Definition of the extension and its content" - ) - private StructureElementDefinition myDefinition; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDisplay, myContextType, myContext, myDefinition); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDisplay, myContextType, myContext, myDefinition); - } - - /** - * Gets the value(s) for code (Identifies the extension in this profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique code (within the profile) used to identify the extension - *

- */ - public CodeDt getCode() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Identifies the extension in this profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A unique code (within the profile) used to identify the extension - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Identifies the extension in this profile) - * - *

- * Definition: - * A unique code (within the profile) used to identify the extension - *

- */ - public ExtensionDefn setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value for code (Identifies the extension in this profile) - * - *

- * Definition: - * A unique code (within the profile) used to identify the extension - *

- */ - public ExtensionDefn setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (Use this name when displaying the value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Defined so that applications can use this name when displaying the value of the extension to the user - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Use this name when displaying the value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Defined so that applications can use this name when displaying the value of the extension to the user - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Sets the value(s) for display (Use this name when displaying the value) - * - *

- * Definition: - * Defined so that applications can use this name when displaying the value of the extension to the user - *

- */ - public ExtensionDefn setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (Use this name when displaying the value) - * - *

- * Definition: - * Defined so that applications can use this name when displaying the value of the extension to the user - *

- */ - public ExtensionDefn setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for contextType (resource | datatype | mapping | extension). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the type of context to which the extension applies - *

- */ - public BoundCodeDt getContextType() { - if (myContextType == null) { - myContextType = new BoundCodeDt(ExtensionContextEnum.VALUESET_BINDER); - } - return myContextType; - } - - - /** - * Gets the value(s) for contextType (resource | datatype | mapping | extension). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the type of context to which the extension applies - *

- */ - public BoundCodeDt getContextTypeElement() { - if (myContextType == null) { - myContextType = new BoundCodeDt(ExtensionContextEnum.VALUESET_BINDER); - } - return myContextType; - } - - - /** - * Sets the value(s) for contextType (resource | datatype | mapping | extension) - * - *

- * Definition: - * Identifies the type of context to which the extension applies - *

- */ - public ExtensionDefn setContextType(BoundCodeDt theValue) { - myContextType = theValue; - return this; - } - - /** - * Sets the value(s) for contextType (resource | datatype | mapping | extension) - * - *

- * Definition: - * Identifies the type of context to which the extension applies - *

- */ - public ExtensionDefn setContextType(ExtensionContextEnum theValue) { - getContextType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for context (Where the extension can be used in instances). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the types of resource or data type elements to which the extension can be applied - *

- */ - public java.util.List getContext() { - if (myContext == null) { - myContext = new java.util.ArrayList(); - } - return myContext; - } - - - /** - * Gets the value(s) for context (Where the extension can be used in instances). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the types of resource or data type elements to which the extension can be applied - *

- */ - public java.util.List getContextElement() { - if (myContext == null) { - myContext = new java.util.ArrayList(); - } - return myContext; - } - - - /** - * Sets the value(s) for context (Where the extension can be used in instances) - * - *

- * Definition: - * Identifies the types of resource or data type elements to which the extension can be applied - *

- */ - public ExtensionDefn setContext(java.util.List theValue) { - myContext = theValue; - return this; - } - - /** - * Adds and returns a new value for context (Where the extension can be used in instances) - * - *

- * Definition: - * Identifies the types of resource or data type elements to which the extension can be applied - *

- */ - public StringDt addContext() { - StringDt newType = new StringDt(); - getContext().add(newType); - return newType; - } - - /** - * Gets the first repetition for context (Where the extension can be used in instances), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies the types of resource or data type elements to which the extension can be applied - *

- */ - public StringDt getContextFirstRep() { - if (getContext().isEmpty()) { - return addContext(); - } - return getContext().get(0); - } - /** - * Adds a new value for context (Where the extension can be used in instances) - * - *

- * Definition: - * Identifies the types of resource or data type elements to which the extension can be applied - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ExtensionDefn addContext( String theString) { - if (myContext == null) { - myContext = new java.util.ArrayList(); - } - myContext.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for definition (Definition of the extension and its content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of the extension and its content - *

- */ - public StructureElementDefinition getDefinition() { - if (myDefinition == null) { - myDefinition = new StructureElementDefinition(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (Definition of the extension and its content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Definition of the extension and its content - *

- */ - public StructureElementDefinition getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new StructureElementDefinition(); - } - return myDefinition; - } - - - /** - * Sets the value(s) for definition (Definition of the extension and its content) - * - *

- * Definition: - * Definition of the extension and its content - *

- */ - public ExtensionDefn setDefinition(StructureElementDefinition theValue) { - myDefinition = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Profile.query (Definition of a named query) - * - *

- * Definition: - * Definition of a named query and its parameters and their meaning - *

- */ - @Block() - public static class Query - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Special named queries (_query=)", - formalDefinition="The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions" - ) - private StringDt myName; - - @Child(name="documentation", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Describes the named query", - formalDefinition="Description of the query - the functionality it offers, and considerations about how it functions and to use it" - ) - private StringDt myDocumentation; - - @Child(name="parameter", type=StructureSearchParam.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Parameter for the named query", - formalDefinition="A parameter of a named query" - ) - private java.util.List myParameter; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDocumentation, myParameter); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myDocumentation, myParameter); - } - - /** - * Gets the value(s) for name (Special named queries (_query=)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Special named queries (_query=)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Special named queries (_query=)) - * - *

- * Definition: - * The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions - *

- */ - public Query setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Special named queries (_query=)) - * - *

- * Definition: - * The name of a query, which is used in the URI from Conformance statements declaring use of the query. Typically this will also be the name for the _query parameter when the query is called, though in some cases it may be aliased by a server to avoid collisions - *

- */ - public Query setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for documentation (Describes the named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Description of the query - the functionality it offers, and considerations about how it functions and to use it - *

- */ - public StringDt getDocumentation() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Gets the value(s) for documentation (Describes the named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Description of the query - the functionality it offers, and considerations about how it functions and to use it - *

- */ - public StringDt getDocumentationElement() { - if (myDocumentation == null) { - myDocumentation = new StringDt(); - } - return myDocumentation; - } - - - /** - * Sets the value(s) for documentation (Describes the named query) - * - *

- * Definition: - * Description of the query - the functionality it offers, and considerations about how it functions and to use it - *

- */ - public Query setDocumentation(StringDt theValue) { - myDocumentation = theValue; - return this; - } - - /** - * Sets the value for documentation (Describes the named query) - * - *

- * Definition: - * Description of the query - the functionality it offers, and considerations about how it functions and to use it - *

- */ - public Query setDocumentation( String theString) { - myDocumentation = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for parameter (Parameter for the named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A parameter of a named query - *

- */ - public java.util.List getParameter() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Gets the value(s) for parameter (Parameter for the named query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A parameter of a named query - *

- */ - public java.util.List getParameterElement() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Sets the value(s) for parameter (Parameter for the named query) - * - *

- * Definition: - * A parameter of a named query - *

- */ - public Query setParameter(java.util.List theValue) { - myParameter = theValue; - return this; - } - - /** - * Adds and returns a new value for parameter (Parameter for the named query) - * - *

- * Definition: - * A parameter of a named query - *

- */ - public StructureSearchParam addParameter() { - StructureSearchParam newType = new StructureSearchParam(); - getParameter().add(newType); - return newType; - } - - /** - * Gets the first repetition for parameter (Parameter for the named query), - * creating it if it does not already exist. - * - *

- * Definition: - * A parameter of a named query - *

- */ - public StructureSearchParam getParameterFirstRep() { - if (getParameter().isEmpty()) { - return addParameter(); - } - return getParameter().get(0); - } - - - } - - - - - @Override - public String getResourceName() { - return "Profile"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Provenance.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Provenance.java deleted file mode 100644 index 802c7f9af2e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Provenance.java +++ /dev/null @@ -1,1701 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Provenance Resource - * (Who, What, When for a set of resources) - * - *

- * Definition: - * Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Provenance - *

- * - */ -@ResourceDef(name="Provenance", profile="http://hl7.org/fhir/profiles/Provenance", id="provenance") -public class Provenance - extends BaseResource implements IResource { - - /** - * Search parameter constant for target - *

- * Description:
- * Type: reference
- * Path: Provenance.target
- *

- */ - @SearchParamDefinition(name="target", path="Provenance.target", description="", type="reference" ) - public static final String SP_TARGET = "target"; - - /** - * Fluent Client search parameter constant for target - *

- * Description:
- * Type: reference
- * Path: Provenance.target
- *

- */ - public static final ReferenceClientParam TARGET = new ReferenceClientParam(SP_TARGET); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Provenance.target". - */ - public static final Include INCLUDE_TARGET = new Include("Provenance.target"); - - /** - * Search parameter constant for start - *

- * Description:
- * Type: date
- * Path: Provenance.period.start
- *

- */ - @SearchParamDefinition(name="start", path="Provenance.period.start", description="", type="date" ) - public static final String SP_START = "start"; - - /** - * Fluent Client search parameter constant for start - *

- * Description:
- * Type: date
- * Path: Provenance.period.start
- *

- */ - public static final DateClientParam START = new DateClientParam(SP_START); - - /** - * Search parameter constant for end - *

- * Description:
- * Type: date
- * Path: Provenance.period.end
- *

- */ - @SearchParamDefinition(name="end", path="Provenance.period.end", description="", type="date" ) - public static final String SP_END = "end"; - - /** - * Fluent Client search parameter constant for end - *

- * Description:
- * Type: date
- * Path: Provenance.period.end
- *

- */ - public static final DateClientParam END = new DateClientParam(SP_END); - - /** - * Search parameter constant for location - *

- * Description:
- * Type: reference
- * Path: Provenance.location
- *

- */ - @SearchParamDefinition(name="location", path="Provenance.location", description="", type="reference" ) - public static final String SP_LOCATION = "location"; - - /** - * Fluent Client search parameter constant for location - *

- * Description:
- * Type: reference
- * Path: Provenance.location
- *

- */ - public static final ReferenceClientParam LOCATION = new ReferenceClientParam(SP_LOCATION); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Provenance.location". - */ - public static final Include INCLUDE_LOCATION = new Include("Provenance.location"); - - /** - * Search parameter constant for party - *

- * Description:
- * Type: token
- * Path: Provenance.agent.reference
- *

- */ - @SearchParamDefinition(name="party", path="Provenance.agent.reference", description="", type="token" ) - public static final String SP_PARTY = "party"; - - /** - * Fluent Client search parameter constant for party - *

- * Description:
- * Type: token
- * Path: Provenance.agent.reference
- *

- */ - public static final TokenClientParam PARTY = new TokenClientParam(SP_PARTY); - - /** - * Search parameter constant for partytype - *

- * Description:
- * Type: token
- * Path: Provenance.agent.type
- *

- */ - @SearchParamDefinition(name="partytype", path="Provenance.agent.type", description="", type="token" ) - public static final String SP_PARTYTYPE = "partytype"; - - /** - * Fluent Client search parameter constant for partytype - *

- * Description:
- * Type: token
- * Path: Provenance.agent.type
- *

- */ - public static final TokenClientParam PARTYTYPE = new TokenClientParam(SP_PARTYTYPE); - - - @Child(name="target", order=0, min=1, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="Target resource(s) (usually version specific)", - formalDefinition="The resource(s) that were generated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity" - ) - private java.util.List myTarget; - - @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="When the activity occurred", - formalDefinition="The period during which the activity occurred" - ) - private PeriodDt myPeriod; - - @Child(name="recorded", type=InstantDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="When the activity was recorded / updated", - formalDefinition="The instant of time at which the activity was recorded" - ) - private InstantDt myRecorded; - - @Child(name="reason", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Reason the activity is occurring", - formalDefinition="The reason that the activity was taking place" - ) - private CodeableConceptDt myReason; - - @Child(name="location", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Where the activity occurred, if relevant", - formalDefinition="Where the activity occurred, if relevant" - ) - private ResourceReferenceDt myLocation; - - @Child(name="policy", type=UriDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Policy or plan the activity was defined by", - formalDefinition="Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc." - ) - private java.util.List myPolicy; - - @Child(name="agent", order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Person, organization, records, etc. involved in creating resource", - formalDefinition="An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility" - ) - private java.util.List myAgent; - - @Child(name="entity", order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="An entity used in this activity", - formalDefinition="An entity used in this activity" - ) - private java.util.List myEntity; - - @Child(name="integritySignature", type=StringDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Base64 signature (DigSig) - integrity check", - formalDefinition="A digital signature on the target resource(s). The signature should match a Provenance.agent.reference in the provenance resource. The signature is only added to support checking cryptographic integrity of the resource, and not to represent workflow and clinical aspects of the signing process, or to support non-repudiation." - ) - private StringDt myIntegritySignature; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myTarget, myPeriod, myRecorded, myReason, myLocation, myPolicy, myAgent, myEntity, myIntegritySignature); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myTarget, myPeriod, myRecorded, myReason, myLocation, myPolicy, myAgent, myEntity, myIntegritySignature); - } - - /** - * Gets the value(s) for target (Target resource(s) (usually version specific)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The resource(s) that were generated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity - *

- */ - public java.util.List getTarget() { - if (myTarget == null) { - myTarget = new java.util.ArrayList(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (Target resource(s) (usually version specific)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The resource(s) that were generated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity - *

- */ - public java.util.List getTargetElement() { - if (myTarget == null) { - myTarget = new java.util.ArrayList(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (Target resource(s) (usually version specific)) - * - *

- * Definition: - * The resource(s) that were generated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity - *

- */ - public Provenance setTarget(java.util.List theValue) { - myTarget = theValue; - return this; - } - - /** - * Adds and returns a new value for target (Target resource(s) (usually version specific)) - * - *

- * Definition: - * The resource(s) that were generated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity - *

- */ - public ResourceReferenceDt addTarget() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getTarget().add(newType); - return newType; - } - - /** - * Gets the value(s) for period (When the activity occurred). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The period during which the activity occurred - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (When the activity occurred). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The period during which the activity occurred - *

- */ - public PeriodDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - - /** - * Sets the value(s) for period (When the activity occurred) - * - *

- * Definition: - * The period during which the activity occurred - *

- */ - public Provenance setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for recorded (When the activity was recorded / updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The instant of time at which the activity was recorded - *

- */ - public InstantDt getRecorded() { - if (myRecorded == null) { - myRecorded = new InstantDt(); - } - return myRecorded; - } - - - /** - * Gets the value(s) for recorded (When the activity was recorded / updated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The instant of time at which the activity was recorded - *

- */ - public InstantDt getRecordedElement() { - if (myRecorded == null) { - myRecorded = new InstantDt(); - } - return myRecorded; - } - - - /** - * Sets the value(s) for recorded (When the activity was recorded / updated) - * - *

- * Definition: - * The instant of time at which the activity was recorded - *

- */ - public Provenance setRecorded(InstantDt theValue) { - myRecorded = theValue; - return this; - } - - /** - * Sets the value for recorded (When the activity was recorded / updated) - * - *

- * Definition: - * The instant of time at which the activity was recorded - *

- */ - public Provenance setRecordedWithMillisPrecision( Date theDate) { - myRecorded = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for recorded (When the activity was recorded / updated) - * - *

- * Definition: - * The instant of time at which the activity was recorded - *

- */ - public Provenance setRecorded( Date theDate, TemporalPrecisionEnum thePrecision) { - myRecorded = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for reason (Reason the activity is occurring). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The reason that the activity was taking place - *

- */ - public CodeableConceptDt getReason() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - - /** - * Gets the value(s) for reason (Reason the activity is occurring). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The reason that the activity was taking place - *

- */ - public CodeableConceptDt getReasonElement() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - - /** - * Sets the value(s) for reason (Reason the activity is occurring) - * - *

- * Definition: - * The reason that the activity was taking place - *

- */ - public Provenance setReason(CodeableConceptDt theValue) { - myReason = theValue; - return this; - } - - - /** - * Gets the value(s) for location (Where the activity occurred, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Where the activity occurred, if relevant - *

- */ - public ResourceReferenceDt getLocation() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Gets the value(s) for location (Where the activity occurred, if relevant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Where the activity occurred, if relevant - *

- */ - public ResourceReferenceDt getLocationElement() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - - /** - * Sets the value(s) for location (Where the activity occurred, if relevant) - * - *

- * Definition: - * Where the activity occurred, if relevant - *

- */ - public Provenance setLocation(ResourceReferenceDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for policy (Policy or plan the activity was defined by). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. - *

- */ - public java.util.List getPolicy() { - if (myPolicy == null) { - myPolicy = new java.util.ArrayList(); - } - return myPolicy; - } - - - /** - * Gets the value(s) for policy (Policy or plan the activity was defined by). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. - *

- */ - public java.util.List getPolicyElement() { - if (myPolicy == null) { - myPolicy = new java.util.ArrayList(); - } - return myPolicy; - } - - - /** - * Sets the value(s) for policy (Policy or plan the activity was defined by) - * - *

- * Definition: - * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. - *

- */ - public Provenance setPolicy(java.util.List theValue) { - myPolicy = theValue; - return this; - } - - /** - * Adds and returns a new value for policy (Policy or plan the activity was defined by) - * - *

- * Definition: - * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. - *

- */ - public UriDt addPolicy() { - UriDt newType = new UriDt(); - getPolicy().add(newType); - return newType; - } - - /** - * Gets the first repetition for policy (Policy or plan the activity was defined by), - * creating it if it does not already exist. - * - *

- * Definition: - * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. - *

- */ - public UriDt getPolicyFirstRep() { - if (getPolicy().isEmpty()) { - return addPolicy(); - } - return getPolicy().get(0); - } - /** - * Adds a new value for policy (Policy or plan the activity was defined by) - * - *

- * Definition: - * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Provenance addPolicy( String theUri) { - if (myPolicy == null) { - myPolicy = new java.util.ArrayList(); - } - myPolicy.add(new UriDt(theUri)); - return this; - } - - - /** - * Gets the value(s) for agent (Person, organization, records, etc. involved in creating resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility - *

- */ - public java.util.List getAgent() { - if (myAgent == null) { - myAgent = new java.util.ArrayList(); - } - return myAgent; - } - - - /** - * Gets the value(s) for agent (Person, organization, records, etc. involved in creating resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility - *

- */ - public java.util.List getAgentElement() { - if (myAgent == null) { - myAgent = new java.util.ArrayList(); - } - return myAgent; - } - - - /** - * Sets the value(s) for agent (Person, organization, records, etc. involved in creating resource) - * - *

- * Definition: - * An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility - *

- */ - public Provenance setAgent(java.util.List theValue) { - myAgent = theValue; - return this; - } - - /** - * Adds and returns a new value for agent (Person, organization, records, etc. involved in creating resource) - * - *

- * Definition: - * An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility - *

- */ - public Agent addAgent() { - Agent newType = new Agent(); - getAgent().add(newType); - return newType; - } - - /** - * Gets the first repetition for agent (Person, organization, records, etc. involved in creating resource), - * creating it if it does not already exist. - * - *

- * Definition: - * An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility - *

- */ - public Agent getAgentFirstRep() { - if (getAgent().isEmpty()) { - return addAgent(); - } - return getAgent().get(0); - } - - /** - * Gets the value(s) for entity (An entity used in this activity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An entity used in this activity - *

- */ - public java.util.List getEntity() { - if (myEntity == null) { - myEntity = new java.util.ArrayList(); - } - return myEntity; - } - - - /** - * Gets the value(s) for entity (An entity used in this activity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An entity used in this activity - *

- */ - public java.util.List getEntityElement() { - if (myEntity == null) { - myEntity = new java.util.ArrayList(); - } - return myEntity; - } - - - /** - * Sets the value(s) for entity (An entity used in this activity) - * - *

- * Definition: - * An entity used in this activity - *

- */ - public Provenance setEntity(java.util.List theValue) { - myEntity = theValue; - return this; - } - - /** - * Adds and returns a new value for entity (An entity used in this activity) - * - *

- * Definition: - * An entity used in this activity - *

- */ - public Entity addEntity() { - Entity newType = new Entity(); - getEntity().add(newType); - return newType; - } - - /** - * Gets the first repetition for entity (An entity used in this activity), - * creating it if it does not already exist. - * - *

- * Definition: - * An entity used in this activity - *

- */ - public Entity getEntityFirstRep() { - if (getEntity().isEmpty()) { - return addEntity(); - } - return getEntity().get(0); - } - - /** - * Gets the value(s) for integritySignature (Base64 signature (DigSig) - integrity check). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A digital signature on the target resource(s). The signature should match a Provenance.agent.reference in the provenance resource. The signature is only added to support checking cryptographic integrity of the resource, and not to represent workflow and clinical aspects of the signing process, or to support non-repudiation. - *

- */ - public StringDt getIntegritySignature() { - if (myIntegritySignature == null) { - myIntegritySignature = new StringDt(); - } - return myIntegritySignature; - } - - - /** - * Gets the value(s) for integritySignature (Base64 signature (DigSig) - integrity check). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A digital signature on the target resource(s). The signature should match a Provenance.agent.reference in the provenance resource. The signature is only added to support checking cryptographic integrity of the resource, and not to represent workflow and clinical aspects of the signing process, or to support non-repudiation. - *

- */ - public StringDt getIntegritySignatureElement() { - if (myIntegritySignature == null) { - myIntegritySignature = new StringDt(); - } - return myIntegritySignature; - } - - - /** - * Sets the value(s) for integritySignature (Base64 signature (DigSig) - integrity check) - * - *

- * Definition: - * A digital signature on the target resource(s). The signature should match a Provenance.agent.reference in the provenance resource. The signature is only added to support checking cryptographic integrity of the resource, and not to represent workflow and clinical aspects of the signing process, or to support non-repudiation. - *

- */ - public Provenance setIntegritySignature(StringDt theValue) { - myIntegritySignature = theValue; - return this; - } - - /** - * Sets the value for integritySignature (Base64 signature (DigSig) - integrity check) - * - *

- * Definition: - * A digital signature on the target resource(s). The signature should match a Provenance.agent.reference in the provenance resource. The signature is only added to support checking cryptographic integrity of the resource, and not to represent workflow and clinical aspects of the signing process, or to support non-repudiation. - *

- */ - public Provenance setIntegritySignature( String theString) { - myIntegritySignature = new StringDt(theString); - return this; - } - - - /** - * Block class for child element: Provenance.agent (Person, organization, records, etc. involved in creating resource) - * - *

- * Definition: - * An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility - *

- */ - @Block() - public static class Agent - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="role", type=CodingDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="e.g. author | overseer | enterer | attester | source | cc: +", - formalDefinition="The role that the participant played" - ) - private CodingDt myRole; - - @Child(name="type", type=CodingDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="e.g. Resource | Person | Application | Record | Document +", - formalDefinition="The type of the participant" - ) - private CodingDt myType; - - @Child(name="reference", type=UriDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Identity of agent (urn or url)", - formalDefinition="Identity of participant. May be a logical or physical uri and maybe absolute or relative" - ) - private UriDt myReference; - - @Child(name="display", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Human description of participant", - formalDefinition="Human-readable description of the participant" - ) - private StringDt myDisplay; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myType, myReference, myDisplay); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRole, myType, myReference, myDisplay); - } - - /** - * Gets the value(s) for role (e.g. author | overseer | enterer | attester | source | cc: +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The role that the participant played - *

- */ - public CodingDt getRole() { - if (myRole == null) { - myRole = new CodingDt(); - } - return myRole; - } - - - /** - * Gets the value(s) for role (e.g. author | overseer | enterer | attester | source | cc: +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The role that the participant played - *

- */ - public CodingDt getRoleElement() { - if (myRole == null) { - myRole = new CodingDt(); - } - return myRole; - } - - - /** - * Sets the value(s) for role (e.g. author | overseer | enterer | attester | source | cc: +) - * - *

- * Definition: - * The role that the participant played - *

- */ - public Agent setRole(CodingDt theValue) { - myRole = theValue; - return this; - } - - - /** - * Gets the value(s) for type (e.g. Resource | Person | Application | Record | Document +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of the participant - *

- */ - public CodingDt getType() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (e.g. Resource | Person | Application | Record | Document +). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of the participant - *

- */ - public CodingDt getTypeElement() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (e.g. Resource | Person | Application | Record | Document +) - * - *

- * Definition: - * The type of the participant - *

- */ - public Agent setType(CodingDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for reference (Identity of agent (urn or url)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identity of participant. May be a logical or physical uri and maybe absolute or relative - *

- */ - public UriDt getReference() { - if (myReference == null) { - myReference = new UriDt(); - } - return myReference; - } - - - /** - * Gets the value(s) for reference (Identity of agent (urn or url)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identity of participant. May be a logical or physical uri and maybe absolute or relative - *

- */ - public UriDt getReferenceElement() { - if (myReference == null) { - myReference = new UriDt(); - } - return myReference; - } - - - /** - * Sets the value(s) for reference (Identity of agent (urn or url)) - * - *

- * Definition: - * Identity of participant. May be a logical or physical uri and maybe absolute or relative - *

- */ - public Agent setReference(UriDt theValue) { - myReference = theValue; - return this; - } - - /** - * Sets the value for reference (Identity of agent (urn or url)) - * - *

- * Definition: - * Identity of participant. May be a logical or physical uri and maybe absolute or relative - *

- */ - public Agent setReference( String theUri) { - myReference = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for display (Human description of participant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of the participant - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Human description of participant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of the participant - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Sets the value(s) for display (Human description of participant) - * - *

- * Definition: - * Human-readable description of the participant - *

- */ - public Agent setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (Human description of participant) - * - *

- * Definition: - * Human-readable description of the participant - *

- */ - public Agent setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: Provenance.entity (An entity used in this activity) - * - *

- * Definition: - * An entity used in this activity - *

- */ - @Block() - public static class Entity - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="role", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="derivation | revision | quotation | source", - formalDefinition="How the entity was used during the activity" - ) - private BoundCodeDt myRole; - - @Child(name="type", type=CodingDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Resource Type, or something else", - formalDefinition="The type of the entity. If the entity is a resource, then this is a resource type" - ) - private CodingDt myType; - - @Child(name="reference", type=UriDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Identity of participant (urn or url)", - formalDefinition="Identity of participant. May be a logical or physical uri and maybe absolute or relative" - ) - private UriDt myReference; - - @Child(name="display", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Human description of participant", - formalDefinition="Human-readable description of the entity" - ) - private StringDt myDisplay; - - @Child(name="agent", type=Agent.class, order=4, min=0, max=1) - @Description( - shortDefinition="Entity is attributed to this agent", - formalDefinition="The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity" - ) - private Agent myAgent; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myType, myReference, myDisplay, myAgent); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRole, myType, myReference, myDisplay, myAgent); - } - - /** - * Gets the value(s) for role (derivation | revision | quotation | source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How the entity was used during the activity - *

- */ - public BoundCodeDt getRole() { - if (myRole == null) { - myRole = new BoundCodeDt(ProvenanceEntityRoleEnum.VALUESET_BINDER); - } - return myRole; - } - - - /** - * Gets the value(s) for role (derivation | revision | quotation | source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How the entity was used during the activity - *

- */ - public BoundCodeDt getRoleElement() { - if (myRole == null) { - myRole = new BoundCodeDt(ProvenanceEntityRoleEnum.VALUESET_BINDER); - } - return myRole; - } - - - /** - * Sets the value(s) for role (derivation | revision | quotation | source) - * - *

- * Definition: - * How the entity was used during the activity - *

- */ - public Entity setRole(BoundCodeDt theValue) { - myRole = theValue; - return this; - } - - /** - * Sets the value(s) for role (derivation | revision | quotation | source) - * - *

- * Definition: - * How the entity was used during the activity - *

- */ - public Entity setRole(ProvenanceEntityRoleEnum theValue) { - getRole().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for type (Resource Type, or something else). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of the entity. If the entity is a resource, then this is a resource type - *

- */ - public CodingDt getType() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Resource Type, or something else). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of the entity. If the entity is a resource, then this is a resource type - *

- */ - public CodingDt getTypeElement() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Resource Type, or something else) - * - *

- * Definition: - * The type of the entity. If the entity is a resource, then this is a resource type - *

- */ - public Entity setType(CodingDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for reference (Identity of participant (urn or url)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identity of participant. May be a logical or physical uri and maybe absolute or relative - *

- */ - public UriDt getReference() { - if (myReference == null) { - myReference = new UriDt(); - } - return myReference; - } - - - /** - * Gets the value(s) for reference (Identity of participant (urn or url)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identity of participant. May be a logical or physical uri and maybe absolute or relative - *

- */ - public UriDt getReferenceElement() { - if (myReference == null) { - myReference = new UriDt(); - } - return myReference; - } - - - /** - * Sets the value(s) for reference (Identity of participant (urn or url)) - * - *

- * Definition: - * Identity of participant. May be a logical or physical uri and maybe absolute or relative - *

- */ - public Entity setReference(UriDt theValue) { - myReference = theValue; - return this; - } - - /** - * Sets the value for reference (Identity of participant (urn or url)) - * - *

- * Definition: - * Identity of participant. May be a logical or physical uri and maybe absolute or relative - *

- */ - public Entity setReference( String theUri) { - myReference = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for display (Human description of participant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of the entity - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Human description of participant). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-readable description of the entity - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Sets the value(s) for display (Human description of participant) - * - *

- * Definition: - * Human-readable description of the entity - *

- */ - public Entity setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (Human description of participant) - * - *

- * Definition: - * Human-readable description of the entity - *

- */ - public Entity setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for agent (Entity is attributed to this agent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity - *

- */ - public Agent getAgent() { - if (myAgent == null) { - myAgent = new Agent(); - } - return myAgent; - } - - - /** - * Gets the value(s) for agent (Entity is attributed to this agent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity - *

- */ - public Agent getAgentElement() { - if (myAgent == null) { - myAgent = new Agent(); - } - return myAgent; - } - - - /** - * Sets the value(s) for agent (Entity is attributed to this agent) - * - *

- * Definition: - * The entity is attributed to an agent to express the agent's responsibility for that entity, possibly along with other agents. This description can be understood as shorthand for saying that the agent was responsible for the activity which generated the entity - *

- */ - public Entity setAgent(Agent theValue) { - myAgent = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Provenance"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Query.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Query.java deleted file mode 100644 index 5c1998ae4de..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Query.java +++ /dev/null @@ -1,1252 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Query Resource - * (A description of a query with a set of parameters) - * - *

- * Definition: - * - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Query - *

- * - */ -@ResourceDef(name="Query", profile="http://hl7.org/fhir/profiles/Query", id="query") -public class Query - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Query.identifier
- *

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

- * Description:
- * Type: token
- * Path: Query.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for response - *

- * Description:
- * Type: token
- * Path: Query.response.identifier
- *

- */ - @SearchParamDefinition(name="response", path="Query.response.identifier", description="", type="token" ) - public static final String SP_RESPONSE = "response"; - - /** - * Fluent Client search parameter constant for response - *

- * Description:
- * Type: token
- * Path: Query.response.identifier
- *

- */ - public static final TokenClientParam RESPONSE = new TokenClientParam(SP_RESPONSE); - - - @Child(name="identifier", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Links query and its response(s)", - formalDefinition="" - ) - private UriDt myIdentifier; - - @Child(name="parameter", type=ExtensionDt.class, order=1, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Set of query parameters with values", - formalDefinition="" - ) - private java.util.List myParameter; - - @Child(name="response", order=2, min=0, max=1) - @Description( - shortDefinition="If this is a response to a query", - formalDefinition="" - ) - private Response myResponse; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myParameter, myResponse); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myParameter, myResponse); - } - - /** - * Gets the value(s) for identifier (Links query and its response(s)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new UriDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Links query and its response(s)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new UriDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Links query and its response(s)) - * - *

- * Definition: - * - *

- */ - public Query setIdentifier(UriDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Links query and its response(s)) - * - *

- * Definition: - * - *

- */ - public Query setIdentifier( String theUri) { - myIdentifier = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for parameter (Set of query parameters with values). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getParameter() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Gets the value(s) for parameter (Set of query parameters with values). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getParameterElement() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Sets the value(s) for parameter (Set of query parameters with values) - * - *

- * Definition: - * - *

- */ - public Query setParameter(java.util.List theValue) { - myParameter = theValue; - return this; - } - - /** - * Adds and returns a new value for parameter (Set of query parameters with values) - * - *

- * Definition: - * - *

- */ - public ExtensionDt addParameter() { - ExtensionDt newType = new ExtensionDt(); - getParameter().add(newType); - return newType; - } - - /** - * Gets the first repetition for parameter (Set of query parameters with values), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExtensionDt getParameterFirstRep() { - if (getParameter().isEmpty()) { - return addParameter(); - } - return getParameter().get(0); - } - - /** - * Gets the value(s) for response (If this is a response to a query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Response getResponse() { - if (myResponse == null) { - myResponse = new Response(); - } - return myResponse; - } - - - /** - * Gets the value(s) for response (If this is a response to a query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Response getResponseElement() { - if (myResponse == null) { - myResponse = new Response(); - } - return myResponse; - } - - - /** - * Sets the value(s) for response (If this is a response to a query) - * - *

- * Definition: - * - *

- */ - public Query setResponse(Response theValue) { - myResponse = theValue; - return this; - } - - - /** - * Block class for child element: Query.response (If this is a response to a query) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Response - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Links response to source query", - formalDefinition="" - ) - private UriDt myIdentifier; - - @Child(name="outcome", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="ok | limited | refused | error", - formalDefinition="Outcome of processing the query" - ) - private BoundCodeDt myOutcome; - - @Child(name="total", type=IntegerDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Total number of matching records", - formalDefinition="" - ) - private IntegerDt myTotal; - - @Child(name="parameter", type=ExtensionDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Parameters server used", - formalDefinition="" - ) - private java.util.List myParameter; - - @Child(name="first", type=ExtensionDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="To get first page (if paged)", - formalDefinition="" - ) - private java.util.List myFirst; - - @Child(name="previous", type=ExtensionDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="To get previous page (if paged)", - formalDefinition="" - ) - private java.util.List myPrevious; - - @Child(name="next", type=ExtensionDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="To get next page (if paged)", - formalDefinition="" - ) - private java.util.List myNext; - - @Child(name="last", type=ExtensionDt.class, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="To get last page (if paged)", - formalDefinition="" - ) - private java.util.List myLast; - - @Child(name="reference", order=8, min=0, max=Child.MAX_UNLIMITED, type={ - IResource.class }) - @Description( - shortDefinition="Resources that are the results of the search", - formalDefinition="" - ) - private java.util.List myReference; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myOutcome, myTotal, myParameter, myFirst, myPrevious, myNext, myLast, myReference); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myOutcome, myTotal, myParameter, myFirst, myPrevious, myNext, myLast, myReference); - } - - /** - * Gets the value(s) for identifier (Links response to source query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new UriDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Links response to source query). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new UriDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Links response to source query) - * - *

- * Definition: - * - *

- */ - public Response setIdentifier(UriDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Links response to source query) - * - *

- * Definition: - * - *

- */ - public Response setIdentifier( String theUri) { - myIdentifier = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for outcome (ok | limited | refused | error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Outcome of processing the query - *

- */ - public BoundCodeDt getOutcome() { - if (myOutcome == null) { - myOutcome = new BoundCodeDt(QueryOutcomeEnum.VALUESET_BINDER); - } - return myOutcome; - } - - - /** - * Gets the value(s) for outcome (ok | limited | refused | error). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Outcome of processing the query - *

- */ - public BoundCodeDt getOutcomeElement() { - if (myOutcome == null) { - myOutcome = new BoundCodeDt(QueryOutcomeEnum.VALUESET_BINDER); - } - return myOutcome; - } - - - /** - * Sets the value(s) for outcome (ok | limited | refused | error) - * - *

- * Definition: - * Outcome of processing the query - *

- */ - public Response setOutcome(BoundCodeDt theValue) { - myOutcome = theValue; - return this; - } - - /** - * Sets the value(s) for outcome (ok | limited | refused | error) - * - *

- * Definition: - * Outcome of processing the query - *

- */ - public Response setOutcome(QueryOutcomeEnum theValue) { - getOutcome().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for total (Total number of matching records). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IntegerDt getTotal() { - if (myTotal == null) { - myTotal = new IntegerDt(); - } - return myTotal; - } - - - /** - * Gets the value(s) for total (Total number of matching records). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IntegerDt getTotalElement() { - if (myTotal == null) { - myTotal = new IntegerDt(); - } - return myTotal; - } - - - /** - * Sets the value(s) for total (Total number of matching records) - * - *

- * Definition: - * - *

- */ - public Response setTotal(IntegerDt theValue) { - myTotal = theValue; - return this; - } - - /** - * Sets the value for total (Total number of matching records) - * - *

- * Definition: - * - *

- */ - public Response setTotal( int theInteger) { - myTotal = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for parameter (Parameters server used). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getParameter() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Gets the value(s) for parameter (Parameters server used). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getParameterElement() { - if (myParameter == null) { - myParameter = new java.util.ArrayList(); - } - return myParameter; - } - - - /** - * Sets the value(s) for parameter (Parameters server used) - * - *

- * Definition: - * - *

- */ - public Response setParameter(java.util.List theValue) { - myParameter = theValue; - return this; - } - - /** - * Adds and returns a new value for parameter (Parameters server used) - * - *

- * Definition: - * - *

- */ - public ExtensionDt addParameter() { - ExtensionDt newType = new ExtensionDt(); - getParameter().add(newType); - return newType; - } - - /** - * Gets the first repetition for parameter (Parameters server used), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExtensionDt getParameterFirstRep() { - if (getParameter().isEmpty()) { - return addParameter(); - } - return getParameter().get(0); - } - - /** - * Gets the value(s) for first (To get first page (if paged)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getFirst() { - if (myFirst == null) { - myFirst = new java.util.ArrayList(); - } - return myFirst; - } - - - /** - * Gets the value(s) for first (To get first page (if paged)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getFirstElement() { - if (myFirst == null) { - myFirst = new java.util.ArrayList(); - } - return myFirst; - } - - - /** - * Sets the value(s) for first (To get first page (if paged)) - * - *

- * Definition: - * - *

- */ - public Response setFirst(java.util.List theValue) { - myFirst = theValue; - return this; - } - - /** - * Adds and returns a new value for first (To get first page (if paged)) - * - *

- * Definition: - * - *

- */ - public ExtensionDt addFirst() { - ExtensionDt newType = new ExtensionDt(); - getFirst().add(newType); - return newType; - } - - /** - * Gets the first repetition for first (To get first page (if paged)), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExtensionDt getFirstFirstRep() { - if (getFirst().isEmpty()) { - return addFirst(); - } - return getFirst().get(0); - } - - /** - * Gets the value(s) for previous (To get previous page (if paged)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getPrevious() { - if (myPrevious == null) { - myPrevious = new java.util.ArrayList(); - } - return myPrevious; - } - - - /** - * Gets the value(s) for previous (To get previous page (if paged)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getPreviousElement() { - if (myPrevious == null) { - myPrevious = new java.util.ArrayList(); - } - return myPrevious; - } - - - /** - * Sets the value(s) for previous (To get previous page (if paged)) - * - *

- * Definition: - * - *

- */ - public Response setPrevious(java.util.List theValue) { - myPrevious = theValue; - return this; - } - - /** - * Adds and returns a new value for previous (To get previous page (if paged)) - * - *

- * Definition: - * - *

- */ - public ExtensionDt addPrevious() { - ExtensionDt newType = new ExtensionDt(); - getPrevious().add(newType); - return newType; - } - - /** - * Gets the first repetition for previous (To get previous page (if paged)), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExtensionDt getPreviousFirstRep() { - if (getPrevious().isEmpty()) { - return addPrevious(); - } - return getPrevious().get(0); - } - - /** - * Gets the value(s) for next (To get next page (if paged)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getNext() { - if (myNext == null) { - myNext = new java.util.ArrayList(); - } - return myNext; - } - - - /** - * Gets the value(s) for next (To get next page (if paged)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getNextElement() { - if (myNext == null) { - myNext = new java.util.ArrayList(); - } - return myNext; - } - - - /** - * Sets the value(s) for next (To get next page (if paged)) - * - *

- * Definition: - * - *

- */ - public Response setNext(java.util.List theValue) { - myNext = theValue; - return this; - } - - /** - * Adds and returns a new value for next (To get next page (if paged)) - * - *

- * Definition: - * - *

- */ - public ExtensionDt addNext() { - ExtensionDt newType = new ExtensionDt(); - getNext().add(newType); - return newType; - } - - /** - * Gets the first repetition for next (To get next page (if paged)), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExtensionDt getNextFirstRep() { - if (getNext().isEmpty()) { - return addNext(); - } - return getNext().get(0); - } - - /** - * Gets the value(s) for last (To get last page (if paged)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getLast() { - if (myLast == null) { - myLast = new java.util.ArrayList(); - } - return myLast; - } - - - /** - * Gets the value(s) for last (To get last page (if paged)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getLastElement() { - if (myLast == null) { - myLast = new java.util.ArrayList(); - } - return myLast; - } - - - /** - * Sets the value(s) for last (To get last page (if paged)) - * - *

- * Definition: - * - *

- */ - public Response setLast(java.util.List theValue) { - myLast = theValue; - return this; - } - - /** - * Adds and returns a new value for last (To get last page (if paged)) - * - *

- * Definition: - * - *

- */ - public ExtensionDt addLast() { - ExtensionDt newType = new ExtensionDt(); - getLast().add(newType); - return newType; - } - - /** - * Gets the first repetition for last (To get last page (if paged)), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExtensionDt getLastFirstRep() { - if (getLast().isEmpty()) { - return addLast(); - } - return getLast().get(0); - } - - /** - * Gets the value(s) for reference (Resources that are the results of the search). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getReference() { - if (myReference == null) { - myReference = new java.util.ArrayList(); - } - return myReference; - } - - - /** - * Gets the value(s) for reference (Resources that are the results of the search). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getReferenceElement() { - if (myReference == null) { - myReference = new java.util.ArrayList(); - } - return myReference; - } - - - /** - * Sets the value(s) for reference (Resources that are the results of the search) - * - *

- * Definition: - * - *

- */ - public Response setReference(java.util.List theValue) { - myReference = theValue; - return this; - } - - /** - * Adds and returns a new value for reference (Resources that are the results of the search) - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt addReference() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getReference().add(newType); - return newType; - } - - - } - - - - - @Override - public String getResourceName() { - return "Query"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Questionnaire.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Questionnaire.java deleted file mode 100644 index 36dc5f5ec4f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Questionnaire.java +++ /dev/null @@ -1,2082 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Questionnaire Resource - * (A structured set of questions and their answers) - * - *

- * Definition: - * A structured set of questions and their answers. The Questionnaire may contain questions, answers or both. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions - *

- * - *

- * Requirements: - * To support structured, hierarchical registration of data gathered using digital forms and other questionnaires. - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Questionnaire - *

- * - */ -@ResourceDef(name="Questionnaire", profile="http://hl7.org/fhir/profiles/Questionnaire", id="questionnaire") -public class Questionnaire - extends BaseResource implements IResource { - - /** - * Search parameter constant for status - *

- * Description: The status of the questionnaire
- * Type: token
- * Path: Questionnaire.status
- *

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

- * Description: The status of the questionnaire
- * Type: token
- * Path: Questionnaire.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for authored - *

- * Description: When the questionnaire was authored
- * Type: date
- * Path: Questionnaire.authored
- *

- */ - @SearchParamDefinition(name="authored", path="Questionnaire.authored", description="When the questionnaire was authored", type="date" ) - public static final String SP_AUTHORED = "authored"; - - /** - * Fluent Client search parameter constant for authored - *

- * Description: When the questionnaire was authored
- * Type: date
- * Path: Questionnaire.authored
- *

- */ - public static final DateClientParam AUTHORED = new DateClientParam(SP_AUTHORED); - - /** - * Search parameter constant for subject - *

- * Description: The subject of the questionnaire
- * Type: reference
- * Path: Questionnaire.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Questionnaire.subject", description="The subject of the questionnaire", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject of the questionnaire
- * Type: reference
- * Path: Questionnaire.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Questionnaire.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Questionnaire.subject"); - - /** - * Search parameter constant for author - *

- * Description: The author of the questionnaire
- * Type: reference
- * Path: Questionnaire.author
- *

- */ - @SearchParamDefinition(name="author", path="Questionnaire.author", description="The author of the questionnaire", type="reference" ) - public static final String SP_AUTHOR = "author"; - - /** - * Fluent Client search parameter constant for author - *

- * Description: The author of the questionnaire
- * Type: reference
- * Path: Questionnaire.author
- *

- */ - public static final ReferenceClientParam AUTHOR = new ReferenceClientParam(SP_AUTHOR); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Questionnaire.author". - */ - public static final Include INCLUDE_AUTHOR = new Include("Questionnaire.author"); - - /** - * Search parameter constant for identifier - *

- * Description: An identifier for the questionnaire
- * Type: token
- * Path: Questionnaire.identifier
- *

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

- * Description: An identifier for the questionnaire
- * Type: token
- * Path: Questionnaire.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for name - *

- * Description: Name of the questionnaire
- * Type: token
- * Path: Questionnaire.name
- *

- */ - @SearchParamDefinition(name="name", path="Questionnaire.name", description="Name of the questionnaire", type="token" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: Name of the questionnaire
- * Type: token
- * Path: Questionnaire.name
- *

- */ - public static final TokenClientParam NAME = new TokenClientParam(SP_NAME); - - /** - * Search parameter constant for encounter - *

- * Description: Encounter during which questionnaire was authored
- * Type: reference
- * Path: Questionnaire.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Questionnaire.encounter", description="Encounter during which questionnaire was authored", type="reference" ) - public static final String SP_ENCOUNTER = "encounter"; - - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Encounter during which questionnaire was authored
- * Type: reference
- * Path: Questionnaire.encounter
- *

- */ - public static final ReferenceClientParam ENCOUNTER = new ReferenceClientParam(SP_ENCOUNTER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Questionnaire.encounter". - */ - public static final Include INCLUDE_ENCOUNTER = new Include("Questionnaire.encounter"); - - - @Child(name="status", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="draft | published | retired | in progress | completed | amended", - formalDefinition="The lifecycle status of the questionnaire as a whole." - ) - private BoundCodeDt myStatus; - - @Child(name="authored", type=DateTimeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Date this version was authored", - formalDefinition="The date and/or time that this version of the questionnaire was authored" - ) - private DateTimeDt myAuthored; - - @Child(name="subject", order=2, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="The subject of the questions", - formalDefinition="The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information" - ) - private ResourceReferenceDt mySubject; - - @Child(name="author", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Person who received and recorded the answers", - formalDefinition="Person who received the answers to the questions in the Questionnaire and recorded them in the system" - ) - private ResourceReferenceDt myAuthor; - - @Child(name="source", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="The person who answered the questions", - formalDefinition="The person who answered the questions about the subject. Only used when this is not the subject him/herself" - ) - private ResourceReferenceDt mySource; - - @Child(name="name", type=CodeableConceptDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Name/code for a predefined list of questions", - formalDefinition="Structured name for a predefined list of questions this questionnaire is responding to" - ) - private BoundCodeableConceptDt myName; - - @Child(name="identifier", type=IdentifierDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this questionnaire", - formalDefinition="This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)" - ) - private java.util.List myIdentifier; - - @Child(name="encounter", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Encounter.class }) - @Description( - shortDefinition="Primary encounter during which the answers were collected", - formalDefinition="Encounter during which this questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers." - ) - private ResourceReferenceDt myEncounter; - - @Child(name="group", order=8, min=0, max=1) - @Description( - shortDefinition="Grouped questions", - formalDefinition="A group of questions to a possibly similarly grouped set of questions in the questionnaire" - ) - private Group myGroup; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myAuthored, mySubject, myAuthor, mySource, myName, myIdentifier, myEncounter, myGroup); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStatus, myAuthored, mySubject, myAuthor, mySource, myName, myIdentifier, myEncounter, myGroup); - } - - /** - * Gets the value(s) for status (draft | published | retired | in progress | completed | amended). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The lifecycle status of the questionnaire as a whole. - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(QuestionnaireStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (draft | published | retired | in progress | completed | amended). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The lifecycle status of the questionnaire as a whole. - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(QuestionnaireStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (draft | published | retired | in progress | completed | amended) - * - *

- * Definition: - * The lifecycle status of the questionnaire as a whole. - *

- */ - public Questionnaire setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (draft | published | retired | in progress | completed | amended) - * - *

- * Definition: - * The lifecycle status of the questionnaire as a whole. - *

- */ - public Questionnaire setStatus(QuestionnaireStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for authored (Date this version was authored). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and/or time that this version of the questionnaire was authored - *

- */ - public DateTimeDt getAuthored() { - if (myAuthored == null) { - myAuthored = new DateTimeDt(); - } - return myAuthored; - } - - - /** - * Gets the value(s) for authored (Date this version was authored). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date and/or time that this version of the questionnaire was authored - *

- */ - public DateTimeDt getAuthoredElement() { - if (myAuthored == null) { - myAuthored = new DateTimeDt(); - } - return myAuthored; - } - - - /** - * Sets the value(s) for authored (Date this version was authored) - * - *

- * Definition: - * The date and/or time that this version of the questionnaire was authored - *

- */ - public Questionnaire setAuthored(DateTimeDt theValue) { - myAuthored = theValue; - return this; - } - - /** - * Sets the value for authored (Date this version was authored) - * - *

- * Definition: - * The date and/or time that this version of the questionnaire was authored - *

- */ - public Questionnaire setAuthored( Date theDate, TemporalPrecisionEnum thePrecision) { - myAuthored = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for authored (Date this version was authored) - * - *

- * Definition: - * The date and/or time that this version of the questionnaire was authored - *

- */ - public Questionnaire setAuthoredWithSecondsPrecision( Date theDate) { - myAuthored = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for subject (The subject of the questions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (The subject of the questions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (The subject of the questions) - * - *

- * Definition: - * The subject of the questionnaires: this is the patient that the answers apply to, but this person is not necessarily the source of information - *

- */ - public Questionnaire setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Person who received and recorded the answers). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Person who received the answers to the questions in the Questionnaire and recorded them in the system - *

- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Person who received and recorded the answers). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Person who received the answers to the questions in the Questionnaire and recorded them in the system - *

- */ - public ResourceReferenceDt getAuthorElement() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Person who received and recorded the answers) - * - *

- * Definition: - * Person who received the answers to the questions in the Questionnaire and recorded them in the system - *

- */ - public Questionnaire setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for source (The person who answered the questions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who answered the questions about the subject. Only used when this is not the subject him/herself - *

- */ - public ResourceReferenceDt getSource() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (The person who answered the questions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The person who answered the questions about the subject. Only used when this is not the subject him/herself - *

- */ - public ResourceReferenceDt getSourceElement() { - if (mySource == null) { - mySource = new ResourceReferenceDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (The person who answered the questions) - * - *

- * Definition: - * The person who answered the questions about the subject. Only used when this is not the subject him/herself - *

- */ - public Questionnaire setSource(ResourceReferenceDt theValue) { - mySource = theValue; - return this; - } - - - /** - * Gets the value(s) for name (Name/code for a predefined list of questions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Structured name for a predefined list of questions this questionnaire is responding to - *

- */ - public BoundCodeableConceptDt getName() { - if (myName == null) { - myName = new BoundCodeableConceptDt(QuestionnaireNameEnum.VALUESET_BINDER); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name/code for a predefined list of questions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Structured name for a predefined list of questions this questionnaire is responding to - *

- */ - public BoundCodeableConceptDt getNameElement() { - if (myName == null) { - myName = new BoundCodeableConceptDt(QuestionnaireNameEnum.VALUESET_BINDER); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name/code for a predefined list of questions) - * - *

- * Definition: - * Structured name for a predefined list of questions this questionnaire is responding to - *

- */ - public Questionnaire setName(BoundCodeableConceptDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value(s) for name (Name/code for a predefined list of questions) - * - *

- * Definition: - * Structured name for a predefined list of questions this questionnaire is responding to - *

- */ - public Questionnaire setName(QuestionnaireNameEnum theValue) { - getName().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for identifier (External Ids for this questionnaire). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this questionnaire). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this questionnaire) - * - *

- * Definition: - * This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public Questionnaire setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this questionnaire) - * - *

- * Definition: - * This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this questionnaire), - * creating it if it does not already exist. - * - *

- * Definition: - * This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this questionnaire) - * - *

- * Definition: - * This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Questionnaire addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this questionnaire) - * - *

- * Definition: - * This records identifiers associated with this question/answer set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Questionnaire addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for encounter (Primary encounter during which the answers were collected). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Encounter during which this questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers. - *

- */ - public ResourceReferenceDt getEncounter() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Gets the value(s) for encounter (Primary encounter during which the answers were collected). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Encounter during which this questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers. - *

- */ - public ResourceReferenceDt getEncounterElement() { - if (myEncounter == null) { - myEncounter = new ResourceReferenceDt(); - } - return myEncounter; - } - - - /** - * Sets the value(s) for encounter (Primary encounter during which the answers were collected) - * - *

- * Definition: - * Encounter during which this questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers. - *

- */ - public Questionnaire setEncounter(ResourceReferenceDt theValue) { - myEncounter = theValue; - return this; - } - - - /** - * Gets the value(s) for group (Grouped questions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A group of questions to a possibly similarly grouped set of questions in the questionnaire - *

- */ - public Group getGroup() { - if (myGroup == null) { - myGroup = new Group(); - } - return myGroup; - } - - - /** - * Gets the value(s) for group (Grouped questions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A group of questions to a possibly similarly grouped set of questions in the questionnaire - *

- */ - public Group getGroupElement() { - if (myGroup == null) { - myGroup = new Group(); - } - return myGroup; - } - - - /** - * Sets the value(s) for group (Grouped questions) - * - *

- * Definition: - * A group of questions to a possibly similarly grouped set of questions in the questionnaire - *

- */ - public Questionnaire setGroup(Group theValue) { - myGroup = theValue; - return this; - } - - - /** - * Block class for child element: Questionnaire.group (Grouped questions) - * - *

- * Definition: - * A group of questions to a possibly similarly grouped set of questions in the questionnaire - *

- */ - @Block() - public static class Group - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Code or name of the section on a questionnaire", - formalDefinition="Structured name for a section of a predefined list of questions this questionnaire is responding to." - ) - private BoundCodeableConceptDt myName; - - @Child(name="header", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Text that is displayed above the contents of the group", - formalDefinition="" - ) - private StringDt myHeader; - - @Child(name="text", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Additional text for the group", - formalDefinition="Additional text for the group, used for display purposes" - ) - private StringDt myText; - - @Child(name="subject", order=3, min=0, max=1, type={ - IResource.class }) - @Description( - shortDefinition="The subject this group's answers are about", - formalDefinition="More specific subject this section's answers are about, details the subject given in Questionnaire" - ) - private ResourceReferenceDt mySubject; - - @Child(name="group", type=Group.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Nested questionnaire group", - formalDefinition="A sub-group within a group. The ordering of groups within this group is relevant" - ) - private java.util.List myGroup; - - @Child(name="question", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Questions in this group", - formalDefinition="Set of questions within this group. The order of questions within the group is relevant" - ) - private java.util.List myQuestion; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myHeader, myText, mySubject, myGroup, myQuestion); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myHeader, myText, mySubject, myGroup, myQuestion); - } - - /** - * Gets the value(s) for name (Code or name of the section on a questionnaire). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Structured name for a section of a predefined list of questions this questionnaire is responding to. - *

- */ - public BoundCodeableConceptDt getName() { - if (myName == null) { - myName = new BoundCodeableConceptDt(QuestionnaireGroupNameEnum.VALUESET_BINDER); - } - return myName; - } - - - /** - * Gets the value(s) for name (Code or name of the section on a questionnaire). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Structured name for a section of a predefined list of questions this questionnaire is responding to. - *

- */ - public BoundCodeableConceptDt getNameElement() { - if (myName == null) { - myName = new BoundCodeableConceptDt(QuestionnaireGroupNameEnum.VALUESET_BINDER); - } - return myName; - } - - - /** - * Sets the value(s) for name (Code or name of the section on a questionnaire) - * - *

- * Definition: - * Structured name for a section of a predefined list of questions this questionnaire is responding to. - *

- */ - public Group setName(BoundCodeableConceptDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value(s) for name (Code or name of the section on a questionnaire) - * - *

- * Definition: - * Structured name for a section of a predefined list of questions this questionnaire is responding to. - *

- */ - public Group setName(QuestionnaireGroupNameEnum theValue) { - getName().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for header (Text that is displayed above the contents of the group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getHeader() { - if (myHeader == null) { - myHeader = new StringDt(); - } - return myHeader; - } - - - /** - * Gets the value(s) for header (Text that is displayed above the contents of the group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getHeaderElement() { - if (myHeader == null) { - myHeader = new StringDt(); - } - return myHeader; - } - - - /** - * Sets the value(s) for header (Text that is displayed above the contents of the group) - * - *

- * Definition: - * - *

- */ - public Group setHeader(StringDt theValue) { - myHeader = theValue; - return this; - } - - /** - * Sets the value for header (Text that is displayed above the contents of the group) - * - *

- * Definition: - * - *

- */ - public Group setHeader( String theString) { - myHeader = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for text (Additional text for the group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional text for the group, used for display purposes - *

- */ - public StringDt getText() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (Additional text for the group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional text for the group, used for display purposes - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Sets the value(s) for text (Additional text for the group) - * - *

- * Definition: - * Additional text for the group, used for display purposes - *

- */ - public Group setText(StringDt theValue) { - myText = theValue; - return this; - } - - /** - * Sets the value for text (Additional text for the group) - * - *

- * Definition: - * Additional text for the group, used for display purposes - *

- */ - public Group setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for subject (The subject this group's answers are about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * More specific subject this section's answers are about, details the subject given in Questionnaire - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (The subject this group's answers are about). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * More specific subject this section's answers are about, details the subject given in Questionnaire - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (The subject this group's answers are about) - * - *

- * Definition: - * More specific subject this section's answers are about, details the subject given in Questionnaire - *

- */ - public Group setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for group (Nested questionnaire group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A sub-group within a group. The ordering of groups within this group is relevant - *

- */ - public java.util.List getGroup() { - if (myGroup == null) { - myGroup = new java.util.ArrayList(); - } - return myGroup; - } - - - /** - * Gets the value(s) for group (Nested questionnaire group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A sub-group within a group. The ordering of groups within this group is relevant - *

- */ - public java.util.List getGroupElement() { - if (myGroup == null) { - myGroup = new java.util.ArrayList(); - } - return myGroup; - } - - - /** - * Sets the value(s) for group (Nested questionnaire group) - * - *

- * Definition: - * A sub-group within a group. The ordering of groups within this group is relevant - *

- */ - public Group setGroup(java.util.List theValue) { - myGroup = theValue; - return this; - } - - /** - * Adds and returns a new value for group (Nested questionnaire group) - * - *

- * Definition: - * A sub-group within a group. The ordering of groups within this group is relevant - *

- */ - public Group addGroup() { - Group newType = new Group(); - getGroup().add(newType); - return newType; - } - - /** - * Gets the first repetition for group (Nested questionnaire group), - * creating it if it does not already exist. - * - *

- * Definition: - * A sub-group within a group. The ordering of groups within this group is relevant - *

- */ - public Group getGroupFirstRep() { - if (getGroup().isEmpty()) { - return addGroup(); - } - return getGroup().get(0); - } - - /** - * Gets the value(s) for question (Questions in this group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Set of questions within this group. The order of questions within the group is relevant - *

- */ - public java.util.List getQuestion() { - if (myQuestion == null) { - myQuestion = new java.util.ArrayList(); - } - return myQuestion; - } - - - /** - * Gets the value(s) for question (Questions in this group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Set of questions within this group. The order of questions within the group is relevant - *

- */ - public java.util.List getQuestionElement() { - if (myQuestion == null) { - myQuestion = new java.util.ArrayList(); - } - return myQuestion; - } - - - /** - * Sets the value(s) for question (Questions in this group) - * - *

- * Definition: - * Set of questions within this group. The order of questions within the group is relevant - *

- */ - public Group setQuestion(java.util.List theValue) { - myQuestion = theValue; - return this; - } - - /** - * Adds and returns a new value for question (Questions in this group) - * - *

- * Definition: - * Set of questions within this group. The order of questions within the group is relevant - *

- */ - public GroupQuestion addQuestion() { - GroupQuestion newType = new GroupQuestion(); - getQuestion().add(newType); - return newType; - } - - /** - * Gets the first repetition for question (Questions in this group), - * creating it if it does not already exist. - * - *

- * Definition: - * Set of questions within this group. The order of questions within the group is relevant - *

- */ - public GroupQuestion getQuestionFirstRep() { - if (getQuestion().isEmpty()) { - return addQuestion(); - } - return getQuestion().get(0); - } - - - } - - /** - * Block class for child element: Questionnaire.group.question (Questions in this group) - * - *

- * Definition: - * Set of questions within this group. The order of questions within the group is relevant - *

- */ - @Block() - public static class GroupQuestion - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Code or name of the question", - formalDefinition="Structured name for the question that identifies this question within the Questionnaire or Group" - ) - private CodeableConceptDt myName; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Text of the question as it is shown to the user", - formalDefinition="" - ) - private StringDt myText; - - @Child(name="answer", order=2, min=0, max=1, type={ - DecimalDt.class, IntegerDt.class, BooleanDt.class, DateDt.class, StringDt.class, DateTimeDt.class, InstantDt.class }) - @Description( - shortDefinition="Single-valued answer to the question", - formalDefinition="Single-valued answer to the question" - ) - private IDatatype myAnswer; - - @Child(name="choice", type=CodingDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Selected options", - formalDefinition="Selections made by the user from the list of options" - ) - private java.util.List myChoice; - - @Child(name="options", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.ValueSet.class }) - @Description( - shortDefinition="Valueset containing the possible options", - formalDefinition="Reference to a valueset containing the possible options" - ) - private ResourceReferenceDt myOptions; - - @Child(name="data", type=IDatatype.class, order=5, min=0, max=1) - @Description( - shortDefinition="Structured answer", - formalDefinition="Structured answer in the form of a FHIR Resource or datatype" - ) - private IDatatype myData; - - @Child(name="remarks", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Remarks about the answer given", - formalDefinition="The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself." - ) - private StringDt myRemarks; - - @Child(name="group", type=Group.class, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Nested questionnaire group", - formalDefinition="Nested group, containing nested question for this question. The order of groups within the question is relevant" - ) - private java.util.List myGroup; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myText, myAnswer, myChoice, myOptions, myData, myRemarks, myGroup); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myText, myAnswer, myChoice, myOptions, myData, myRemarks, myGroup); - } - - /** - * Gets the value(s) for name (Code or name of the question). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Structured name for the question that identifies this question within the Questionnaire or Group - *

- */ - public CodeableConceptDt getName() { - if (myName == null) { - myName = new CodeableConceptDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Code or name of the question). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Structured name for the question that identifies this question within the Questionnaire or Group - *

- */ - public CodeableConceptDt getNameElement() { - if (myName == null) { - myName = new CodeableConceptDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Code or name of the question) - * - *

- * Definition: - * Structured name for the question that identifies this question within the Questionnaire or Group - *

- */ - public GroupQuestion setName(CodeableConceptDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for text (Text of the question as it is shown to the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getText() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (Text of the question as it is shown to the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Sets the value(s) for text (Text of the question as it is shown to the user) - * - *

- * Definition: - * - *

- */ - public GroupQuestion setText(StringDt theValue) { - myText = theValue; - return this; - } - - /** - * Sets the value for text (Text of the question as it is shown to the user) - * - *

- * Definition: - * - *

- */ - public GroupQuestion setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for answer[x] (Single-valued answer to the question). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Single-valued answer to the question - *

- */ - public IDatatype getAnswer() { - return myAnswer; - } - - - /** - * Gets the value(s) for answer[x] (Single-valued answer to the question). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Single-valued answer to the question - *

- */ - public IDatatype getAnswerElement() { - return myAnswer; - } - - - /** - * Sets the value(s) for answer[x] (Single-valued answer to the question) - * - *

- * Definition: - * Single-valued answer to the question - *

- */ - public GroupQuestion setAnswer(IDatatype theValue) { - myAnswer = theValue; - return this; - } - - - /** - * Gets the value(s) for choice (Selected options). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Selections made by the user from the list of options - *

- */ - public java.util.List getChoice() { - if (myChoice == null) { - myChoice = new java.util.ArrayList(); - } - return myChoice; - } - - - /** - * Gets the value(s) for choice (Selected options). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Selections made by the user from the list of options - *

- */ - public java.util.List getChoiceElement() { - if (myChoice == null) { - myChoice = new java.util.ArrayList(); - } - return myChoice; - } - - - /** - * Sets the value(s) for choice (Selected options) - * - *

- * Definition: - * Selections made by the user from the list of options - *

- */ - public GroupQuestion setChoice(java.util.List theValue) { - myChoice = theValue; - return this; - } - - /** - * Adds and returns a new value for choice (Selected options) - * - *

- * Definition: - * Selections made by the user from the list of options - *

- */ - public CodingDt addChoice() { - CodingDt newType = new CodingDt(); - getChoice().add(newType); - return newType; - } - - /** - * Gets the first repetition for choice (Selected options), - * creating it if it does not already exist. - * - *

- * Definition: - * Selections made by the user from the list of options - *

- */ - public CodingDt getChoiceFirstRep() { - if (getChoice().isEmpty()) { - return addChoice(); - } - return getChoice().get(0); - } - - /** - * Gets the value(s) for options (Valueset containing the possible options). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference to a valueset containing the possible options - *

- */ - public ResourceReferenceDt getOptions() { - if (myOptions == null) { - myOptions = new ResourceReferenceDt(); - } - return myOptions; - } - - - /** - * Gets the value(s) for options (Valueset containing the possible options). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference to a valueset containing the possible options - *

- */ - public ResourceReferenceDt getOptionsElement() { - if (myOptions == null) { - myOptions = new ResourceReferenceDt(); - } - return myOptions; - } - - - /** - * Sets the value(s) for options (Valueset containing the possible options) - * - *

- * Definition: - * Reference to a valueset containing the possible options - *

- */ - public GroupQuestion setOptions(ResourceReferenceDt theValue) { - myOptions = theValue; - return this; - } - - - /** - * Gets the value(s) for data[x] (Structured answer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Structured answer in the form of a FHIR Resource or datatype - *

- */ - public IDatatype getData() { - return myData; - } - - - /** - * Gets the value(s) for data[x] (Structured answer). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Structured answer in the form of a FHIR Resource or datatype - *

- */ - public IDatatype getDataElement() { - return myData; - } - - - /** - * Sets the value(s) for data[x] (Structured answer) - * - *

- * Definition: - * Structured answer in the form of a FHIR Resource or datatype - *

- */ - public GroupQuestion setData(IDatatype theValue) { - myData = theValue; - return this; - } - - - /** - * Gets the value(s) for remarks (Remarks about the answer given). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself. - *

- */ - public StringDt getRemarks() { - if (myRemarks == null) { - myRemarks = new StringDt(); - } - return myRemarks; - } - - - /** - * Gets the value(s) for remarks (Remarks about the answer given). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself. - *

- */ - public StringDt getRemarksElement() { - if (myRemarks == null) { - myRemarks = new StringDt(); - } - return myRemarks; - } - - - /** - * Sets the value(s) for remarks (Remarks about the answer given) - * - *

- * Definition: - * The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself. - *

- */ - public GroupQuestion setRemarks(StringDt theValue) { - myRemarks = theValue; - return this; - } - - /** - * Sets the value for remarks (Remarks about the answer given) - * - *

- * Definition: - * The remark contains information about the answer given. This is additional information about the answer the author wishes to convey, but should not be used to contain information that is part of the answer itself. - *

- */ - public GroupQuestion setRemarks( String theString) { - myRemarks = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for group (Nested questionnaire group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Nested group, containing nested question for this question. The order of groups within the question is relevant - *

- */ - public java.util.List getGroup() { - if (myGroup == null) { - myGroup = new java.util.ArrayList(); - } - return myGroup; - } - - - /** - * Gets the value(s) for group (Nested questionnaire group). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Nested group, containing nested question for this question. The order of groups within the question is relevant - *

- */ - public java.util.List getGroupElement() { - if (myGroup == null) { - myGroup = new java.util.ArrayList(); - } - return myGroup; - } - - - /** - * Sets the value(s) for group (Nested questionnaire group) - * - *

- * Definition: - * Nested group, containing nested question for this question. The order of groups within the question is relevant - *

- */ - public GroupQuestion setGroup(java.util.List theValue) { - myGroup = theValue; - return this; - } - - /** - * Adds and returns a new value for group (Nested questionnaire group) - * - *

- * Definition: - * Nested group, containing nested question for this question. The order of groups within the question is relevant - *

- */ - public Group addGroup() { - Group newType = new Group(); - getGroup().add(newType); - return newType; - } - - /** - * Gets the first repetition for group (Nested questionnaire group), - * creating it if it does not already exist. - * - *

- * Definition: - * Nested group, containing nested question for this question. The order of groups within the question is relevant - *

- */ - public Group getGroupFirstRep() { - if (getGroup().isEmpty()) { - return addGroup(); - } - return getGroup().get(0); - } - - - } - - - - - - @Override - public String getResourceName() { - return "Questionnaire"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/RelatedPerson.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/RelatedPerson.java deleted file mode 100644 index 1fc21e0d55f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/RelatedPerson.java +++ /dev/null @@ -1,1054 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR RelatedPerson Resource - * (An person that is related to a patient, but who is not a direct target of care) - * - *

- * Definition: - * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process - *

- * - *

- * Requirements: - * Need to track persons related to the patient or the healthcare process. - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/RelatedPerson - *

- * - */ -@ResourceDef(name="RelatedPerson", profile="http://hl7.org/fhir/profiles/RelatedPerson", id="relatedperson") -public class RelatedPerson - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: A patient Identifier
- * Type: token
- * Path: RelatedPerson.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="RelatedPerson.identifier", description="A patient Identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: A patient Identifier
- * Type: token
- * Path: RelatedPerson.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for name - *

- * Description: A portion of name in any name part
- * Type: string
- * Path: RelatedPerson.name
- *

- */ - @SearchParamDefinition(name="name", path="RelatedPerson.name", description="A portion of name in any name part", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: A portion of name in any name part
- * Type: string
- * Path: RelatedPerson.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for phonetic - *

- * Description: A portion of name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - @SearchParamDefinition(name="phonetic", path="", description="A portion of name using some kind of phonetic matching algorithm", type="string" ) - public static final String SP_PHONETIC = "phonetic"; - - /** - * Fluent Client search parameter constant for phonetic - *

- * Description: A portion of name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - public static final StringClientParam PHONETIC = new StringClientParam(SP_PHONETIC); - - /** - * Search parameter constant for telecom - *

- * Description: The value in any kind of contact
- * Type: string
- * Path: RelatedPerson.telecom
- *

- */ - @SearchParamDefinition(name="telecom", path="RelatedPerson.telecom", description="The value in any kind of contact", type="string" ) - public static final String SP_TELECOM = "telecom"; - - /** - * Fluent Client search parameter constant for telecom - *

- * Description: The value in any kind of contact
- * Type: string
- * Path: RelatedPerson.telecom
- *

- */ - public static final StringClientParam TELECOM = new StringClientParam(SP_TELECOM); - - /** - * Search parameter constant for address - *

- * Description: An address in any kind of address/part
- * Type: string
- * Path: RelatedPerson.address
- *

- */ - @SearchParamDefinition(name="address", path="RelatedPerson.address", description="An address in any kind of address/part", type="string" ) - public static final String SP_ADDRESS = "address"; - - /** - * Fluent Client search parameter constant for address - *

- * Description: An address in any kind of address/part
- * Type: string
- * Path: RelatedPerson.address
- *

- */ - public static final StringClientParam ADDRESS = new StringClientParam(SP_ADDRESS); - - /** - * Search parameter constant for gender - *

- * Description: Gender of the person
- * Type: token
- * Path: RelatedPerson.gender
- *

- */ - @SearchParamDefinition(name="gender", path="RelatedPerson.gender", description="Gender of the person", type="token" ) - public static final String SP_GENDER = "gender"; - - /** - * Fluent Client search parameter constant for gender - *

- * Description: Gender of the person
- * Type: token
- * Path: RelatedPerson.gender
- *

- */ - public static final TokenClientParam GENDER = new TokenClientParam(SP_GENDER); - - /** - * Search parameter constant for patient - *

- * Description: The patient this person is related to
- * Type: reference
- * Path: RelatedPerson.patient
- *

- */ - @SearchParamDefinition(name="patient", path="RelatedPerson.patient", description="The patient this person is related to", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description: The patient this person is related to
- * Type: reference
- * Path: RelatedPerson.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "RelatedPerson.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("RelatedPerson.patient"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A Human identifier for this person", - formalDefinition="Identifier for a person within a particular scope." - ) - private java.util.List myIdentifier; - - @Child(name="patient", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="The patient this person is related to", - formalDefinition="The patient this person is related to" - ) - private ResourceReferenceDt myPatient; - - @Child(name="relationship", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="The nature of the relationship", - formalDefinition="The nature of the relationship between a patient and the related person" - ) - private BoundCodeableConceptDt myRelationship; - - @Child(name="name", type=HumanNameDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="A name associated with the person", - formalDefinition="A name associated with the person" - ) - private HumanNameDt myName; - - @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A contact detail for the person", - formalDefinition="A contact detail for the person, e.g. a telephone number or an email address." - ) - private java.util.List myTelecom; - - @Child(name="gender", type=CodeableConceptDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Gender for administrative purposes", - formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." - ) - private BoundCodeableConceptDt myGender; - - @Child(name="address", type=AddressDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Address where the related person can be contacted or visited", - formalDefinition="Address where the related person can be contacted or visited" - ) - private AddressDt myAddress; - - @Child(name="photo", type=AttachmentDt.class, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Image of the person", - formalDefinition="Image of the person" - ) - private java.util.List myPhoto; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myPatient, myRelationship, myName, myTelecom, myGender, myAddress, myPhoto); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myPatient, myRelationship, myName, myTelecom, myGender, myAddress, myPhoto); - } - - /** - * Gets the value(s) for identifier (A Human identifier for this person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for a person within a particular scope. - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (A Human identifier for this person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for a person within a particular scope. - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (A Human identifier for this person) - * - *

- * Definition: - * Identifier for a person within a particular scope. - *

- */ - public RelatedPerson setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (A Human identifier for this person) - * - *

- * Definition: - * Identifier for a person within a particular scope. - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (A Human identifier for this person), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifier for a person within a particular scope. - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (A Human identifier for this person) - * - *

- * Definition: - * Identifier for a person within a particular scope. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public RelatedPerson addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (A Human identifier for this person) - * - *

- * Definition: - * Identifier for a person within a particular scope. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public RelatedPerson addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for patient (The patient this person is related to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient this person is related to - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (The patient this person is related to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The patient this person is related to - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (The patient this person is related to) - * - *

- * Definition: - * The patient this person is related to - *

- */ - public RelatedPerson setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for relationship (The nature of the relationship). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The nature of the relationship between a patient and the related person - *

- */ - public BoundCodeableConceptDt getRelationship() { - if (myRelationship == null) { - myRelationship = new BoundCodeableConceptDt(PatientRelationshipTypeEnum.VALUESET_BINDER); - } - return myRelationship; - } - - - /** - * Gets the value(s) for relationship (The nature of the relationship). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The nature of the relationship between a patient and the related person - *

- */ - public BoundCodeableConceptDt getRelationshipElement() { - if (myRelationship == null) { - myRelationship = new BoundCodeableConceptDt(PatientRelationshipTypeEnum.VALUESET_BINDER); - } - return myRelationship; - } - - - /** - * Sets the value(s) for relationship (The nature of the relationship) - * - *

- * Definition: - * The nature of the relationship between a patient and the related person - *

- */ - public RelatedPerson setRelationship(BoundCodeableConceptDt theValue) { - myRelationship = theValue; - return this; - } - - /** - * Sets the value(s) for relationship (The nature of the relationship) - * - *

- * Definition: - * The nature of the relationship between a patient and the related person - *

- */ - public RelatedPerson setRelationship(PatientRelationshipTypeEnum theValue) { - getRelationship().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for name (A name associated with the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the person - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (A name associated with the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the person - *

- */ - public HumanNameDt getNameElement() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (A name associated with the person) - * - *

- * Definition: - * A name associated with the person - *

- */ - public RelatedPerson setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (A contact detail for the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (A contact detail for the person) - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public RelatedPerson setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (A contact detail for the person) - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (A contact detail for the person), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (A contact detail for the person) - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public RelatedPerson addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (A contact detail for the person) - * - *

- * Definition: - * A contact detail for the person, e.g. a telephone number or an email address. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public RelatedPerson addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGender() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Gets the value(s) for gender (Gender for administrative purposes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeableConceptDt getGenderElement() { - if (myGender == null) { - myGender = new BoundCodeableConceptDt(AdministrativeGenderCodesEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public RelatedPerson setGender(BoundCodeableConceptDt theValue) { - myGender = theValue; - return this; - } - - /** - * Sets the value(s) for gender (Gender for administrative purposes) - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public RelatedPerson setGender(AdministrativeGenderCodesEnum theValue) { - getGender().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for address (Address where the related person can be contacted or visited). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Address where the related person can be contacted or visited - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Gets the value(s) for address (Address where the related person can be contacted or visited). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Address where the related person can be contacted or visited - *

- */ - public AddressDt getAddressElement() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - - /** - * Sets the value(s) for address (Address where the related person can be contacted or visited) - * - *

- * Definition: - * Address where the related person can be contacted or visited - *

- */ - public RelatedPerson setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for photo (Image of the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Image of the person - *

- */ - public java.util.List getPhoto() { - if (myPhoto == null) { - myPhoto = new java.util.ArrayList(); - } - return myPhoto; - } - - - /** - * Gets the value(s) for photo (Image of the person). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Image of the person - *

- */ - public java.util.List getPhotoElement() { - if (myPhoto == null) { - myPhoto = new java.util.ArrayList(); - } - return myPhoto; - } - - - /** - * Sets the value(s) for photo (Image of the person) - * - *

- * Definition: - * Image of the person - *

- */ - public RelatedPerson setPhoto(java.util.List theValue) { - myPhoto = theValue; - return this; - } - - /** - * Adds and returns a new value for photo (Image of the person) - * - *

- * Definition: - * Image of the person - *

- */ - public AttachmentDt addPhoto() { - AttachmentDt newType = new AttachmentDt(); - getPhoto().add(newType); - return newType; - } - - /** - * Gets the first repetition for photo (Image of the person), - * creating it if it does not already exist. - * - *

- * Definition: - * Image of the person - *

- */ - public AttachmentDt getPhotoFirstRep() { - if (getPhoto().isEmpty()) { - return addPhoto(); - } - return getPhoto().get(0); - } - - - - @Override - public String getResourceName() { - return "RelatedPerson"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Remittance.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Remittance.java deleted file mode 100644 index 76225d591a0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Remittance.java +++ /dev/null @@ -1,816 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Remittance Resource - * (A remittance) - * - *

- * Definition: - * A remittance - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Remittance - *

- * - */ -@ResourceDef(name="Remittance", profile="http://hl7.org/fhir/profiles/Remittance", id="remittance") -public class Remittance - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Remittance.identifier
- *

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

- * Description:
- * Type: token
- * Path: Remittance.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for service - *

- * Description:
- * Type: token
- * Path: Remittance.service.code
- *

- */ - @SearchParamDefinition(name="service", path="Remittance.service.code", description="", type="token" ) - public static final String SP_SERVICE = "service"; - - /** - * Fluent Client search parameter constant for service - *

- * Description:
- * Type: token
- * Path: Remittance.service.code
- *

- */ - public static final TokenClientParam SERVICE = new TokenClientParam(SP_SERVICE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Remittance id", - formalDefinition="The remittance identifier" - ) - private IdentifierDt myIdentifier; - - @Child(name="service", order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A service paid as part of remittance", - formalDefinition="A service paid as part of remittance" - ) - private java.util.List myService; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myService); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myService); - } - - /** - * Gets the value(s) for identifier (Remittance id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The remittance identifier - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Remittance id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The remittance identifier - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Remittance id) - * - *

- * Definition: - * The remittance identifier - *

- */ - public Remittance setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Remittance id) - * - *

- * Definition: - * The remittance identifier - *

- */ - public Remittance setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Remittance id) - * - *

- * Definition: - * The remittance identifier - *

- */ - public Remittance setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for service (A service paid as part of remittance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A service paid as part of remittance - *

- */ - public java.util.List getService() { - if (myService == null) { - myService = new java.util.ArrayList(); - } - return myService; - } - - - /** - * Gets the value(s) for service (A service paid as part of remittance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A service paid as part of remittance - *

- */ - public java.util.List getServiceElement() { - if (myService == null) { - myService = new java.util.ArrayList(); - } - return myService; - } - - - /** - * Sets the value(s) for service (A service paid as part of remittance) - * - *

- * Definition: - * A service paid as part of remittance - *

- */ - public Remittance setService(java.util.List theValue) { - myService = theValue; - return this; - } - - /** - * Adds and returns a new value for service (A service paid as part of remittance) - * - *

- * Definition: - * A service paid as part of remittance - *

- */ - public Service addService() { - Service newType = new Service(); - getService().add(newType); - return newType; - } - - /** - * Gets the first repetition for service (A service paid as part of remittance), - * creating it if it does not already exist. - * - *

- * Definition: - * A service paid as part of remittance - *

- */ - public Service getServiceFirstRep() { - if (getService().isEmpty()) { - return addService(); - } - return getService().get(0); - } - - /** - * Block class for child element: Remittance.service (A service paid as part of remittance) - * - *

- * Definition: - * A service paid as part of remittance - *

- */ - @Block() - public static class Service - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="instance", type=IntegerDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Service instance number", - formalDefinition="The service instance number for the original transaction" - ) - private IntegerDt myInstance; - - @Child(name="code", type=CodeableConceptDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Professional service code", - formalDefinition="The code for the professional service" - ) - private CodeableConceptDt myCode; - - @Child(name="rate", type=DecimalDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Benefit Rate %", - formalDefinition="The percent of the service fee which would be elegible for coverage" - ) - private DecimalDt myRate; - - @Child(name="benefit", type=DecimalDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Benefit amount", - formalDefinition="The amount payable for a submitted service (includes both professional and lab fees.)" - ) - private DecimalDt myBenefit; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myInstance, myCode, myRate, myBenefit); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myInstance, myCode, myRate, myBenefit); - } - - /** - * Gets the value(s) for instance (Service instance number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The service instance number for the original transaction - *

- */ - public IntegerDt getInstance() { - if (myInstance == null) { - myInstance = new IntegerDt(); - } - return myInstance; - } - - - /** - * Gets the value(s) for instance (Service instance number). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The service instance number for the original transaction - *

- */ - public IntegerDt getInstanceElement() { - if (myInstance == null) { - myInstance = new IntegerDt(); - } - return myInstance; - } - - - /** - * Sets the value(s) for instance (Service instance number) - * - *

- * Definition: - * The service instance number for the original transaction - *

- */ - public Service setInstance(IntegerDt theValue) { - myInstance = theValue; - return this; - } - - /** - * Sets the value for instance (Service instance number) - * - *

- * Definition: - * The service instance number for the original transaction - *

- */ - public Service setInstance( int theInteger) { - myInstance = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for code (Professional service code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code for the professional service - *

- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Professional service code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code for the professional service - *

- */ - public CodeableConceptDt getCodeElement() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Professional service code) - * - *

- * Definition: - * The code for the professional service - *

- */ - public Service setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for rate (Benefit Rate %). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The percent of the service fee which would be elegible for coverage - *

- */ - public DecimalDt getRate() { - if (myRate == null) { - myRate = new DecimalDt(); - } - return myRate; - } - - - /** - * Gets the value(s) for rate (Benefit Rate %). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The percent of the service fee which would be elegible for coverage - *

- */ - public DecimalDt getRateElement() { - if (myRate == null) { - myRate = new DecimalDt(); - } - return myRate; - } - - - /** - * Sets the value(s) for rate (Benefit Rate %) - * - *

- * Definition: - * The percent of the service fee which would be elegible for coverage - *

- */ - public Service setRate(DecimalDt theValue) { - myRate = theValue; - return this; - } - - /** - * Sets the value for rate (Benefit Rate %) - * - *

- * Definition: - * The percent of the service fee which would be elegible for coverage - *

- */ - public Service setRate( long theValue) { - myRate = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for rate (Benefit Rate %) - * - *

- * Definition: - * The percent of the service fee which would be elegible for coverage - *

- */ - public Service setRate( double theValue) { - myRate = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for rate (Benefit Rate %) - * - *

- * Definition: - * The percent of the service fee which would be elegible for coverage - *

- */ - public Service setRate( java.math.BigDecimal theValue) { - myRate = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for benefit (Benefit amount). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount payable for a submitted service (includes both professional and lab fees.) - *

- */ - public DecimalDt getBenefit() { - if (myBenefit == null) { - myBenefit = new DecimalDt(); - } - return myBenefit; - } - - - /** - * Gets the value(s) for benefit (Benefit amount). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount payable for a submitted service (includes both professional and lab fees.) - *

- */ - public DecimalDt getBenefitElement() { - if (myBenefit == null) { - myBenefit = new DecimalDt(); - } - return myBenefit; - } - - - /** - * Sets the value(s) for benefit (Benefit amount) - * - *

- * Definition: - * The amount payable for a submitted service (includes both professional and lab fees.) - *

- */ - public Service setBenefit(DecimalDt theValue) { - myBenefit = theValue; - return this; - } - - /** - * Sets the value for benefit (Benefit amount) - * - *

- * Definition: - * The amount payable for a submitted service (includes both professional and lab fees.) - *

- */ - public Service setBenefit( long theValue) { - myBenefit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for benefit (Benefit amount) - * - *

- * Definition: - * The amount payable for a submitted service (includes both professional and lab fees.) - *

- */ - public Service setBenefit( double theValue) { - myBenefit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for benefit (Benefit amount) - * - *

- * Definition: - * The amount payable for a submitted service (includes both professional and lab fees.) - *

- */ - public Service setBenefit( java.math.BigDecimal theValue) { - myBenefit = new DecimalDt(theValue); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Remittance"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SecurityEvent.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SecurityEvent.java deleted file mode 100644 index a15ee67b89d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SecurityEvent.java +++ /dev/null @@ -1,3071 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR SecurityEvent Resource - * (Event record kept for security purposes) - * - *

- * Definition: - * A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/SecurityEvent - *

- * - */ -@ResourceDef(name="SecurityEvent", profile="http://hl7.org/fhir/profiles/SecurityEvent", id="securityevent") -public class SecurityEvent extends BaseResource implements ca.uhn.fhir.model.base.resource.BaseSecurityEvent { - - /** - * Search parameter constant for type - *

- * Description:
- * Type: token
- * Path: SecurityEvent.event.type
- *

- */ - @SearchParamDefinition(name="type", path="SecurityEvent.event.type", description="", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description:
- * Type: token
- * Path: SecurityEvent.event.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for action - *

- * Description:
- * Type: token
- * Path: SecurityEvent.event.action
- *

- */ - @SearchParamDefinition(name="action", path="SecurityEvent.event.action", description="", type="token" ) - public static final String SP_ACTION = "action"; - - /** - * Fluent Client search parameter constant for action - *

- * Description:
- * Type: token
- * Path: SecurityEvent.event.action
- *

- */ - public static final TokenClientParam ACTION = new TokenClientParam(SP_ACTION); - - /** - * Search parameter constant for date - *

- * Description:
- * Type: date
- * Path: SecurityEvent.event.dateTime
- *

- */ - @SearchParamDefinition(name="date", path="SecurityEvent.event.dateTime", description="", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description:
- * Type: date
- * Path: SecurityEvent.event.dateTime
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for subtype - *

- * Description:
- * Type: token
- * Path: SecurityEvent.event.subtype
- *

- */ - @SearchParamDefinition(name="subtype", path="SecurityEvent.event.subtype", description="", type="token" ) - public static final String SP_SUBTYPE = "subtype"; - - /** - * Fluent Client search parameter constant for subtype - *

- * Description:
- * Type: token
- * Path: SecurityEvent.event.subtype
- *

- */ - public static final TokenClientParam SUBTYPE = new TokenClientParam(SP_SUBTYPE); - - /** - * Search parameter constant for user - *

- * Description:
- * Type: token
- * Path: SecurityEvent.participant.userId
- *

- */ - @SearchParamDefinition(name="user", path="SecurityEvent.participant.userId", description="", type="token" ) - public static final String SP_USER = "user"; - - /** - * Fluent Client search parameter constant for user - *

- * Description:
- * Type: token
- * Path: SecurityEvent.participant.userId
- *

- */ - public static final TokenClientParam USER = new TokenClientParam(SP_USER); - - /** - * Search parameter constant for name - *

- * Description:
- * Type: string
- * Path: SecurityEvent.participant.name
- *

- */ - @SearchParamDefinition(name="name", path="SecurityEvent.participant.name", description="", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description:
- * Type: string
- * Path: SecurityEvent.participant.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for address - *

- * Description:
- * Type: token
- * Path: SecurityEvent.participant.network.identifier
- *

- */ - @SearchParamDefinition(name="address", path="SecurityEvent.participant.network.identifier", description="", type="token" ) - public static final String SP_ADDRESS = "address"; - - /** - * Fluent Client search parameter constant for address - *

- * Description:
- * Type: token
- * Path: SecurityEvent.participant.network.identifier
- *

- */ - public static final TokenClientParam ADDRESS = new TokenClientParam(SP_ADDRESS); - - /** - * Search parameter constant for source - *

- * Description:
- * Type: token
- * Path: SecurityEvent.source.identifier
- *

- */ - @SearchParamDefinition(name="source", path="SecurityEvent.source.identifier", description="", type="token" ) - public static final String SP_SOURCE = "source"; - - /** - * Fluent Client search parameter constant for source - *

- * Description:
- * Type: token
- * Path: SecurityEvent.source.identifier
- *

- */ - public static final TokenClientParam SOURCE = new TokenClientParam(SP_SOURCE); - - /** - * Search parameter constant for site - *

- * Description:
- * Type: token
- * Path: SecurityEvent.source.site
- *

- */ - @SearchParamDefinition(name="site", path="SecurityEvent.source.site", description="", type="token" ) - public static final String SP_SITE = "site"; - - /** - * Fluent Client search parameter constant for site - *

- * Description:
- * Type: token
- * Path: SecurityEvent.source.site
- *

- */ - public static final TokenClientParam SITE = new TokenClientParam(SP_SITE); - - /** - * Search parameter constant for object-type - *

- * Description:
- * Type: token
- * Path: SecurityEvent.object.type
- *

- */ - @SearchParamDefinition(name="object-type", path="SecurityEvent.object.type", description="", type="token" ) - public static final String SP_OBJECT_TYPE = "object-type"; - - /** - * Fluent Client search parameter constant for object-type - *

- * Description:
- * Type: token
- * Path: SecurityEvent.object.type
- *

- */ - public static final TokenClientParam OBJECT_TYPE = new TokenClientParam(SP_OBJECT_TYPE); - - /** - * Search parameter constant for identity - *

- * Description:
- * Type: token
- * Path: SecurityEvent.object.identifier
- *

- */ - @SearchParamDefinition(name="identity", path="SecurityEvent.object.identifier", description="", type="token" ) - public static final String SP_IDENTITY = "identity"; - - /** - * Fluent Client search parameter constant for identity - *

- * Description:
- * Type: token
- * Path: SecurityEvent.object.identifier
- *

- */ - public static final TokenClientParam IDENTITY = new TokenClientParam(SP_IDENTITY); - - /** - * Search parameter constant for reference - *

- * Description:
- * Type: reference
- * Path: SecurityEvent.object.reference
- *

- */ - @SearchParamDefinition(name="reference", path="SecurityEvent.object.reference", description="", type="reference" ) - public static final String SP_REFERENCE = "reference"; - - /** - * Fluent Client search parameter constant for reference - *

- * Description:
- * Type: reference
- * Path: SecurityEvent.object.reference
- *

- */ - public static final ReferenceClientParam REFERENCE = new ReferenceClientParam(SP_REFERENCE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "SecurityEvent.object.reference". - */ - public static final Include INCLUDE_OBJECT_REFERENCE = new Include("SecurityEvent.object.reference"); - - /** - * Search parameter constant for desc - *

- * Description:
- * Type: string
- * Path: SecurityEvent.object.name
- *

- */ - @SearchParamDefinition(name="desc", path="SecurityEvent.object.name", description="", type="string" ) - public static final String SP_DESC = "desc"; - - /** - * Fluent Client search parameter constant for desc - *

- * Description:
- * Type: string
- * Path: SecurityEvent.object.name
- *

- */ - public static final StringClientParam DESC = new StringClientParam(SP_DESC); - - /** - * Search parameter constant for patientid - *

- * Description: The id of the patient (one of multiple kinds of participations)
- * Type: token
- * Path:
- *

- */ - @SearchParamDefinition(name="patientid", path="", description="The id of the patient (one of multiple kinds of participations)", type="token" ) - public static final String SP_PATIENTID = "patientid"; - - /** - * Fluent Client search parameter constant for patientid - *

- * Description: The id of the patient (one of multiple kinds of participations)
- * Type: token
- * Path:
- *

- */ - public static final TokenClientParam PATIENTID = new TokenClientParam(SP_PATIENTID); - - /** - * Search parameter constant for altid - *

- * Description:
- * Type: token
- * Path: SecurityEvent.participant.altId
- *

- */ - @SearchParamDefinition(name="altid", path="SecurityEvent.participant.altId", description="", type="token" ) - public static final String SP_ALTID = "altid"; - - /** - * Fluent Client search parameter constant for altid - *

- * Description:
- * Type: token
- * Path: SecurityEvent.participant.altId
- *

- */ - public static final TokenClientParam ALTID = new TokenClientParam(SP_ALTID); - - - @Child(name="event", order=0, min=1, max=1) - @Description( - shortDefinition="What was done", - formalDefinition="Identifies the name, action type, time, and disposition of the audited event" - ) - private Event myEvent; - - @Child(name="participant", order=1, min=1, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="A person, a hardware device or software process", - formalDefinition="" - ) - private java.util.List myParticipant; - - @Child(name="source", order=2, min=1, max=1) - @Description( - shortDefinition="Application systems and processes", - formalDefinition="" - ) - private Source mySource; - - @Child(name="object", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Specific instances of data or objects that have been accessed", - formalDefinition="Specific instances of data or objects that have been accessed" - ) - private java.util.List myObject; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myParticipant, mySource, myObject); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEvent, myParticipant, mySource, myObject); - } - - /** - * Gets the value(s) for event (What was done). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the name, action type, time, and disposition of the audited event - *

- */ - public Event getEvent() { - if (myEvent == null) { - myEvent = new Event(); - } - return myEvent; - } - - - /** - * Gets the value(s) for event (What was done). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the name, action type, time, and disposition of the audited event - *

- */ - public Event getEventElement() { - if (myEvent == null) { - myEvent = new Event(); - } - return myEvent; - } - - - /** - * Sets the value(s) for event (What was done) - * - *

- * Definition: - * Identifies the name, action type, time, and disposition of the audited event - *

- */ - public SecurityEvent setEvent(Event theValue) { - myEvent = theValue; - return this; - } - - - /** - * Gets the value(s) for participant (A person, a hardware device or software process). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getParticipant() { - if (myParticipant == null) { - myParticipant = new java.util.ArrayList(); - } - return myParticipant; - } - - - /** - * Gets the value(s) for participant (A person, a hardware device or software process). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getParticipantElement() { - if (myParticipant == null) { - myParticipant = new java.util.ArrayList(); - } - return myParticipant; - } - - - /** - * Sets the value(s) for participant (A person, a hardware device or software process) - * - *

- * Definition: - * - *

- */ - public SecurityEvent setParticipant(java.util.List theValue) { - myParticipant = theValue; - return this; - } - - /** - * Adds and returns a new value for participant (A person, a hardware device or software process) - * - *

- * Definition: - * - *

- */ - public Participant addParticipant() { - Participant newType = new Participant(); - getParticipant().add(newType); - return newType; - } - - /** - * Gets the first repetition for participant (A person, a hardware device or software process), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public Participant getParticipantFirstRep() { - if (getParticipant().isEmpty()) { - return addParticipant(); - } - return getParticipant().get(0); - } - - /** - * Gets the value(s) for source (Application systems and processes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Source getSource() { - if (mySource == null) { - mySource = new Source(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Application systems and processes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Source getSourceElement() { - if (mySource == null) { - mySource = new Source(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Application systems and processes) - * - *

- * Definition: - * - *

- */ - public SecurityEvent setSource(Source theValue) { - mySource = theValue; - return this; - } - - - /** - * Gets the value(s) for object (Specific instances of data or objects that have been accessed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specific instances of data or objects that have been accessed - *

- */ - public java.util.List getObject() { - if (myObject == null) { - myObject = new java.util.ArrayList(); - } - return myObject; - } - - - /** - * Gets the value(s) for object (Specific instances of data or objects that have been accessed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specific instances of data or objects that have been accessed - *

- */ - public java.util.List getObjectElement() { - if (myObject == null) { - myObject = new java.util.ArrayList(); - } - return myObject; - } - - - /** - * Sets the value(s) for object (Specific instances of data or objects that have been accessed) - * - *

- * Definition: - * Specific instances of data or objects that have been accessed - *

- */ - public SecurityEvent setObject(java.util.List theValue) { - myObject = theValue; - return this; - } - - /** - * Adds and returns a new value for object (Specific instances of data or objects that have been accessed) - * - *

- * Definition: - * Specific instances of data or objects that have been accessed - *

- */ - public ObjectElement addObject() { - ObjectElement newType = new ObjectElement(); - getObject().add(newType); - return newType; - } - - /** - * Gets the first repetition for object (Specific instances of data or objects that have been accessed), - * creating it if it does not already exist. - * - *

- * Definition: - * Specific instances of data or objects that have been accessed - *

- */ - public ObjectElement getObjectFirstRep() { - if (getObject().isEmpty()) { - return addObject(); - } - return getObject().get(0); - } - - /** - * Block class for child element: SecurityEvent.event (What was done) - * - *

- * Definition: - * Identifies the name, action type, time, and disposition of the audited event - *

- */ - @Block() - public static class Event - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Type/identifier of event", - formalDefinition="Identifier for a family of the event" - ) - private CodeableConceptDt myType; - - @Child(name="subtype", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="More specific type/id for the event", - formalDefinition="Identifier for the category of event" - ) - private java.util.List mySubtype; - - @Child(name="action", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Type of action performed during the event", - formalDefinition="Indicator for type of action performed during the event that generated the audit" - ) - private BoundCodeDt myAction; - - @Child(name="dateTime", type=InstantDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Time when the event occurred on source", - formalDefinition="The time when the event occurred on the source" - ) - private InstantDt myDateTime; - - @Child(name="outcome", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Whether the event succeeded or failed", - formalDefinition="Indicates whether the event succeeded or failed" - ) - private BoundCodeDt myOutcome; - - @Child(name="outcomeDesc", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Description of the event outcome", - formalDefinition="A free text description of the outcome of the event" - ) - private StringDt myOutcomeDesc; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySubtype, myAction, myDateTime, myOutcome, myOutcomeDesc); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySubtype, myAction, myDateTime, myOutcome, myOutcomeDesc); - } - - /** - * Gets the value(s) for type (Type/identifier of event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for a family of the event - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Type/identifier of event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for a family of the event - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Type/identifier of event) - * - *

- * Definition: - * Identifier for a family of the event - *

- */ - public Event setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for subtype (More specific type/id for the event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the category of event - *

- */ - public java.util.List getSubtype() { - if (mySubtype == null) { - mySubtype = new java.util.ArrayList(); - } - return mySubtype; - } - - - /** - * Gets the value(s) for subtype (More specific type/id for the event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the category of event - *

- */ - public java.util.List getSubtypeElement() { - if (mySubtype == null) { - mySubtype = new java.util.ArrayList(); - } - return mySubtype; - } - - - /** - * Sets the value(s) for subtype (More specific type/id for the event) - * - *

- * Definition: - * Identifier for the category of event - *

- */ - public Event setSubtype(java.util.List theValue) { - mySubtype = theValue; - return this; - } - - /** - * Adds and returns a new value for subtype (More specific type/id for the event) - * - *

- * Definition: - * Identifier for the category of event - *

- */ - public CodeableConceptDt addSubtype() { - CodeableConceptDt newType = new CodeableConceptDt(); - getSubtype().add(newType); - return newType; - } - - /** - * Gets the first repetition for subtype (More specific type/id for the event), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifier for the category of event - *

- */ - public CodeableConceptDt getSubtypeFirstRep() { - if (getSubtype().isEmpty()) { - return addSubtype(); - } - return getSubtype().get(0); - } - - /** - * Gets the value(s) for action (Type of action performed during the event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicator for type of action performed during the event that generated the audit - *

- */ - public BoundCodeDt getAction() { - if (myAction == null) { - myAction = new BoundCodeDt(SecurityEventActionEnum.VALUESET_BINDER); - } - return myAction; - } - - - /** - * Gets the value(s) for action (Type of action performed during the event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicator for type of action performed during the event that generated the audit - *

- */ - public BoundCodeDt getActionElement() { - if (myAction == null) { - myAction = new BoundCodeDt(SecurityEventActionEnum.VALUESET_BINDER); - } - return myAction; - } - - - /** - * Sets the value(s) for action (Type of action performed during the event) - * - *

- * Definition: - * Indicator for type of action performed during the event that generated the audit - *

- */ - public Event setAction(BoundCodeDt theValue) { - myAction = theValue; - return this; - } - - /** - * Sets the value(s) for action (Type of action performed during the event) - * - *

- * Definition: - * Indicator for type of action performed during the event that generated the audit - *

- */ - public Event setAction(SecurityEventActionEnum theValue) { - getAction().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for dateTime (Time when the event occurred on source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time when the event occurred on the source - *

- */ - public InstantDt getDateTime() { - if (myDateTime == null) { - myDateTime = new InstantDt(); - } - return myDateTime; - } - - - /** - * Gets the value(s) for dateTime (Time when the event occurred on source). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time when the event occurred on the source - *

- */ - public InstantDt getDateTimeElement() { - if (myDateTime == null) { - myDateTime = new InstantDt(); - } - return myDateTime; - } - - - /** - * Sets the value(s) for dateTime (Time when the event occurred on source) - * - *

- * Definition: - * The time when the event occurred on the source - *

- */ - public Event setDateTime(InstantDt theValue) { - myDateTime = theValue; - return this; - } - - /** - * Sets the value for dateTime (Time when the event occurred on source) - * - *

- * Definition: - * The time when the event occurred on the source - *

- */ - public Event setDateTimeWithMillisPrecision( Date theDate) { - myDateTime = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for dateTime (Time when the event occurred on source) - * - *

- * Definition: - * The time when the event occurred on the source - *

- */ - public Event setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) { - myDateTime = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for outcome (Whether the event succeeded or failed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the event succeeded or failed - *

- */ - public BoundCodeDt getOutcome() { - if (myOutcome == null) { - myOutcome = new BoundCodeDt(SecurityEventOutcomeEnum.VALUESET_BINDER); - } - return myOutcome; - } - - - /** - * Gets the value(s) for outcome (Whether the event succeeded or failed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates whether the event succeeded or failed - *

- */ - public BoundCodeDt getOutcomeElement() { - if (myOutcome == null) { - myOutcome = new BoundCodeDt(SecurityEventOutcomeEnum.VALUESET_BINDER); - } - return myOutcome; - } - - - /** - * Sets the value(s) for outcome (Whether the event succeeded or failed) - * - *

- * Definition: - * Indicates whether the event succeeded or failed - *

- */ - public Event setOutcome(BoundCodeDt theValue) { - myOutcome = theValue; - return this; - } - - /** - * Sets the value(s) for outcome (Whether the event succeeded or failed) - * - *

- * Definition: - * Indicates whether the event succeeded or failed - *

- */ - public Event setOutcome(SecurityEventOutcomeEnum theValue) { - getOutcome().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for outcomeDesc (Description of the event outcome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text description of the outcome of the event - *

- */ - public StringDt getOutcomeDesc() { - if (myOutcomeDesc == null) { - myOutcomeDesc = new StringDt(); - } - return myOutcomeDesc; - } - - - /** - * Gets the value(s) for outcomeDesc (Description of the event outcome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text description of the outcome of the event - *

- */ - public StringDt getOutcomeDescElement() { - if (myOutcomeDesc == null) { - myOutcomeDesc = new StringDt(); - } - return myOutcomeDesc; - } - - - /** - * Sets the value(s) for outcomeDesc (Description of the event outcome) - * - *

- * Definition: - * A free text description of the outcome of the event - *

- */ - public Event setOutcomeDesc(StringDt theValue) { - myOutcomeDesc = theValue; - return this; - } - - /** - * Sets the value for outcomeDesc (Description of the event outcome) - * - *

- * Definition: - * A free text description of the outcome of the event - *

- */ - public Event setOutcomeDesc( String theString) { - myOutcomeDesc = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: SecurityEvent.participant (A person, a hardware device or software process) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Participant - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="role", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="User roles (e.g. local RBAC codes)", - formalDefinition="Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context" - ) - private java.util.List myRole; - - @Child(name="reference", order=1, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Direct reference to resource", - formalDefinition="Direct reference to a resource that identifies the participant" - ) - private ResourceReferenceDt myReference; - - @Child(name="userId", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Unique identifier for the user", - formalDefinition="Unique identifier for the user actively participating in the event" - ) - private StringDt myUserId; - - @Child(name="altId", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Alternative User id e.g. authentication", - formalDefinition="Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available" - ) - private StringDt myAltId; - - @Child(name="name", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Human-meaningful name for the user", - formalDefinition="Human-meaningful name for the user" - ) - private StringDt myName; - - @Child(name="requestor", type=BooleanDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Whether user is initiator", - formalDefinition="Indicator that the user is or is not the requestor, or initiator, for the event being audited." - ) - private BooleanDt myRequestor; - - @Child(name="media", type=CodingDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Type of media", - formalDefinition="Type of media involved. Used when the event is about exporting/importing onto media" - ) - private CodingDt myMedia; - - @Child(name="network", order=7, min=0, max=1) - @Description( - shortDefinition="Logical network location for application activity", - formalDefinition="Logical network location for application activity, if the activity has a network location" - ) - private ParticipantNetwork myNetwork; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myReference, myUserId, myAltId, myName, myRequestor, myMedia, myNetwork); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRole, myReference, myUserId, myAltId, myName, myRequestor, myMedia, myNetwork); - } - - /** - * Gets the value(s) for role (User roles (e.g. local RBAC codes)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context - *

- */ - public java.util.List getRole() { - if (myRole == null) { - myRole = new java.util.ArrayList(); - } - return myRole; - } - - - /** - * Gets the value(s) for role (User roles (e.g. local RBAC codes)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context - *

- */ - public java.util.List getRoleElement() { - if (myRole == null) { - myRole = new java.util.ArrayList(); - } - return myRole; - } - - - /** - * Sets the value(s) for role (User roles (e.g. local RBAC codes)) - * - *

- * Definition: - * Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context - *

- */ - public Participant setRole(java.util.List theValue) { - myRole = theValue; - return this; - } - - /** - * Adds and returns a new value for role (User roles (e.g. local RBAC codes)) - * - *

- * Definition: - * Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context - *

- */ - public CodeableConceptDt addRole() { - CodeableConceptDt newType = new CodeableConceptDt(); - getRole().add(newType); - return newType; - } - - /** - * Gets the first repetition for role (User roles (e.g. local RBAC codes)), - * creating it if it does not already exist. - * - *

- * Definition: - * Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context - *

- */ - public CodeableConceptDt getRoleFirstRep() { - if (getRole().isEmpty()) { - return addRole(); - } - return getRole().get(0); - } - - /** - * Gets the value(s) for reference (Direct reference to resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Direct reference to a resource that identifies the participant - *

- */ - public ResourceReferenceDt getReference() { - if (myReference == null) { - myReference = new ResourceReferenceDt(); - } - return myReference; - } - - - /** - * Gets the value(s) for reference (Direct reference to resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Direct reference to a resource that identifies the participant - *

- */ - public ResourceReferenceDt getReferenceElement() { - if (myReference == null) { - myReference = new ResourceReferenceDt(); - } - return myReference; - } - - - /** - * Sets the value(s) for reference (Direct reference to resource) - * - *

- * Definition: - * Direct reference to a resource that identifies the participant - *

- */ - public Participant setReference(ResourceReferenceDt theValue) { - myReference = theValue; - return this; - } - - - /** - * Gets the value(s) for userId (Unique identifier for the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Unique identifier for the user actively participating in the event - *

- */ - public StringDt getUserId() { - if (myUserId == null) { - myUserId = new StringDt(); - } - return myUserId; - } - - - /** - * Gets the value(s) for userId (Unique identifier for the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Unique identifier for the user actively participating in the event - *

- */ - public StringDt getUserIdElement() { - if (myUserId == null) { - myUserId = new StringDt(); - } - return myUserId; - } - - - /** - * Sets the value(s) for userId (Unique identifier for the user) - * - *

- * Definition: - * Unique identifier for the user actively participating in the event - *

- */ - public Participant setUserId(StringDt theValue) { - myUserId = theValue; - return this; - } - - /** - * Sets the value for userId (Unique identifier for the user) - * - *

- * Definition: - * Unique identifier for the user actively participating in the event - *

- */ - public Participant setUserId( String theString) { - myUserId = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for altId (Alternative User id e.g. authentication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available - *

- */ - public StringDt getAltId() { - if (myAltId == null) { - myAltId = new StringDt(); - } - return myAltId; - } - - - /** - * Gets the value(s) for altId (Alternative User id e.g. authentication). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available - *

- */ - public StringDt getAltIdElement() { - if (myAltId == null) { - myAltId = new StringDt(); - } - return myAltId; - } - - - /** - * Sets the value(s) for altId (Alternative User id e.g. authentication) - * - *

- * Definition: - * Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available - *

- */ - public Participant setAltId(StringDt theValue) { - myAltId = theValue; - return this; - } - - /** - * Sets the value for altId (Alternative User id e.g. authentication) - * - *

- * Definition: - * Alternative Participant Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g., single sign-on), if available - *

- */ - public Participant setAltId( String theString) { - myAltId = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (Human-meaningful name for the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-meaningful name for the user - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Human-meaningful name for the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Human-meaningful name for the user - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Human-meaningful name for the user) - * - *

- * Definition: - * Human-meaningful name for the user - *

- */ - public Participant setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Human-meaningful name for the user) - * - *

- * Definition: - * Human-meaningful name for the user - *

- */ - public Participant setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for requestor (Whether user is initiator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicator that the user is or is not the requestor, or initiator, for the event being audited. - *

- */ - public BooleanDt getRequestor() { - if (myRequestor == null) { - myRequestor = new BooleanDt(); - } - return myRequestor; - } - - - /** - * Gets the value(s) for requestor (Whether user is initiator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicator that the user is or is not the requestor, or initiator, for the event being audited. - *

- */ - public BooleanDt getRequestorElement() { - if (myRequestor == null) { - myRequestor = new BooleanDt(); - } - return myRequestor; - } - - - /** - * Sets the value(s) for requestor (Whether user is initiator) - * - *

- * Definition: - * Indicator that the user is or is not the requestor, or initiator, for the event being audited. - *

- */ - public Participant setRequestor(BooleanDt theValue) { - myRequestor = theValue; - return this; - } - - /** - * Sets the value for requestor (Whether user is initiator) - * - *

- * Definition: - * Indicator that the user is or is not the requestor, or initiator, for the event being audited. - *

- */ - public Participant setRequestor( boolean theBoolean) { - myRequestor = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for media (Type of media). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of media involved. Used when the event is about exporting/importing onto media - *

- */ - public CodingDt getMedia() { - if (myMedia == null) { - myMedia = new CodingDt(); - } - return myMedia; - } - - - /** - * Gets the value(s) for media (Type of media). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of media involved. Used when the event is about exporting/importing onto media - *

- */ - public CodingDt getMediaElement() { - if (myMedia == null) { - myMedia = new CodingDt(); - } - return myMedia; - } - - - /** - * Sets the value(s) for media (Type of media) - * - *

- * Definition: - * Type of media involved. Used when the event is about exporting/importing onto media - *

- */ - public Participant setMedia(CodingDt theValue) { - myMedia = theValue; - return this; - } - - - /** - * Gets the value(s) for network (Logical network location for application activity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Logical network location for application activity, if the activity has a network location - *

- */ - public ParticipantNetwork getNetwork() { - if (myNetwork == null) { - myNetwork = new ParticipantNetwork(); - } - return myNetwork; - } - - - /** - * Gets the value(s) for network (Logical network location for application activity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Logical network location for application activity, if the activity has a network location - *

- */ - public ParticipantNetwork getNetworkElement() { - if (myNetwork == null) { - myNetwork = new ParticipantNetwork(); - } - return myNetwork; - } - - - /** - * Sets the value(s) for network (Logical network location for application activity) - * - *

- * Definition: - * Logical network location for application activity, if the activity has a network location - *

- */ - public Participant setNetwork(ParticipantNetwork theValue) { - myNetwork = theValue; - return this; - } - - - - } - - /** - * Block class for child element: SecurityEvent.participant.network (Logical network location for application activity) - * - *

- * Definition: - * Logical network location for application activity, if the activity has a network location - *

- */ - @Block() - public static class ParticipantNetwork - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identifier for the network access point of the user device", - formalDefinition="An identifier for the network access point of the user device for the audit event" - ) - private StringDt myIdentifier; - - @Child(name="type", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="The type of network access point", - formalDefinition="An identifier for the type of network access point that originated the audit event" - ) - private BoundCodeDt myType; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType); - } - - /** - * Gets the value(s) for identifier (Identifier for the network access point of the user device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier for the network access point of the user device for the audit event - *

- */ - public StringDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifier for the network access point of the user device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier for the network access point of the user device for the audit event - *

- */ - public StringDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifier for the network access point of the user device) - * - *

- * Definition: - * An identifier for the network access point of the user device for the audit event - *

- */ - public ParticipantNetwork setIdentifier(StringDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Identifier for the network access point of the user device) - * - *

- * Definition: - * An identifier for the network access point of the user device for the audit event - *

- */ - public ParticipantNetwork setIdentifier( String theString) { - myIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (The type of network access point). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier for the type of network access point that originated the audit event - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(SecurityEventParticipantNetworkTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (The type of network access point). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier for the type of network access point that originated the audit event - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(SecurityEventParticipantNetworkTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (The type of network access point) - * - *

- * Definition: - * An identifier for the type of network access point that originated the audit event - *

- */ - public ParticipantNetwork setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (The type of network access point) - * - *

- * Definition: - * An identifier for the type of network access point that originated the audit event - *

- */ - public ParticipantNetwork setType(SecurityEventParticipantNetworkTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - - } - - - - /** - * Block class for child element: SecurityEvent.source (Application systems and processes) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Source - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="site", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Logical source location within the enterprise", - formalDefinition="Logical source location within the healthcare enterprise network" - ) - private StringDt mySite; - - @Child(name="identifier", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="The id of source where event originated", - formalDefinition="Identifier of the source where the event originated" - ) - private StringDt myIdentifier; - - @Child(name="type", type=CodingDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="The type of source where event originated", - formalDefinition="Code specifying the type of source where event originated" - ) - private java.util.List myType; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySite, myIdentifier, myType); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySite, myIdentifier, myType); - } - - /** - * Gets the value(s) for site (Logical source location within the enterprise). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Logical source location within the healthcare enterprise network - *

- */ - public StringDt getSite() { - if (mySite == null) { - mySite = new StringDt(); - } - return mySite; - } - - - /** - * Gets the value(s) for site (Logical source location within the enterprise). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Logical source location within the healthcare enterprise network - *

- */ - public StringDt getSiteElement() { - if (mySite == null) { - mySite = new StringDt(); - } - return mySite; - } - - - /** - * Sets the value(s) for site (Logical source location within the enterprise) - * - *

- * Definition: - * Logical source location within the healthcare enterprise network - *

- */ - public Source setSite(StringDt theValue) { - mySite = theValue; - return this; - } - - /** - * Sets the value for site (Logical source location within the enterprise) - * - *

- * Definition: - * Logical source location within the healthcare enterprise network - *

- */ - public Source setSite( String theString) { - mySite = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for identifier (The id of source where event originated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the source where the event originated - *

- */ - public StringDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (The id of source where event originated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier of the source where the event originated - *

- */ - public StringDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (The id of source where event originated) - * - *

- * Definition: - * Identifier of the source where the event originated - *

- */ - public Source setIdentifier(StringDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (The id of source where event originated) - * - *

- * Definition: - * Identifier of the source where the event originated - *

- */ - public Source setIdentifier( String theString) { - myIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (The type of source where event originated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code specifying the type of source where event originated - *

- */ - public java.util.List getType() { - if (myType == null) { - myType = new java.util.ArrayList(); - } - return myType; - } - - - /** - * Gets the value(s) for type (The type of source where event originated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code specifying the type of source where event originated - *

- */ - public java.util.List getTypeElement() { - if (myType == null) { - myType = new java.util.ArrayList(); - } - return myType; - } - - - /** - * Sets the value(s) for type (The type of source where event originated) - * - *

- * Definition: - * Code specifying the type of source where event originated - *

- */ - public Source setType(java.util.List theValue) { - myType = theValue; - return this; - } - - /** - * Adds and returns a new value for type (The type of source where event originated) - * - *

- * Definition: - * Code specifying the type of source where event originated - *

- */ - public CodingDt addType() { - CodingDt newType = new CodingDt(); - getType().add(newType); - return newType; - } - - /** - * Gets the first repetition for type (The type of source where event originated), - * creating it if it does not already exist. - * - *

- * Definition: - * Code specifying the type of source where event originated - *

- */ - public CodingDt getTypeFirstRep() { - if (getType().isEmpty()) { - return addType(); - } - return getType().get(0); - } - - - } - - - /** - * Block class for child element: SecurityEvent.object (Specific instances of data or objects that have been accessed) - * - *

- * Definition: - * Specific instances of data or objects that have been accessed - *

- */ - @Block() - public static class ObjectElement - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Specific instance of object (e.g. versioned)", - formalDefinition="Identifies a specific instance of the participant object. The reference should always be version specific" - ) - private IdentifierDt myIdentifier; - - @Child(name="reference", order=1, min=0, max=1, type={ - IResource.class }) - @Description( - shortDefinition="Specific instance of resource (e.g. versioned)", - formalDefinition="Identifies a specific instance of the participant object. The reference should always be version specific" - ) - private ResourceReferenceDt myReference; - - @Child(name="type", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Object type being audited", - formalDefinition="Object type being audited" - ) - private BoundCodeDt myType; - - @Child(name="role", type=CodeDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Functional application role of Object", - formalDefinition="Code representing the functional application role of Participant Object being audited" - ) - private BoundCodeDt myRole; - - @Child(name="lifecycle", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Life-cycle stage for the object", - formalDefinition="Identifier for the data life-cycle stage for the participant object" - ) - private BoundCodeDt myLifecycle; - - @Child(name="sensitivity", type=CodeableConceptDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Policy-defined sensitivity for the object", - formalDefinition="Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics" - ) - private BoundCodeableConceptDt mySensitivity; - - @Child(name="name", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Instance-specific descriptor for Object", - formalDefinition="An instance-specific descriptor of the Participant Object ID audited, such as a person's name" - ) - private StringDt myName; - - @Child(name="description", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Descriptive text", - formalDefinition="Text that describes the object in more detail" - ) - private StringDt myDescription; - - @Child(name="query", type=Base64BinaryDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="Actual query for object", - formalDefinition="The actual query for a query-type participant object" - ) - private Base64BinaryDt myQuery; - - @Child(name="detail", order=9, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Additional Information about the Object", - formalDefinition="" - ) - private java.util.List myDetail; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myReference, myType, myRole, myLifecycle, mySensitivity, myName, myDescription, myQuery, myDetail); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myReference, myType, myRole, myLifecycle, mySensitivity, myName, myDescription, myQuery, myDetail); - } - - /** - * Gets the value(s) for identifier (Specific instance of object (e.g. versioned)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a specific instance of the participant object. The reference should always be version specific - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Specific instance of object (e.g. versioned)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a specific instance of the participant object. The reference should always be version specific - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Specific instance of object (e.g. versioned)) - * - *

- * Definition: - * Identifies a specific instance of the participant object. The reference should always be version specific - *

- */ - public ObjectElement setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Specific instance of object (e.g. versioned)) - * - *

- * Definition: - * Identifies a specific instance of the participant object. The reference should always be version specific - *

- */ - public ObjectElement setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Specific instance of object (e.g. versioned)) - * - *

- * Definition: - * Identifies a specific instance of the participant object. The reference should always be version specific - *

- */ - public ObjectElement setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for reference (Specific instance of resource (e.g. versioned)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a specific instance of the participant object. The reference should always be version specific - *

- */ - public ResourceReferenceDt getReference() { - if (myReference == null) { - myReference = new ResourceReferenceDt(); - } - return myReference; - } - - - /** - * Gets the value(s) for reference (Specific instance of resource (e.g. versioned)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a specific instance of the participant object. The reference should always be version specific - *

- */ - public ResourceReferenceDt getReferenceElement() { - if (myReference == null) { - myReference = new ResourceReferenceDt(); - } - return myReference; - } - - - /** - * Sets the value(s) for reference (Specific instance of resource (e.g. versioned)) - * - *

- * Definition: - * Identifies a specific instance of the participant object. The reference should always be version specific - *

- */ - public ObjectElement setReference(ResourceReferenceDt theValue) { - myReference = theValue; - return this; - } - - - /** - * Gets the value(s) for type (Object type being audited). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Object type being audited - *

- */ - public BoundCodeDt getType() { - if (myType == null) { - myType = new BoundCodeDt(SecurityEventObjectTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (Object type being audited). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Object type being audited - *

- */ - public BoundCodeDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeDt(SecurityEventObjectTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (Object type being audited) - * - *

- * Definition: - * Object type being audited - *

- */ - public ObjectElement setType(BoundCodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (Object type being audited) - * - *

- * Definition: - * Object type being audited - *

- */ - public ObjectElement setType(SecurityEventObjectTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for role (Functional application role of Object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code representing the functional application role of Participant Object being audited - *

- */ - public BoundCodeDt getRole() { - if (myRole == null) { - myRole = new BoundCodeDt(SecurityEventObjectRoleEnum.VALUESET_BINDER); - } - return myRole; - } - - - /** - * Gets the value(s) for role (Functional application role of Object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Code representing the functional application role of Participant Object being audited - *

- */ - public BoundCodeDt getRoleElement() { - if (myRole == null) { - myRole = new BoundCodeDt(SecurityEventObjectRoleEnum.VALUESET_BINDER); - } - return myRole; - } - - - /** - * Sets the value(s) for role (Functional application role of Object) - * - *

- * Definition: - * Code representing the functional application role of Participant Object being audited - *

- */ - public ObjectElement setRole(BoundCodeDt theValue) { - myRole = theValue; - return this; - } - - /** - * Sets the value(s) for role (Functional application role of Object) - * - *

- * Definition: - * Code representing the functional application role of Participant Object being audited - *

- */ - public ObjectElement setRole(SecurityEventObjectRoleEnum theValue) { - getRole().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for lifecycle (Life-cycle stage for the object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the data life-cycle stage for the participant object - *

- */ - public BoundCodeDt getLifecycle() { - if (myLifecycle == null) { - myLifecycle = new BoundCodeDt(SecurityEventObjectLifecycleEnum.VALUESET_BINDER); - } - return myLifecycle; - } - - - /** - * Gets the value(s) for lifecycle (Life-cycle stage for the object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the data life-cycle stage for the participant object - *

- */ - public BoundCodeDt getLifecycleElement() { - if (myLifecycle == null) { - myLifecycle = new BoundCodeDt(SecurityEventObjectLifecycleEnum.VALUESET_BINDER); - } - return myLifecycle; - } - - - /** - * Sets the value(s) for lifecycle (Life-cycle stage for the object) - * - *

- * Definition: - * Identifier for the data life-cycle stage for the participant object - *

- */ - public ObjectElement setLifecycle(BoundCodeDt theValue) { - myLifecycle = theValue; - return this; - } - - /** - * Sets the value(s) for lifecycle (Life-cycle stage for the object) - * - *

- * Definition: - * Identifier for the data life-cycle stage for the participant object - *

- */ - public ObjectElement setLifecycle(SecurityEventObjectLifecycleEnum theValue) { - getLifecycle().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for sensitivity (Policy-defined sensitivity for the object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics - *

- */ - public BoundCodeableConceptDt getSensitivity() { - if (mySensitivity == null) { - mySensitivity = new BoundCodeableConceptDt(SecurityEventObjectSensitivityEnum.VALUESET_BINDER); - } - return mySensitivity; - } - - - /** - * Gets the value(s) for sensitivity (Policy-defined sensitivity for the object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics - *

- */ - public BoundCodeableConceptDt getSensitivityElement() { - if (mySensitivity == null) { - mySensitivity = new BoundCodeableConceptDt(SecurityEventObjectSensitivityEnum.VALUESET_BINDER); - } - return mySensitivity; - } - - - /** - * Sets the value(s) for sensitivity (Policy-defined sensitivity for the object) - * - *

- * Definition: - * Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics - *

- */ - public ObjectElement setSensitivity(BoundCodeableConceptDt theValue) { - mySensitivity = theValue; - return this; - } - - /** - * Sets the value(s) for sensitivity (Policy-defined sensitivity for the object) - * - *

- * Definition: - * Denotes policy-defined sensitivity for the Participant Object ID such as VIP, HIV status, mental health status or similar topics - *

- */ - public ObjectElement setSensitivity(SecurityEventObjectSensitivityEnum theValue) { - getSensitivity().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for name (Instance-specific descriptor for Object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An instance-specific descriptor of the Participant Object ID audited, such as a person's name - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Instance-specific descriptor for Object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An instance-specific descriptor of the Participant Object ID audited, such as a person's name - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Instance-specific descriptor for Object) - * - *

- * Definition: - * An instance-specific descriptor of the Participant Object ID audited, such as a person's name - *

- */ - public ObjectElement setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Instance-specific descriptor for Object) - * - *

- * Definition: - * An instance-specific descriptor of the Participant Object ID audited, such as a person's name - *

- */ - public ObjectElement setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for description (Descriptive text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Text that describes the object in more detail - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Descriptive text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Text that describes the object in more detail - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Descriptive text) - * - *

- * Definition: - * Text that describes the object in more detail - *

- */ - public ObjectElement setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Descriptive text) - * - *

- * Definition: - * Text that describes the object in more detail - *

- */ - public ObjectElement setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for query (Actual query for object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual query for a query-type participant object - *

- */ - public Base64BinaryDt getQuery() { - if (myQuery == null) { - myQuery = new Base64BinaryDt(); - } - return myQuery; - } - - - /** - * Gets the value(s) for query (Actual query for object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual query for a query-type participant object - *

- */ - public Base64BinaryDt getQueryElement() { - if (myQuery == null) { - myQuery = new Base64BinaryDt(); - } - return myQuery; - } - - - /** - * Sets the value(s) for query (Actual query for object) - * - *

- * Definition: - * The actual query for a query-type participant object - *

- */ - public ObjectElement setQuery(Base64BinaryDt theValue) { - myQuery = theValue; - return this; - } - - /** - * Sets the value for query (Actual query for object) - * - *

- * Definition: - * The actual query for a query-type participant object - *

- */ - public ObjectElement setQuery( byte[] theBytes) { - myQuery = new Base64BinaryDt(theBytes); - return this; - } - - - /** - * Gets the value(s) for detail (Additional Information about the Object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getDetail() { - if (myDetail == null) { - myDetail = new java.util.ArrayList(); - } - return myDetail; - } - - - /** - * Gets the value(s) for detail (Additional Information about the Object). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getDetailElement() { - if (myDetail == null) { - myDetail = new java.util.ArrayList(); - } - return myDetail; - } - - - /** - * Sets the value(s) for detail (Additional Information about the Object) - * - *

- * Definition: - * - *

- */ - public ObjectElement setDetail(java.util.List theValue) { - myDetail = theValue; - return this; - } - - /** - * Adds and returns a new value for detail (Additional Information about the Object) - * - *

- * Definition: - * - *

- */ - public ObjectDetail addDetail() { - ObjectDetail newType = new ObjectDetail(); - getDetail().add(newType); - return newType; - } - - /** - * Gets the first repetition for detail (Additional Information about the Object), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ObjectDetail getDetailFirstRep() { - if (getDetail().isEmpty()) { - return addDetail(); - } - return getDetail().get(0); - } - - - } - - /** - * Block class for child element: SecurityEvent.object.detail (Additional Information about the Object) - * - *

- * Definition: - * - *

- */ - @Block() - public static class ObjectDetail - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Name of the property", - formalDefinition="" - ) - private StringDt myType; - - @Child(name="value", type=Base64BinaryDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Property value", - formalDefinition="" - ) - private Base64BinaryDt myValue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myValue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myValue); - } - - /** - * Gets the value(s) for type (Name of the property). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getType() { - if (myType == null) { - myType = new StringDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Name of the property). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getTypeElement() { - if (myType == null) { - myType = new StringDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Name of the property) - * - *

- * Definition: - * - *

- */ - public ObjectDetail setType(StringDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value for type (Name of the property) - * - *

- * Definition: - * - *

- */ - public ObjectDetail setType( String theString) { - myType = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for value (Property value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Base64BinaryDt getValue() { - if (myValue == null) { - myValue = new Base64BinaryDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Property value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Base64BinaryDt getValueElement() { - if (myValue == null) { - myValue = new Base64BinaryDt(); - } - return myValue; - } - - - /** - * Sets the value(s) for value (Property value) - * - *

- * Definition: - * - *

- */ - public ObjectDetail setValue(Base64BinaryDt theValue) { - myValue = theValue; - return this; - } - - /** - * Sets the value for value (Property value) - * - *

- * Definition: - * - *

- */ - public ObjectDetail setValue( byte[] theBytes) { - myValue = new Base64BinaryDt(theBytes); - return this; - } - - - - } - - - - - - @Override - public String getResourceName() { - return "SecurityEvent"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SequencingAnalysis.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SequencingAnalysis.java deleted file mode 100644 index 230fb960423..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SequencingAnalysis.java +++ /dev/null @@ -1,991 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR SequencingAnalysis Resource - * (Sequencing Analysis) - * - *

- * Definition: - * Computational analysis on a patient's genetic raw file - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/SequencingAnalysis - *

- * - */ -@ResourceDef(name="SequencingAnalysis", profile="http://hl7.org/fhir/profiles/SequencingAnalysis", id="sequencinganalysis") -public class SequencingAnalysis - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description: Subject of the analysis
- * Type: reference
- * Path: SequencingAnalysis.subject
- *

- */ - @SearchParamDefinition(name="subject", path="SequencingAnalysis.subject", description="Subject of the analysis", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: Subject of the analysis
- * Type: reference
- * Path: SequencingAnalysis.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "SequencingAnalysis.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("SequencingAnalysis.subject"); - - /** - * Search parameter constant for date - *

- * Description: Date when result of the analysis is updated
- * Type: date
- * Path: SequencingAnalysis.date
- *

- */ - @SearchParamDefinition(name="date", path="SequencingAnalysis.date", description="Date when result of the analysis is updated", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: Date when result of the analysis is updated
- * Type: date
- * Path: SequencingAnalysis.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for genome - *

- * Description: Name of the reference genome used in the analysis
- * Type: string
- * Path: SequencingAnalysis.genome.name
- *

- */ - @SearchParamDefinition(name="genome", path="SequencingAnalysis.genome.name", description="Name of the reference genome used in the analysis", type="string" ) - public static final String SP_GENOME = "genome"; - - /** - * Fluent Client search parameter constant for genome - *

- * Description: Name of the reference genome used in the analysis
- * Type: string
- * Path: SequencingAnalysis.genome.name
- *

- */ - public static final StringClientParam GENOME = new StringClientParam(SP_GENOME); - - - @Child(name="subject", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Subject", - formalDefinition="Subject of the analysis" - ) - private ResourceReferenceDt mySubject; - - @Child(name="date", type=DateDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Date", - formalDefinition="Date when result of the analysis is updated" - ) - private DateDt myDate; - - @Child(name="name", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Name", - formalDefinition="Name of the analysis" - ) - private StringDt myName; - - @Child(name="genome", order=3, min=1, max=1) - @Description( - shortDefinition="Reference genome", - formalDefinition="Reference genome used in the analysis" - ) - private Genome myGenome; - - @Child(name="file", type=AttachmentDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="File", - formalDefinition="Files uploaded as result of the analysis" - ) - private java.util.List myFile; - - @Child(name="inputLab", order=5, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.SequencingLab.class }) - @Description( - shortDefinition="Input lab", - formalDefinition="SequencingLab taken into account of the analysis" - ) - private java.util.List myInputLab; - - @Child(name="inputAnalysis", order=6, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.SequencingAnalysis.class }) - @Description( - shortDefinition="Input analysis", - formalDefinition="SequencingAnalysis taken into account of the analysis" - ) - private java.util.List myInputAnalysis; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myDate, myName, myGenome, myFile, myInputLab, myInputAnalysis); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myDate, myName, myGenome, myFile, myInputLab, myInputAnalysis); - } - - /** - * Gets the value(s) for subject (Subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject of the analysis - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject of the analysis - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Subject) - * - *

- * Definition: - * Subject of the analysis - *

- */ - public SequencingAnalysis setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for date (Date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public DateDt getDate() { - if (myDate == null) { - myDate = new DateDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public DateDt getDateElement() { - if (myDate == null) { - myDate = new DateDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Date) - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public SequencingAnalysis setDate(DateDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Date) - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public SequencingAnalysis setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Date) - * - *

- * Definition: - * Date when result of the analysis is updated - *

- */ - public SequencingAnalysis setDateWithDayPrecision( Date theDate) { - myDate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for name (Name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the analysis - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the analysis - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name) - * - *

- * Definition: - * Name of the analysis - *

- */ - public SequencingAnalysis setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name) - * - *

- * Definition: - * Name of the analysis - *

- */ - public SequencingAnalysis setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for genome (Reference genome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference genome used in the analysis - *

- */ - public Genome getGenome() { - if (myGenome == null) { - myGenome = new Genome(); - } - return myGenome; - } - - - /** - * Gets the value(s) for genome (Reference genome). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Reference genome used in the analysis - *

- */ - public Genome getGenomeElement() { - if (myGenome == null) { - myGenome = new Genome(); - } - return myGenome; - } - - - /** - * Sets the value(s) for genome (Reference genome) - * - *

- * Definition: - * Reference genome used in the analysis - *

- */ - public SequencingAnalysis setGenome(Genome theValue) { - myGenome = theValue; - return this; - } - - - /** - * Gets the value(s) for file (File). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Files uploaded as result of the analysis - *

- */ - public java.util.List getFile() { - if (myFile == null) { - myFile = new java.util.ArrayList(); - } - return myFile; - } - - - /** - * Gets the value(s) for file (File). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Files uploaded as result of the analysis - *

- */ - public java.util.List getFileElement() { - if (myFile == null) { - myFile = new java.util.ArrayList(); - } - return myFile; - } - - - /** - * Sets the value(s) for file (File) - * - *

- * Definition: - * Files uploaded as result of the analysis - *

- */ - public SequencingAnalysis setFile(java.util.List theValue) { - myFile = theValue; - return this; - } - - /** - * Adds and returns a new value for file (File) - * - *

- * Definition: - * Files uploaded as result of the analysis - *

- */ - public AttachmentDt addFile() { - AttachmentDt newType = new AttachmentDt(); - getFile().add(newType); - return newType; - } - - /** - * Gets the first repetition for file (File), - * creating it if it does not already exist. - * - *

- * Definition: - * Files uploaded as result of the analysis - *

- */ - public AttachmentDt getFileFirstRep() { - if (getFile().isEmpty()) { - return addFile(); - } - return getFile().get(0); - } - - /** - * Gets the value(s) for inputLab (Input lab). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * SequencingLab taken into account of the analysis - *

- */ - public java.util.List getInputLab() { - if (myInputLab == null) { - myInputLab = new java.util.ArrayList(); - } - return myInputLab; - } - - - /** - * Gets the value(s) for inputLab (Input lab). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * SequencingLab taken into account of the analysis - *

- */ - public java.util.List getInputLabElement() { - if (myInputLab == null) { - myInputLab = new java.util.ArrayList(); - } - return myInputLab; - } - - - /** - * Sets the value(s) for inputLab (Input lab) - * - *

- * Definition: - * SequencingLab taken into account of the analysis - *

- */ - public SequencingAnalysis setInputLab(java.util.List theValue) { - myInputLab = theValue; - return this; - } - - /** - * Adds and returns a new value for inputLab (Input lab) - * - *

- * Definition: - * SequencingLab taken into account of the analysis - *

- */ - public ResourceReferenceDt addInputLab() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getInputLab().add(newType); - return newType; - } - - /** - * Gets the value(s) for inputAnalysis (Input analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * SequencingAnalysis taken into account of the analysis - *

- */ - public java.util.List getInputAnalysis() { - if (myInputAnalysis == null) { - myInputAnalysis = new java.util.ArrayList(); - } - return myInputAnalysis; - } - - - /** - * Gets the value(s) for inputAnalysis (Input analysis). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * SequencingAnalysis taken into account of the analysis - *

- */ - public java.util.List getInputAnalysisElement() { - if (myInputAnalysis == null) { - myInputAnalysis = new java.util.ArrayList(); - } - return myInputAnalysis; - } - - - /** - * Sets the value(s) for inputAnalysis (Input analysis) - * - *

- * Definition: - * SequencingAnalysis taken into account of the analysis - *

- */ - public SequencingAnalysis setInputAnalysis(java.util.List theValue) { - myInputAnalysis = theValue; - return this; - } - - /** - * Adds and returns a new value for inputAnalysis (Input analysis) - * - *

- * Definition: - * SequencingAnalysis taken into account of the analysis - *

- */ - public ResourceReferenceDt addInputAnalysis() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getInputAnalysis().add(newType); - return newType; - } - - /** - * Block class for child element: SequencingAnalysis.genome (Reference genome) - * - *

- * Definition: - * Reference genome used in the analysis - *

- */ - @Block() - public static class Genome - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Name", - formalDefinition="Name of the reference genome" - ) - private CodeDt myName; - - @Child(name="build", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Build", - formalDefinition="Build number of the refernece genome" - ) - private StringDt myBuild; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myBuild); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myBuild); - } - - /** - * Gets the value(s) for name (Name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the reference genome - *

- */ - public CodeDt getName() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the reference genome - *

- */ - public CodeDt getNameElement() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name) - * - *

- * Definition: - * Name of the reference genome - *

- */ - public Genome setName(CodeDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name) - * - *

- * Definition: - * Name of the reference genome - *

- */ - public Genome setName( String theCode) { - myName = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for build (Build). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Build number of the refernece genome - *

- */ - public StringDt getBuild() { - if (myBuild == null) { - myBuild = new StringDt(); - } - return myBuild; - } - - - /** - * Gets the value(s) for build (Build). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Build number of the refernece genome - *

- */ - public StringDt getBuildElement() { - if (myBuild == null) { - myBuild = new StringDt(); - } - return myBuild; - } - - - /** - * Sets the value(s) for build (Build) - * - *

- * Definition: - * Build number of the refernece genome - *

- */ - public Genome setBuild(StringDt theValue) { - myBuild = theValue; - return this; - } - - /** - * Sets the value for build (Build) - * - *

- * Definition: - * Build number of the refernece genome - *

- */ - public Genome setBuild( String theString) { - myBuild = new StringDt(theString); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "SequencingAnalysis"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SequencingLab.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SequencingLab.java deleted file mode 100644 index 2026e290ca7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/SequencingLab.java +++ /dev/null @@ -1,1403 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR SequencingLab Resource - * (Sequencing Lab) - * - *

- * Definition: - * A lab for sequencing - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/SequencingLab - *

- * - */ -@ResourceDef(name="SequencingLab", profile="http://hl7.org/fhir/profiles/SequencingLab", id="sequencinglab") -public class SequencingLab - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description: Subject of the lab
- * Type: reference
- * Path: SequencingLab.subject
- *

- */ - @SearchParamDefinition(name="subject", path="SequencingLab.subject", description="Subject of the lab", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: Subject of the lab
- * Type: reference
- * Path: SequencingLab.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "SequencingLab.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("SequencingLab.subject"); - - /** - * Search parameter constant for specimen - *

- * Description: Type of the specimen used for the lab
- * Type: string
- * Path: SequencingLab.specimen.type
- *

- */ - @SearchParamDefinition(name="specimen", path="SequencingLab.specimen.type", description="Type of the specimen used for the lab", type="string" ) - public static final String SP_SPECIMEN = "specimen"; - - /** - * Fluent Client search parameter constant for specimen - *

- * Description: Type of the specimen used for the lab
- * Type: string
- * Path: SequencingLab.specimen.type
- *

- */ - public static final StringClientParam SPECIMEN = new StringClientParam(SP_SPECIMEN); - - /** - * Search parameter constant for date - *

- * Description: Date when result of the lab is uploaded
- * Type: date
- * Path: SequencingLab.date
- *

- */ - @SearchParamDefinition(name="date", path="SequencingLab.date", description="Date when result of the lab is uploaded", type="date" ) - public static final String SP_DATE = "date"; - - /** - * Fluent Client search parameter constant for date - *

- * Description: Date when result of the lab is uploaded
- * Type: date
- * Path: SequencingLab.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for organization - *

- * Description: Organization that does the lab
- * Type: string
- * Path: SequencingLab.organization
- *

- */ - @SearchParamDefinition(name="organization", path="SequencingLab.organization", description="Organization that does the lab", type="string" ) - public static final String SP_ORGANIZATION = "organization"; - - /** - * Fluent Client search parameter constant for organization - *

- * Description: Organization that does the lab
- * Type: string
- * Path: SequencingLab.organization
- *

- */ - public static final StringClientParam ORGANIZATION = new StringClientParam(SP_ORGANIZATION); - - /** - * Search parameter constant for system-class - *

- * Description: Class of the sequencing system
- * Type: string
- * Path: SequencingLab.system.class
- *

- */ - @SearchParamDefinition(name="system-class", path="SequencingLab.system.class", description="Class of the sequencing system", type="string" ) - public static final String SP_SYSTEM_CLASS = "system-class"; - - /** - * Fluent Client search parameter constant for system-class - *

- * Description: Class of the sequencing system
- * Type: string
- * Path: SequencingLab.system.class
- *

- */ - public static final StringClientParam SYSTEM_CLASS = new StringClientParam(SP_SYSTEM_CLASS); - - /** - * Search parameter constant for system-name - *

- * Description: Name of the sequencing system
- * Type: string
- * Path: SequencingLab.system.name
- *

- */ - @SearchParamDefinition(name="system-name", path="SequencingLab.system.name", description="Name of the sequencing system", type="string" ) - public static final String SP_SYSTEM_NAME = "system-name"; - - /** - * Fluent Client search parameter constant for system-name - *

- * Description: Name of the sequencing system
- * Type: string
- * Path: SequencingLab.system.name
- *

- */ - public static final StringClientParam SYSTEM_NAME = new StringClientParam(SP_SYSTEM_NAME); - - - @Child(name="subject", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Subject", - formalDefinition="Subject of the sequencing lab" - ) - private ResourceReferenceDt mySubject; - - @Child(name="organization", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Organization", - formalDefinition="Organization that does the sequencing" - ) - private StringDt myOrganization; - - @Child(name="name", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Name", - formalDefinition="Name of the lab" - ) - private StringDt myName; - - @Child(name="date", type=DateDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Date", - formalDefinition="Date when the result of the lab is uploaded" - ) - private DateDt myDate; - - @Child(name="type", type=CodeDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Type", - formalDefinition="Type of the sequencing lab" - ) - private CodeDt myType; - - @Child(name="system", order=5, min=0, max=1) - @Description( - shortDefinition="Sequencing System", - formalDefinition="System of machine used for sequencing" - ) - private System mySystem; - - @Child(name="specimen", order=6, min=1, max=1) - @Description( - shortDefinition="Specimen of the lab", - formalDefinition="Specimen of the lab" - ) - private Specimen mySpecimen; - - @Child(name="file", type=AttachmentDt.class, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="File", - formalDefinition="Files uploaded as results of the lab" - ) - private java.util.List myFile; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myOrganization, myName, myDate, myType, mySystem, mySpecimen, myFile); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myOrganization, myName, myDate, myType, mySystem, mySpecimen, myFile); - } - - /** - * Gets the value(s) for subject (Subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject of the sequencing lab - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Subject). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Subject of the sequencing lab - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Subject) - * - *

- * Definition: - * Subject of the sequencing lab - *

- */ - public SequencingLab setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for organization (Organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that does the sequencing - *

- */ - public StringDt getOrganization() { - if (myOrganization == null) { - myOrganization = new StringDt(); - } - return myOrganization; - } - - - /** - * Gets the value(s) for organization (Organization). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that does the sequencing - *

- */ - public StringDt getOrganizationElement() { - if (myOrganization == null) { - myOrganization = new StringDt(); - } - return myOrganization; - } - - - /** - * Sets the value(s) for organization (Organization) - * - *

- * Definition: - * Organization that does the sequencing - *

- */ - public SequencingLab setOrganization(StringDt theValue) { - myOrganization = theValue; - return this; - } - - /** - * Sets the value for organization (Organization) - * - *

- * Definition: - * Organization that does the sequencing - *

- */ - public SequencingLab setOrganization( String theString) { - myOrganization = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (Name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the lab - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of the lab - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name) - * - *

- * Definition: - * Name of the lab - *

- */ - public SequencingLab setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name) - * - *

- * Definition: - * Name of the lab - *

- */ - public SequencingLab setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for date (Date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when the result of the lab is uploaded - *

- */ - public DateDt getDate() { - if (myDate == null) { - myDate = new DateDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Date). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Date when the result of the lab is uploaded - *

- */ - public DateDt getDateElement() { - if (myDate == null) { - myDate = new DateDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Date) - * - *

- * Definition: - * Date when the result of the lab is uploaded - *

- */ - public SequencingLab setDate(DateDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Date) - * - *

- * Definition: - * Date when the result of the lab is uploaded - *

- */ - public SequencingLab setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Date) - * - *

- * Definition: - * Date when the result of the lab is uploaded - *

- */ - public SequencingLab setDateWithDayPrecision( Date theDate) { - myDate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for type (Type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the sequencing lab - *

- */ - public CodeDt getType() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Type of the sequencing lab - *

- */ - public CodeDt getTypeElement() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Type) - * - *

- * Definition: - * Type of the sequencing lab - *

- */ - public SequencingLab setType(CodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value for type (Type) - * - *

- * Definition: - * Type of the sequencing lab - *

- */ - public SequencingLab setType( String theCode) { - myType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for system (Sequencing System). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * System of machine used for sequencing - *

- */ - public System getSystem() { - if (mySystem == null) { - mySystem = new System(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (Sequencing System). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * System of machine used for sequencing - *

- */ - public System getSystemElement() { - if (mySystem == null) { - mySystem = new System(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (Sequencing System) - * - *

- * Definition: - * System of machine used for sequencing - *

- */ - public SequencingLab setSystem(System theValue) { - mySystem = theValue; - return this; - } - - - /** - * Gets the value(s) for specimen (Specimen of the lab). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specimen of the lab - *

- */ - public Specimen getSpecimen() { - if (mySpecimen == null) { - mySpecimen = new Specimen(); - } - return mySpecimen; - } - - - /** - * Gets the value(s) for specimen (Specimen of the lab). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specimen of the lab - *

- */ - public Specimen getSpecimenElement() { - if (mySpecimen == null) { - mySpecimen = new Specimen(); - } - return mySpecimen; - } - - - /** - * Sets the value(s) for specimen (Specimen of the lab) - * - *

- * Definition: - * Specimen of the lab - *

- */ - public SequencingLab setSpecimen(Specimen theValue) { - mySpecimen = theValue; - return this; - } - - - /** - * Gets the value(s) for file (File). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Files uploaded as results of the lab - *

- */ - public java.util.List getFile() { - if (myFile == null) { - myFile = new java.util.ArrayList(); - } - return myFile; - } - - - /** - * Gets the value(s) for file (File). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Files uploaded as results of the lab - *

- */ - public java.util.List getFileElement() { - if (myFile == null) { - myFile = new java.util.ArrayList(); - } - return myFile; - } - - - /** - * Sets the value(s) for file (File) - * - *

- * Definition: - * Files uploaded as results of the lab - *

- */ - public SequencingLab setFile(java.util.List theValue) { - myFile = theValue; - return this; - } - - /** - * Adds and returns a new value for file (File) - * - *

- * Definition: - * Files uploaded as results of the lab - *

- */ - public AttachmentDt addFile() { - AttachmentDt newType = new AttachmentDt(); - getFile().add(newType); - return newType; - } - - /** - * Gets the first repetition for file (File), - * creating it if it does not already exist. - * - *

- * Definition: - * Files uploaded as results of the lab - *

- */ - public AttachmentDt getFileFirstRep() { - if (getFile().isEmpty()) { - return addFile(); - } - return getFile().get(0); - } - - /** - * Block class for child element: SequencingLab.system (Sequencing System) - * - *

- * Definition: - * System of machine used for sequencing - *

- */ - @Block() - public static class System - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="class", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Class of sequencing system", - formalDefinition="Class of sequencing system" - ) - private CodeDt myClassElement; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Version of sequencing system", - formalDefinition="Version of sequencing system" - ) - private StringDt myVersion; - - @Child(name="name", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Name of sequencing system", - formalDefinition="Name of sequencing system" - ) - private CodeDt myName; - - @Child(name="identity", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Id of sequencing system", - formalDefinition="Id of sequencing system" - ) - private StringDt myIdentity; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myClassElement, myVersion, myName, myIdentity); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myClassElement, myVersion, myName, myIdentity); - } - - /** - * Gets the value(s) for class (Class of sequencing system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Class of sequencing system - *

- */ - public CodeDt getClassElement() { - if (myClassElement == null) { - myClassElement = new CodeDt(); - } - return myClassElement; - } - - - /** - * Gets the value(s) for class (Class of sequencing system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Class of sequencing system - *

- */ - public CodeDt getClassElementElement() { - if (myClassElement == null) { - myClassElement = new CodeDt(); - } - return myClassElement; - } - - - /** - * Sets the value(s) for class (Class of sequencing system) - * - *

- * Definition: - * Class of sequencing system - *

- */ - public System setClassElement(CodeDt theValue) { - myClassElement = theValue; - return this; - } - - /** - * Sets the value for class (Class of sequencing system) - * - *

- * Definition: - * Class of sequencing system - *

- */ - public System setClassElement( String theCode) { - myClassElement = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for version (Version of sequencing system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Version of sequencing system - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Version of sequencing system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Version of sequencing system - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Version of sequencing system) - * - *

- * Definition: - * Version of sequencing system - *

- */ - public System setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Version of sequencing system) - * - *

- * Definition: - * Version of sequencing system - *

- */ - public System setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (Name of sequencing system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of sequencing system - *

- */ - public CodeDt getName() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Name of sequencing system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of sequencing system - *

- */ - public CodeDt getNameElement() { - if (myName == null) { - myName = new CodeDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Name of sequencing system) - * - *

- * Definition: - * Name of sequencing system - *

- */ - public System setName(CodeDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Name of sequencing system) - * - *

- * Definition: - * Name of sequencing system - *

- */ - public System setName( String theCode) { - myName = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for identity (Id of sequencing system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of sequencing system - *

- */ - public StringDt getIdentity() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (Id of sequencing system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id of sequencing system - *

- */ - public StringDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new StringDt(); - } - return myIdentity; - } - - - /** - * Sets the value(s) for identity (Id of sequencing system) - * - *

- * Definition: - * Id of sequencing system - *

- */ - public System setIdentity(StringDt theValue) { - myIdentity = theValue; - return this; - } - - /** - * Sets the value for identity (Id of sequencing system) - * - *

- * Definition: - * Id of sequencing system - *

- */ - public System setIdentity( String theString) { - myIdentity = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: SequencingLab.specimen (Specimen of the lab) - * - *

- * Definition: - * Specimen of the lab - *

- */ - @Block() - public static class Specimen - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Class of the specimen", - formalDefinition="Whether the specimen is from germline or somatic cells of the patient" - ) - private CodeDt myType; - - @Child(name="source", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Source of specimen", - formalDefinition="Source of the specimen" - ) - private CodeableConceptDt mySource; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySource); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySource); - } - - /** - * Gets the value(s) for type (Class of the specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the specimen is from germline or somatic cells of the patient - *

- */ - public CodeDt getType() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Class of the specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the specimen is from germline or somatic cells of the patient - *

- */ - public CodeDt getTypeElement() { - if (myType == null) { - myType = new CodeDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Class of the specimen) - * - *

- * Definition: - * Whether the specimen is from germline or somatic cells of the patient - *

- */ - public Specimen setType(CodeDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value for type (Class of the specimen) - * - *

- * Definition: - * Whether the specimen is from germline or somatic cells of the patient - *

- */ - public Specimen setType( String theCode) { - myType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for source (Source of specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Source of the specimen - *

- */ - public CodeableConceptDt getSource() { - if (mySource == null) { - mySource = new CodeableConceptDt(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Source of specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Source of the specimen - *

- */ - public CodeableConceptDt getSourceElement() { - if (mySource == null) { - mySource = new CodeableConceptDt(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Source of specimen) - * - *

- * Definition: - * Source of the specimen - *

- */ - public Specimen setSource(CodeableConceptDt theValue) { - mySource = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "SequencingLab"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Slot.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Slot.java deleted file mode 100644 index 8db27ace62c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Slot.java +++ /dev/null @@ -1,1033 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Slot Resource - * ((informative) A slot of time that may be available for booking appointments) - * - *

- * Definition: - * - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Slot - *

- * - */ -@ResourceDef(name="Slot", profile="http://hl7.org/fhir/profiles/Slot", id="slot") -public class Slot - extends BaseResource implements IResource { - - /** - * Search parameter constant for slottype - *

- * Description: The type of appointments that can be booked into the slot
- * Type: token
- * Path: Slot.type
- *

- */ - @SearchParamDefinition(name="slottype", path="Slot.type", description="The type of appointments that can be booked into the slot", type="token" ) - public static final String SP_SLOTTYPE = "slottype"; - - /** - * Fluent Client search parameter constant for slottype - *

- * Description: The type of appointments that can be booked into the slot
- * Type: token
- * Path: Slot.type
- *

- */ - public static final TokenClientParam SLOTTYPE = new TokenClientParam(SP_SLOTTYPE); - - /** - * Search parameter constant for availability - *

- * Description: The Availability Resource that we are seeking a slot within
- * Type: reference
- * Path: Slot.availability
- *

- */ - @SearchParamDefinition(name="availability", path="Slot.availability", description="The Availability Resource that we are seeking a slot within", type="reference" ) - public static final String SP_AVAILABILITY = "availability"; - - /** - * Fluent Client search parameter constant for availability - *

- * Description: The Availability Resource that we are seeking a slot within
- * Type: reference
- * Path: Slot.availability
- *

- */ - public static final ReferenceClientParam AVAILABILITY = new ReferenceClientParam(SP_AVAILABILITY); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Slot.availability". - */ - public static final Include INCLUDE_AVAILABILITY = new Include("Slot.availability"); - - /** - * Search parameter constant for start - *

- * Description: Appointment date/time.
- * Type: date
- * Path: Slot.start
- *

- */ - @SearchParamDefinition(name="start", path="Slot.start", description="Appointment date/time.", type="date" ) - public static final String SP_START = "start"; - - /** - * Fluent Client search parameter constant for start - *

- * Description: Appointment date/time.
- * Type: date
- * Path: Slot.start
- *

- */ - public static final DateClientParam START = new DateClientParam(SP_START); - - /** - * Search parameter constant for fbtype - *

- * Description: The free/busy status of the appointment
- * Type: token
- * Path: Slot.freeBusyType
- *

- */ - @SearchParamDefinition(name="fbtype", path="Slot.freeBusyType", description="The free/busy status of the appointment", type="token" ) - public static final String SP_FBTYPE = "fbtype"; - - /** - * Fluent Client search parameter constant for fbtype - *

- * Description: The free/busy status of the appointment
- * Type: token
- * Path: Slot.freeBusyType
- *

- */ - public static final TokenClientParam FBTYPE = new TokenClientParam(SP_FBTYPE); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Ids for this item", - formalDefinition="" - ) - private java.util.List myIdentifier; - - @Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource", - formalDefinition="" - ) - private CodeableConceptDt myType; - - @Child(name="availability", order=2, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Availability.class }) - @Description( - shortDefinition="The availability resource that this slot defines an interval of status information", - formalDefinition="" - ) - private ResourceReferenceDt myAvailability; - - @Child(name="freeBusyType", type=CodeDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="BUSY | FREE | BUSY-UNAVAILABLE | BUSY-TENTATIVE", - formalDefinition="" - ) - private CodeDt myFreeBusyType; - - @Child(name="start", type=InstantDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="Date/Time that the slot is to begin", - formalDefinition="" - ) - private InstantDt myStart; - - @Child(name="end", type=InstantDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Date/Time that the slot is to conclude", - formalDefinition="" - ) - private InstantDt myEnd; - - @Child(name="comment", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Comments on the slot to describe any extended information. Such as custom constraints on the slot", - formalDefinition="" - ) - private StringDt myComment; - - @Child(name="author", order=7, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class }) - @Description( - shortDefinition="Who authored the slot", - formalDefinition="" - ) - private ResourceReferenceDt myAuthor; - - @Child(name="authorDate", type=DateTimeDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="When this slot was created, or last revised", - formalDefinition="" - ) - private DateTimeDt myAuthorDate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myAvailability, myFreeBusyType, myStart, myEnd, myComment, myAuthor, myAuthorDate); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myAvailability, myFreeBusyType, myStart, myEnd, myComment, myAuthor, myAuthorDate); - } - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Ids for this item). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Ids for this item) - * - *

- * Definition: - * - *

- */ - public Slot setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Ids for this item) - * - *

- * Definition: - * - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Slot addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Ids for this item) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Slot addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for type (The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource) - * - *

- * Definition: - * - *

- */ - public Slot setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for availability (The availability resource that this slot defines an interval of status information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAvailability() { - if (myAvailability == null) { - myAvailability = new ResourceReferenceDt(); - } - return myAvailability; - } - - - /** - * Gets the value(s) for availability (The availability resource that this slot defines an interval of status information). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAvailabilityElement() { - if (myAvailability == null) { - myAvailability = new ResourceReferenceDt(); - } - return myAvailability; - } - - - /** - * Sets the value(s) for availability (The availability resource that this slot defines an interval of status information) - * - *

- * Definition: - * - *

- */ - public Slot setAvailability(ResourceReferenceDt theValue) { - myAvailability = theValue; - return this; - } - - - /** - * Gets the value(s) for freeBusyType (BUSY | FREE | BUSY-UNAVAILABLE | BUSY-TENTATIVE). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getFreeBusyType() { - if (myFreeBusyType == null) { - myFreeBusyType = new CodeDt(); - } - return myFreeBusyType; - } - - - /** - * Gets the value(s) for freeBusyType (BUSY | FREE | BUSY-UNAVAILABLE | BUSY-TENTATIVE). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getFreeBusyTypeElement() { - if (myFreeBusyType == null) { - myFreeBusyType = new CodeDt(); - } - return myFreeBusyType; - } - - - /** - * Sets the value(s) for freeBusyType (BUSY | FREE | BUSY-UNAVAILABLE | BUSY-TENTATIVE) - * - *

- * Definition: - * - *

- */ - public Slot setFreeBusyType(CodeDt theValue) { - myFreeBusyType = theValue; - return this; - } - - /** - * Sets the value for freeBusyType (BUSY | FREE | BUSY-UNAVAILABLE | BUSY-TENTATIVE) - * - *

- * Definition: - * - *

- */ - public Slot setFreeBusyType( String theCode) { - myFreeBusyType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for start (Date/Time that the slot is to begin). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getStart() { - if (myStart == null) { - myStart = new InstantDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Date/Time that the slot is to begin). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getStartElement() { - if (myStart == null) { - myStart = new InstantDt(); - } - return myStart; - } - - - /** - * Sets the value(s) for start (Date/Time that the slot is to begin) - * - *

- * Definition: - * - *

- */ - public Slot setStart(InstantDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Date/Time that the slot is to begin) - * - *

- * Definition: - * - *

- */ - public Slot setStartWithMillisPrecision( Date theDate) { - myStart = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for start (Date/Time that the slot is to begin) - * - *

- * Definition: - * - *

- */ - public Slot setStart( Date theDate, TemporalPrecisionEnum thePrecision) { - myStart = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for end (Date/Time that the slot is to conclude). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getEnd() { - if (myEnd == null) { - myEnd = new InstantDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (Date/Time that the slot is to conclude). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getEndElement() { - if (myEnd == null) { - myEnd = new InstantDt(); - } - return myEnd; - } - - - /** - * Sets the value(s) for end (Date/Time that the slot is to conclude) - * - *

- * Definition: - * - *

- */ - public Slot setEnd(InstantDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (Date/Time that the slot is to conclude) - * - *

- * Definition: - * - *

- */ - public Slot setEndWithMillisPrecision( Date theDate) { - myEnd = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for end (Date/Time that the slot is to conclude) - * - *

- * Definition: - * - *

- */ - public Slot setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for comment (Comments on the slot to describe any extended information. Such as custom constraints on the slot). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getComment() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Gets the value(s) for comment (Comments on the slot to describe any extended information. Such as custom constraints on the slot). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getCommentElement() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - - /** - * Sets the value(s) for comment (Comments on the slot to describe any extended information. Such as custom constraints on the slot) - * - *

- * Definition: - * - *

- */ - public Slot setComment(StringDt theValue) { - myComment = theValue; - return this; - } - - /** - * Sets the value for comment (Comments on the slot to describe any extended information. Such as custom constraints on the slot) - * - *

- * Definition: - * - *

- */ - public Slot setComment( String theString) { - myComment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for author (Who authored the slot). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Gets the value(s) for author (Who authored the slot). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getAuthorElement() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - - /** - * Sets the value(s) for author (Who authored the slot) - * - *

- * Definition: - * - *

- */ - public Slot setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for authorDate (When this slot was created, or last revised). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getAuthorDate() { - if (myAuthorDate == null) { - myAuthorDate = new DateTimeDt(); - } - return myAuthorDate; - } - - - /** - * Gets the value(s) for authorDate (When this slot was created, or last revised). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public DateTimeDt getAuthorDateElement() { - if (myAuthorDate == null) { - myAuthorDate = new DateTimeDt(); - } - return myAuthorDate; - } - - - /** - * Sets the value(s) for authorDate (When this slot was created, or last revised) - * - *

- * Definition: - * - *

- */ - public Slot setAuthorDate(DateTimeDt theValue) { - myAuthorDate = theValue; - return this; - } - - /** - * Sets the value for authorDate (When this slot was created, or last revised) - * - *

- * Definition: - * - *

- */ - public Slot setAuthorDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myAuthorDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for authorDate (When this slot was created, or last revised) - * - *

- * Definition: - * - *

- */ - public Slot setAuthorDateWithSecondsPrecision( Date theDate) { - myAuthorDate = new DateTimeDt(theDate); - return this; - } - - - - - @Override - public String getResourceName() { - return "Slot"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Specimen.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Specimen.java deleted file mode 100644 index cada993b024..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Specimen.java +++ /dev/null @@ -1,2517 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Specimen Resource - * (Sample for analysis) - * - *

- * Definition: - * Sample for analysis - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Specimen - *

- * - */ -@ResourceDef(name="Specimen", profile="http://hl7.org/fhir/profiles/Specimen", id="specimen") -public class Specimen - extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *

- * Description: The subject of the specimen
- * Type: reference
- * Path: Specimen.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Specimen.subject", description="The subject of the specimen", type="reference" ) - public static final String SP_SUBJECT = "subject"; - - /** - * Fluent Client search parameter constant for subject - *

- * Description: The subject of the specimen
- * Type: reference
- * Path: Specimen.subject
- *

- */ - public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Specimen.subject". - */ - public static final Include INCLUDE_SUBJECT = new Include("Specimen.subject"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="External Identifier", - formalDefinition="Id for specimen" - ) - private java.util.List myIdentifier; - - @Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Kind of material that forms the specimen", - formalDefinition="Kind of material that forms the specimen" - ) - private CodeableConceptDt myType; - - @Child(name="source", order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Parent of specimen", - formalDefinition="Parent specimen from which the focal specimen was a component" - ) - private java.util.List mySource; - - @Child(name="subject", order=3, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Substance.class }) - @Description( - shortDefinition="Where the specimen came from. This may be the patient(s) or from the environment or a device", - formalDefinition="" - ) - private ResourceReferenceDt mySubject; - - @Child(name="accessionIdentifier", type=IdentifierDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Identifier assigned by the lab", - formalDefinition="The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures." - ) - private IdentifierDt myAccessionIdentifier; - - @Child(name="receivedTime", type=DateTimeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="The time when specimen was received for processing", - formalDefinition="Time when specimen was received for processing or testing" - ) - private DateTimeDt myReceivedTime; - - @Child(name="collection", order=6, min=1, max=1) - @Description( - shortDefinition="Collection details", - formalDefinition="Details concerning the specimen collection" - ) - private Collection myCollection; - - @Child(name="treatment", order=7, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Treatment and processing step details", - formalDefinition="Details concerning treatment and processing steps for the specimen" - ) - private java.util.List myTreatment; - - @Child(name="container", order=8, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Direct container of specimen (tube/slide, etc)", - formalDefinition="The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here." - ) - private java.util.List myContainer; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, mySource, mySubject, myAccessionIdentifier, myReceivedTime, myCollection, myTreatment, myContainer); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, mySource, mySubject, myAccessionIdentifier, myReceivedTime, myCollection, myTreatment, myContainer); - } - - /** - * Gets the value(s) for identifier (External Identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id for specimen - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External Identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id for specimen - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External Identifier) - * - *

- * Definition: - * Id for specimen - *

- */ - public Specimen setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (External Identifier) - * - *

- * Definition: - * Id for specimen - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Identifier), - * creating it if it does not already exist. - * - *

- * Definition: - * Id for specimen - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Identifier) - * - *

- * Definition: - * Id for specimen - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Specimen addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (External Identifier) - * - *

- * Definition: - * Id for specimen - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Specimen addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for type (Kind of material that forms the specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Kind of material that forms the specimen - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Kind of material that forms the specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Kind of material that forms the specimen - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Kind of material that forms the specimen) - * - *

- * Definition: - * Kind of material that forms the specimen - *

- */ - public Specimen setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for source (Parent of specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Parent specimen from which the focal specimen was a component - *

- */ - public java.util.List getSource() { - if (mySource == null) { - mySource = new java.util.ArrayList(); - } - return mySource; - } - - - /** - * Gets the value(s) for source (Parent of specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Parent specimen from which the focal specimen was a component - *

- */ - public java.util.List getSourceElement() { - if (mySource == null) { - mySource = new java.util.ArrayList(); - } - return mySource; - } - - - /** - * Sets the value(s) for source (Parent of specimen) - * - *

- * Definition: - * Parent specimen from which the focal specimen was a component - *

- */ - public Specimen setSource(java.util.List theValue) { - mySource = theValue; - return this; - } - - /** - * Adds and returns a new value for source (Parent of specimen) - * - *

- * Definition: - * Parent specimen from which the focal specimen was a component - *

- */ - public Source addSource() { - Source newType = new Source(); - getSource().add(newType); - return newType; - } - - /** - * Gets the first repetition for source (Parent of specimen), - * creating it if it does not already exist. - * - *

- * Definition: - * Parent specimen from which the focal specimen was a component - *

- */ - public Source getSourceFirstRep() { - if (getSource().isEmpty()) { - return addSource(); - } - return getSource().get(0); - } - - /** - * Gets the value(s) for subject (Where the specimen came from. This may be the patient(s) or from the environment or a device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Gets the value(s) for subject (Where the specimen came from. This may be the patient(s) or from the environment or a device). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt getSubjectElement() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - - /** - * Sets the value(s) for subject (Where the specimen came from. This may be the patient(s) or from the environment or a device) - * - *

- * Definition: - * - *

- */ - public Specimen setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for accessionIdentifier (Identifier assigned by the lab). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures. - *

- */ - public IdentifierDt getAccessionIdentifier() { - if (myAccessionIdentifier == null) { - myAccessionIdentifier = new IdentifierDt(); - } - return myAccessionIdentifier; - } - - - /** - * Gets the value(s) for accessionIdentifier (Identifier assigned by the lab). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures. - *

- */ - public IdentifierDt getAccessionIdentifierElement() { - if (myAccessionIdentifier == null) { - myAccessionIdentifier = new IdentifierDt(); - } - return myAccessionIdentifier; - } - - - /** - * Sets the value(s) for accessionIdentifier (Identifier assigned by the lab) - * - *

- * Definition: - * The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures. - *

- */ - public Specimen setAccessionIdentifier(IdentifierDt theValue) { - myAccessionIdentifier = theValue; - return this; - } - - /** - * Sets the value for accessionIdentifier (Identifier assigned by the lab) - * - *

- * Definition: - * The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures. - *

- */ - public Specimen setAccessionIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myAccessionIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for accessionIdentifier (Identifier assigned by the lab) - * - *

- * Definition: - * The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures. - *

- */ - public Specimen setAccessionIdentifier( String theSystem, String theValue) { - myAccessionIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for receivedTime (The time when specimen was received for processing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time when specimen was received for processing or testing - *

- */ - public DateTimeDt getReceivedTime() { - if (myReceivedTime == null) { - myReceivedTime = new DateTimeDt(); - } - return myReceivedTime; - } - - - /** - * Gets the value(s) for receivedTime (The time when specimen was received for processing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time when specimen was received for processing or testing - *

- */ - public DateTimeDt getReceivedTimeElement() { - if (myReceivedTime == null) { - myReceivedTime = new DateTimeDt(); - } - return myReceivedTime; - } - - - /** - * Sets the value(s) for receivedTime (The time when specimen was received for processing) - * - *

- * Definition: - * Time when specimen was received for processing or testing - *

- */ - public Specimen setReceivedTime(DateTimeDt theValue) { - myReceivedTime = theValue; - return this; - } - - /** - * Sets the value for receivedTime (The time when specimen was received for processing) - * - *

- * Definition: - * Time when specimen was received for processing or testing - *

- */ - public Specimen setReceivedTime( Date theDate, TemporalPrecisionEnum thePrecision) { - myReceivedTime = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for receivedTime (The time when specimen was received for processing) - * - *

- * Definition: - * Time when specimen was received for processing or testing - *

- */ - public Specimen setReceivedTimeWithSecondsPrecision( Date theDate) { - myReceivedTime = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for collection (Collection details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details concerning the specimen collection - *

- */ - public Collection getCollection() { - if (myCollection == null) { - myCollection = new Collection(); - } - return myCollection; - } - - - /** - * Gets the value(s) for collection (Collection details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details concerning the specimen collection - *

- */ - public Collection getCollectionElement() { - if (myCollection == null) { - myCollection = new Collection(); - } - return myCollection; - } - - - /** - * Sets the value(s) for collection (Collection details) - * - *

- * Definition: - * Details concerning the specimen collection - *

- */ - public Specimen setCollection(Collection theValue) { - myCollection = theValue; - return this; - } - - - /** - * Gets the value(s) for treatment (Treatment and processing step details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details concerning treatment and processing steps for the specimen - *

- */ - public java.util.List getTreatment() { - if (myTreatment == null) { - myTreatment = new java.util.ArrayList(); - } - return myTreatment; - } - - - /** - * Gets the value(s) for treatment (Treatment and processing step details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Details concerning treatment and processing steps for the specimen - *

- */ - public java.util.List getTreatmentElement() { - if (myTreatment == null) { - myTreatment = new java.util.ArrayList(); - } - return myTreatment; - } - - - /** - * Sets the value(s) for treatment (Treatment and processing step details) - * - *

- * Definition: - * Details concerning treatment and processing steps for the specimen - *

- */ - public Specimen setTreatment(java.util.List theValue) { - myTreatment = theValue; - return this; - } - - /** - * Adds and returns a new value for treatment (Treatment and processing step details) - * - *

- * Definition: - * Details concerning treatment and processing steps for the specimen - *

- */ - public Treatment addTreatment() { - Treatment newType = new Treatment(); - getTreatment().add(newType); - return newType; - } - - /** - * Gets the first repetition for treatment (Treatment and processing step details), - * creating it if it does not already exist. - * - *

- * Definition: - * Details concerning treatment and processing steps for the specimen - *

- */ - public Treatment getTreatmentFirstRep() { - if (getTreatment().isEmpty()) { - return addTreatment(); - } - return getTreatment().get(0); - } - - /** - * Gets the value(s) for container (Direct container of specimen (tube/slide, etc)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here. - *

- */ - public java.util.List getContainer() { - if (myContainer == null) { - myContainer = new java.util.ArrayList(); - } - return myContainer; - } - - - /** - * Gets the value(s) for container (Direct container of specimen (tube/slide, etc)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here. - *

- */ - public java.util.List getContainerElement() { - if (myContainer == null) { - myContainer = new java.util.ArrayList(); - } - return myContainer; - } - - - /** - * Sets the value(s) for container (Direct container of specimen (tube/slide, etc)) - * - *

- * Definition: - * The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here. - *

- */ - public Specimen setContainer(java.util.List theValue) { - myContainer = theValue; - return this; - } - - /** - * Adds and returns a new value for container (Direct container of specimen (tube/slide, etc)) - * - *

- * Definition: - * The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here. - *

- */ - public Container addContainer() { - Container newType = new Container(); - getContainer().add(newType); - return newType; - } - - /** - * Gets the first repetition for container (Direct container of specimen (tube/slide, etc)), - * creating it if it does not already exist. - * - *

- * Definition: - * The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here. - *

- */ - public Container getContainerFirstRep() { - if (getContainer().isEmpty()) { - return addContainer(); - } - return getContainer().get(0); - } - - /** - * Block class for child element: Specimen.source (Parent of specimen) - * - *

- * Definition: - * Parent specimen from which the focal specimen was a component - *

- */ - @Block() - public static class Source - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="relationship", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="parent | child", - formalDefinition="Whether this relationship is to a parent or to a child" - ) - private BoundCodeDt myRelationship; - - @Child(name="target", order=1, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Specimen.class }) - @Description( - shortDefinition="The subject of the relationship", - formalDefinition="The specimen resource that is the target of this relationship" - ) - private java.util.List myTarget; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRelationship, myTarget); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myRelationship, myTarget); - } - - /** - * Gets the value(s) for relationship (parent | child). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this relationship is to a parent or to a child - *

- */ - public BoundCodeDt getRelationship() { - if (myRelationship == null) { - myRelationship = new BoundCodeDt(HierarchicalRelationshipTypeEnum.VALUESET_BINDER); - } - return myRelationship; - } - - - /** - * Gets the value(s) for relationship (parent | child). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this relationship is to a parent or to a child - *

- */ - public BoundCodeDt getRelationshipElement() { - if (myRelationship == null) { - myRelationship = new BoundCodeDt(HierarchicalRelationshipTypeEnum.VALUESET_BINDER); - } - return myRelationship; - } - - - /** - * Sets the value(s) for relationship (parent | child) - * - *

- * Definition: - * Whether this relationship is to a parent or to a child - *

- */ - public Source setRelationship(BoundCodeDt theValue) { - myRelationship = theValue; - return this; - } - - /** - * Sets the value(s) for relationship (parent | child) - * - *

- * Definition: - * Whether this relationship is to a parent or to a child - *

- */ - public Source setRelationship(HierarchicalRelationshipTypeEnum theValue) { - getRelationship().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for target (The subject of the relationship). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specimen resource that is the target of this relationship - *

- */ - public java.util.List getTarget() { - if (myTarget == null) { - myTarget = new java.util.ArrayList(); - } - return myTarget; - } - - - /** - * Gets the value(s) for target (The subject of the relationship). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The specimen resource that is the target of this relationship - *

- */ - public java.util.List getTargetElement() { - if (myTarget == null) { - myTarget = new java.util.ArrayList(); - } - return myTarget; - } - - - /** - * Sets the value(s) for target (The subject of the relationship) - * - *

- * Definition: - * The specimen resource that is the target of this relationship - *

- */ - public Source setTarget(java.util.List theValue) { - myTarget = theValue; - return this; - } - - /** - * Adds and returns a new value for target (The subject of the relationship) - * - *

- * Definition: - * The specimen resource that is the target of this relationship - *

- */ - public ResourceReferenceDt addTarget() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getTarget().add(newType); - return newType; - } - - - } - - - /** - * Block class for child element: Specimen.collection (Collection details) - * - *

- * Definition: - * Details concerning the specimen collection - *

- */ - @Block() - public static class Collection - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="collector", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who collected the specimen", - formalDefinition="Person who collected the specimen" - ) - private ResourceReferenceDt myCollector; - - @Child(name="comment", type=StringDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Collector comments", - formalDefinition="To communicate any details or issues encountered during the specimen collection procedure." - ) - private java.util.List myComment; - - @Child(name="collected", order=2, min=0, max=1, type={ - DateTimeDt.class, PeriodDt.class }) - @Description( - shortDefinition="Collection time", - formalDefinition="Time when specimen was collected from subject - the physiologically relevant time" - ) - private IDatatype myCollected; - - @Child(name="quantity", type=QuantityDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="The quantity of specimen collected", - formalDefinition="The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample" - ) - private QuantityDt myQuantity; - - @Child(name="method", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Technique used to perform collection", - formalDefinition="A coded value specifying the technique that is used to perform the procedure" - ) - private BoundCodeableConceptDt myMethod; - - @Child(name="sourceSite", type=CodeableConceptDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Anatomical collection site", - formalDefinition="Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens." - ) - private CodeableConceptDt mySourceSite; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCollector, myComment, myCollected, myQuantity, myMethod, mySourceSite); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCollector, myComment, myCollected, myQuantity, myMethod, mySourceSite); - } - - /** - * Gets the value(s) for collector (Who collected the specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Person who collected the specimen - *

- */ - public ResourceReferenceDt getCollector() { - if (myCollector == null) { - myCollector = new ResourceReferenceDt(); - } - return myCollector; - } - - - /** - * Gets the value(s) for collector (Who collected the specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Person who collected the specimen - *

- */ - public ResourceReferenceDt getCollectorElement() { - if (myCollector == null) { - myCollector = new ResourceReferenceDt(); - } - return myCollector; - } - - - /** - * Sets the value(s) for collector (Who collected the specimen) - * - *

- * Definition: - * Person who collected the specimen - *

- */ - public Collection setCollector(ResourceReferenceDt theValue) { - myCollector = theValue; - return this; - } - - - /** - * Gets the value(s) for comment (Collector comments). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * To communicate any details or issues encountered during the specimen collection procedure. - *

- */ - public java.util.List getComment() { - if (myComment == null) { - myComment = new java.util.ArrayList(); - } - return myComment; - } - - - /** - * Gets the value(s) for comment (Collector comments). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * To communicate any details or issues encountered during the specimen collection procedure. - *

- */ - public java.util.List getCommentElement() { - if (myComment == null) { - myComment = new java.util.ArrayList(); - } - return myComment; - } - - - /** - * Sets the value(s) for comment (Collector comments) - * - *

- * Definition: - * To communicate any details or issues encountered during the specimen collection procedure. - *

- */ - public Collection setComment(java.util.List theValue) { - myComment = theValue; - return this; - } - - /** - * Adds and returns a new value for comment (Collector comments) - * - *

- * Definition: - * To communicate any details or issues encountered during the specimen collection procedure. - *

- */ - public StringDt addComment() { - StringDt newType = new StringDt(); - getComment().add(newType); - return newType; - } - - /** - * Gets the first repetition for comment (Collector comments), - * creating it if it does not already exist. - * - *

- * Definition: - * To communicate any details or issues encountered during the specimen collection procedure. - *

- */ - public StringDt getCommentFirstRep() { - if (getComment().isEmpty()) { - return addComment(); - } - return getComment().get(0); - } - /** - * Adds a new value for comment (Collector comments) - * - *

- * Definition: - * To communicate any details or issues encountered during the specimen collection procedure. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Collection addComment( String theString) { - if (myComment == null) { - myComment = new java.util.ArrayList(); - } - myComment.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for collected[x] (Collection time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time when specimen was collected from subject - the physiologically relevant time - *

- */ - public IDatatype getCollected() { - return myCollected; - } - - - /** - * Gets the value(s) for collected[x] (Collection time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time when specimen was collected from subject - the physiologically relevant time - *

- */ - public IDatatype getCollectedElement() { - return myCollected; - } - - - /** - * Sets the value(s) for collected[x] (Collection time) - * - *

- * Definition: - * Time when specimen was collected from subject - the physiologically relevant time - *

- */ - public Collection setCollected(IDatatype theValue) { - myCollected = theValue; - return this; - } - - - /** - * Gets the value(s) for quantity (The quantity of specimen collected). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (The quantity of specimen collected). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (The quantity of specimen collected) - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public Collection setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (The quantity of specimen collected) - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public Collection setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (The quantity of specimen collected) - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public Collection setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (The quantity of specimen collected) - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public Collection setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (The quantity of specimen collected) - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public Collection setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (The quantity of specimen collected) - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public Collection setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (The quantity of specimen collected) - * - *

- * Definition: - * The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample - *

- */ - public Collection setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for method (Technique used to perform collection). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value specifying the technique that is used to perform the procedure - *

- */ - public BoundCodeableConceptDt getMethod() { - if (myMethod == null) { - myMethod = new BoundCodeableConceptDt(SpecimenCollectionMethodEnum.VALUESET_BINDER); - } - return myMethod; - } - - - /** - * Gets the value(s) for method (Technique used to perform collection). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value specifying the technique that is used to perform the procedure - *

- */ - public BoundCodeableConceptDt getMethodElement() { - if (myMethod == null) { - myMethod = new BoundCodeableConceptDt(SpecimenCollectionMethodEnum.VALUESET_BINDER); - } - return myMethod; - } - - - /** - * Sets the value(s) for method (Technique used to perform collection) - * - *

- * Definition: - * A coded value specifying the technique that is used to perform the procedure - *

- */ - public Collection setMethod(BoundCodeableConceptDt theValue) { - myMethod = theValue; - return this; - } - - /** - * Sets the value(s) for method (Technique used to perform collection) - * - *

- * Definition: - * A coded value specifying the technique that is used to perform the procedure - *

- */ - public Collection setMethod(SpecimenCollectionMethodEnum theValue) { - getMethod().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for sourceSite (Anatomical collection site). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens. - *

- */ - public CodeableConceptDt getSourceSite() { - if (mySourceSite == null) { - mySourceSite = new CodeableConceptDt(); - } - return mySourceSite; - } - - - /** - * Gets the value(s) for sourceSite (Anatomical collection site). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens. - *

- */ - public CodeableConceptDt getSourceSiteElement() { - if (mySourceSite == null) { - mySourceSite = new CodeableConceptDt(); - } - return mySourceSite; - } - - - /** - * Sets the value(s) for sourceSite (Anatomical collection site) - * - *

- * Definition: - * Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens. - *

- */ - public Collection setSourceSite(CodeableConceptDt theValue) { - mySourceSite = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Specimen.treatment (Treatment and processing step details) - * - *

- * Definition: - * Details concerning treatment and processing steps for the specimen - *

- */ - @Block() - public static class Treatment - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="description", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Textual description of procedure", - formalDefinition="" - ) - private StringDt myDescription; - - @Child(name="procedure", type=CodeableConceptDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Indicates the treatment or processing step applied to the specimen", - formalDefinition="A coded value specifying the procedure used to process the specimen" - ) - private BoundCodeableConceptDt myProcedure; - - @Child(name="additive", order=2, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Substance.class }) - @Description( - shortDefinition="Material used in the processing step", - formalDefinition="" - ) - private java.util.List myAdditive; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDescription, myProcedure, myAdditive); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDescription, myProcedure, myAdditive); - } - - /** - * Gets the value(s) for description (Textual description of procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Textual description of procedure). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Textual description of procedure) - * - *

- * Definition: - * - *

- */ - public Treatment setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Textual description of procedure) - * - *

- * Definition: - * - *

- */ - public Treatment setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for procedure (Indicates the treatment or processing step applied to the specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value specifying the procedure used to process the specimen - *

- */ - public BoundCodeableConceptDt getProcedure() { - if (myProcedure == null) { - myProcedure = new BoundCodeableConceptDt(SpecimenTreatmentProcedureEnum.VALUESET_BINDER); - } - return myProcedure; - } - - - /** - * Gets the value(s) for procedure (Indicates the treatment or processing step applied to the specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A coded value specifying the procedure used to process the specimen - *

- */ - public BoundCodeableConceptDt getProcedureElement() { - if (myProcedure == null) { - myProcedure = new BoundCodeableConceptDt(SpecimenTreatmentProcedureEnum.VALUESET_BINDER); - } - return myProcedure; - } - - - /** - * Sets the value(s) for procedure (Indicates the treatment or processing step applied to the specimen) - * - *

- * Definition: - * A coded value specifying the procedure used to process the specimen - *

- */ - public Treatment setProcedure(BoundCodeableConceptDt theValue) { - myProcedure = theValue; - return this; - } - - /** - * Sets the value(s) for procedure (Indicates the treatment or processing step applied to the specimen) - * - *

- * Definition: - * A coded value specifying the procedure used to process the specimen - *

- */ - public Treatment setProcedure(SpecimenTreatmentProcedureEnum theValue) { - getProcedure().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for additive (Material used in the processing step). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getAdditive() { - if (myAdditive == null) { - myAdditive = new java.util.ArrayList(); - } - return myAdditive; - } - - - /** - * Gets the value(s) for additive (Material used in the processing step). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getAdditiveElement() { - if (myAdditive == null) { - myAdditive = new java.util.ArrayList(); - } - return myAdditive; - } - - - /** - * Sets the value(s) for additive (Material used in the processing step) - * - *

- * Definition: - * - *

- */ - public Treatment setAdditive(java.util.List theValue) { - myAdditive = theValue; - return this; - } - - /** - * Adds and returns a new value for additive (Material used in the processing step) - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt addAdditive() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getAdditive().add(newType); - return newType; - } - - - } - - - /** - * Block class for child element: Specimen.container (Direct container of specimen (tube/slide, etc)) - * - *

- * Definition: - * The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here. - *

- */ - @Block() - public static class Container - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Id for the container", - formalDefinition="Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances" - ) - private java.util.List myIdentifier; - - @Child(name="description", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Textual description of the container", - formalDefinition="" - ) - private StringDt myDescription; - - @Child(name="type", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Kind of container directly associated with specimen", - formalDefinition="The type of container associated with the specimen (e.g. slide, aliquot, etc)" - ) - private CodeableConceptDt myType; - - @Child(name="capacity", type=QuantityDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Container volume or size", - formalDefinition="The capacity (volume or other measure) the container may contain." - ) - private QuantityDt myCapacity; - - @Child(name="specimenQuantity", type=QuantityDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Quantity of specimen within container", - formalDefinition="The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type" - ) - private QuantityDt mySpecimenQuantity; - - @Child(name="additive", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Substance.class }) - @Description( - shortDefinition="Additive associated with container", - formalDefinition="Additive associated with the container" - ) - private ResourceReferenceDt myAdditive; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDescription, myType, myCapacity, mySpecimenQuantity, myAdditive); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myDescription, myType, myCapacity, mySpecimenQuantity, myAdditive); - } - - /** - * Gets the value(s) for identifier (Id for the container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Id for the container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances - *

- */ - public java.util.List getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Id for the container) - * - *

- * Definition: - * Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances - *

- */ - public Container setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Adds and returns a new value for identifier (Id for the container) - * - *

- * Definition: - * Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Id for the container), - * creating it if it does not already exist. - * - *

- * Definition: - * Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Id for the container) - * - *

- * Definition: - * Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Container addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); - return this; - } - - /** - * Adds a new value for identifier (Id for the container) - * - *

- * Definition: - * Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Container addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - myIdentifier.add(new IdentifierDt(theSystem, theValue)); - return this; - } - - - /** - * Gets the value(s) for description (Textual description of the container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Textual description of the container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Textual description of the container) - * - *

- * Definition: - * - *

- */ - public Container setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Textual description of the container) - * - *

- * Definition: - * - *

- */ - public Container setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (Kind of container directly associated with specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of container associated with the specimen (e.g. slide, aliquot, etc) - *

- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Gets the value(s) for type (Kind of container directly associated with specimen). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The type of container associated with the specimen (e.g. slide, aliquot, etc) - *

- */ - public CodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - - /** - * Sets the value(s) for type (Kind of container directly associated with specimen) - * - *

- * Definition: - * The type of container associated with the specimen (e.g. slide, aliquot, etc) - *

- */ - public Container setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for capacity (Container volume or size). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public QuantityDt getCapacity() { - if (myCapacity == null) { - myCapacity = new QuantityDt(); - } - return myCapacity; - } - - - /** - * Gets the value(s) for capacity (Container volume or size). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public QuantityDt getCapacityElement() { - if (myCapacity == null) { - myCapacity = new QuantityDt(); - } - return myCapacity; - } - - - /** - * Sets the value(s) for capacity (Container volume or size) - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public Container setCapacity(QuantityDt theValue) { - myCapacity = theValue; - return this; - } - - /** - * Sets the value for capacity (Container volume or size) - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public Container setCapacity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myCapacity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for capacity (Container volume or size) - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public Container setCapacity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myCapacity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for capacity (Container volume or size) - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public Container setCapacity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myCapacity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for capacity (Container volume or size) - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public Container setCapacity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myCapacity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for capacity (Container volume or size) - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public Container setCapacity( double theValue) { - myCapacity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for capacity (Container volume or size) - * - *

- * Definition: - * The capacity (volume or other measure) the container may contain. - *

- */ - public Container setCapacity( long theValue) { - myCapacity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for specimenQuantity (Quantity of specimen within container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public QuantityDt getSpecimenQuantity() { - if (mySpecimenQuantity == null) { - mySpecimenQuantity = new QuantityDt(); - } - return mySpecimenQuantity; - } - - - /** - * Gets the value(s) for specimenQuantity (Quantity of specimen within container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public QuantityDt getSpecimenQuantityElement() { - if (mySpecimenQuantity == null) { - mySpecimenQuantity = new QuantityDt(); - } - return mySpecimenQuantity; - } - - - /** - * Sets the value(s) for specimenQuantity (Quantity of specimen within container) - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public Container setSpecimenQuantity(QuantityDt theValue) { - mySpecimenQuantity = theValue; - return this; - } - - /** - * Sets the value for specimenQuantity (Quantity of specimen within container) - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public Container setSpecimenQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - mySpecimenQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for specimenQuantity (Quantity of specimen within container) - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public Container setSpecimenQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - mySpecimenQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for specimenQuantity (Quantity of specimen within container) - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public Container setSpecimenQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - mySpecimenQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for specimenQuantity (Quantity of specimen within container) - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public Container setSpecimenQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - mySpecimenQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for specimenQuantity (Quantity of specimen within container) - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public Container setSpecimenQuantity( double theValue) { - mySpecimenQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for specimenQuantity (Quantity of specimen within container) - * - *

- * Definition: - * The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type - *

- */ - public Container setSpecimenQuantity( long theValue) { - mySpecimenQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for additive (Additive associated with container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additive associated with the container - *

- */ - public ResourceReferenceDt getAdditive() { - if (myAdditive == null) { - myAdditive = new ResourceReferenceDt(); - } - return myAdditive; - } - - - /** - * Gets the value(s) for additive (Additive associated with container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additive associated with the container - *

- */ - public ResourceReferenceDt getAdditiveElement() { - if (myAdditive == null) { - myAdditive = new ResourceReferenceDt(); - } - return myAdditive; - } - - - /** - * Sets the value(s) for additive (Additive associated with container) - * - *

- * Definition: - * Additive associated with the container - *

- */ - public Container setAdditive(ResourceReferenceDt theValue) { - myAdditive = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Specimen"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Substance.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Substance.java deleted file mode 100644 index 26144ff5151..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Substance.java +++ /dev/null @@ -1,1123 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Substance Resource - * (A homogeneous material with a definite composition) - * - *

- * Definition: - * - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Substance - *

- * - */ -@ResourceDef(name="Substance", profile="http://hl7.org/fhir/profiles/Substance", id="substance") -public class Substance - extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *

- * Description: The type of the substance
- * Type: token
- * Path: Substance.type
- *

- */ - @SearchParamDefinition(name="type", path="Substance.type", description="The type of the substance", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: The type of the substance
- * Type: token
- * Path: Substance.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Substance.instance.identifier
- *

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

- * Description:
- * Type: token
- * Path: Substance.instance.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for expiry - *

- * Description:
- * Type: date
- * Path: Substance.instance.expiry
- *

- */ - @SearchParamDefinition(name="expiry", path="Substance.instance.expiry", description="", type="date" ) - public static final String SP_EXPIRY = "expiry"; - - /** - * Fluent Client search parameter constant for expiry - *

- * Description:
- * Type: date
- * Path: Substance.instance.expiry
- *

- */ - public static final DateClientParam EXPIRY = new DateClientParam(SP_EXPIRY); - - /** - * Search parameter constant for quantity - *

- * Description:
- * Type: number
- * Path: Substance.instance.quantity
- *

- */ - @SearchParamDefinition(name="quantity", path="Substance.instance.quantity", description="", type="number" ) - public static final String SP_QUANTITY = "quantity"; - - /** - * Fluent Client search parameter constant for quantity - *

- * Description:
- * Type: number
- * Path: Substance.instance.quantity
- *

- */ - public static final NumberClientParam QUANTITY = new NumberClientParam(SP_QUANTITY); - - /** - * Search parameter constant for substance - *

- * Description:
- * Type: reference
- * Path: Substance.ingredient.substance
- *

- */ - @SearchParamDefinition(name="substance", path="Substance.ingredient.substance", description="", type="reference" ) - public static final String SP_SUBSTANCE = "substance"; - - /** - * Fluent Client search parameter constant for substance - *

- * Description:
- * Type: reference
- * Path: Substance.ingredient.substance
- *

- */ - public static final ReferenceClientParam SUBSTANCE = new ReferenceClientParam(SP_SUBSTANCE); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Substance.ingredient.substance". - */ - public static final Include INCLUDE_INGREDIENT_SUBSTANCE = new Include("Substance.ingredient.substance"); - - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="What kind of substance this is", - formalDefinition="A code (or set of codes) that identify this substance" - ) - private BoundCodeableConceptDt myType; - - @Child(name="description", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Textual description of the substance, comments", - formalDefinition="A description of the substance - its appearance, handling requirements, and other usage notes" - ) - private StringDt myDescription; - - @Child(name="instance", order=2, min=0, max=1) - @Description( - shortDefinition="If this describes a specific package/container of the substance", - formalDefinition="Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance" - ) - private Instance myInstance; - - @Child(name="ingredient", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Composition information about the substance", - formalDefinition="A substance can be composed of other substances" - ) - private java.util.List myIngredient; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myDescription, myInstance, myIngredient); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myDescription, myInstance, myIngredient); - } - - /** - * Gets the value(s) for type (What kind of substance this is). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code (or set of codes) that identify this substance - *

- */ - public BoundCodeableConceptDt getType() { - if (myType == null) { - myType = new BoundCodeableConceptDt(SubstanceTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (What kind of substance this is). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code (or set of codes) that identify this substance - *

- */ - public BoundCodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeableConceptDt(SubstanceTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (What kind of substance this is) - * - *

- * Definition: - * A code (or set of codes) that identify this substance - *

- */ - public Substance setType(BoundCodeableConceptDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (What kind of substance this is) - * - *

- * Definition: - * A code (or set of codes) that identify this substance - *

- */ - public Substance setType(SubstanceTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for description (Textual description of the substance, comments). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the substance - its appearance, handling requirements, and other usage notes - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Textual description of the substance, comments). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A description of the substance - its appearance, handling requirements, and other usage notes - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Textual description of the substance, comments) - * - *

- * Definition: - * A description of the substance - its appearance, handling requirements, and other usage notes - *

- */ - public Substance setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Textual description of the substance, comments) - * - *

- * Definition: - * A description of the substance - its appearance, handling requirements, and other usage notes - *

- */ - public Substance setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for instance (If this describes a specific package/container of the substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance - *

- */ - public Instance getInstance() { - if (myInstance == null) { - myInstance = new Instance(); - } - return myInstance; - } - - - /** - * Gets the value(s) for instance (If this describes a specific package/container of the substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance - *

- */ - public Instance getInstanceElement() { - if (myInstance == null) { - myInstance = new Instance(); - } - return myInstance; - } - - - /** - * Sets the value(s) for instance (If this describes a specific package/container of the substance) - * - *

- * Definition: - * Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance - *

- */ - public Substance setInstance(Instance theValue) { - myInstance = theValue; - return this; - } - - - /** - * Gets the value(s) for ingredient (Composition information about the substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A substance can be composed of other substances - *

- */ - public java.util.List getIngredient() { - if (myIngredient == null) { - myIngredient = new java.util.ArrayList(); - } - return myIngredient; - } - - - /** - * Gets the value(s) for ingredient (Composition information about the substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A substance can be composed of other substances - *

- */ - public java.util.List getIngredientElement() { - if (myIngredient == null) { - myIngredient = new java.util.ArrayList(); - } - return myIngredient; - } - - - /** - * Sets the value(s) for ingredient (Composition information about the substance) - * - *

- * Definition: - * A substance can be composed of other substances - *

- */ - public Substance setIngredient(java.util.List theValue) { - myIngredient = theValue; - return this; - } - - /** - * Adds and returns a new value for ingredient (Composition information about the substance) - * - *

- * Definition: - * A substance can be composed of other substances - *

- */ - public Ingredient addIngredient() { - Ingredient newType = new Ingredient(); - getIngredient().add(newType); - return newType; - } - - /** - * Gets the first repetition for ingredient (Composition information about the substance), - * creating it if it does not already exist. - * - *

- * Definition: - * A substance can be composed of other substances - *

- */ - public Ingredient getIngredientFirstRep() { - if (getIngredient().isEmpty()) { - return addIngredient(); - } - return getIngredient().get(0); - } - - /** - * Block class for child element: Substance.instance (If this describes a specific package/container of the substance) - * - *

- * Definition: - * Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance - *

- */ - @Block() - public static class Instance - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identifier of the package/container", - formalDefinition="Identifier associated with the package/container (usually a label affixed directly)" - ) - private IdentifierDt myIdentifier; - - @Child(name="expiry", type=DateTimeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="When no longer valid to use", - formalDefinition="When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry." - ) - private DateTimeDt myExpiry; - - @Child(name="quantity", type=QuantityDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Amount of substance in the package", - formalDefinition="The amount of the substance" - ) - private QuantityDt myQuantity; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myExpiry, myQuantity); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myExpiry, myQuantity); - } - - /** - * Gets the value(s) for identifier (Identifier of the package/container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier associated with the package/container (usually a label affixed directly) - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Identifier of the package/container). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier associated with the package/container (usually a label affixed directly) - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Identifier of the package/container) - * - *

- * Definition: - * Identifier associated with the package/container (usually a label affixed directly) - *

- */ - public Instance setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Identifier of the package/container) - * - *

- * Definition: - * Identifier associated with the package/container (usually a label affixed directly) - *

- */ - public Instance setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Identifier of the package/container) - * - *

- * Definition: - * Identifier associated with the package/container (usually a label affixed directly) - *

- */ - public Instance setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for expiry (When no longer valid to use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. - *

- */ - public DateTimeDt getExpiry() { - if (myExpiry == null) { - myExpiry = new DateTimeDt(); - } - return myExpiry; - } - - - /** - * Gets the value(s) for expiry (When no longer valid to use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. - *

- */ - public DateTimeDt getExpiryElement() { - if (myExpiry == null) { - myExpiry = new DateTimeDt(); - } - return myExpiry; - } - - - /** - * Sets the value(s) for expiry (When no longer valid to use) - * - *

- * Definition: - * When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. - *

- */ - public Instance setExpiry(DateTimeDt theValue) { - myExpiry = theValue; - return this; - } - - /** - * Sets the value for expiry (When no longer valid to use) - * - *

- * Definition: - * When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. - *

- */ - public Instance setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) { - myExpiry = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for expiry (When no longer valid to use) - * - *

- * Definition: - * When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. - *

- */ - public Instance setExpiryWithSecondsPrecision( Date theDate) { - myExpiry = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for quantity (Amount of substance in the package). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of the substance - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Amount of substance in the package). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of the substance - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Amount of substance in the package) - * - *

- * Definition: - * The amount of the substance - *

- */ - public Instance setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (Amount of substance in the package) - * - *

- * Definition: - * The amount of the substance - *

- */ - public Instance setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of substance in the package) - * - *

- * Definition: - * The amount of the substance - *

- */ - public Instance setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of substance in the package) - * - *

- * Definition: - * The amount of the substance - *

- */ - public Instance setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of substance in the package) - * - *

- * Definition: - * The amount of the substance - *

- */ - public Instance setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount of substance in the package) - * - *

- * Definition: - * The amount of the substance - *

- */ - public Instance setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (Amount of substance in the package) - * - *

- * Definition: - * The amount of the substance - *

- */ - public Instance setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: Substance.ingredient (Composition information about the substance) - * - *

- * Definition: - * A substance can be composed of other substances - *

- */ - @Block() - public static class Ingredient - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="quantity", type=RatioDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Optional amount (concentration)", - formalDefinition="The amount of the ingredient in the substance - a concentration ratio" - ) - private RatioDt myQuantity; - - @Child(name="substance", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Substance.class }) - @Description( - shortDefinition="A component of the substance", - formalDefinition="Another substance that is a component of this substance" - ) - private ResourceReferenceDt mySubstance; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myQuantity, mySubstance); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myQuantity, mySubstance); - } - - /** - * Gets the value(s) for quantity (Optional amount (concentration)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of the ingredient in the substance - a concentration ratio - *

- */ - public RatioDt getQuantity() { - if (myQuantity == null) { - myQuantity = new RatioDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Optional amount (concentration)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of the ingredient in the substance - a concentration ratio - *

- */ - public RatioDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new RatioDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Optional amount (concentration)) - * - *

- * Definition: - * The amount of the ingredient in the substance - a concentration ratio - *

- */ - public Ingredient setQuantity(RatioDt theValue) { - myQuantity = theValue; - return this; - } - - - /** - * Gets the value(s) for substance (A component of the substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Another substance that is a component of this substance - *

- */ - public ResourceReferenceDt getSubstance() { - if (mySubstance == null) { - mySubstance = new ResourceReferenceDt(); - } - return mySubstance; - } - - - /** - * Gets the value(s) for substance (A component of the substance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Another substance that is a component of this substance - *

- */ - public ResourceReferenceDt getSubstanceElement() { - if (mySubstance == null) { - mySubstance = new ResourceReferenceDt(); - } - return mySubstance; - } - - - /** - * Sets the value(s) for substance (A component of the substance) - * - *

- * Definition: - * Another substance that is a component of this substance - *

- */ - public Ingredient setSubstance(ResourceReferenceDt theValue) { - mySubstance = theValue; - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Substance"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Supply.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Supply.java deleted file mode 100644 index 78e99baf417..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/Supply.java +++ /dev/null @@ -1,1587 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR Supply Resource - * (A supply - request and provision) - * - *

- * Definition: - * A supply - a request for something, and provision of what is supplied - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Supply - *

- * - */ -@ResourceDef(name="Supply", profile="http://hl7.org/fhir/profiles/Supply", id="supply") -public class Supply - extends BaseResource implements IResource { - - /** - * Search parameter constant for kind - *

- * Description:
- * Type: token
- * Path: Supply.kind
- *

- */ - @SearchParamDefinition(name="kind", path="Supply.kind", description="", type="token" ) - public static final String SP_KIND = "kind"; - - /** - * Fluent Client search parameter constant for kind - *

- * Description:
- * Type: token
- * Path: Supply.kind
- *

- */ - public static final TokenClientParam KIND = new TokenClientParam(SP_KIND); - - /** - * Search parameter constant for identifier - *

- * Description:
- * Type: token
- * Path: Supply.identifier
- *

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

- * Description:
- * Type: token
- * Path: Supply.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for status - *

- * Description:
- * Type: token
- * Path: Supply.status
- *

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

- * Description:
- * Type: token
- * Path: Supply.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for patient - *

- * Description:
- * Type: reference
- * Path: Supply.patient
- *

- */ - @SearchParamDefinition(name="patient", path="Supply.patient", description="", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description:
- * Type: reference
- * Path: Supply.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Supply.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("Supply.patient"); - - /** - * Search parameter constant for supplier - *

- * Description:
- * Type: reference
- * Path: Supply.dispense.supplier
- *

- */ - @SearchParamDefinition(name="supplier", path="Supply.dispense.supplier", description="", type="reference" ) - public static final String SP_SUPPLIER = "supplier"; - - /** - * Fluent Client search parameter constant for supplier - *

- * Description:
- * Type: reference
- * Path: Supply.dispense.supplier
- *

- */ - public static final ReferenceClientParam SUPPLIER = new ReferenceClientParam(SP_SUPPLIER); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Supply.dispense.supplier". - */ - public static final Include INCLUDE_DISPENSE_SUPPLIER = new Include("Supply.dispense.supplier"); - - /** - * Search parameter constant for dispenseid - *

- * Description:
- * Type: token
- * Path: Supply.dispense.identifier
- *

- */ - @SearchParamDefinition(name="dispenseid", path="Supply.dispense.identifier", description="", type="token" ) - public static final String SP_DISPENSEID = "dispenseid"; - - /** - * Fluent Client search parameter constant for dispenseid - *

- * Description:
- * Type: token
- * Path: Supply.dispense.identifier
- *

- */ - public static final TokenClientParam DISPENSEID = new TokenClientParam(SP_DISPENSEID); - - /** - * Search parameter constant for dispensestatus - *

- * Description:
- * Type: token
- * Path: Supply.dispense.status
- *

- */ - @SearchParamDefinition(name="dispensestatus", path="Supply.dispense.status", description="", type="token" ) - public static final String SP_DISPENSESTATUS = "dispensestatus"; - - /** - * Fluent Client search parameter constant for dispensestatus - *

- * Description:
- * Type: token
- * Path: Supply.dispense.status
- *

- */ - public static final TokenClientParam DISPENSESTATUS = new TokenClientParam(SP_DISPENSESTATUS); - - - @Child(name="kind", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="The kind of supply (central, non-stock, etc)", - formalDefinition="Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process" - ) - private BoundCodeableConceptDt myKind; - - @Child(name="identifier", type=IdentifierDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Unique identifier", - formalDefinition="Unique identifier for this supply request" - ) - private IdentifierDt myIdentifier; - - @Child(name="status", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="requested | dispensed | received | failed | cancelled", - formalDefinition="Status of the supply request" - ) - private BoundCodeDt myStatus; - - @Child(name="orderedItem", order=3, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class, ca.uhn.fhir.model.dstu.resource.Substance.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Medication, Substance, or Device requested to be supplied", - formalDefinition="The item that is requested to be supplied" - ) - private ResourceReferenceDt myOrderedItem; - - @Child(name="patient", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Patient for whom the item is supplied", - formalDefinition="A link to a resource representing the person whom the ordered item is for" - ) - private ResourceReferenceDt myPatient; - - @Child(name="dispense", order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Supply details", - formalDefinition="Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed." - ) - private java.util.List myDispense; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myKind, myIdentifier, myStatus, myOrderedItem, myPatient, myDispense); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myKind, myIdentifier, myStatus, myOrderedItem, myPatient, myDispense); - } - - /** - * Gets the value(s) for kind (The kind of supply (central, non-stock, etc)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process - *

- */ - public BoundCodeableConceptDt getKind() { - if (myKind == null) { - myKind = new BoundCodeableConceptDt(SupplyTypeEnum.VALUESET_BINDER); - } - return myKind; - } - - - /** - * Gets the value(s) for kind (The kind of supply (central, non-stock, etc)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process - *

- */ - public BoundCodeableConceptDt getKindElement() { - if (myKind == null) { - myKind = new BoundCodeableConceptDt(SupplyTypeEnum.VALUESET_BINDER); - } - return myKind; - } - - - /** - * Sets the value(s) for kind (The kind of supply (central, non-stock, etc)) - * - *

- * Definition: - * Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process - *

- */ - public Supply setKind(BoundCodeableConceptDt theValue) { - myKind = theValue; - return this; - } - - /** - * Sets the value(s) for kind (The kind of supply (central, non-stock, etc)) - * - *

- * Definition: - * Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process - *

- */ - public Supply setKind(SupplyTypeEnum theValue) { - getKind().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for identifier (Unique identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Unique identifier for this supply request - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Unique identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Unique identifier for this supply request - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Unique identifier) - * - *

- * Definition: - * Unique identifier for this supply request - *

- */ - public Supply setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Unique identifier) - * - *

- * Definition: - * Unique identifier for this supply request - *

- */ - public Supply setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Unique identifier) - * - *

- * Definition: - * Unique identifier for this supply request - *

- */ - public Supply setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for status (requested | dispensed | received | failed | cancelled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Status of the supply request - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(SupplyStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (requested | dispensed | received | failed | cancelled). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Status of the supply request - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(SupplyStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (requested | dispensed | received | failed | cancelled) - * - *

- * Definition: - * Status of the supply request - *

- */ - public Supply setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (requested | dispensed | received | failed | cancelled) - * - *

- * Definition: - * Status of the supply request - *

- */ - public Supply setStatus(SupplyStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for orderedItem (Medication, Substance, or Device requested to be supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The item that is requested to be supplied - *

- */ - public ResourceReferenceDt getOrderedItem() { - if (myOrderedItem == null) { - myOrderedItem = new ResourceReferenceDt(); - } - return myOrderedItem; - } - - - /** - * Gets the value(s) for orderedItem (Medication, Substance, or Device requested to be supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The item that is requested to be supplied - *

- */ - public ResourceReferenceDt getOrderedItemElement() { - if (myOrderedItem == null) { - myOrderedItem = new ResourceReferenceDt(); - } - return myOrderedItem; - } - - - /** - * Sets the value(s) for orderedItem (Medication, Substance, or Device requested to be supplied) - * - *

- * Definition: - * The item that is requested to be supplied - *

- */ - public Supply setOrderedItem(ResourceReferenceDt theValue) { - myOrderedItem = theValue; - return this; - } - - - /** - * Gets the value(s) for patient (Patient for whom the item is supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A link to a resource representing the person whom the ordered item is for - *

- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Patient for whom the item is supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A link to a resource representing the person whom the ordered item is for - *

- */ - public ResourceReferenceDt getPatientElement() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Patient for whom the item is supplied) - * - *

- * Definition: - * A link to a resource representing the person whom the ordered item is for - *

- */ - public Supply setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for dispense (Supply details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed. - *

- */ - public java.util.List getDispense() { - if (myDispense == null) { - myDispense = new java.util.ArrayList(); - } - return myDispense; - } - - - /** - * Gets the value(s) for dispense (Supply details). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed. - *

- */ - public java.util.List getDispenseElement() { - if (myDispense == null) { - myDispense = new java.util.ArrayList(); - } - return myDispense; - } - - - /** - * Sets the value(s) for dispense (Supply details) - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed. - *

- */ - public Supply setDispense(java.util.List theValue) { - myDispense = theValue; - return this; - } - - /** - * Adds and returns a new value for dispense (Supply details) - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed. - *

- */ - public Dispense addDispense() { - Dispense newType = new Dispense(); - getDispense().add(newType); - return newType; - } - - /** - * Gets the first repetition for dispense (Supply details), - * creating it if it does not already exist. - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed. - *

- */ - public Dispense getDispenseFirstRep() { - if (getDispense().isEmpty()) { - return addDispense(); - } - return getDispense().get(0); - } - - /** - * Block class for child element: Supply.dispense (Supply details) - * - *

- * Definition: - * Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed. - *

- */ - @Block() - public static class Dispense - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="External identifier", - formalDefinition="Identifier assigned by the dispensing facility when the dispense occurs" - ) - private IdentifierDt myIdentifier; - - @Child(name="status", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="in progress | dispensed | abandoned", - formalDefinition="A code specifying the state of the dispense event." - ) - private BoundCodeDt myStatus; - - @Child(name="type", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Category of dispense event", - formalDefinition="Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc." - ) - private BoundCodeableConceptDt myType; - - @Child(name="quantity", type=QuantityDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Amount dispensed", - formalDefinition="The amount of supply that has been dispensed. Includes unit of measure." - ) - private QuantityDt myQuantity; - - @Child(name="suppliedItem", order=4, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Medication.class, ca.uhn.fhir.model.dstu.resource.Substance.class, ca.uhn.fhir.model.dstu.resource.Device.class }) - @Description( - shortDefinition="Medication, Substance, or Device supplied", - formalDefinition="Identifies the medication or substance being dispensed. This is either a link to a resource representing the details of the medication or substance or a simple attribute carrying a code that identifies the medication from a known list of medications." - ) - private ResourceReferenceDt mySuppliedItem; - - @Child(name="supplier", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Dispenser", - formalDefinition="The individual responsible for dispensing the medication" - ) - private ResourceReferenceDt mySupplier; - - @Child(name="whenPrepared", type=PeriodDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Dispensing time", - formalDefinition="The time the dispense event occurred." - ) - private PeriodDt myWhenPrepared; - - @Child(name="whenHandedOver", type=PeriodDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Handover time", - formalDefinition="The time the dispensed item was sent or handed to the patient (or agent)." - ) - private PeriodDt myWhenHandedOver; - - @Child(name="destination", order=8, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Location.class }) - @Description( - shortDefinition="Where the Supply was sent", - formalDefinition="Identification of the facility/location where the Supply was shipped to, as part of the dispense event." - ) - private ResourceReferenceDt myDestination; - - @Child(name="receiver", order=9, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class }) - @Description( - shortDefinition="Who collected the Supply", - formalDefinition="Identifies the person who picked up the Supply." - ) - private java.util.List myReceiver; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myStatus, myType, myQuantity, mySuppliedItem, mySupplier, myWhenPrepared, myWhenHandedOver, myDestination, myReceiver); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myStatus, myType, myQuantity, mySuppliedItem, mySupplier, myWhenPrepared, myWhenHandedOver, myDestination, myReceiver); - } - - /** - * Gets the value(s) for identifier (External identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned by the dispensing facility when the dispense occurs - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (External identifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier assigned by the dispensing facility when the dispense occurs - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (External identifier) - * - *

- * Definition: - * Identifier assigned by the dispensing facility when the dispense occurs - *

- */ - public Dispense setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (External identifier) - * - *

- * Definition: - * Identifier assigned by the dispensing facility when the dispense occurs - *

- */ - public Dispense setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (External identifier) - * - *

- * Definition: - * Identifier assigned by the dispensing facility when the dispense occurs - *

- */ - public Dispense setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for status (in progress | dispensed | abandoned). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the state of the dispense event. - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(SupplyDispenseStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (in progress | dispensed | abandoned). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code specifying the state of the dispense event. - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(SupplyDispenseStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (in progress | dispensed | abandoned) - * - *

- * Definition: - * A code specifying the state of the dispense event. - *

- */ - public Dispense setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (in progress | dispensed | abandoned) - * - *

- * Definition: - * A code specifying the state of the dispense event. - *

- */ - public Dispense setStatus(SupplyDispenseStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for type (Category of dispense event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. - *

- */ - public BoundCodeableConceptDt getType() { - if (myType == null) { - myType = new BoundCodeableConceptDt(SupplyItemTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Gets the value(s) for type (Category of dispense event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. - *

- */ - public BoundCodeableConceptDt getTypeElement() { - if (myType == null) { - myType = new BoundCodeableConceptDt(SupplyItemTypeEnum.VALUESET_BINDER); - } - return myType; - } - - - /** - * Sets the value(s) for type (Category of dispense event) - * - *

- * Definition: - * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. - *

- */ - public Dispense setType(BoundCodeableConceptDt theValue) { - myType = theValue; - return this; - } - - /** - * Sets the value(s) for type (Category of dispense event) - * - *

- * Definition: - * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. - *

- */ - public Dispense setType(SupplyItemTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for quantity (Amount dispensed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Gets the value(s) for quantity (Amount dispensed). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public QuantityDt getQuantityElement() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - - /** - * Sets the value(s) for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (Amount dispensed) - * - *

- * Definition: - * The amount of supply that has been dispensed. Includes unit of measure. - *

- */ - public Dispense setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for suppliedItem (Medication, Substance, or Device supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication or substance being dispensed. This is either a link to a resource representing the details of the medication or substance or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getSuppliedItem() { - if (mySuppliedItem == null) { - mySuppliedItem = new ResourceReferenceDt(); - } - return mySuppliedItem; - } - - - /** - * Gets the value(s) for suppliedItem (Medication, Substance, or Device supplied). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the medication or substance being dispensed. This is either a link to a resource representing the details of the medication or substance or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public ResourceReferenceDt getSuppliedItemElement() { - if (mySuppliedItem == null) { - mySuppliedItem = new ResourceReferenceDt(); - } - return mySuppliedItem; - } - - - /** - * Sets the value(s) for suppliedItem (Medication, Substance, or Device supplied) - * - *

- * Definition: - * Identifies the medication or substance being dispensed. This is either a link to a resource representing the details of the medication or substance or a simple attribute carrying a code that identifies the medication from a known list of medications. - *

- */ - public Dispense setSuppliedItem(ResourceReferenceDt theValue) { - mySuppliedItem = theValue; - return this; - } - - - /** - * Gets the value(s) for supplier (Dispenser). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The individual responsible for dispensing the medication - *

- */ - public ResourceReferenceDt getSupplier() { - if (mySupplier == null) { - mySupplier = new ResourceReferenceDt(); - } - return mySupplier; - } - - - /** - * Gets the value(s) for supplier (Dispenser). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The individual responsible for dispensing the medication - *

- */ - public ResourceReferenceDt getSupplierElement() { - if (mySupplier == null) { - mySupplier = new ResourceReferenceDt(); - } - return mySupplier; - } - - - /** - * Sets the value(s) for supplier (Dispenser) - * - *

- * Definition: - * The individual responsible for dispensing the medication - *

- */ - public Dispense setSupplier(ResourceReferenceDt theValue) { - mySupplier = theValue; - return this; - } - - - /** - * Gets the value(s) for whenPrepared (Dispensing time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time the dispense event occurred. - *

- */ - public PeriodDt getWhenPrepared() { - if (myWhenPrepared == null) { - myWhenPrepared = new PeriodDt(); - } - return myWhenPrepared; - } - - - /** - * Gets the value(s) for whenPrepared (Dispensing time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time the dispense event occurred. - *

- */ - public PeriodDt getWhenPreparedElement() { - if (myWhenPrepared == null) { - myWhenPrepared = new PeriodDt(); - } - return myWhenPrepared; - } - - - /** - * Sets the value(s) for whenPrepared (Dispensing time) - * - *

- * Definition: - * The time the dispense event occurred. - *

- */ - public Dispense setWhenPrepared(PeriodDt theValue) { - myWhenPrepared = theValue; - return this; - } - - - /** - * Gets the value(s) for whenHandedOver (Handover time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time the dispensed item was sent or handed to the patient (or agent). - *

- */ - public PeriodDt getWhenHandedOver() { - if (myWhenHandedOver == null) { - myWhenHandedOver = new PeriodDt(); - } - return myWhenHandedOver; - } - - - /** - * Gets the value(s) for whenHandedOver (Handover time). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time the dispensed item was sent or handed to the patient (or agent). - *

- */ - public PeriodDt getWhenHandedOverElement() { - if (myWhenHandedOver == null) { - myWhenHandedOver = new PeriodDt(); - } - return myWhenHandedOver; - } - - - /** - * Sets the value(s) for whenHandedOver (Handover time) - * - *

- * Definition: - * The time the dispensed item was sent or handed to the patient (or agent). - *

- */ - public Dispense setWhenHandedOver(PeriodDt theValue) { - myWhenHandedOver = theValue; - return this; - } - - - /** - * Gets the value(s) for destination (Where the Supply was sent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identification of the facility/location where the Supply was shipped to, as part of the dispense event. - *

- */ - public ResourceReferenceDt getDestination() { - if (myDestination == null) { - myDestination = new ResourceReferenceDt(); - } - return myDestination; - } - - - /** - * Gets the value(s) for destination (Where the Supply was sent). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identification of the facility/location where the Supply was shipped to, as part of the dispense event. - *

- */ - public ResourceReferenceDt getDestinationElement() { - if (myDestination == null) { - myDestination = new ResourceReferenceDt(); - } - return myDestination; - } - - - /** - * Sets the value(s) for destination (Where the Supply was sent) - * - *

- * Definition: - * Identification of the facility/location where the Supply was shipped to, as part of the dispense event. - *

- */ - public Dispense setDestination(ResourceReferenceDt theValue) { - myDestination = theValue; - return this; - } - - - /** - * Gets the value(s) for receiver (Who collected the Supply). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the person who picked up the Supply. - *

- */ - public java.util.List getReceiver() { - if (myReceiver == null) { - myReceiver = new java.util.ArrayList(); - } - return myReceiver; - } - - - /** - * Gets the value(s) for receiver (Who collected the Supply). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the person who picked up the Supply. - *

- */ - public java.util.List getReceiverElement() { - if (myReceiver == null) { - myReceiver = new java.util.ArrayList(); - } - return myReceiver; - } - - - /** - * Sets the value(s) for receiver (Who collected the Supply) - * - *

- * Definition: - * Identifies the person who picked up the Supply. - *

- */ - public Dispense setReceiver(java.util.List theValue) { - myReceiver = theValue; - return this; - } - - /** - * Adds and returns a new value for receiver (Who collected the Supply) - * - *

- * Definition: - * Identifies the person who picked up the Supply. - *

- */ - public ResourceReferenceDt addReceiver() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getReceiver().add(newType); - return newType; - } - - - } - - - - - @Override - public String getResourceName() { - return "Supply"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/User.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/User.java deleted file mode 100644 index e8c37e1717a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/User.java +++ /dev/null @@ -1,970 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR User Resource - * (A user authorized to use the system) - * - *

- * Definition: - * - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/User - *

- * - */ -@ResourceDef(name="User", profile="http://hl7.org/fhir/profiles/User", id="user") -public class User - extends BaseResource implements IResource { - - /** - * Search parameter constant for name - *

- * Description:
- * Type: string
- * Path: User.name
- *

- */ - @SearchParamDefinition(name="name", path="User.name", description="", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description:
- * Type: string
- * Path: User.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for provider - *

- * Description:
- * Type: token
- * Path: User.provider
- *

- */ - @SearchParamDefinition(name="provider", path="User.provider", description="", type="token" ) - public static final String SP_PROVIDER = "provider"; - - /** - * Fluent Client search parameter constant for provider - *

- * Description:
- * Type: token
- * Path: User.provider
- *

- */ - public static final TokenClientParam PROVIDER = new TokenClientParam(SP_PROVIDER); - - /** - * Search parameter constant for login - *

- * Description:
- * Type: string
- * Path: User.login
- *

- */ - @SearchParamDefinition(name="login", path="User.login", description="", type="string" ) - public static final String SP_LOGIN = "login"; - - /** - * Fluent Client search parameter constant for login - *

- * Description:
- * Type: string
- * Path: User.login
- *

- */ - public static final StringClientParam LOGIN = new StringClientParam(SP_LOGIN); - - /** - * Search parameter constant for level - *

- * Description:
- * Type: token
- * Path: User.level
- *

- */ - @SearchParamDefinition(name="level", path="User.level", description="", type="token" ) - public static final String SP_LEVEL = "level"; - - /** - * Fluent Client search parameter constant for level - *

- * Description:
- * Type: token
- * Path: User.level
- *

- */ - public static final TokenClientParam LEVEL = new TokenClientParam(SP_LEVEL); - - /** - * Search parameter constant for patient - *

- * Description:
- * Type: reference
- * Path: User.patient
- *

- */ - @SearchParamDefinition(name="patient", path="User.patient", description="", type="reference" ) - public static final String SP_PATIENT = "patient"; - - /** - * Fluent Client search parameter constant for patient - *

- * Description:
- * Type: reference
- * Path: User.patient
- *

- */ - public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "User.patient". - */ - public static final Include INCLUDE_PATIENT = new Include("User.patient"); - - - @Child(name="name", type=HumanNameDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="The name of this user", - formalDefinition="" - ) - private HumanNameDt myName; - - @Child(name="provider", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Which system authenticates the user. Blanks = internally authenticated", - formalDefinition="" - ) - private UriDt myProvider; - - @Child(name="login", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="The login by which this user is known", - formalDefinition="" - ) - private StringDt myLogin; - - @Child(name="password", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="If internal login, the password hash (SHA 256, Hex, lowercase)", - formalDefinition="" - ) - private StringDt myPassword; - - @Child(name="level", type=CodeDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="The level access for this user", - formalDefinition="" - ) - private CodeDt myLevel; - - @Child(name="sessionLength", type=IntegerDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="How long a session lasts for", - formalDefinition="" - ) - private IntegerDt mySessionLength; - - @Child(name="contact", type=ContactDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Contact details for the user", - formalDefinition="" - ) - private java.util.List myContact; - - @Child(name="patient", order=7, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu.resource.Patient.class }) - @Description( - shortDefinition="Patient compartments the user has access to (if level is patient/family)", - formalDefinition="" - ) - private java.util.List myPatient; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myProvider, myLogin, myPassword, myLevel, mySessionLength, myContact, myPatient); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myProvider, myLogin, myPassword, myLevel, mySessionLength, myContact, myPatient); - } - - /** - * Gets the value(s) for name (The name of this user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (The name of this user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public HumanNameDt getNameElement() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (The name of this user) - * - *

- * Definition: - * - *

- */ - public User setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for provider (Which system authenticates the user. Blanks = internally authenticated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getProvider() { - if (myProvider == null) { - myProvider = new UriDt(); - } - return myProvider; - } - - - /** - * Gets the value(s) for provider (Which system authenticates the user. Blanks = internally authenticated). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getProviderElement() { - if (myProvider == null) { - myProvider = new UriDt(); - } - return myProvider; - } - - - /** - * Sets the value(s) for provider (Which system authenticates the user. Blanks = internally authenticated) - * - *

- * Definition: - * - *

- */ - public User setProvider(UriDt theValue) { - myProvider = theValue; - return this; - } - - /** - * Sets the value for provider (Which system authenticates the user. Blanks = internally authenticated) - * - *

- * Definition: - * - *

- */ - public User setProvider( String theUri) { - myProvider = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for login (The login by which this user is known). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getLogin() { - if (myLogin == null) { - myLogin = new StringDt(); - } - return myLogin; - } - - - /** - * Gets the value(s) for login (The login by which this user is known). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getLoginElement() { - if (myLogin == null) { - myLogin = new StringDt(); - } - return myLogin; - } - - - /** - * Sets the value(s) for login (The login by which this user is known) - * - *

- * Definition: - * - *

- */ - public User setLogin(StringDt theValue) { - myLogin = theValue; - return this; - } - - /** - * Sets the value for login (The login by which this user is known) - * - *

- * Definition: - * - *

- */ - public User setLogin( String theString) { - myLogin = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for password (If internal login, the password hash (SHA 256, Hex, lowercase)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getPassword() { - if (myPassword == null) { - myPassword = new StringDt(); - } - return myPassword; - } - - - /** - * Gets the value(s) for password (If internal login, the password hash (SHA 256, Hex, lowercase)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getPasswordElement() { - if (myPassword == null) { - myPassword = new StringDt(); - } - return myPassword; - } - - - /** - * Sets the value(s) for password (If internal login, the password hash (SHA 256, Hex, lowercase)) - * - *

- * Definition: - * - *

- */ - public User setPassword(StringDt theValue) { - myPassword = theValue; - return this; - } - - /** - * Sets the value for password (If internal login, the password hash (SHA 256, Hex, lowercase)) - * - *

- * Definition: - * - *

- */ - public User setPassword( String theString) { - myPassword = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for level (The level access for this user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getLevel() { - if (myLevel == null) { - myLevel = new CodeDt(); - } - return myLevel; - } - - - /** - * Gets the value(s) for level (The level access for this user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getLevelElement() { - if (myLevel == null) { - myLevel = new CodeDt(); - } - return myLevel; - } - - - /** - * Sets the value(s) for level (The level access for this user) - * - *

- * Definition: - * - *

- */ - public User setLevel(CodeDt theValue) { - myLevel = theValue; - return this; - } - - /** - * Sets the value for level (The level access for this user) - * - *

- * Definition: - * - *

- */ - public User setLevel( String theCode) { - myLevel = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for sessionLength (How long a session lasts for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IntegerDt getSessionLength() { - if (mySessionLength == null) { - mySessionLength = new IntegerDt(); - } - return mySessionLength; - } - - - /** - * Gets the value(s) for sessionLength (How long a session lasts for). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public IntegerDt getSessionLengthElement() { - if (mySessionLength == null) { - mySessionLength = new IntegerDt(); - } - return mySessionLength; - } - - - /** - * Sets the value(s) for sessionLength (How long a session lasts for) - * - *

- * Definition: - * - *

- */ - public User setSessionLength(IntegerDt theValue) { - mySessionLength = theValue; - return this; - } - - /** - * Sets the value for sessionLength (How long a session lasts for) - * - *

- * Definition: - * - *

- */ - public User setSessionLength( int theInteger) { - mySessionLength = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for contact (Contact details for the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContact() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - - /** - * Gets the value(s) for contact (Contact details for the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContactElement() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - - /** - * Sets the value(s) for contact (Contact details for the user) - * - *

- * Definition: - * - *

- */ - public User setContact(java.util.List theValue) { - myContact = theValue; - return this; - } - - /** - * Adds and returns a new value for contact (Contact details for the user) - * - *

- * Definition: - * - *

- */ - public ContactDt addContact() { - ContactDt newType = new ContactDt(); - getContact().add(newType); - return newType; - } - - /** - * Gets the first repetition for contact (Contact details for the user), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ContactDt getContactFirstRep() { - if (getContact().isEmpty()) { - return addContact(); - } - return getContact().get(0); - } - /** - * Adds a new value for contact (Contact details for the user) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public User addContact( ContactUseEnum theContactUse, String theValue) { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - myContact.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for contact (Contact details for the user) - * - *

- * Definition: - * - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public User addContact( String theValue) { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - myContact.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for patient (Patient compartments the user has access to (if level is patient/family)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getPatient() { - if (myPatient == null) { - myPatient = new java.util.ArrayList(); - } - return myPatient; - } - - - /** - * Gets the value(s) for patient (Patient compartments the user has access to (if level is patient/family)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getPatientElement() { - if (myPatient == null) { - myPatient = new java.util.ArrayList(); - } - return myPatient; - } - - - /** - * Sets the value(s) for patient (Patient compartments the user has access to (if level is patient/family)) - * - *

- * Definition: - * - *

- */ - public User setPatient(java.util.List theValue) { - myPatient = theValue; - return this; - } - - /** - * Adds and returns a new value for patient (Patient compartments the user has access to (if level is patient/family)) - * - *

- * Definition: - * - *

- */ - public ResourceReferenceDt addPatient() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getPatient().add(newType); - return newType; - } - - - - @Override - public String getResourceName() { - return "User"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ValueSet.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ValueSet.java deleted file mode 100644 index 1f83daeb4b7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/resource/ValueSet.java +++ /dev/null @@ -1,3690 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.rest.gclient.*; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum; -import ca.uhn.fhir.model.dstu.resource.AdverseReaction; -import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance; -import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum; -import ca.uhn.fhir.model.dstu.resource.Appointment; -import ca.uhn.fhir.model.dstu.composite.AttachmentDt; -import ca.uhn.fhir.model.dstu.resource.Availability; -import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu.resource.CarePlan; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum; -import ca.uhn.fhir.model.dstu.resource.Condition; -import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum; -import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu.composite.ContactDt; -import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Device; -import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport; -import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DiagnosticReport; -import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentManifest; -import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum; -import ca.uhn.fhir.model.dstu.resource.DocumentReference; -import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Encounter; -import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum; -import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum; -import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum; -import ca.uhn.fhir.model.dstu.resource.FamilyHistory; -import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu.resource.GVFMeta; -import ca.uhn.fhir.model.dstu.resource.Group; -import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum; -import ca.uhn.fhir.model.dstu.resource.ImagingStudy; -import ca.uhn.fhir.model.dstu.resource.Immunization; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum; -import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum; -import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ListModeEnum; -import ca.uhn.fhir.model.dstu.resource.Location; -import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum; -import ca.uhn.fhir.model.dstu.resource.Media; -import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Medication; -import ca.uhn.fhir.model.dstu.resource.MedicationAdministration; -import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationDispense; -import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationPrescription; -import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum; -import ca.uhn.fhir.model.dstu.resource.MedicationStatement; -import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum; -import ca.uhn.fhir.model.dstu.resource.Microarray; -import ca.uhn.fhir.model.dstu.valueset.ModalityEnum; -import ca.uhn.fhir.model.dstu.resource.Observation; -import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum; -import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum; -import ca.uhn.fhir.model.dstu.resource.OperationOutcome; -import ca.uhn.fhir.model.dstu.resource.Order; -import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum; -import ca.uhn.fhir.model.dstu.resource.Organization; -import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Patient; -import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.resource.Practitioner; -import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum; -import ca.uhn.fhir.model.dstu.resource.Procedure; -import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum; -import ca.uhn.fhir.model.dstu.resource.Profile; -import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum; -import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum; -import ca.uhn.fhir.model.dstu.composite.RangeDt; -import ca.uhn.fhir.model.dstu.composite.RatioDt; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.dstu.resource.RelatedPerson; -import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum; -import ca.uhn.fhir.model.dstu.composite.SampledDataDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis; -import ca.uhn.fhir.model.dstu.resource.SequencingLab; -import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.dstu.resource.Slot; -import ca.uhn.fhir.model.dstu.resource.Specimen; -import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum; -import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum; -import ca.uhn.fhir.model.dstu.resource.Substance; -import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu.resource.ValueSet; -import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.dstu.composite.AgeDt; -import ca.uhn.fhir.model.dstu.composite.DurationDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.resource.Binary; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.OidDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - - -/** - * HAPI/FHIR ValueSet Resource - * (A set of codes drawn from one or more code systems) - * - *

- * Definition: - * A value set specifies a set of codes drawn from one or more code systems - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/ValueSet - *

- * - */ -@ResourceDef(name="ValueSet", profile="http://hl7.org/fhir/profiles/ValueSet", id="valueset") -public class ValueSet - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the value set
- * Type: token
- * Path: ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="ValueSet.identifier", description="The identifier of the value set", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: The identifier of the value set
- * Type: token
- * Path: ValueSet.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the value set
- * Type: token
- * Path: ValueSet.version
- *

- */ - @SearchParamDefinition(name="version", path="ValueSet.version", description="The version identifier of the value set", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the value set
- * Type: token
- * Path: ValueSet.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: The name of the value set
- * Type: string
- * Path: ValueSet.name
- *

- */ - @SearchParamDefinition(name="name", path="ValueSet.name", description="The name of the value set", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: The name of the value set
- * Type: string
- * Path: ValueSet.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the value set
- * Type: string
- * Path: ValueSet.publisher
- *

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

- * Description: Name of the publisher of the value set
- * Type: string
- * Path: ValueSet.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the value set
- * Type: string
- * Path: ValueSet.description
- *

- */ - @SearchParamDefinition(name="description", path="ValueSet.description", description="Text search in the description of the value set", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the value set
- * Type: string
- * Path: ValueSet.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: The status of the value set
- * Type: token
- * Path: ValueSet.status
- *

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

- * Description: The status of the value set
- * Type: token
- * Path: ValueSet.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The value set publication date
- * Type: date
- * Path: ValueSet.date
- *

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

- * Description: The value set publication date
- * Type: date
- * Path: ValueSet.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for system - *

- * Description: The system for any codes defined by this value set
- * Type: token
- * Path: ValueSet.define.system
- *

- */ - @SearchParamDefinition(name="system", path="ValueSet.define.system", description="The system for any codes defined by this value set", type="token" ) - public static final String SP_SYSTEM = "system"; - - /** - * Fluent Client search parameter constant for system - *

- * Description: The system for any codes defined by this value set
- * Type: token
- * Path: ValueSet.define.system
- *

- */ - public static final TokenClientParam SYSTEM = new TokenClientParam(SP_SYSTEM); - - /** - * Search parameter constant for code - *

- * Description: A code defined in the value set
- * Type: token
- * Path: ValueSet.define.concept.code
- *

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

- * Description: A code defined in the value set
- * Type: token
- * Path: ValueSet.define.concept.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for reference - *

- * Description: A code system included or excluded in the value set or an imported value set
- * Type: token
- * Path: ValueSet.compose.include.system
- *

- */ - @SearchParamDefinition(name="reference", path="ValueSet.compose.include.system", description="A code system included or excluded in the value set or an imported value set", type="token" ) - public static final String SP_REFERENCE = "reference"; - - /** - * Fluent Client search parameter constant for reference - *

- * Description: A code system included or excluded in the value set or an imported value set
- * Type: token
- * Path: ValueSet.compose.include.system
- *

- */ - public static final TokenClientParam REFERENCE = new TokenClientParam(SP_REFERENCE); - - - @Child(name="identifier", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Logical id to reference this value set", - formalDefinition="The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" - ) - private StringDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Logical id for this version of the value set", - formalDefinition="The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" - ) - private StringDt myVersion; - - @Child(name="name", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Informal name for this value set", - formalDefinition="A free text natural language name describing the value set" - ) - private StringDt myName; - - @Child(name="publisher", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Name of the publisher (Organization or individual)", - formalDefinition="The name of the individual or organization that published the value set" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Contact information of the publisher", - formalDefinition="Contacts of the publisher to assist a user in finding and communicating with the publisher" - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="Human language description of the value set", - formalDefinition="A free text natural language description of the use of the value set - reason for definition, conditions of use, etc." - ) - private StringDt myDescription; - - @Child(name="copyright", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="About the value set or its content", - formalDefinition="A copyright statement relating to the value set and/or its contents" - ) - private StringDt myCopyright; - - @Child(name="status", type=CodeDt.class, order=7, min=1, max=1) - @Description( - shortDefinition="draft | active | retired", - formalDefinition="The status of the value set" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="If for testing purposes, not real usage", - formalDefinition="This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="extensible", type=BooleanDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="Whether this is intended to be used with an extensible binding", - formalDefinition="Whether this is intended to be used with an extensible binding or not" - ) - private BooleanDt myExtensible; - - @Child(name="date", type=DateTimeDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="Date for given status", - formalDefinition="The date that the value set status was last changed" - ) - private DateTimeDt myDate; - - @Child(name="define", order=11, min=0, max=1) - @Description( - shortDefinition="When value set defines its own codes", - formalDefinition="" - ) - private Define myDefine; - - @Child(name="compose", order=12, min=0, max=1) - @Description( - shortDefinition="When value set includes codes from elsewhere", - formalDefinition="" - ) - private Compose myCompose; - - @Child(name="expansion", order=13, min=0, max=1) - @Description( - shortDefinition="When value set is an expansion", - formalDefinition="" - ) - private Expansion myExpansion; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myDefine, myCompose, myExpansion); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myDefine, myCompose, myExpansion); - } - - /** - * Gets the value(s) for identifier (Logical id to reference this value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Logical id to reference this value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public StringDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new StringDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Logical id to reference this value set) - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public ValueSet setIdentifier(StringDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Logical id to reference this value set) - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public ValueSet setIdentifier( String theString) { - myIdentifier = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for version (Logical id for this version of the value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Logical id for this version of the value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Logical id for this version of the value set) - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public ValueSet setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Logical id for this version of the value set) - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public ValueSet setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (Informal name for this value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public StringDt getName() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (Informal name for this value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Sets the value(s) for name (Informal name for this value set) - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public ValueSet setName(StringDt theValue) { - myName = theValue; - return this; - } - - /** - * Sets the value for name (Informal name for this value set) - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public ValueSet setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for publisher (Name of the publisher (Organization or individual)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public StringDt getPublisher() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (Name of the publisher (Organization or individual)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Sets the value(s) for publisher (Name of the publisher (Organization or individual)) - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public ValueSet setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - /** - * Sets the value for publisher (Name of the publisher (Organization or individual)) - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public ValueSet setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (Contact information of the publisher). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Gets the value(s) for telecom (Contact information of the publisher). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecomElement() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - - /** - * Sets the value(s) for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ValueSet setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - /** - * Adds and returns a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ContactDt addTelecom() { - ContactDt newType = new ContactDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (Contact information of the publisher), - * creating it if it does not already exist. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ContactDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - /** - * Adds a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ValueSet addTelecom( ContactUseEnum theContactUse, String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theContactUse, theValue)); - return this; - } - - /** - * Adds a new value for telecom (Contact information of the publisher) - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ValueSet addTelecom( String theValue) { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - myTelecom.add(new ContactDt(theValue)); - return this; - } - - - /** - * Gets the value(s) for description (Human language description of the value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. - *

- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (Human language description of the value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Sets the value(s) for description (Human language description of the value set) - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. - *

- */ - public ValueSet setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (Human language description of the value set) - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. - *

- */ - public ValueSet setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for copyright (About the value set or its content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents - *

- */ - public StringDt getCopyright() { - if (myCopyright == null) { - myCopyright = new StringDt(); - } - return myCopyright; - } - - - /** - * Gets the value(s) for copyright (About the value set or its content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents - *

- */ - public StringDt getCopyrightElement() { - if (myCopyright == null) { - myCopyright = new StringDt(); - } - return myCopyright; - } - - - /** - * Sets the value(s) for copyright (About the value set or its content) - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents - *

- */ - public ValueSet setCopyright(StringDt theValue) { - myCopyright = theValue; - return this; - } - - /** - * Sets the value for copyright (About the value set or its content) - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents - *

- */ - public ValueSet setCopyright( String theString) { - myCopyright = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (draft | active | retired). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the value set - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ValueSetStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (draft | active | retired). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the value set - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ValueSetStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Sets the value(s) for status (draft | active | retired) - * - *

- * Definition: - * The status of the value set - *

- */ - public ValueSet setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value(s) for status (draft | active | retired) - * - *

- * Definition: - * The status of the value set - *

- */ - public ValueSet setStatus(ValueSetStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (If for testing purposes, not real usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimental() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (If for testing purposes, not real usage). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Sets the value(s) for experimental (If for testing purposes, not real usage) - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public ValueSet setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - /** - * Sets the value for experimental (If for testing purposes, not real usage) - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public ValueSet setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for extensible (Whether this is intended to be used with an extensible binding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public BooleanDt getExtensible() { - if (myExtensible == null) { - myExtensible = new BooleanDt(); - } - return myExtensible; - } - - - /** - * Gets the value(s) for extensible (Whether this is intended to be used with an extensible binding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public BooleanDt getExtensibleElement() { - if (myExtensible == null) { - myExtensible = new BooleanDt(); - } - return myExtensible; - } - - - /** - * Sets the value(s) for extensible (Whether this is intended to be used with an extensible binding) - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public ValueSet setExtensible(BooleanDt theValue) { - myExtensible = theValue; - return this; - } - - /** - * Sets the value for extensible (Whether this is intended to be used with an extensible binding) - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public ValueSet setExtensible( boolean theBoolean) { - myExtensible = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (Date for given status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (Date for given status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Sets the value(s) for date (Date for given status) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Date for given status) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (Date for given status) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for define (When value set defines its own codes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Define getDefine() { - if (myDefine == null) { - myDefine = new Define(); - } - return myDefine; - } - - - /** - * Gets the value(s) for define (When value set defines its own codes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Define getDefineElement() { - if (myDefine == null) { - myDefine = new Define(); - } - return myDefine; - } - - - /** - * Sets the value(s) for define (When value set defines its own codes) - * - *

- * Definition: - * - *

- */ - public ValueSet setDefine(Define theValue) { - myDefine = theValue; - return this; - } - - - /** - * Gets the value(s) for compose (When value set includes codes from elsewhere). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Compose getCompose() { - if (myCompose == null) { - myCompose = new Compose(); - } - return myCompose; - } - - - /** - * Gets the value(s) for compose (When value set includes codes from elsewhere). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Compose getComposeElement() { - if (myCompose == null) { - myCompose = new Compose(); - } - return myCompose; - } - - - /** - * Sets the value(s) for compose (When value set includes codes from elsewhere) - * - *

- * Definition: - * - *

- */ - public ValueSet setCompose(Compose theValue) { - myCompose = theValue; - return this; - } - - - /** - * Gets the value(s) for expansion (When value set is an expansion). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Expansion getExpansion() { - if (myExpansion == null) { - myExpansion = new Expansion(); - } - return myExpansion; - } - - - /** - * Gets the value(s) for expansion (When value set is an expansion). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Expansion getExpansionElement() { - if (myExpansion == null) { - myExpansion = new Expansion(); - } - return myExpansion; - } - - - /** - * Sets the value(s) for expansion (When value set is an expansion) - * - *

- * Definition: - * - *

- */ - public ValueSet setExpansion(Expansion theValue) { - myExpansion = theValue; - return this; - } - - - /** - * Block class for child element: ValueSet.define (When value set defines its own codes) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Define - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="URI to identify the code system", - formalDefinition="" - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Version of this system", - formalDefinition="The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked" - ) - private StringDt myVersion; - - @Child(name="caseSensitive", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="If code comparison is case sensitive", - formalDefinition="If code comparison is case sensitive when codes within this system are compared to each other" - ) - private BooleanDt myCaseSensitive; - - @Child(name="concept", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Concepts in the code system", - formalDefinition="" - ) - private java.util.List myConcept; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCaseSensitive, myConcept); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCaseSensitive, myConcept); - } - - /** - * Gets the value(s) for system (URI to identify the code system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (URI to identify the code system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (URI to identify the code system) - * - *

- * Definition: - * - *

- */ - public Define setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (URI to identify the code system) - * - *

- * Definition: - * - *

- */ - public Define setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (Version of this system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Version of this system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Version of this system) - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public Define setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Version of this system) - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public Define setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for caseSensitive (If code comparison is case sensitive). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public BooleanDt getCaseSensitive() { - if (myCaseSensitive == null) { - myCaseSensitive = new BooleanDt(); - } - return myCaseSensitive; - } - - - /** - * Gets the value(s) for caseSensitive (If code comparison is case sensitive). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public BooleanDt getCaseSensitiveElement() { - if (myCaseSensitive == null) { - myCaseSensitive = new BooleanDt(); - } - return myCaseSensitive; - } - - - /** - * Sets the value(s) for caseSensitive (If code comparison is case sensitive) - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public Define setCaseSensitive(BooleanDt theValue) { - myCaseSensitive = theValue; - return this; - } - - /** - * Sets the value for caseSensitive (If code comparison is case sensitive) - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public Define setCaseSensitive( boolean theBoolean) { - myCaseSensitive = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for concept (Concepts in the code system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - - /** - * Gets the value(s) for concept (Concepts in the code system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConceptElement() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - - /** - * Sets the value(s) for concept (Concepts in the code system) - * - *

- * Definition: - * - *

- */ - public Define setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - /** - * Adds and returns a new value for concept (Concepts in the code system) - * - *

- * Definition: - * - *

- */ - public DefineConcept addConcept() { - DefineConcept newType = new DefineConcept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (Concepts in the code system), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public DefineConcept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.define.concept (Concepts in the code system) - * - *

- * Definition: - * - *

- */ - @Block() - public static class DefineConcept - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Code that identifies concept", - formalDefinition="" - ) - private CodeDt myCode; - - @Child(name="abstract", type=BooleanDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="If this code is not for use as a real concept", - formalDefinition="If this code is not for use as a real concept" - ) - private BooleanDt myAbstract; - - @Child(name="display", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Text to Display to the user", - formalDefinition="" - ) - private StringDt myDisplay; - - @Child(name="definition", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Formal Definition", - formalDefinition="The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept" - ) - private StringDt myDefinition; - - @Child(name="concept", type=DefineConcept.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Child Concepts (is-a / contains)", - formalDefinition="" - ) - private java.util.List myConcept; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myAbstract, myDisplay, myDefinition, myConcept); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myAbstract, myDisplay, myDefinition, myConcept); - } - - /** - * Gets the value(s) for code (Code that identifies concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCode() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Code that identifies concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Code that identifies concept) - * - *

- * Definition: - * - *

- */ - public DefineConcept setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value for code (Code that identifies concept) - * - *

- * Definition: - * - *

- */ - public DefineConcept setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for abstract (If this code is not for use as a real concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public BooleanDt getAbstract() { - if (myAbstract == null) { - myAbstract = new BooleanDt(); - } - return myAbstract; - } - - - /** - * Gets the value(s) for abstract (If this code is not for use as a real concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public BooleanDt getAbstractElement() { - if (myAbstract == null) { - myAbstract = new BooleanDt(); - } - return myAbstract; - } - - - /** - * Sets the value(s) for abstract (If this code is not for use as a real concept) - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public DefineConcept setAbstract(BooleanDt theValue) { - myAbstract = theValue; - return this; - } - - /** - * Sets the value for abstract (If this code is not for use as a real concept) - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public DefineConcept setAbstract( boolean theBoolean) { - myAbstract = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for display (Text to Display to the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Text to Display to the user). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Sets the value(s) for display (Text to Display to the user) - * - *

- * Definition: - * - *

- */ - public DefineConcept setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (Text to Display to the user) - * - *

- * Definition: - * - *

- */ - public DefineConcept setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for definition (Formal Definition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public StringDt getDefinition() { - if (myDefinition == null) { - myDefinition = new StringDt(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (Formal Definition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public StringDt getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new StringDt(); - } - return myDefinition; - } - - - /** - * Sets the value(s) for definition (Formal Definition) - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public DefineConcept setDefinition(StringDt theValue) { - myDefinition = theValue; - return this; - } - - /** - * Sets the value for definition (Formal Definition) - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public DefineConcept setDefinition( String theString) { - myDefinition = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for concept (Child Concepts (is-a / contains)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - - /** - * Gets the value(s) for concept (Child Concepts (is-a / contains)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConceptElement() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - - /** - * Sets the value(s) for concept (Child Concepts (is-a / contains)) - * - *

- * Definition: - * - *

- */ - public DefineConcept setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - /** - * Adds and returns a new value for concept (Child Concepts (is-a / contains)) - * - *

- * Definition: - * - *

- */ - public DefineConcept addConcept() { - DefineConcept newType = new DefineConcept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (Child Concepts (is-a / contains)), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public DefineConcept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - - } - - - - /** - * Block class for child element: ValueSet.compose (When value set includes codes from elsewhere) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Compose - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="import", type=UriDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Import the contents of another value set", - formalDefinition="Includes the contents of the referenced value set as a part of the contents of this value set" - ) - private java.util.List myImport; - - @Child(name="include", order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Include one or more codes from a code system", - formalDefinition="Include one or more codes from a code system" - ) - private java.util.List myInclude; - - @Child(name="exclude", type=ComposeInclude.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Explicitly exclude codes", - formalDefinition="Exclude one or more codes from the value set" - ) - private java.util.List myExclude; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myImport, myInclude, myExclude); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myImport, myInclude, myExclude); - } - - /** - * Gets the value(s) for import (Import the contents of another value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public java.util.List getImport() { - if (myImport == null) { - myImport = new java.util.ArrayList(); - } - return myImport; - } - - - /** - * Gets the value(s) for import (Import the contents of another value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public java.util.List getImportElement() { - if (myImport == null) { - myImport = new java.util.ArrayList(); - } - return myImport; - } - - - /** - * Sets the value(s) for import (Import the contents of another value set) - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public Compose setImport(java.util.List theValue) { - myImport = theValue; - return this; - } - - /** - * Adds and returns a new value for import (Import the contents of another value set) - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public UriDt addImport() { - UriDt newType = new UriDt(); - getImport().add(newType); - return newType; - } - - /** - * Gets the first repetition for import (Import the contents of another value set), - * creating it if it does not already exist. - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public UriDt getImportFirstRep() { - if (getImport().isEmpty()) { - return addImport(); - } - return getImport().get(0); - } - /** - * Adds a new value for import (Import the contents of another value set) - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Compose addImport( String theUri) { - if (myImport == null) { - myImport = new java.util.ArrayList(); - } - myImport.add(new UriDt(theUri)); - return this; - } - - - /** - * Gets the value(s) for include (Include one or more codes from a code system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public java.util.List getInclude() { - if (myInclude == null) { - myInclude = new java.util.ArrayList(); - } - return myInclude; - } - - - /** - * Gets the value(s) for include (Include one or more codes from a code system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public java.util.List getIncludeElement() { - if (myInclude == null) { - myInclude = new java.util.ArrayList(); - } - return myInclude; - } - - - /** - * Sets the value(s) for include (Include one or more codes from a code system) - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public Compose setInclude(java.util.List theValue) { - myInclude = theValue; - return this; - } - - /** - * Adds and returns a new value for include (Include one or more codes from a code system) - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public ComposeInclude addInclude() { - ComposeInclude newType = new ComposeInclude(); - getInclude().add(newType); - return newType; - } - - /** - * Gets the first repetition for include (Include one or more codes from a code system), - * creating it if it does not already exist. - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public ComposeInclude getIncludeFirstRep() { - if (getInclude().isEmpty()) { - return addInclude(); - } - return getInclude().get(0); - } - - /** - * Gets the value(s) for exclude (Explicitly exclude codes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public java.util.List getExclude() { - if (myExclude == null) { - myExclude = new java.util.ArrayList(); - } - return myExclude; - } - - - /** - * Gets the value(s) for exclude (Explicitly exclude codes). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public java.util.List getExcludeElement() { - if (myExclude == null) { - myExclude = new java.util.ArrayList(); - } - return myExclude; - } - - - /** - * Sets the value(s) for exclude (Explicitly exclude codes) - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public Compose setExclude(java.util.List theValue) { - myExclude = theValue; - return this; - } - - /** - * Adds and returns a new value for exclude (Explicitly exclude codes) - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public ComposeInclude addExclude() { - ComposeInclude newType = new ComposeInclude(); - getExclude().add(newType); - return newType; - } - - /** - * Gets the first repetition for exclude (Explicitly exclude codes), - * creating it if it does not already exist. - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public ComposeInclude getExcludeFirstRep() { - if (getExclude().isEmpty()) { - return addExclude(); - } - return getExclude().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.compose.include (Include one or more codes from a code system) - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - @Block() - public static class ComposeInclude - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="The system the codes come from", - formalDefinition="The code system from which the selected codes come from" - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Specific version of the code system referred to", - formalDefinition="The version of the code system that the codes are selected from" - ) - private StringDt myVersion; - - @Child(name="code", type=CodeDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Code or concept from system", - formalDefinition="Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance" - ) - private java.util.List myCode; - - @Child(name="filter", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Select codes/concepts by their properties (including relationships)", - formalDefinition="Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true." - ) - private java.util.List myFilter; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myFilter); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCode, myFilter); - } - - /** - * Gets the value(s) for system (The system the codes come from). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (The system the codes come from). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (The system the codes come from) - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public ComposeInclude setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (The system the codes come from) - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public ComposeInclude setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (Specific version of the code system referred to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public StringDt getVersion() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Specific version of the code system referred to). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Sets the value(s) for version (Specific version of the code system referred to) - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public ComposeInclude setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - /** - * Sets the value for version (Specific version of the code system referred to) - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public ComposeInclude setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (Code or concept from system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance - *

- */ - public java.util.List getCode() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Code or concept from system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance - *

- */ - public java.util.List getCodeElement() { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Code or concept from system) - * - *

- * Definition: - * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance - *

- */ - public ComposeInclude setCode(java.util.List theValue) { - myCode = theValue; - return this; - } - - /** - * Adds and returns a new value for code (Code or concept from system) - * - *

- * Definition: - * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance - *

- */ - public CodeDt addCode() { - CodeDt newType = new CodeDt(); - getCode().add(newType); - return newType; - } - - /** - * Gets the first repetition for code (Code or concept from system), - * creating it if it does not already exist. - * - *

- * Definition: - * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance - *

- */ - public CodeDt getCodeFirstRep() { - if (getCode().isEmpty()) { - return addCode(); - } - return getCode().get(0); - } - /** - * Adds a new value for code (Code or concept from system) - * - *

- * Definition: - * Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ComposeInclude addCode( String theCode) { - if (myCode == null) { - myCode = new java.util.ArrayList(); - } - myCode.add(new CodeDt(theCode)); - return this; - } - - - /** - * Gets the value(s) for filter (Select codes/concepts by their properties (including relationships)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public java.util.List getFilter() { - if (myFilter == null) { - myFilter = new java.util.ArrayList(); - } - return myFilter; - } - - - /** - * Gets the value(s) for filter (Select codes/concepts by their properties (including relationships)). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public java.util.List getFilterElement() { - if (myFilter == null) { - myFilter = new java.util.ArrayList(); - } - return myFilter; - } - - - /** - * Sets the value(s) for filter (Select codes/concepts by their properties (including relationships)) - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeInclude setFilter(java.util.List theValue) { - myFilter = theValue; - return this; - } - - /** - * Adds and returns a new value for filter (Select codes/concepts by their properties (including relationships)) - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeIncludeFilter addFilter() { - ComposeIncludeFilter newType = new ComposeIncludeFilter(); - getFilter().add(newType); - return newType; - } - - /** - * Gets the first repetition for filter (Select codes/concepts by their properties (including relationships)), - * creating it if it does not already exist. - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeIncludeFilter getFilterFirstRep() { - if (getFilter().isEmpty()) { - return addFilter(); - } - return getFilter().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.compose.include.filter (Select codes/concepts by their properties (including relationships)) - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - @Block() - public static class ComposeIncludeFilter - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="property", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="A code that identifies a property defined in the code system" - ) - private CodeDt myProperty; - - @Child(name="op", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="= | is-a | is-not-a | regex | in | not in", - formalDefinition="The kind of operation to perform as a part of the filter criteria" - ) - private BoundCodeDt myOp; - - @Child(name="value", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Code from the system, or regex criteria", - formalDefinition="The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value" - ) - private CodeDt myValue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myProperty, myOp, myValue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myProperty, myOp, myValue); - } - - /** - * Gets the value(s) for property (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public CodeDt getProperty() { - if (myProperty == null) { - myProperty = new CodeDt(); - } - return myProperty; - } - - - /** - * Gets the value(s) for property (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public CodeDt getPropertyElement() { - if (myProperty == null) { - myProperty = new CodeDt(); - } - return myProperty; - } - - - /** - * Sets the value(s) for property () - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public ComposeIncludeFilter setProperty(CodeDt theValue) { - myProperty = theValue; - return this; - } - - /** - * Sets the value for property () - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public ComposeIncludeFilter setProperty( String theCode) { - myProperty = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for op (= | is-a | is-not-a | regex | in | not in). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public BoundCodeDt getOp() { - if (myOp == null) { - myOp = new BoundCodeDt(FilterOperatorEnum.VALUESET_BINDER); - } - return myOp; - } - - - /** - * Gets the value(s) for op (= | is-a | is-not-a | regex | in | not in). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public BoundCodeDt getOpElement() { - if (myOp == null) { - myOp = new BoundCodeDt(FilterOperatorEnum.VALUESET_BINDER); - } - return myOp; - } - - - /** - * Sets the value(s) for op (= | is-a | is-not-a | regex | in | not in) - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public ComposeIncludeFilter setOp(BoundCodeDt theValue) { - myOp = theValue; - return this; - } - - /** - * Sets the value(s) for op (= | is-a | is-not-a | regex | in | not in) - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public ComposeIncludeFilter setOp(FilterOperatorEnum theValue) { - getOp().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for value (Code from the system, or regex criteria). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public CodeDt getValue() { - if (myValue == null) { - myValue = new CodeDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Code from the system, or regex criteria). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public CodeDt getValueElement() { - if (myValue == null) { - myValue = new CodeDt(); - } - return myValue; - } - - - /** - * Sets the value(s) for value (Code from the system, or regex criteria) - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public ComposeIncludeFilter setValue(CodeDt theValue) { - myValue = theValue; - return this; - } - - /** - * Sets the value for value (Code from the system, or regex criteria) - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public ComposeIncludeFilter setValue( String theCode) { - myValue = new CodeDt(theCode); - return this; - } - - - - } - - - - - /** - * Block class for child element: ValueSet.expansion (When value set is an expansion) - * - *

- * Definition: - * - *

- */ - @Block() - public static class Expansion - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Uniquely identifies this expansion", - formalDefinition="An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so" - ) - private IdentifierDt myIdentifier; - - @Child(name="timestamp", type=InstantDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Time valueset expansion happened", - formalDefinition="" - ) - private InstantDt myTimestamp; - - @Child(name="contains", order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Codes in the value set", - formalDefinition="" - ) - private java.util.List myContains; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myTimestamp, myContains); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myTimestamp, myContains); - } - - /** - * Gets the value(s) for identifier (Uniquely identifies this expansion). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (Uniquely identifies this expansion). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public IdentifierDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - - /** - * Sets the value(s) for identifier (Uniquely identifies this expansion) - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public Expansion setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Uniquely identifies this expansion) - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public Expansion setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Uniquely identifies this expansion) - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public Expansion setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for timestamp (Time valueset expansion happened). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getTimestamp() { - if (myTimestamp == null) { - myTimestamp = new InstantDt(); - } - return myTimestamp; - } - - - /** - * Gets the value(s) for timestamp (Time valueset expansion happened). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public InstantDt getTimestampElement() { - if (myTimestamp == null) { - myTimestamp = new InstantDt(); - } - return myTimestamp; - } - - - /** - * Sets the value(s) for timestamp (Time valueset expansion happened) - * - *

- * Definition: - * - *

- */ - public Expansion setTimestamp(InstantDt theValue) { - myTimestamp = theValue; - return this; - } - - /** - * Sets the value for timestamp (Time valueset expansion happened) - * - *

- * Definition: - * - *

- */ - public Expansion setTimestampWithMillisPrecision( Date theDate) { - myTimestamp = new InstantDt(theDate); - return this; - } - - /** - * Sets the value for timestamp (Time valueset expansion happened) - * - *

- * Definition: - * - *

- */ - public Expansion setTimestamp( Date theDate, TemporalPrecisionEnum thePrecision) { - myTimestamp = new InstantDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for contains (Codes in the value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContains() { - if (myContains == null) { - myContains = new java.util.ArrayList(); - } - return myContains; - } - - - /** - * Gets the value(s) for contains (Codes in the value set). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContainsElement() { - if (myContains == null) { - myContains = new java.util.ArrayList(); - } - return myContains; - } - - - /** - * Sets the value(s) for contains (Codes in the value set) - * - *

- * Definition: - * - *

- */ - public Expansion setContains(java.util.List theValue) { - myContains = theValue; - return this; - } - - /** - * Adds and returns a new value for contains (Codes in the value set) - * - *

- * Definition: - * - *

- */ - public ExpansionContains addContains() { - ExpansionContains newType = new ExpansionContains(); - getContains().add(newType); - return newType; - } - - /** - * Gets the first repetition for contains (Codes in the value set), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExpansionContains getContainsFirstRep() { - if (getContains().isEmpty()) { - return addContains(); - } - return getContains().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.expansion.contains (Codes in the value set) - * - *

- * Definition: - * - *

- */ - @Block() - public static class ExpansionContains - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="System value for the code", - formalDefinition="" - ) - private UriDt mySystem; - - @Child(name="code", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Code - if blank, this is not a choosable code", - formalDefinition="" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="User display for the concept", - formalDefinition="" - ) - private StringDt myDisplay; - - @Child(name="contains", type=ExpansionContains.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Codes contained in this concept", - formalDefinition="" - ) - private java.util.List myContains; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myCode, myDisplay, myContains); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myCode, myDisplay, myContains); - } - - /** - * Gets the value(s) for system (System value for the code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystem() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (System value for the code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Sets the value(s) for system (System value for the code) - * - *

- * Definition: - * - *

- */ - public ExpansionContains setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - /** - * Sets the value for system (System value for the code) - * - *

- * Definition: - * - *

- */ - public ExpansionContains setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for code (Code - if blank, this is not a choosable code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCode() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Code - if blank, this is not a choosable code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Sets the value(s) for code (Code - if blank, this is not a choosable code) - * - *

- * Definition: - * - *

- */ - public ExpansionContains setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - /** - * Sets the value for code (Code - if blank, this is not a choosable code) - * - *

- * Definition: - * - *

- */ - public ExpansionContains setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (User display for the concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (User display for the concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Sets the value(s) for display (User display for the concept) - * - *

- * Definition: - * - *

- */ - public ExpansionContains setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (User display for the concept) - * - *

- * Definition: - * - *

- */ - public ExpansionContains setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for contains (Codes contained in this concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContains() { - if (myContains == null) { - myContains = new java.util.ArrayList(); - } - return myContains; - } - - - /** - * Gets the value(s) for contains (Codes contained in this concept). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContainsElement() { - if (myContains == null) { - myContains = new java.util.ArrayList(); - } - return myContains; - } - - - /** - * Sets the value(s) for contains (Codes contained in this concept) - * - *

- * Definition: - * - *

- */ - public ExpansionContains setContains(java.util.List theValue) { - myContains = theValue; - return this; - } - - /** - * Adds and returns a new value for contains (Codes contained in this concept) - * - *

- * Definition: - * - *

- */ - public ExpansionContains addContains() { - ExpansionContains newType = new ExpansionContains(); - getContains().add(newType); - return newType; - } - - /** - * Gets the first repetition for contains (Codes contained in this concept), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExpansionContains getContainsFirstRep() { - if (getContains().isEmpty()) { - return addContains(); - } - return getContains().get(0); - } - - - } - - - - - - @Override - public String getResourceName() { - return "ValueSet"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AddressUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AddressUseEnum.java deleted file mode 100644 index 8e7af0aba04..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AddressUseEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AddressUseEnum { - - /** - * Code Value: home - * - * A communication address at a home. - */ - HOME("home", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: work - * - * An office address. First choice for business related contacts during business hours. - */ - WORK("work", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: temp - * - * A temporary address. The period can provide more detailed information. - */ - TEMP("temp", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: old - * - * This address is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/address-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/address-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/address-use"; - - /** - * Name for this Value Set: - * AddressUse - */ - public static final String VALUESET_NAME = "AddressUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AddressUseEnum next : AddressUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AddressUseEnum forCode(String theCode) { - AddressUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AddressUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AddressUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AddressUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AddressUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AddressUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AdministrativeGenderCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AdministrativeGenderCodesEnum.java deleted file mode 100644 index 9080c017d06..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AdministrativeGenderCodesEnum.java +++ /dev/null @@ -1,122 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdministrativeGenderCodesEnum { - - /** - * Code Value: F - */ - F("F", "http://hl7.org/fhir/v3/AdministrativeGender"), - - /** - * Code Value: M - */ - M("M", "http://hl7.org/fhir/v3/AdministrativeGender"), - - /** - * Code Value: UN - */ - UN("UN", "http://hl7.org/fhir/v3/AdministrativeGender"), - - /** - * Code Value: UNK - */ - UNK("UNK", "http://hl7.org/fhir/v3/NullFlavor"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/administrative-gender - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/administrative-gender"; - - /** - * Name for this Value Set: - * Administrative Gender Codes - */ - public static final String VALUESET_NAME = "Administrative Gender Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdministrativeGenderCodesEnum next : AdministrativeGenderCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdministrativeGenderCodesEnum forCode(String theCode) { - AdministrativeGenderCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdministrativeGenderCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdministrativeGenderCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdministrativeGenderCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdministrativeGenderCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdministrativeGenderCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AdmitSourceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AdmitSourceEnum.java deleted file mode 100644 index 859ad8aa42b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AdmitSourceEnum.java +++ /dev/null @@ -1,162 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdmitSourceEnum { - - /** - * Display: Transferred from other hospital
- * Code Value: hosp-trans - */ - TRANSFERRED_FROM_OTHER_HOSPITAL("hosp-trans", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From accident/emergency department
- * Code Value: emd - */ - FROM_ACCIDENT_EMERGENCY_DEPARTMENT("emd", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From outpatient department
- * Code Value: outp - */ - FROM_OUTPATIENT_DEPARTMENT("outp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Born in hospital
- * Code Value: born - */ - BORN_IN_HOSPITAL("born", "http://hl7.org/fhir/admit-source"), - - /** - * Display: General Practitioner referral
- * Code Value: gp - */ - GENERAL_PRACTITIONER_REFERRAL("gp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Medical Practitioner/physician referral
- * Code Value: mp - */ - MEDICAL_PRACTITIONER_PHYSICIAN_REFERRAL("mp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From nursing home
- * Code Value: nursing - */ - FROM_NURSING_HOME("nursing", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From psychiatric hospital
- * Code Value: psych - */ - FROM_PSYCHIATRIC_HOSPITAL("psych", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From rehabilitation facility
- * Code Value: rehab - */ - FROM_REHABILITATION_FACILITY("rehab", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Other
- * Code Value: other - */ - OTHER("other", "http://hl7.org/fhir/admit-source"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-admit-source - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-admit-source"; - - /** - * Name for this Value Set: - * AdmitSource - */ - public static final String VALUESET_NAME = "AdmitSource"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdmitSourceEnum next : AdmitSourceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdmitSourceEnum forCode(String theCode) { - AdmitSourceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdmitSourceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdmitSourceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdmitSourceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdmitSourceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdmitSourceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AggregationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AggregationModeEnum.java deleted file mode 100644 index 60d0a0d6bb4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AggregationModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AggregationModeEnum { - - /** - * Code Value: contained - * - * The reference is a local reference to a contained resource. - */ - CONTAINED("contained", "http://hl7.org/fhir/resource-aggregation-mode"), - - /** - * Code Value: referenced - * - * The reference to to a resource that has to be resolved externally to the resource that includes the reference. - */ - REFERENCED("referenced", "http://hl7.org/fhir/resource-aggregation-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-aggregation-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-aggregation-mode"; - - /** - * Name for this Value Set: - * AggregationMode - */ - public static final String VALUESET_NAME = "AggregationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AggregationModeEnum next : AggregationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AggregationModeEnum forCode(String theCode) { - AggregationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AggregationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AggregationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AggregationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AggregationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AggregationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AlertStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AlertStatusEnum.java deleted file mode 100644 index eac50e70b79..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AlertStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AlertStatusEnum { - - /** - * Code Value: active - * - * A current alert that should be displayed to a user. A system may use the category to determine which roles should view the alert. - */ - ACTIVE("active", "http://hl7.org/fhir/alert-status"), - - /** - * Code Value: inactive - * - * The alert does not need to be displayed any more. - */ - INACTIVE("inactive", "http://hl7.org/fhir/alert-status"), - - /** - * Code Value: entered in error - * - * The alert was added in error, and should no longer be displayed. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/alert-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/alert-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/alert-status"; - - /** - * Name for this Value Set: - * AlertStatus - */ - public static final String VALUESET_NAME = "AlertStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AlertStatusEnum next : AlertStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AlertStatusEnum forCode(String theCode) { - AlertStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AlertStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AlertStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AlertStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AlertStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AlertStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AnimalSpeciesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AnimalSpeciesEnum.java deleted file mode 100644 index 75dc85669f5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/AnimalSpeciesEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AnimalSpeciesEnum { - - /** - * Display: Dog
- * Code Value: canislf - * - * Canis lupus familiaris - */ - DOG("canislf", "http://hl7.org/fhir/animal-species"), - - /** - * Display: Sheep
- * Code Value: ovisa - * - * Ovis aries - */ - SHEEP("ovisa", "http://hl7.org/fhir/animal-species"), - - /** - * Display: Domestic Canary
- * Code Value: serinuscd - * - * Serinus canaria domestica - */ - DOMESTIC_CANARY("serinuscd", "http://hl7.org/fhir/animal-species"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/animal-species - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/animal-species"; - - /** - * Name for this Value Set: - * AnimalSpecies - */ - public static final String VALUESET_NAME = "AnimalSpecies"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AnimalSpeciesEnum next : AnimalSpeciesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AnimalSpeciesEnum forCode(String theCode) { - AnimalSpeciesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AnimalSpeciesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AnimalSpeciesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AnimalSpeciesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AnimalSpeciesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AnimalSpeciesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/BindingConformanceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/BindingConformanceEnum.java deleted file mode 100644 index f8f7dd220ab..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/BindingConformanceEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum BindingConformanceEnum { - - /** - * Code Value: required - * - * Only codes in the specified set are allowed. If the binding is extensible, other codes may be used for concepts not covered by the bound set of codes. - */ - REQUIRED("required", "http://hl7.org/fhir/binding-conformance"), - - /** - * Code Value: preferred - * - * For greater interoperability, implementers are strongly encouraged to use the bound set of codes, however alternate codes may be used in derived profiles and implementations if necessary without being considered non-conformant. - */ - PREFERRED("preferred", "http://hl7.org/fhir/binding-conformance"), - - /** - * Code Value: example - * - * The codes in the set are an example to illustrate the meaning of the field. There is no particular preference for its use nor any assertion that the provided values are sufficient to meet implementation needs. - */ - EXAMPLE("example", "http://hl7.org/fhir/binding-conformance"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/binding-conformance - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/binding-conformance"; - - /** - * Name for this Value Set: - * BindingConformance - */ - public static final String VALUESET_NAME = "BindingConformance"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (BindingConformanceEnum next : BindingConformanceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public BindingConformanceEnum forCode(String theCode) { - BindingConformanceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(BindingConformanceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(BindingConformanceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public BindingConformanceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public BindingConformanceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - BindingConformanceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanActivityCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanActivityCategoryEnum.java deleted file mode 100644 index 5a88b36e0b5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanActivityCategoryEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanActivityCategoryEnum { - - /** - * Code Value: diet - * - * Plan for the patient to consume food of a specified nature. - */ - DIET("diet", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: drug - * - * Plan for the patient to consume/receive a drug, vaccine or other product. - */ - DRUG("drug", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: encounter - * - * Plan to meet or communicate with the patient (in-patient, out-patient, phone call, etc.). - */ - ENCOUNTER("encounter", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: observation - * - * Plan to capture information about a patient (vitals, labs, diagnostic images, etc.). - */ - OBSERVATION("observation", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: procedure - * - * Plan to modify the patient in some way (surgery, physiotherapy, education, counseling, etc.). - */ - PROCEDURE("procedure", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: supply - * - * Plan to provide something to the patient (medication, medical supply, etc.). - */ - SUPPLY("supply", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: other - * - * Some other form of action. - */ - OTHER("other", "http://hl7.org/fhir/care-plan-activity-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-activity-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-activity-category"; - - /** - * Name for this Value Set: - * CarePlanActivityCategory - */ - public static final String VALUESET_NAME = "CarePlanActivityCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanActivityCategoryEnum next : CarePlanActivityCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanActivityCategoryEnum forCode(String theCode) { - CarePlanActivityCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanActivityCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanActivityCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanActivityCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanActivityCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanActivityCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanActivityStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanActivityStatusEnum.java deleted file mode 100644 index a884d3b6ad3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanActivityStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanActivityStatusEnum { - - /** - * Code Value: not started - * - * Activity is planned but no action has yet been taken. - */ - NOT_STARTED("not started", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: scheduled - * - * Appointment or other booking has occurred but activity has not yet begun. - */ - SCHEDULED("scheduled", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: in progress - * - * Activity has been started but is not yet complete. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: on hold - * - * Activity was started but has temporarily ceased with an expectation of resumption at a future time. - */ - ON_HOLD("on hold", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: completed - * - * The activities have been completed (more or less) as planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: cancelled - * - * The activities have been ended prior to completion (perhaps even before they were started). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/care-plan-activity-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-activity-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-activity-status"; - - /** - * Name for this Value Set: - * CarePlanActivityStatus - */ - public static final String VALUESET_NAME = "CarePlanActivityStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanActivityStatusEnum next : CarePlanActivityStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanActivityStatusEnum forCode(String theCode) { - CarePlanActivityStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanActivityStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanActivityStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanActivityStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanActivityStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanActivityStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanGoalStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanGoalStatusEnum.java deleted file mode 100644 index 607aa726807..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanGoalStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanGoalStatusEnum { - - /** - * Code Value: in progress - * - * The goal is being sought but has not yet been reached. (Also applies if goal was reached in the past but there has been regression and goal is being sought again). - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: achieved - * - * The goal has been met and no further action is needed. - */ - ACHIEVED("achieved", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: sustaining - * - * The goal has been met, but ongoing activity is needed to sustain the goal objective. - */ - SUSTAINING("sustaining", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: cancelled - * - * The goal is no longer being sought. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/care-plan-goal-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-goal-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-goal-status"; - - /** - * Name for this Value Set: - * CarePlanGoalStatus - */ - public static final String VALUESET_NAME = "CarePlanGoalStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanGoalStatusEnum next : CarePlanGoalStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanGoalStatusEnum forCode(String theCode) { - CarePlanGoalStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanGoalStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanGoalStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanGoalStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanGoalStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanGoalStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanStatusEnum.java deleted file mode 100644 index 729c2af9b41..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CarePlanStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanStatusEnum { - - /** - * Code Value: planned - * - * The plan is in development or awaiting use but is not yet intended to be acted upon. - */ - PLANNED("planned", "http://hl7.org/fhir/care-plan-status"), - - /** - * Code Value: active - * - * The plan is intended to be followed and used as part of patient care. - */ - ACTIVE("active", "http://hl7.org/fhir/care-plan-status"), - - /** - * Code Value: completed - * - * The plan is no longer in use and is not expected to be followed or used in patient care. - */ - COMPLETED("completed", "http://hl7.org/fhir/care-plan-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-status"; - - /** - * Name for this Value Set: - * CarePlanStatus - */ - public static final String VALUESET_NAME = "CarePlanStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanStatusEnum next : CarePlanStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanStatusEnum forCode(String theCode) { - CarePlanStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CausalityExpectationEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CausalityExpectationEnum.java deleted file mode 100644 index a7054db5487..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CausalityExpectationEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CausalityExpectationEnum { - - /** - * Code Value: likely - * - * Likely that this specific exposure caused the reaction. - */ - LIKELY("likely", "http://hl7.org/fhir/causalityExpectation"), - - /** - * Code Value: unlikely - * - * Unlikely that this specific exposure caused the reaction - the exposure is being linked to for information purposes. - */ - UNLIKELY("unlikely", "http://hl7.org/fhir/causalityExpectation"), - - /** - * Code Value: confirmed - * - * It has been confirmed that this exposure was one of the causes of the reaction. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/causalityExpectation"), - - /** - * Code Value: unknown - * - * It is unknown whether this exposure had anything to do with the reaction. - */ - UNKNOWN("unknown", "http://hl7.org/fhir/causalityExpectation"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/causalityExpectation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/causalityExpectation"; - - /** - * Name for this Value Set: - * CausalityExpectation - */ - public static final String VALUESET_NAME = "CausalityExpectation"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CausalityExpectationEnum next : CausalityExpectationEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CausalityExpectationEnum forCode(String theCode) { - CausalityExpectationEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CausalityExpectationEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CausalityExpectationEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CausalityExpectationEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CausalityExpectationEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CausalityExpectationEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CompositionAttestationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CompositionAttestationModeEnum.java deleted file mode 100644 index c839d761188..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CompositionAttestationModeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CompositionAttestationModeEnum { - - /** - * Code Value: personal - * - * The person authenticated the content in their personal capacity. - */ - PERSONAL("personal", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: professional - * - * The person authenticated the content in their professional capacity. - */ - PROFESSIONAL("professional", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: legal - * - * The person authenticated the content and accepted legal responsibility for its content. - */ - LEGAL("legal", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: official - * - * The organization authenticated the content as consistent with their policies and procedures. - */ - OFFICIAL("official", "http://hl7.org/fhir/composition-attestation-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/composition-attestation-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/composition-attestation-mode"; - - /** - * Name for this Value Set: - * CompositionAttestationMode - */ - public static final String VALUESET_NAME = "CompositionAttestationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CompositionAttestationModeEnum next : CompositionAttestationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CompositionAttestationModeEnum forCode(String theCode) { - CompositionAttestationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CompositionAttestationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CompositionAttestationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CompositionAttestationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CompositionAttestationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CompositionAttestationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CompositionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CompositionStatusEnum.java deleted file mode 100644 index 4b169005941..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CompositionStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CompositionStatusEnum { - - /** - * Code Value: preliminary - * - * This is a preliminary composition or document (also known as initial or interim). The content may be incomplete or unverified. - */ - PRELIMINARY("preliminary", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: final - * - * The composition or document is complete and verified by an appropriate person, and no further work is planned. - */ - FINAL("final", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: appended - * - * The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. The modifications added new information to the composition or document, but did not revise existing content. - */ - APPENDED("appended", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: amended - * - * The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. - */ - AMENDED("amended", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: entered in error - * - * The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/composition-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/composition-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/composition-status"; - - /** - * Name for this Value Set: - * CompositionStatus - */ - public static final String VALUESET_NAME = "CompositionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CompositionStatusEnum next : CompositionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CompositionStatusEnum forCode(String theCode) { - CompositionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CompositionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CompositionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CompositionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CompositionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CompositionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConceptMapEquivalenceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConceptMapEquivalenceEnum.java deleted file mode 100644 index de34f92567e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConceptMapEquivalenceEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConceptMapEquivalenceEnum { - - /** - * Code Value: equal - * - * The definitions of the concepts are exactly the same (i.e. only grammatical differences) and structural implications of meaning are identifical or irrelevant (i.e. intensionally identical). - */ - EQUAL("equal", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: equivalent - * - * The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical). - */ - EQUIVALENT("equivalent", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: wider - * - * The target mapping is wider in meaning than the source concept. - */ - WIDER("wider", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: narrower - * - * The target mapping is narrower in meaning that the source concept. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally. - */ - NARROWER("narrower", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: inexact - * - * The target mapping overlaps with the source concept, but both source and target cover additional meaning. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally. - */ - INEXACT("inexact", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: unmatched - * - * There is no match for this concept in the destination concept system. - */ - UNMATCHED("unmatched", "http://hl7.org/fhir/concept-equivalence"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/concept-equivalence - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/concept-equivalence"; - - /** - * Name for this Value Set: - * ConceptMapEquivalence - */ - public static final String VALUESET_NAME = "ConceptMapEquivalence"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConceptMapEquivalenceEnum next : ConceptMapEquivalenceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConceptMapEquivalenceEnum forCode(String theCode) { - ConceptMapEquivalenceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConceptMapEquivalenceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConceptMapEquivalenceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConceptMapEquivalenceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConceptMapEquivalenceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConceptMapEquivalenceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConditionRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConditionRelationshipTypeEnum.java deleted file mode 100644 index 633d8124591..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConditionRelationshipTypeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConditionRelationshipTypeEnum { - - /** - * Code Value: due-to - * - * this condition follows the identified condition/procedure/substance and is a consequence of it. - */ - DUE_TO("due-to", "http://hl7.org/fhir/condition-relationship-type"), - - /** - * Code Value: following - * - * this condition follows the identified condition/procedure/substance, but it is not known whether they are causually linked. - */ - FOLLOWING("following", "http://hl7.org/fhir/condition-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/condition-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/condition-relationship-type"; - - /** - * Name for this Value Set: - * ConditionRelationshipType - */ - public static final String VALUESET_NAME = "ConditionRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConditionRelationshipTypeEnum next : ConditionRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConditionRelationshipTypeEnum forCode(String theCode) { - ConditionRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConditionRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConditionRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConditionRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConditionRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConditionRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConditionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConditionStatusEnum.java deleted file mode 100644 index 14ebe1739ad..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConditionStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConditionStatusEnum { - - /** - * Code Value: provisional - * - * This is a tentative diagnosis - still a candidate that is under consideration. - */ - PROVISIONAL("provisional", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: working - * - * The patient is being treated on the basis that this is the condition, but it is still not confirmed. - */ - WORKING("working", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: confirmed - * - * There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: refuted - * - * This condition has been ruled out by diagnostic and clinical evidence. - */ - REFUTED("refuted", "http://hl7.org/fhir/condition-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/condition-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/condition-status"; - - /** - * Name for this Value Set: - * ConditionStatus - */ - public static final String VALUESET_NAME = "ConditionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConditionStatusEnum next : ConditionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConditionStatusEnum forCode(String theCode) { - ConditionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConditionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConditionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConditionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConditionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConditionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConformanceEventModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConformanceEventModeEnum.java deleted file mode 100644 index 40cfac3382e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConformanceEventModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConformanceEventModeEnum { - - /** - * Code Value: sender - * - * The application sends requests and receives responses. - */ - SENDER("sender", "http://hl7.org/fhir/message-conformance-event-mode"), - - /** - * Code Value: receiver - * - * The application receives requests and sends responses. - */ - RECEIVER("receiver", "http://hl7.org/fhir/message-conformance-event-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-conformance-event-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-conformance-event-mode"; - - /** - * Name for this Value Set: - * ConformanceEventMode - */ - public static final String VALUESET_NAME = "ConformanceEventMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConformanceEventModeEnum next : ConformanceEventModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConformanceEventModeEnum forCode(String theCode) { - ConformanceEventModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConformanceEventModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConformanceEventModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConformanceEventModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConformanceEventModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConformanceEventModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConformanceStatementStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConformanceStatementStatusEnum.java deleted file mode 100644 index bba1cda2887..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConformanceStatementStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConformanceStatementStatusEnum { - - /** - * Code Value: draft - * - * This conformance statement is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/conformance-statement-status"), - - /** - * Code Value: active - * - * This conformance statement is ready for use in production systems. - */ - ACTIVE("active", "http://hl7.org/fhir/conformance-statement-status"), - - /** - * Code Value: retired - * - * This conformance statement has been withdrawn or superceded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/conformance-statement-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/conformance-statement-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/conformance-statement-status"; - - /** - * Name for this Value Set: - * ConformanceStatementStatus - */ - public static final String VALUESET_NAME = "ConformanceStatementStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConformanceStatementStatusEnum next : ConformanceStatementStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConformanceStatementStatusEnum forCode(String theCode) { - ConformanceStatementStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConformanceStatementStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConformanceStatementStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConformanceStatementStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConformanceStatementStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConformanceStatementStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConstraintSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConstraintSeverityEnum.java deleted file mode 100644 index 4dae5072625..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ConstraintSeverityEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConstraintSeverityEnum { - - /** - * Code Value: error - * - * If the constraint is violated, the resource is not conformant. - */ - ERROR("error", "http://hl7.org/fhir/constraint-severity"), - - /** - * Code Value: warning - * - * If the constraint is violated, the resource is conformant, but it is not necessarily following best practice. - */ - WARNING("warning", "http://hl7.org/fhir/constraint-severity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/constraint-severity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/constraint-severity"; - - /** - * Name for this Value Set: - * ConstraintSeverity - */ - public static final String VALUESET_NAME = "ConstraintSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConstraintSeverityEnum next : ConstraintSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConstraintSeverityEnum forCode(String theCode) { - ConstraintSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConstraintSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConstraintSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConstraintSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConstraintSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConstraintSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ContactSystemEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ContactSystemEnum.java deleted file mode 100644 index eb09b1d6f61..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ContactSystemEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContactSystemEnum { - - /** - * Code Value: phone - * - * The value is a telephone number used for voice calls. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required. - */ - PHONE("phone", "http://hl7.org/fhir/contact-system"), - - /** - * Code Value: fax - * - * The value is a fax machine. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required. - */ - FAX("fax", "http://hl7.org/fhir/contact-system"), - - /** - * Code Value: email - * - * The value is an email address. - */ - EMAIL("email", "http://hl7.org/fhir/contact-system"), - - /** - * Code Value: url - * - * The value is a url. This is intended for various personal contacts including blogs, Twitter, Facebook, etc. Do not use for email addresses. - */ - URL("url", "http://hl7.org/fhir/contact-system"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contact-system - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contact-system"; - - /** - * Name for this Value Set: - * ContactSystem - */ - public static final String VALUESET_NAME = "ContactSystem"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContactSystemEnum next : ContactSystemEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContactSystemEnum forCode(String theCode) { - ContactSystemEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContactSystemEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContactSystemEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContactSystemEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContactSystemEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContactSystemEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ContactUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ContactUseEnum.java deleted file mode 100644 index 8ccb4c42632..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ContactUseEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContactUseEnum { - - /** - * Code Value: home - * - * A communication contact at a home; attempted contacts for business purposes might intrude privacy and chances are one will contact family or other household members instead of the person one wishes to call. Typically used with urgent cases, or if no other contacts are available. - */ - HOME("home", "http://hl7.org/fhir/contact-use"), - - /** - * Code Value: work - * - * An office contact. First choice for business related contacts during business hours. - */ - WORK("work", "http://hl7.org/fhir/contact-use"), - - /** - * Code Value: temp - * - * A temporary contact. The period can provide more detailed information. - */ - TEMP("temp", "http://hl7.org/fhir/contact-use"), - - /** - * Code Value: old - * - * This contact is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/contact-use"), - - /** - * Code Value: mobile - * - * A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business. - */ - MOBILE("mobile", "http://hl7.org/fhir/contact-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contact-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contact-use"; - - /** - * Name for this Value Set: - * ContactUse - */ - public static final String VALUESET_NAME = "ContactUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContactUseEnum next : ContactUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContactUseEnum forCode(String theCode) { - ContactUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContactUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContactUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContactUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContactUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContactUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CriticalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CriticalityEnum.java deleted file mode 100644 index e6d0394d96a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/CriticalityEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CriticalityEnum { - - /** - * Code Value: fatal - * - * Likely to result in death if re-exposed. - */ - FATAL("fatal", "http://hl7.org/fhir/criticality"), - - /** - * Code Value: high - * - * Likely to result in reactions that will need to be treated if re-exposed. - */ - HIGH("high", "http://hl7.org/fhir/criticality"), - - /** - * Code Value: medium - * - * Likely to result in reactions that will inconvenience the subject. - */ - MEDIUM("medium", "http://hl7.org/fhir/criticality"), - - /** - * Code Value: low - * - * Not likely to result in any inconveniences for the subject. - */ - LOW("low", "http://hl7.org/fhir/criticality"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/criticality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/criticality"; - - /** - * Name for this Value Set: - * Criticality - */ - public static final String VALUESET_NAME = "Criticality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CriticalityEnum next : CriticalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CriticalityEnum forCode(String theCode) { - CriticalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CriticalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CriticalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CriticalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CriticalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CriticalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DataTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DataTypeEnum.java deleted file mode 100644 index b53c53d1e79..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DataTypeEnum.java +++ /dev/null @@ -1,340 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DataTypeEnum { - - /** - * Code Value: Address - * - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world. - */ - ADDRESS("Address", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Age - * - * There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. If value is present, it SHALL be positive. - */ - AGE("Age", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Attachment - * - * For referring to data content defined in other formats. - */ - ATTACHMENT("Attachment", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: CodeableConcept - * - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. - */ - CODEABLECONCEPT("CodeableConcept", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Coding - * - * A reference to a code defined by a terminology system. - */ - CODING("Coding", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Contact - * - * All kinds of technology mediated contact details for a person or organization, including telephone, email, etc. - */ - CONTACT("Contact", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Count - * - * There SHALL be a code with a value of "1" if there is a value and it SHALL be an expression of length. If system is present, it SHALL be UCUM. If present, the value SHALL a whole number. - */ - COUNT("Count", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Distance - * - * There SHALL be a code if there is a value and it SHALL be an expression of length. If system is present, it SHALL be UCUM. - */ - DISTANCE("Distance", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Duration - * - * There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. - */ - DURATION("Duration", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Extension - * - * Optional Extensions Element - found in all resources. - */ - EXTENSION("Extension", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: HumanName - * - * A human's name with the ability to identify parts and usage. - */ - HUMANNAME("HumanName", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Identifier - * - * A technical identifier - identifies some entity uniquely and unambiguously. - */ - IDENTIFIER("Identifier", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Money - * - * There SHALL be a code if there is a value and it SHALL be an expression of currency. If system is present, it SHALL be ISO 4217 (system = "urn:std:iso:4217" - currency). - */ - MONEY("Money", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Narrative - * - * A human-readable formatted text, including images. - */ - NARRATIVE("Narrative", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Period - * - * A time period defined by a start and end date and optionally time. - */ - PERIOD("Period", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Quantity - * - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. - */ - QUANTITY("Quantity", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Range - * - * A set of ordered Quantities defined by a low and high limit. - */ - RANGE("Range", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Ratio - * - * A relationship of two Quantity values - expressed as a numerator and a denominator. - */ - RATIO("Ratio", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: ResourceReference - * - * A reference from one resource to another. - */ - RESOURCEREFERENCE("ResourceReference", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: SampledData - * - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. - */ - SAMPLEDDATA("SampledData", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Schedule - * - * Specifies an event that may occur multiple times. Schedules are used for to reord when things are expected or requested to occur. - */ - SCHEDULE("Schedule", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: base64Binary - * - * A stream of bytes - */ - BASE64BINARY("base64Binary", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: boolean - * - * Value of "true" or "false" - */ - BOOLEAN("boolean", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: code - * - * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents - */ - CODE("code", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: date - * - * A date, or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. - */ - DATE("date", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: dateTime - * - * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds may be provided but may also be ignored. Dates SHALL be valid dates. - */ - DATETIME("dateTime", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: decimal - * - * A rational number with implicit precision - */ - DECIMAL("decimal", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: id - * - * A whole number in the range 0 to 2^64-1, optionally represented in hex, a uuid, an oid or any other combination of lower-case letters a-z, numerals, "-" and ".", with a length limit of 36 characters - */ - ID("id", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: instant - * - * An instant in time - known at least to the second - */ - INSTANT("instant", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: integer - * - * A whole number - */ - INTEGER("integer", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: oid - * - * An oid represented as a URI - */ - OID("oid", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: string - * - * A sequence of Unicode characters - */ - STRING("string", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: uri - * - * String of characters used to identify a name or a resource - */ - URI("uri", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: uuid - * - * A UUID, represented as a URI - */ - UUID("uuid", "http://hl7.org/fhir/data-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/data-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/data-types"; - - /** - * Name for this Value Set: - * DataType - */ - public static final String VALUESET_NAME = "DataType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DataTypeEnum next : DataTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DataTypeEnum forCode(String theCode) { - DataTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DataTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DataTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DataTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DataTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DataTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticOrderPriorityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticOrderPriorityEnum.java deleted file mode 100644 index 9da01597c09..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticOrderPriorityEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticOrderPriorityEnum { - - /** - * Display: Routine
- * Code Value: routine - * - * The order has a normal priority. - */ - ROUTINE("routine", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: Urgent
- * Code Value: urgent - * - * The order should be urgently. - */ - URGENT("urgent", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: Stat
- * Code Value: stat - * - * The order is time-critical. - */ - STAT("stat", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: ASAP
- * Code Value: asap - * - * The order should be acted on as soon as possible. - */ - ASAP("asap", "http://hl7.org/fhir/diagnostic-order-priority"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-order-priority - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-order-priority"; - - /** - * Name for this Value Set: - * DiagnosticOrderPriority - */ - public static final String VALUESET_NAME = "DiagnosticOrderPriority"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticOrderPriorityEnum next : DiagnosticOrderPriorityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticOrderPriorityEnum forCode(String theCode) { - DiagnosticOrderPriorityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticOrderPriorityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticOrderPriorityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticOrderPriorityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticOrderPriorityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticOrderPriorityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticOrderStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticOrderStatusEnum.java deleted file mode 100644 index 43f53331bf8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticOrderStatusEnum.java +++ /dev/null @@ -1,165 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticOrderStatusEnum { - - /** - * Code Value: requested - * - * The request has been placed. - */ - REQUESTED("requested", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: received - * - * The receiving system has received the order, but not yet decided whether it will be performed. - */ - RECEIVED("received", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: accepted - * - * The receiving system has accepted the order, but work has not yet commenced. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: in progress - * - * The work to fulfill the order is happening. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: review - * - * The work is complete, and the outcomes are being reviewed for approval. - */ - REVIEW("review", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: completed - * - * The work has been complete, the report(s) released, and no further work is planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: suspended - * - * The request has been held by originating system/user request. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: rejected - * - * The receiving system has declined to fulfill the request. - */ - REJECTED("rejected", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: failed - * - * The diagnostic investigation was attempted, but due to some procedural error, it could not be completed. - */ - FAILED("failed", "http://hl7.org/fhir/diagnostic-order-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-order-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-order-status"; - - /** - * Name for this Value Set: - * DiagnosticOrderStatus - */ - public static final String VALUESET_NAME = "DiagnosticOrderStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticOrderStatusEnum next : DiagnosticOrderStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticOrderStatusEnum forCode(String theCode) { - DiagnosticOrderStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticOrderStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticOrderStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticOrderStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticOrderStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticOrderStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticReportStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticReportStatusEnum.java deleted file mode 100644 index ad53c670914..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DiagnosticReportStatusEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticReportStatusEnum { - - /** - * Code Value: registered - * - * The existence of the report is registered, but there is nothing yet available. - */ - REGISTERED("registered", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: partial - * - * This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified. - */ - PARTIAL("partial", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: final - * - * The report is complete and verified by an authorized person. - */ - FINAL("final", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: corrected - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person. - */ - CORRECTED("corrected", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: amended - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person, and data has been changed. - */ - AMENDED("amended", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: appended - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed. - */ - APPENDED("appended", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: cancelled - * - * The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: entered in error - * - * The report has been withdrawn following previous Final release. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/diagnostic-report-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-report-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-report-status"; - - /** - * Name for this Value Set: - * DiagnosticReportStatus - */ - public static final String VALUESET_NAME = "DiagnosticReportStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticReportStatusEnum next : DiagnosticReportStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticReportStatusEnum forCode(String theCode) { - DiagnosticReportStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticReportStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticReportStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticReportStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticReportStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticReportStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentModeEnum.java deleted file mode 100644 index e88daa8965a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentModeEnum { - - /** - * Code Value: producer - * - * The application produces documents of the specified type. - */ - PRODUCER("producer", "http://hl7.org/fhir/document-mode"), - - /** - * Code Value: consumer - * - * The application consumes documents of the specified type. - */ - CONSUMER("consumer", "http://hl7.org/fhir/document-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-mode"; - - /** - * Name for this Value Set: - * DocumentMode - */ - public static final String VALUESET_NAME = "DocumentMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentModeEnum next : DocumentModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentModeEnum forCode(String theCode) { - DocumentModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentReferenceStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentReferenceStatusEnum.java deleted file mode 100644 index 983e4c96c19..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentReferenceStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentReferenceStatusEnum { - - /** - * Code Value: current - * - * This is the current reference for this document. - */ - CURRENT("current", "http://hl7.org/fhir/document-reference-status"), - - /** - * Code Value: superceded - * - * This reference has been superseded by another reference. - */ - SUPERCEDED("superceded", "http://hl7.org/fhir/document-reference-status"), - - /** - * Code Value: entered in error - * - * This reference was created in error. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/document-reference-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-reference-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-reference-status"; - - /** - * Name for this Value Set: - * DocumentReferenceStatus - */ - public static final String VALUESET_NAME = "DocumentReferenceStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentReferenceStatusEnum next : DocumentReferenceStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentReferenceStatusEnum forCode(String theCode) { - DocumentReferenceStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentReferenceStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentReferenceStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentReferenceStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentReferenceStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentReferenceStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentRelationshipTypeEnum.java deleted file mode 100644 index d805cea84d9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/DocumentRelationshipTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentRelationshipTypeEnum { - - /** - * Code Value: replaces - * - * This document logically replaces or supercedes the target document. - */ - REPLACES("replaces", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: transforms - * - * This document was generated by transforming the target document (e.g. format or language conversion). - */ - TRANSFORMS("transforms", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: signs - * - * This document is a signature of the target document. - */ - SIGNS("signs", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: appends - * - * This document adds additional information to the target document. - */ - APPENDS("appends", "http://hl7.org/fhir/document-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-relationship-type"; - - /** - * Name for this Value Set: - * DocumentRelationshipType - */ - public static final String VALUESET_NAME = "DocumentRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentRelationshipTypeEnum next : DocumentRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentRelationshipTypeEnum forCode(String theCode) { - DocumentRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterClassEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterClassEnum.java deleted file mode 100644 index 9c88e7daa42..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterClassEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterClassEnum { - - /** - * Code Value: inpatient - * - * An encounter during which the patient is hospitalized and stays overnight. - */ - INPATIENT("inpatient", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: outpatient - * - * An encounter during which the patient is not hospitalized overnight. - */ - OUTPATIENT("outpatient", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: ambulatory - * - * An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit. - */ - AMBULATORY("ambulatory", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: emergency - * - * An encounter where the patient needs urgent care. - */ - EMERGENCY("emergency", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: home - * - * An encounter where the practitioner visits the patient at his/her home. - */ - HOME("home", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: field - * - * An encounter taking place outside the regular environment for giving care. - */ - FIELD("field", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: daytime - * - * An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight. - */ - DAYTIME("daytime", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: virtual - * - * An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact. - */ - VIRTUAL("virtual", "http://hl7.org/fhir/encounter-class"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-class - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-class"; - - /** - * Name for this Value Set: - * EncounterClass - */ - public static final String VALUESET_NAME = "EncounterClass"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterClassEnum next : EncounterClassEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterClassEnum forCode(String theCode) { - EncounterClassEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterClassEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterClassEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterClassEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterClassEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterClassEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterReasonCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterReasonCodesEnum.java deleted file mode 100644 index d68deff262a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterReasonCodesEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterReasonCodesEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-reason"; - - /** - * Name for this Value Set: - * Encounter Reason Codes - */ - public static final String VALUESET_NAME = "Encounter Reason Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterReasonCodesEnum next : EncounterReasonCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterReasonCodesEnum forCode(String theCode) { - EncounterReasonCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterReasonCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterReasonCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterReasonCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterReasonCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterReasonCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterStateEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterStateEnum.java deleted file mode 100644 index 8ac2ca18a63..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterStateEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterStateEnum { - - /** - * Code Value: planned - * - * The Encounter has not yet started. - */ - PLANNED("planned", "http://hl7.org/fhir/encounter-state"), - - /** - * Code Value: in progress - * - * The Encounter has begun and the patient is present / the practitioner and the patient are meeting. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/encounter-state"), - - /** - * Code Value: onleave - * - * The Encounter has begun, but the patient is temporarily on leave. - */ - ONLEAVE("onleave", "http://hl7.org/fhir/encounter-state"), - - /** - * Code Value: finished - * - * The Encounter has ended. - */ - FINISHED("finished", "http://hl7.org/fhir/encounter-state"), - - /** - * Code Value: cancelled - * - * The Encounter has ended before it has begun. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/encounter-state"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-state - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-state"; - - /** - * Name for this Value Set: - * EncounterState - */ - public static final String VALUESET_NAME = "EncounterState"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterStateEnum next : EncounterStateEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterStateEnum forCode(String theCode) { - EncounterStateEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterStateEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterStateEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterStateEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterStateEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterStateEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterTypeEnum.java deleted file mode 100644 index 557df59e194..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EncounterTypeEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterTypeEnum { - - /** - * Display: Annual diabetes mellitus screening
- * Code Value: ADMS - */ - ANNUAL_DIABETES_MELLITUS_SCREENING("ADMS", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Bone drilling/bone marrow punction in clinic
- * Code Value: BD/BM-clin - */ - BONE_DRILLING_BONE_MARROW_PUNCTION_IN_CLINIC("BD/BM-clin", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Infant colon screening - 60 minutes
- * Code Value: CCS60 - */ - INFANT_COLON_SCREENING___60_MINUTES("CCS60", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Outpatient Kenacort injection
- * Code Value: OKI - */ - OUTPATIENT_KENACORT_INJECTION("OKI", "http://hl7.org/fhir/encounter-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-type"; - - /** - * Name for this Value Set: - * EncounterType - */ - public static final String VALUESET_NAME = "EncounterType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterTypeEnum next : EncounterTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterTypeEnum forCode(String theCode) { - EncounterTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EventTimingEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EventTimingEnum.java deleted file mode 100644 index 422ea762ea6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/EventTimingEnum.java +++ /dev/null @@ -1,152 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EventTimingEnum { - - /** - * Code Value: HS - */ - HS("HS", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: WAKE - */ - WAKE("WAKE", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: AC - */ - AC("AC", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: ACM - */ - ACM("ACM", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: ACD - */ - ACD("ACD", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: ACV - */ - ACV("ACV", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: PC - */ - PC("PC", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: PCM - */ - PCM("PCM", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: PCD - */ - PCD("PCD", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: PCV - */ - PCV("PCV", "http://hl7.org/fhir/v3/TimingEvent"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/event-timing - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/event-timing"; - - /** - * Name for this Value Set: - * EventTiming - */ - public static final String VALUESET_NAME = "EventTiming"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EventTimingEnum next : EventTimingEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EventTimingEnum forCode(String theCode) { - EventTimingEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EventTimingEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EventTimingEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EventTimingEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EventTimingEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EventTimingEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ExposureTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ExposureTypeEnum.java deleted file mode 100644 index 770b1350c82..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ExposureTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ExposureTypeEnum { - - /** - * Code Value: drugadmin - * - * Drug Administration. - */ - DRUGADMIN("drugadmin", "http://hl7.org/fhir/exposureType"), - - /** - * Code Value: immuniz - * - * Immunization. - */ - IMMUNIZ("immuniz", "http://hl7.org/fhir/exposureType"), - - /** - * Code Value: coincidental - * - * In the same area as the substance. - */ - COINCIDENTAL("coincidental", "http://hl7.org/fhir/exposureType"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/exposureType - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/exposureType"; - - /** - * Name for this Value Set: - * ExposureType - */ - public static final String VALUESET_NAME = "ExposureType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ExposureTypeEnum next : ExposureTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ExposureTypeEnum forCode(String theCode) { - ExposureTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ExposureTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ExposureTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ExposureTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ExposureTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ExposureTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ExtensionContextEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ExtensionContextEnum.java deleted file mode 100644 index d305d45efa9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ExtensionContextEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ExtensionContextEnum { - - /** - * Code Value: resource - * - * The context is all elements matching a particular resource element path. - */ - RESOURCE("resource", "http://hl7.org/fhir/extension-context"), - - /** - * Code Value: datatype - * - * The context is all nodes matching a particular data type element path (root or repeating element) or all elements referencing a particular primitive data type (expressed as the datatype name). - */ - DATATYPE("datatype", "http://hl7.org/fhir/extension-context"), - - /** - * Code Value: mapping - * - * The context is all nodes whose mapping to a specified reference model corresponds to a particular mapping structure. The context identifies the mapping target. The mapping should clearly identify where such an extension could be used. - */ - MAPPING("mapping", "http://hl7.org/fhir/extension-context"), - - /** - * Code Value: extension - * - * The context is a particular extension from a particular profile. Expressed as uri#name, where uri identifies the profile and #name identifies the extension code. - */ - EXTENSION("extension", "http://hl7.org/fhir/extension-context"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/extension-context - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/extension-context"; - - /** - * Name for this Value Set: - * ExtensionContext - */ - public static final String VALUESET_NAME = "ExtensionContext"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ExtensionContextEnum next : ExtensionContextEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ExtensionContextEnum forCode(String theCode) { - ExtensionContextEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ExtensionContextEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ExtensionContextEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ExtensionContextEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ExtensionContextEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ExtensionContextEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/FHIRDefinedTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/FHIRDefinedTypeEnum.java deleted file mode 100644 index 78e5a82b1e1..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/FHIRDefinedTypeEnum.java +++ /dev/null @@ -1,676 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FHIRDefinedTypeEnum { - - /** - * Code Value: Address - * - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world. - */ - ADDRESS("Address", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Age - * - * There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. If value is present, it SHALL be positive. - */ - AGE("Age", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Attachment - * - * For referring to data content defined in other formats. - */ - ATTACHMENT("Attachment", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: CodeableConcept - * - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. - */ - CODEABLECONCEPT("CodeableConcept", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Coding - * - * A reference to a code defined by a terminology system. - */ - CODING("Coding", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Contact - * - * All kinds of technology mediated contact details for a person or organization, including telephone, email, etc. - */ - CONTACT("Contact", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Count - * - * There SHALL be a code with a value of "1" if there is a value and it SHALL be an expression of length. If system is present, it SHALL be UCUM. If present, the value SHALL a whole number. - */ - COUNT("Count", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Distance - * - * There SHALL be a code if there is a value and it SHALL be an expression of length. If system is present, it SHALL be UCUM. - */ - DISTANCE("Distance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Duration - * - * There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM. - */ - DURATION("Duration", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Extension - * - * Optional Extensions Element - found in all resources. - */ - EXTENSION("Extension", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: HumanName - * - * A human's name with the ability to identify parts and usage. - */ - HUMANNAME("HumanName", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Identifier - * - * A technical identifier - identifies some entity uniquely and unambiguously. - */ - IDENTIFIER("Identifier", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Money - * - * There SHALL be a code if there is a value and it SHALL be an expression of currency. If system is present, it SHALL be ISO 4217 (system = "urn:std:iso:4217" - currency). - */ - MONEY("Money", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Narrative - * - * A human-readable formatted text, including images. - */ - NARRATIVE("Narrative", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Period - * - * A time period defined by a start and end date and optionally time. - */ - PERIOD("Period", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Quantity - * - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. - */ - QUANTITY("Quantity", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Range - * - * A set of ordered Quantities defined by a low and high limit. - */ - RANGE("Range", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Ratio - * - * A relationship of two Quantity values - expressed as a numerator and a denominator. - */ - RATIO("Ratio", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ResourceReference - * - * A reference from one resource to another. - */ - RESOURCEREFERENCE("ResourceReference", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: SampledData - * - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. - */ - SAMPLEDDATA("SampledData", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Schedule - * - * Specifies an event that may occur multiple times. Schedules are used for to reord when things are expected or requested to occur. - */ - SCHEDULE("Schedule", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: base64Binary - * - * A stream of bytes - */ - BASE64BINARY("base64Binary", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: boolean - * - * Value of "true" or "false" - */ - BOOLEAN("boolean", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: code - * - * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents - */ - CODE("code", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: date - * - * A date, or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. - */ - DATE("date", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: dateTime - * - * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds may be provided but may also be ignored. Dates SHALL be valid dates. - */ - DATETIME("dateTime", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: decimal - * - * A rational number with implicit precision - */ - DECIMAL("decimal", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: id - * - * A whole number in the range 0 to 2^64-1, optionally represented in hex, a uuid, an oid or any other combination of lower-case letters a-z, numerals, "-" and ".", with a length limit of 36 characters - */ - ID("id", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: instant - * - * An instant in time - known at least to the second - */ - INSTANT("instant", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: integer - * - * A whole number - */ - INTEGER("integer", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: oid - * - * An oid represented as a URI - */ - OID("oid", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: string - * - * A sequence of Unicode characters - */ - STRING("string", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: uri - * - * String of characters used to identify a name or a resource - */ - URI("uri", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: uuid - * - * A UUID, represented as a URI - */ - UUID("uuid", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: AdverseReaction - * - * Records an unexpected reaction suspected to be related to the exposure of the reaction subject to a substance. - */ - ADVERSEREACTION("AdverseReaction", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Alert - * - * Prospective warnings of potential issues when providing care to the patient. - */ - ALERT("Alert", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: AllergyIntolerance - * - * Indicates the patient has a susceptibility to an adverse reaction upon exposure to a specified substance. - */ - ALLERGYINTOLERANCE("AllergyIntolerance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: CarePlan - * - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - */ - CAREPLAN("CarePlan", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Composition - * - * A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. - */ - COMPOSITION("Composition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ConceptMap - * - * A statement of relationships from one set of concepts to one or more other concept systems. - */ - CONCEPTMAP("ConceptMap", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Condition - * - * Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary. - */ - CONDITION("Condition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Conformance - * - * A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation. - */ - CONFORMANCE("Conformance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Device - * - * This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. - */ - DEVICE("Device", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DeviceObservationReport - * - * Describes the data produced by a device at a point in time. - */ - DEVICEOBSERVATIONREPORT("DeviceObservationReport", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DiagnosticOrder - * - * A request for a diagnostic investigation service to be performed. - */ - DIAGNOSTICORDER("DiagnosticOrder", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DiagnosticReport - * - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports. - */ - DIAGNOSTICREPORT("DiagnosticReport", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DocumentManifest - * - * A manifest that defines a set of documents. - */ - DOCUMENTMANIFEST("DocumentManifest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DocumentReference - * - * A reference to a document. - */ - DOCUMENTREFERENCE("DocumentReference", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Encounter - * - * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. - */ - ENCOUNTER("Encounter", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: FamilyHistory - * - * Significant health events and conditions for people related to the subject relevant in the context of care for the subject. - */ - FAMILYHISTORY("FamilyHistory", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Group - * - * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization. - */ - GROUP("Group", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ImagingStudy - * - * Manifest of a set of images produced in study. The set of images may include every image in the study, or it may be an incomplete sample, such as a list of key images. - */ - IMAGINGSTUDY("ImagingStudy", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Immunization - * - * Immunization event information. - */ - IMMUNIZATION("Immunization", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ImmunizationRecommendation - * - * A patient's point-of-time immunization status and recommendation with optional supporting justification. - */ - IMMUNIZATIONRECOMMENDATION("ImmunizationRecommendation", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: List - * - * A set of information summarized from a list of other resources. - */ - LIST("List", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Location - * - * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated. - */ - LOCATION("Location", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Media - * - * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference. - */ - MEDIA("Media", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Medication - * - * Primarily used for identification and definition of Medication, but also covers ingredients and packaging. - */ - MEDICATION("Medication", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationAdministration - * - * Describes the event of a patient being given a dose of a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. - */ - MEDICATIONADMINISTRATION("MedicationAdministration", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationDispense - * - * Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication. - */ - MEDICATIONDISPENSE("MedicationDispense", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationPrescription - * - * An order for both supply of the medication and the instructions for administration of the medicine to a patient. - */ - MEDICATIONPRESCRIPTION("MedicationPrescription", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationStatement - * - * A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician. - */ - MEDICATIONSTATEMENT("MedicationStatement", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MessageHeader - * - * The header for a message exchange that is either requesting or responding to an action. The resource(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. - */ - MESSAGEHEADER("MessageHeader", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Observation - * - * Measurements and simple assertions made about a patient, device or other subject. - */ - OBSERVATION("Observation", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OperationOutcome - * - * A collection of error, warning or information messages that result from a system action. - */ - OPERATIONOUTCOME("OperationOutcome", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Order - * - * A request to perform an action. - */ - ORDER("Order", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OrderResponse - * - * A response to an order. - */ - ORDERRESPONSE("OrderResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Organization - * - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc. - */ - ORGANIZATION("Organization", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Other - * - * Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest. - */ - OTHER("Other", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Patient - * - * Demographics and other administrative information about a person or animal receiving care or other health-related services. - */ - PATIENT("Patient", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Practitioner - * - * A person who is directly or indirectly involved in the provisioning of healthcare. - */ - PRACTITIONER("Practitioner", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Procedure - * - * An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy. - */ - PROCEDURE("Procedure", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Profile - * - * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions. - */ - PROFILE("Profile", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Provenance - * - * Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance. - */ - PROVENANCE("Provenance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Query - * - * A description of a query with a set of parameters. - */ - QUERY("Query", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Questionnaire - * - * A structured set of questions and their answers. The Questionnaire may contain questions, answers or both. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIRE("Questionnaire", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: RelatedPerson - * - * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. - */ - RELATEDPERSON("RelatedPerson", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: SecurityEvent - * - * A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage. - */ - SECURITYEVENT("SecurityEvent", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Specimen - * - * Sample for analysis. - */ - SPECIMEN("Specimen", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Substance - * - * A homogeneous material with a definite composition. - */ - SUBSTANCE("Substance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Supply - * - * A supply - a request for something, and provision of what is supplied. - */ - SUPPLY("Supply", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ValueSet - * - * A value set specifies a set of codes drawn from one or more code systems. - */ - VALUESET("ValueSet", "http://hl7.org/fhir/defined-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/defined-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/defined-types"; - - /** - * Name for this Value Set: - * FHIRDefinedType - */ - public static final String VALUESET_NAME = "FHIRDefinedType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FHIRDefinedTypeEnum next : FHIRDefinedTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FHIRDefinedTypeEnum forCode(String theCode) { - FHIRDefinedTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FHIRDefinedTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FHIRDefinedTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FHIRDefinedTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FHIRDefinedTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FHIRDefinedTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/FilterOperatorEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/FilterOperatorEnum.java deleted file mode 100644 index 2b4cf2f4967..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/FilterOperatorEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FilterOperatorEnum { - - /** - * Code Value: = - * - * The property value has the concept specified by the value. - */ - EQUALS("=", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: is-a - * - * The property value has a concept that has an is-a relationship with the value. - */ - IS_A("is-a", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: is-not-a - * - * The property value has a concept that does not have an is-a relationship with the value. - */ - IS_NOT_A("is-not-a", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: regex - * - * The property value representation matches the regex specified in the value. - */ - REGEX("regex", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: in - * - * The property value is in the set of codes or concepts identified by the value. - */ - IN("in", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: not in - * - * The property value is not in the set of codes or concepts identified by the value. - */ - NOT_IN("not in", "http://hl7.org/fhir/filter-operator"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/filter-operator - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/filter-operator"; - - /** - * Name for this Value Set: - * FilterOperator - */ - public static final String VALUESET_NAME = "FilterOperator"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FilterOperatorEnum next : FilterOperatorEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FilterOperatorEnum forCode(String theCode) { - FilterOperatorEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FilterOperatorEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FilterOperatorEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FilterOperatorEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FilterOperatorEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FilterOperatorEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/GroupTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/GroupTypeEnum.java deleted file mode 100644 index bef28a9632b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/GroupTypeEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum GroupTypeEnum { - - /** - * Code Value: person - * - * Group contains "person" Patient resources. - */ - PERSON("person", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: animal - * - * Group contains "animal" Patient resources. - */ - ANIMAL("animal", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: practitioner - * - * Group contains healthcare practitioner resources. - */ - PRACTITIONER("practitioner", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: device - * - * Group contains Device resources. - */ - DEVICE("device", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: medication - * - * Group contains Medication resources. - */ - MEDICATION("medication", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: substance - * - * Group contains Substance resources. - */ - SUBSTANCE("substance", "http://hl7.org/fhir/group-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/group-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/group-type"; - - /** - * Name for this Value Set: - * GroupType - */ - public static final String VALUESET_NAME = "GroupType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (GroupTypeEnum next : GroupTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public GroupTypeEnum forCode(String theCode) { - GroupTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(GroupTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(GroupTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public GroupTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public GroupTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - GroupTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/HierarchicalRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/HierarchicalRelationshipTypeEnum.java deleted file mode 100644 index 8168a3f69e7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/HierarchicalRelationshipTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum HierarchicalRelationshipTypeEnum { - - /** - * Display: Parent
- * Code Value: parent - * - * The target resource is the parent of the focal specimen resource. - */ - PARENT("parent", "http://hl7.org/fhir/hierarchical-relationship-type"), - - /** - * Display: Child
- * Code Value: child - * - * The target resource is the child of the focal specimen resource. - */ - CHILD("child", "http://hl7.org/fhir/hierarchical-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/hierarchical-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/hierarchical-relationship-type"; - - /** - * Name for this Value Set: - * HierarchicalRelationshipType - */ - public static final String VALUESET_NAME = "HierarchicalRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (HierarchicalRelationshipTypeEnum next : HierarchicalRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public HierarchicalRelationshipTypeEnum forCode(String theCode) { - HierarchicalRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(HierarchicalRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(HierarchicalRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public HierarchicalRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public HierarchicalRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - HierarchicalRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IdentifierUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IdentifierUseEnum.java deleted file mode 100644 index 86fb510814f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IdentifierUseEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IdentifierUseEnum { - - /** - * Code Value: usual - * - * the identifier recommended for display and use in real-world interactions. - */ - USUAL("usual", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: official - * - * the identifier considered to be most trusted for the identification of this item. - */ - OFFICIAL("official", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: temp - * - * A temporary identifier. - */ - TEMP("temp", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: secondary - * - * An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context. - */ - SECONDARY("secondary", "http://hl7.org/fhir/identifier-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/identifier-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/identifier-use"; - - /** - * Name for this Value Set: - * IdentifierUse - */ - public static final String VALUESET_NAME = "IdentifierUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IdentifierUseEnum next : IdentifierUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IdentifierUseEnum forCode(String theCode) { - IdentifierUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IdentifierUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IdentifierUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IdentifierUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IdentifierUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IdentifierUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImagingModalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImagingModalityEnum.java deleted file mode 100644 index 01d51f84112..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImagingModalityEnum.java +++ /dev/null @@ -1,282 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImagingModalityEnum { - - /** - * Code Value: AR - */ - AR("AR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BMD - */ - BMD("BMD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BDUS - */ - BDUS("BDUS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: EPS - */ - EPS("EPS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: CR - */ - CR("CR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: CT - */ - CT("CT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: DX - */ - DX("DX", "http://nema.org/dicom/dcid"), - - /** - * Code Value: ECG - */ - ECG("ECG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: ES - */ - ES("ES", "http://nema.org/dicom/dcid"), - - /** - * Code Value: XC - */ - XC("XC", "http://nema.org/dicom/dcid"), - - /** - * Code Value: GM - */ - GM("GM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: HD - */ - HD("HD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IO - */ - IO("IO", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IVOCT - */ - IVOCT("IVOCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IVUS - */ - IVUS("IVUS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: KER - */ - KER("KER", "http://nema.org/dicom/dcid"), - - /** - * Code Value: LEN - */ - LEN("LEN", "http://nema.org/dicom/dcid"), - - /** - * Code Value: MR - */ - MR("MR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: MG - */ - MG("MG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: NM - */ - NM("NM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OAM - */ - OAM("OAM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OCT - */ - OCT("OCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPM - */ - OPM("OPM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OP - */ - OP("OP", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPR - */ - OPR("OPR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPT - */ - OPT("OPT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPV - */ - OPV("OPV", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PX - */ - PX("PX", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PT - */ - PT("PT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RF - */ - RF("RF", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RG - */ - RG("RG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SM - */ - SM("SM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SRF - */ - SRF("SRF", "http://nema.org/dicom/dcid"), - - /** - * Code Value: US - */ - US("US", "http://nema.org/dicom/dcid"), - - /** - * Code Value: VA - */ - VA("VA", "http://nema.org/dicom/dcid"), - - /** - * Code Value: XA - */ - XA("XA", "http://nema.org/dicom/dcid"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/imaging-modality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/imaging-modality"; - - /** - * Name for this Value Set: - * ImagingModality - */ - public static final String VALUESET_NAME = "ImagingModality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImagingModalityEnum next : ImagingModalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImagingModalityEnum forCode(String theCode) { - ImagingModalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImagingModalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImagingModalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImagingModalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImagingModalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImagingModalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationReasonCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationReasonCodesEnum.java deleted file mode 100644 index 98de95596ab..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationReasonCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationReasonCodesEnum { - - /** - * Code Value: 429060002 - */ - _429060002("429060002", "http://snomed.info/sct"), - - /** - * Code Value: 281657000 - */ - _281657000("281657000", "http://snomed.info/sct"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-reason"; - - /** - * Name for this Value Set: - * Immunization Reason Codes - */ - public static final String VALUESET_NAME = "Immunization Reason Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationReasonCodesEnum next : ImmunizationReasonCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationReasonCodesEnum forCode(String theCode) { - ImmunizationReasonCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationReasonCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationReasonCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationReasonCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationReasonCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationReasonCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java deleted file mode 100644 index 180ab8dc634..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRecommendationDateCriterionCodesEnum { - - /** - * Display: due
- * Code Value: due - * - * Date the next dose is considered due - */ - DUE("due", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - /** - * Display: overdue
- * Code Value: overdue - * - * Date the next dose is considered overdue - */ - OVERDUE("overdue", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - /** - * Display: latest
- * Code Value: latest - * - * The latest date the next dose is to be given - */ - LATEST("latest", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-recommendation-date-criterion - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-recommendation-date-criterion"; - - /** - * Name for this Value Set: - * Immunization Recommendation Date Criterion Codes - */ - public static final String VALUESET_NAME = "Immunization Recommendation Date Criterion Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRecommendationDateCriterionCodesEnum next : ImmunizationRecommendationDateCriterionCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRecommendationDateCriterionCodesEnum forCode(String theCode) { - ImmunizationRecommendationDateCriterionCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRecommendationDateCriterionCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRecommendationDateCriterionCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRecommendationDateCriterionCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRecommendationDateCriterionCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRecommendationDateCriterionCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRecommendationStatusCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRecommendationStatusCodesEnum.java deleted file mode 100644 index 080f4236f35..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRecommendationStatusCodesEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRecommendationStatusCodesEnum { - - /** - * Display: due
- * Code Value: due - * - * The patient is due for their next vaccination - */ - DUE("due", "http://hl7.org/fhir/immunization-recommendation-status"), - - /** - * Display: overdue
- * Code Value: overdue - * - * The patient is considered overdue for their next vaccination - */ - OVERDUE("overdue", "http://hl7.org/fhir/immunization-recommendation-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-recommendation-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-recommendation-status"; - - /** - * Name for this Value Set: - * Immunization Recommendation Status Codes - */ - public static final String VALUESET_NAME = "Immunization Recommendation Status Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRecommendationStatusCodesEnum next : ImmunizationRecommendationStatusCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRecommendationStatusCodesEnum forCode(String theCode) { - ImmunizationRecommendationStatusCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRecommendationStatusCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRecommendationStatusCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRecommendationStatusCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRecommendationStatusCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRecommendationStatusCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRouteCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRouteCodesEnum.java deleted file mode 100644 index 322f4d0dcfb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ImmunizationRouteCodesEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRouteCodesEnum { - - /** - * Code Value: IM - */ - IM("IM", "http://hl7.org/fhir/v3/RouteOfAdministration"), - - /** - * Code Value: PO - */ - PO("PO", "http://hl7.org/fhir/v3/RouteOfAdministration"), - - /** - * Code Value: NASINHL - */ - NASINHL("NASINHL", "http://hl7.org/fhir/v3/RouteOfAdministration"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-route - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-route"; - - /** - * Name for this Value Set: - * Immunization Route Codes - */ - public static final String VALUESET_NAME = "Immunization Route Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRouteCodesEnum next : ImmunizationRouteCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRouteCodesEnum forCode(String theCode) { - ImmunizationRouteCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRouteCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRouteCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRouteCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRouteCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRouteCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/InstanceAvailabilityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/InstanceAvailabilityEnum.java deleted file mode 100644 index 024f9135273..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/InstanceAvailabilityEnum.java +++ /dev/null @@ -1,122 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum InstanceAvailabilityEnum { - - /** - * Code Value: ONLINE - */ - ONLINE("ONLINE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OFFLINE - */ - OFFLINE("OFFLINE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: NEARLINE - */ - NEARLINE("NEARLINE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: UNAVAILABLE - */ - UNAVAILABLE("UNAVAILABLE", "http://nema.org/dicom/dcid"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/instance-availability - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/instance-availability"; - - /** - * Name for this Value Set: - * InstanceAvailability - */ - public static final String VALUESET_NAME = "InstanceAvailability"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (InstanceAvailabilityEnum next : InstanceAvailabilityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public InstanceAvailabilityEnum forCode(String theCode) { - InstanceAvailabilityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(InstanceAvailabilityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(InstanceAvailabilityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public InstanceAvailabilityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public InstanceAvailabilityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - InstanceAvailabilityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IssueSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IssueSeverityEnum.java deleted file mode 100644 index 3e02ae33e88..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IssueSeverityEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IssueSeverityEnum { - - /** - * Code Value: fatal - * - * The issue caused the action to fail, and no further checking could be performed. - */ - FATAL("fatal", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: error - * - * The issue is sufficiently important to cause the action to fail. - */ - ERROR("error", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: warning - * - * The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired. - */ - WARNING("warning", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: information - * - * The issue has no relation to the degree of success of the action. - */ - INFORMATION("information", "http://hl7.org/fhir/issue-severity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/issue-severity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/issue-severity"; - - /** - * Name for this Value Set: - * IssueSeverity - */ - public static final String VALUESET_NAME = "IssueSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IssueSeverityEnum next : IssueSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IssueSeverityEnum forCode(String theCode) { - IssueSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IssueSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IssueSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IssueSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IssueSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IssueSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IssueTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IssueTypeEnum.java deleted file mode 100644 index 8fe5756cab6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/IssueTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IssueTypeEnum { - - /** - * Code Value: invalid - * - * Content invalid against Specification or Profile. - */ - INVALID("invalid", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: security - * - * authorization/permissions issue. - */ - SECURITY("security", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: processing - * - * processing issues. - */ - PROCESSING("processing", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: transient - * - * transient processing issues. - */ - TRANSIENT("transient", "http://hl7.org/fhir/issue-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/issue-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/issue-type"; - - /** - * Name for this Value Set: - * IssueType - */ - public static final String VALUESET_NAME = "IssueType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IssueTypeEnum next : IssueTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IssueTypeEnum forCode(String theCode) { - IssueTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IssueTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IssueTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IssueTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IssueTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IssueTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LinkTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LinkTypeEnum.java deleted file mode 100644 index 1df57d15599..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LinkTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LinkTypeEnum { - - /** - * Code Value: replace - * - * The patient resource containing this link must no longer be used. The link points forward to another patient resource that must be used in lieu of the patient resource that contains the link. - */ - REPLACE("replace", "http://hl7.org/fhir/link-type"), - - /** - * Code Value: refer - * - * The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information. - */ - REFER("refer", "http://hl7.org/fhir/link-type"), - - /** - * Code Value: seealso - * - * The patient resource containing this link is in use and valid, but points to another patient resource that is known to contain data about the same person. Data in this resource might overlap or contradict information found in the other patient resource. This link does not indicate any relative importance of the resources concerned, and both should be regarded as equally valid. - */ - SEEALSO("seealso", "http://hl7.org/fhir/link-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/link-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/link-type"; - - /** - * Name for this Value Set: - * LinkType - */ - public static final String VALUESET_NAME = "LinkType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LinkTypeEnum next : LinkTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LinkTypeEnum forCode(String theCode) { - LinkTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LinkTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LinkTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LinkTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LinkTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LinkTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ListModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ListModeEnum.java deleted file mode 100644 index 36759ba27da..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ListModeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ListModeEnum { - - /** - * Code Value: working - * - * This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes. - */ - WORKING("working", "http://hl7.org/fhir/list-mode"), - - /** - * Code Value: snapshot - * - * This list was prepared as a snapshot. It should not be assumed to be current. - */ - SNAPSHOT("snapshot", "http://hl7.org/fhir/list-mode"), - - /** - * Code Value: changes - * - * The list is prepared as a statement of changes that have been made or recommended. - */ - CHANGES("changes", "http://hl7.org/fhir/list-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/list-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/list-mode"; - - /** - * Name for this Value Set: - * ListMode - */ - public static final String VALUESET_NAME = "ListMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ListModeEnum next : ListModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ListModeEnum forCode(String theCode) { - ListModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ListModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ListModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ListModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ListModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ListModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationModeEnum.java deleted file mode 100644 index 3e1535b47b0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationModeEnum { - - /** - * Code Value: instance - * - * The Location resource represents a specific instance of a Location. - */ - INSTANCE("instance", "http://hl7.org/fhir/location-mode"), - - /** - * Code Value: kind - * - * The Location represents a class of Locations. - */ - KIND("kind", "http://hl7.org/fhir/location-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-mode"; - - /** - * Name for this Value Set: - * LocationMode - */ - public static final String VALUESET_NAME = "LocationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationModeEnum next : LocationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationModeEnum forCode(String theCode) { - LocationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationStatusEnum.java deleted file mode 100644 index 9b245f0d755..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationStatusEnum { - - /** - * Code Value: active - * - * The location is operational. - */ - ACTIVE("active", "http://hl7.org/fhir/location-status"), - - /** - * Code Value: suspended - * - * The location is temporarily closed. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/location-status"), - - /** - * Code Value: inactive - * - * The location is no longer used. - */ - INACTIVE("inactive", "http://hl7.org/fhir/location-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-status"; - - /** - * Name for this Value Set: - * LocationStatus - */ - public static final String VALUESET_NAME = "LocationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationStatusEnum next : LocationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationStatusEnum forCode(String theCode) { - LocationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationTypeEnum.java deleted file mode 100644 index 43da18f818f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/LocationTypeEnum.java +++ /dev/null @@ -1,150 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationTypeEnum { - - /** - * Display: Building
- * Code Value: bu - */ - BUILDING("bu", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Wing
- * Code Value: wi - */ - WING("wi", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Corridor
- * Code Value: co - */ - CORRIDOR("co", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Room
- * Code Value: ro - */ - ROOM("ro", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Vehicle
- * Code Value: ve - */ - VEHICLE("ve", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: House
- * Code Value: ho - */ - HOUSE("ho", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Cabinet
- * Code Value: ca - */ - CABINET("ca", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Road
- * Code Value: rd - */ - ROAD("rd", "http://hl7.org/fhir/location-physical-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-physical-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-physical-type"; - - /** - * Name for this Value Set: - * LocationType - */ - public static final String VALUESET_NAME = "LocationType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationTypeEnum next : LocationTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationTypeEnum forCode(String theCode) { - LocationTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MaritalStatusCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MaritalStatusCodesEnum.java deleted file mode 100644 index 2729305d903..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MaritalStatusCodesEnum.java +++ /dev/null @@ -1,160 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MaritalStatusCodesEnum { - - /** - * Display: unmarried
- * Code Value: U - * - * The person is not presently married. The marital history is not known or stated - */ - UNMARRIED("U", "http://hl7.org/fhir/marital-status"), - - /** - * Code Value: A - */ - A("A", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: D - */ - D("D", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: I - */ - I("I", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: L - */ - L("L", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: M - */ - M("M", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: P - */ - P("P", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: S - */ - S("S", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: T - */ - T("T", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: W - */ - W("W", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: UNK - */ - UNK("UNK", "http://hl7.org/fhir/v3/NullFlavor"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/marital-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/marital-status"; - - /** - * Name for this Value Set: - * Marital Status Codes - */ - public static final String VALUESET_NAME = "Marital Status Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MaritalStatusCodesEnum next : MaritalStatusCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MaritalStatusCodesEnum forCode(String theCode) { - MaritalStatusCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MaritalStatusCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MaritalStatusCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MaritalStatusCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MaritalStatusCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MaritalStatusCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MediaTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MediaTypeEnum.java deleted file mode 100644 index 79e0b761a25..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MediaTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MediaTypeEnum { - - /** - * Code Value: photo - * - * The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents. - */ - PHOTO("photo", "http://hl7.org/fhir/media-type"), - - /** - * Code Value: video - * - * The media consists of a series of frames that capture a moving image. - */ - VIDEO("video", "http://hl7.org/fhir/media-type"), - - /** - * Code Value: audio - * - * The media consists of a sound recording. - */ - AUDIO("audio", "http://hl7.org/fhir/media-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/media-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/media-type"; - - /** - * Name for this Value Set: - * MediaType - */ - public static final String VALUESET_NAME = "MediaType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MediaTypeEnum next : MediaTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MediaTypeEnum forCode(String theCode) { - MediaTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MediaTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MediaTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MediaTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MediaTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MediaTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationAdministrationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationAdministrationStatusEnum.java deleted file mode 100644 index 9b2434b9517..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationAdministrationStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationAdministrationStatusEnum { - - /** - * Code Value: in progress - * - * The administration has started but has not yet completed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: on hold - * - * Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the administration have occurred. - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: entered in error - * - * The administration was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: stopped - * - * Actions implied by the administration have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-admin-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-admin-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-admin-status"; - - /** - * Name for this Value Set: - * MedicationAdministrationStatus - */ - public static final String VALUESET_NAME = "MedicationAdministrationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationAdministrationStatusEnum next : MedicationAdministrationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationAdministrationStatusEnum forCode(String theCode) { - MedicationAdministrationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationAdministrationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationAdministrationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationAdministrationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationAdministrationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationAdministrationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationDispenseStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationDispenseStatusEnum.java deleted file mode 100644 index 8e538b551fa..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationDispenseStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationDispenseStatusEnum { - - /** - * Code Value: in progress - * - * The dispense has started but has not yet completed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: on hold - * - * Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the dispense have occurred. - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: entered in error - * - * The dispense was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: stopped - * - * Actions implied by the dispense have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-dispense-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-dispense-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-dispense-status"; - - /** - * Name for this Value Set: - * MedicationDispenseStatus - */ - public static final String VALUESET_NAME = "MedicationDispenseStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationDispenseStatusEnum next : MedicationDispenseStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationDispenseStatusEnum forCode(String theCode) { - MedicationDispenseStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationDispenseStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationDispenseStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationDispenseStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationDispenseStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationDispenseStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationKindEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationKindEnum.java deleted file mode 100644 index 883793555dc..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationKindEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationKindEnum { - - /** - * Code Value: product - * - * The medication is a product. - */ - PRODUCT("product", "http://hl7.org/fhir/medication-kind"), - - /** - * Code Value: package - * - * The medication is a package - a contained group of one of more products. - */ - PACKAGE("package", "http://hl7.org/fhir/medication-kind"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-kind - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-kind"; - - /** - * Name for this Value Set: - * MedicationKind - */ - public static final String VALUESET_NAME = "MedicationKind"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationKindEnum next : MedicationKindEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationKindEnum forCode(String theCode) { - MedicationKindEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationKindEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationKindEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationKindEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationKindEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationKindEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationPrescriptionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationPrescriptionStatusEnum.java deleted file mode 100644 index fa5272c6545..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MedicationPrescriptionStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationPrescriptionStatusEnum { - - /** - * Code Value: active - * - * The prescription is 'actionable', but not all actions that are implied by it have occurred yet. - */ - ACTIVE("active", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: on hold - * - * Actions implied by the prescription have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the prescription have occurred (this will rarely be made explicit). - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: entered in error - * - * The prescription was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: stopped - * - * Actions implied by the prescription have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: superceded - * - * The prescription was replaced by a newer one, which encompasses all the information in the previous one. - */ - SUPERCEDED("superceded", "http://hl7.org/fhir/medication-prescription-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-prescription-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-prescription-status"; - - /** - * Name for this Value Set: - * MedicationPrescriptionStatus - */ - public static final String VALUESET_NAME = "MedicationPrescriptionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationPrescriptionStatusEnum next : MedicationPrescriptionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationPrescriptionStatusEnum forCode(String theCode) { - MedicationPrescriptionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationPrescriptionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationPrescriptionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationPrescriptionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationPrescriptionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationPrescriptionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageEventEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageEventEnum.java deleted file mode 100644 index 4bd88417417..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageEventEnum.java +++ /dev/null @@ -1,179 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageEventEnum { - - /** - * Code Value: MedicationAdministration-Complete - * - * Change the status of a Medication Administration to show that it is complete. - */ - MEDICATIONADMINISTRATION_COMPLETE("MedicationAdministration-Complete", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Nullification - * - * Someone wishes to record that the record of administration of a medication is in error and should be ignored. - */ - MEDICATIONADMINISTRATION_NULLIFICATION("MedicationAdministration-Nullification", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Recording - * - * Indicates that a medication has been recorded against the patient's record. - */ - MEDICATIONADMINISTRATION_RECORDING("MedicationAdministration-Recording", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Update - * - * Update a Medication Administration record. - */ - MEDICATIONADMINISTRATION_UPDATE("MedicationAdministration-Update", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: admin-notify - * - * Notification that a patient or other administrative resource as been created or updated. - */ - ADMIN_NOTIFY("admin-notify", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: diagnosticreport-provide - * - * Provide a diagnostic report, or update a previously provided diagnostic report. - */ - DIAGNOSTICREPORT_PROVIDE("diagnosticreport-provide", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: observation-provide - * - * Provide a simple observation or update a previously provided simple observation. - */ - OBSERVATION_PROVIDE("observation-provide", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: patient-link - * - * Notification that two patient records actually identify the same patient. - */ - PATIENT_LINK("patient-link", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: patient-unlink - * - * Notification that previous advice that two patient records concern the same patient is now considered incorrect. - */ - PATIENT_UNLINK("patient-unlink", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: query - * - * Request to perform a query according to the attached query resource. - */ - QUERY("query", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: query-response - * - * Response with the result of processing the query. - */ - QUERY_RESPONSE("query-response", "http://hl7.org/fhir/message-events"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-events - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-events"; - - /** - * Name for this Value Set: - * MessageEvent - */ - public static final String VALUESET_NAME = "MessageEvent"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageEventEnum next : MessageEventEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageEventEnum forCode(String theCode) { - MessageEventEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageEventEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageEventEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageEventEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageEventEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageEventEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageSignificanceCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageSignificanceCategoryEnum.java deleted file mode 100644 index 5c91d621019..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageSignificanceCategoryEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageSignificanceCategoryEnum { - - /** - * Code Value: Consequence - * - * The message represents/requests a change that should not be processed more than once. E.g. Making a booking for an appointment. - */ - CONSEQUENCE("Consequence", "http://hl7.org/fhir/message-significance-category"), - - /** - * Code Value: Currency - * - * The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful. - */ - CURRENCY("Currency", "http://hl7.org/fhir/message-significance-category"), - - /** - * Code Value: Notification - * - * The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications. - */ - NOTIFICATION("Notification", "http://hl7.org/fhir/message-significance-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-significance-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-significance-category"; - - /** - * Name for this Value Set: - * MessageSignificanceCategory - */ - public static final String VALUESET_NAME = "MessageSignificanceCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageSignificanceCategoryEnum next : MessageSignificanceCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageSignificanceCategoryEnum forCode(String theCode) { - MessageSignificanceCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageSignificanceCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageSignificanceCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageSignificanceCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageSignificanceCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageSignificanceCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageTransportEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageTransportEnum.java deleted file mode 100644 index 919a5cdec09..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/MessageTransportEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageTransportEnum { - - /** - * Code Value: http - * - * The application sends or receives messages using HTTP POST (may be over http or https). - */ - HTTP("http", "http://hl7.org/fhir/message-transport"), - - /** - * Code Value: ftp - * - * The application sends or receives messages using File Transfer Protocol. - */ - FTP("ftp", "http://hl7.org/fhir/message-transport"), - - /** - * Code Value: mllp - * - * The application sends or receivers messages using HL7's Minimal Lower Level Protocol. - */ - MLLP("mllp", "http://hl7.org/fhir/message-transport"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-transport - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-transport"; - - /** - * Name for this Value Set: - * MessageTransport - */ - public static final String VALUESET_NAME = "MessageTransport"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageTransportEnum next : MessageTransportEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageTransportEnum forCode(String theCode) { - MessageTransportEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageTransportEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageTransportEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageTransportEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageTransportEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageTransportEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ModalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ModalityEnum.java deleted file mode 100644 index 89d6408f84a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ModalityEnum.java +++ /dev/null @@ -1,367 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ModalityEnum { - - /** - * Code Value: AR - */ - AR("AR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: AU - */ - AU("AU", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BDUS - */ - BDUS("BDUS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BI - */ - BI("BI", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BMD - */ - BMD("BMD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: CR - */ - CR("CR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: CT - */ - CT("CT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: DG - */ - DG("DG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: DX - */ - DX("DX", "http://nema.org/dicom/dcid"), - - /** - * Code Value: ECG - */ - ECG("ECG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: EPS - */ - EPS("EPS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: ES - */ - ES("ES", "http://nema.org/dicom/dcid"), - - /** - * Code Value: GM - */ - GM("GM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: HC - */ - HC("HC", "http://nema.org/dicom/dcid"), - - /** - * Code Value: HD - */ - HD("HD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IO - */ - IO("IO", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IVOCT - */ - IVOCT("IVOCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IVUS - */ - IVUS("IVUS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: KER - */ - KER("KER", "http://nema.org/dicom/dcid"), - - /** - * Code Value: KO - */ - KO("KO", "http://nema.org/dicom/dcid"), - - /** - * Code Value: LEN - */ - LEN("LEN", "http://nema.org/dicom/dcid"), - - /** - * Code Value: LS - */ - LS("LS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: MG - */ - MG("MG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: MR - */ - MR("MR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: NM - */ - NM("NM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OAM - */ - OAM("OAM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OCT - */ - OCT("OCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OP - */ - OP("OP", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPM - */ - OPM("OPM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPT - */ - OPT("OPT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPV - */ - OPV("OPV", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OT - */ - OT("OT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PR - */ - PR("PR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PT - */ - PT("PT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PX - */ - PX("PX", "http://nema.org/dicom/dcid"), - - /** - * Code Value: REG - */ - REG("REG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RF - */ - RF("RF", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RG - */ - RG("RG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTDOSE - */ - RTDOSE("RTDOSE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTIMAGE - */ - RTIMAGE("RTIMAGE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTPLAN - */ - RTPLAN("RTPLAN", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTRECORD - */ - RTRECORD("RTRECORD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTSTRUCT - */ - RTSTRUCT("RTSTRUCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SEG - */ - SEG("SEG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SM - */ - SM("SM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SMR - */ - SMR("SMR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SR - */ - SR("SR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SRF - */ - SRF("SRF", "http://nema.org/dicom/dcid"), - - /** - * Code Value: TG - */ - TG("TG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: US - */ - US("US", "http://nema.org/dicom/dcid"), - - /** - * Code Value: VA - */ - VA("VA", "http://nema.org/dicom/dcid"), - - /** - * Code Value: XA - */ - XA("XA", "http://nema.org/dicom/dcid"), - - /** - * Code Value: XC - */ - XC("XC", "http://nema.org/dicom/dcid"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/modality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/modality"; - - /** - * Name for this Value Set: - * Modality - */ - public static final String VALUESET_NAME = "Modality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ModalityEnum next : ModalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ModalityEnum forCode(String theCode) { - ModalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ModalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ModalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ModalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ModalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ModalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/NameUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/NameUseEnum.java deleted file mode 100644 index a840d79ac8a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/NameUseEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NameUseEnum { - - /** - * Code Value: usual - * - * Known as/conventional/the one you normally use. - */ - USUAL("usual", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: official - * - * The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called "legal name". - */ - OFFICIAL("official", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: temp - * - * A temporary name. Name.period can provide more detailed information. This may also be used for temporary names assigned at birth or in emergency situations. - */ - TEMP("temp", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: nickname - * - * A name that is used to address the person in an informal manner, but is not part of their formal or usual name. - */ - NICKNAME("nickname", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: anonymous - * - * Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons). - */ - ANONYMOUS("anonymous", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: old - * - * This name is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: maiden - * - * A name used prior to marriage. Marriage naming customs vary greatly around the world. This name use is for use by applications that collect and store "maiden" names. Though the concept of maiden name is often gender specific, the use of this term is not gender specific. The use of this term does not imply any particular history for a person's name, nor should the maiden name be determined algorithmically. - */ - MAIDEN("maiden", "http://hl7.org/fhir/name-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/name-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/name-use"; - - /** - * Name for this Value Set: - * NameUse - */ - public static final String VALUESET_NAME = "NameUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NameUseEnum next : NameUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NameUseEnum forCode(String theCode) { - NameUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NameUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NameUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NameUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NameUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NameUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/NarrativeStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/NarrativeStatusEnum.java deleted file mode 100644 index b3ba23f3130..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/NarrativeStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NarrativeStatusEnum { - - /** - * Code Value: generated - * - * The contents of the narrative are entirely generated from the structured data in the resource. - */ - GENERATED("generated", "http://hl7.org/fhir/narrative-status"), - - /** - * Code Value: extensions - * - * The contents of the narrative are entirely generated from the structured data in the resource and some of the content is generated from extensions. - */ - EXTENSIONS("extensions", "http://hl7.org/fhir/narrative-status"), - - /** - * Code Value: additional - * - * The contents of the narrative contain additional information not found in the structured data. - */ - ADDITIONAL("additional", "http://hl7.org/fhir/narrative-status"), - - /** - * Code Value: empty - * - * the contents of the narrative are some equivalent of "No human-readable text provided for this resource". - */ - EMPTY("empty", "http://hl7.org/fhir/narrative-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/narrative-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/narrative-status"; - - /** - * Name for this Value Set: - * NarrativeStatus - */ - public static final String VALUESET_NAME = "NarrativeStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NarrativeStatusEnum next : NarrativeStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NarrativeStatusEnum forCode(String theCode) { - NarrativeStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NarrativeStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NarrativeStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NarrativeStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NarrativeStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NarrativeStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationInterpretationCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationInterpretationCodesEnum.java deleted file mode 100644 index 43091629456..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationInterpretationCodesEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationInterpretationCodesEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-interpretation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-interpretation"; - - /** - * Name for this Value Set: - * Observation Interpretation Codes - */ - public static final String VALUESET_NAME = "Observation Interpretation Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationInterpretationCodesEnum next : ObservationInterpretationCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationInterpretationCodesEnum forCode(String theCode) { - ObservationInterpretationCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationInterpretationCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationInterpretationCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationInterpretationCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationInterpretationCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationInterpretationCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationRelationshipTypeEnum.java deleted file mode 100644 index 12935223067..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationRelationshipTypeEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationRelationshipTypeEnum { - - /** - * Code Value: has-component - * - * The target observation is a component of this observation (e.g. Systolic and Diastolic Blood Pressure). - */ - HAS_COMPONENT("has-component", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: has-member - * - * This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group. - */ - HAS_MEMBER("has-member", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: derived-from - * - * The target observation is part of the information from which this observation value is derived (e.g. calculated anion gap, Apgar score). - */ - DERIVED_FROM("derived-from", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: sequel-to - * - * This observation follows the target observation (e.g. timed tests such as Glucose Tolerance Test). - */ - SEQUEL_TO("sequel-to", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: replaces - * - * This observation replaces a previous observation (i.e. a revised value). The target observation is now obsolete. - */ - REPLACES("replaces", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: qualified-by - * - * The value of the target observation qualifies (refines) the semantics of the source observation (e.g. a lipaemia measure target from a plasma measure). - */ - QUALIFIED_BY("qualified-by", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: interfered-by - * - * The value of the target observation interferes (degardes quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure which has no value). - */ - INTERFERED_BY("interfered-by", "http://hl7.org/fhir/observation-relationshiptypes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-relationshiptypes - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-relationshiptypes"; - - /** - * Name for this Value Set: - * ObservationRelationshipType - */ - public static final String VALUESET_NAME = "ObservationRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationRelationshipTypeEnum next : ObservationRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationRelationshipTypeEnum forCode(String theCode) { - ObservationRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationReliabilityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationReliabilityEnum.java deleted file mode 100644 index c29efbf2119..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationReliabilityEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationReliabilityEnum { - - /** - * Code Value: ok - * - * The result has no reliability concerns. - */ - OK("ok", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: ongoing - * - * An early estimate of value; measurement is still occurring. - */ - ONGOING("ongoing", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: early - * - * An early estimate of value; processing is still occurring. - */ - EARLY("early", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: questionable - * - * The observation value should be treated with care. - */ - QUESTIONABLE("questionable", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: calibrating - * - * The result has been generated while calibration is occurring. - */ - CALIBRATING("calibrating", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: error - * - * The observation could not be completed because of an error. - */ - ERROR("error", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: unknown - * - * No observation value was available. - */ - UNKNOWN("unknown", "http://hl7.org/fhir/observation-reliability"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-reliability - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-reliability"; - - /** - * Name for this Value Set: - * ObservationReliability - */ - public static final String VALUESET_NAME = "ObservationReliability"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationReliabilityEnum next : ObservationReliabilityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationReliabilityEnum forCode(String theCode) { - ObservationReliabilityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationReliabilityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationReliabilityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationReliabilityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationReliabilityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationReliabilityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationStatusEnum.java deleted file mode 100644 index 981f2269cad..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ObservationStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationStatusEnum { - - /** - * Code Value: registered - * - * The existence of the observation is registered, but there is no result yet available. - */ - REGISTERED("registered", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: preliminary - * - * This is an initial or interim observation: data may be incomplete or unverified. - */ - PRELIMINARY("preliminary", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: final - * - * The observation is complete and verified by an authorized person. - */ - FINAL("final", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: amended - * - * The observation has been modified subsequent to being Final, and is complete and verified by an authorized person. - */ - AMENDED("amended", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: cancelled - * - * The observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: entered in error - * - * The observation has been withdrawn following previous Final release. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/observation-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-status"; - - /** - * Name for this Value Set: - * ObservationStatus - */ - public static final String VALUESET_NAME = "ObservationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationStatusEnum next : ObservationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationStatusEnum forCode(String theCode) { - ObservationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/OrderOutcomeStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/OrderOutcomeStatusEnum.java deleted file mode 100644 index 40de275f487..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/OrderOutcomeStatusEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OrderOutcomeStatusEnum { - - /** - * Code Value: pending - * - * The order is known, but no processing has occurred at this time. - */ - PENDING("pending", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: review - * - * The order is undergoing initial processing to determine whether it will be accepted (usually this involves human review). - */ - REVIEW("review", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: rejected - * - * The order was rejected because of a workflow/business logic reason. - */ - REJECTED("rejected", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: error - * - * The order was unable to be processed because of a technical error (i.e. unexpected error). - */ - ERROR("error", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: accepted - * - * The order has been accepted, and work is in progress. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: cancelled - * - * Processing the order was halted at the initiators request. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: aborted - * - * Processing the order was stopped because of some workflow/business logic reason. - */ - ABORTED("aborted", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: complete - * - * The order has been completed. - */ - COMPLETE("complete", "http://hl7.org/fhir/order-outcome-code"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/order-outcome-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/order-outcome-code"; - - /** - * Name for this Value Set: - * OrderOutcomeStatus - */ - public static final String VALUESET_NAME = "OrderOutcomeStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OrderOutcomeStatusEnum next : OrderOutcomeStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OrderOutcomeStatusEnum forCode(String theCode) { - OrderOutcomeStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OrderOutcomeStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OrderOutcomeStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OrderOutcomeStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OrderOutcomeStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OrderOutcomeStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/OrganizationTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/OrganizationTypeEnum.java deleted file mode 100644 index e8554e05dfe..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/OrganizationTypeEnum.java +++ /dev/null @@ -1,156 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OrganizationTypeEnum { - - /** - * Display: Healthcare Provider
- * Code Value: prov - */ - HEALTHCARE_PROVIDER("prov", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Hospital Department
- * Code Value: dept - */ - HOSPITAL_DEPARTMENT("dept", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Intensive Care Unit
- * Code Value: icu - */ - INTENSIVE_CARE_UNIT("icu", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Organizational team
- * Code Value: team - */ - ORGANIZATIONAL_TEAM("team", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Federal Government
- * Code Value: fed - */ - FEDERAL_GOVERNMENT("fed", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Insurance Company
- * Code Value: ins - */ - INSURANCE_COMPANY("ins", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Educational Institute
- * Code Value: edu - */ - EDUCATIONAL_INSTITUTE("edu", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Religious Institution
- * Code Value: reli - */ - RELIGIOUS_INSTITUTION("reli", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Pharmacy
- * Code Value: pharm - */ - PHARMACY("pharm", "http://hl7.org/fhir/organization-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/organization-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/organization-type"; - - /** - * Name for this Value Set: - * OrganizationType - */ - public static final String VALUESET_NAME = "OrganizationType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OrganizationTypeEnum next : OrganizationTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OrganizationTypeEnum forCode(String theCode) { - OrganizationTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OrganizationTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OrganizationTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OrganizationTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OrganizationTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OrganizationTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ParticipantTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ParticipantTypeEnum.java deleted file mode 100644 index c81375118a5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ParticipantTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipantTypeEnum { - - /** - * Display: Translator
- * Code Value: translator - * - * A translator who is facilitating communication with the patient during the encounter - */ - TRANSLATOR("translator", "http://hl7.org/fhir/participant-type"), - - /** - * Display: Emergency
- * Code Value: emergency - * - * A person to be contacted in case of an emergency during the encounter - */ - EMERGENCY("emergency", "http://hl7.org/fhir/participant-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-participant-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-participant-type"; - - /** - * Name for this Value Set: - * ParticipantType - */ - public static final String VALUESET_NAME = "ParticipantType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipantTypeEnum next : ParticipantTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipantTypeEnum forCode(String theCode) { - ParticipantTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipantTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipantTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipantTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipantTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipantTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PatientRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PatientRelationshipTypeEnum.java deleted file mode 100644 index ab090d5cd47..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PatientRelationshipTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PatientRelationshipTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/relatedperson-relationshiptype - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/relatedperson-relationshiptype"; - - /** - * Name for this Value Set: - * PatientRelationshipType - */ - public static final String VALUESET_NAME = "PatientRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PatientRelationshipTypeEnum next : PatientRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PatientRelationshipTypeEnum forCode(String theCode) { - PatientRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PatientRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PatientRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PatientRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PatientRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PatientRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PractitionerRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PractitionerRoleEnum.java deleted file mode 100644 index 8ec4108092d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PractitionerRoleEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PractitionerRoleEnum { - - /** - * Code Value: doctor - */ - DOCTOR("doctor", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: nurse - */ - NURSE("nurse", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: pharmacist - */ - PHARMACIST("pharmacist", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: researcher - */ - RESEARCHER("researcher", "http://hl7.org/fhir/practitioner-role"), - - /** - * Display: Teacher/educator
- * Code Value: teacher - */ - TEACHER_EDUCATOR("teacher", "http://hl7.org/fhir/practitioner-role"), - - /** - * Display: ICT professional
- * Code Value: ict - */ - ICT_PROFESSIONAL("ict", "http://hl7.org/fhir/practitioner-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/practitioner-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/practitioner-role"; - - /** - * Name for this Value Set: - * PractitionerRole - */ - public static final String VALUESET_NAME = "PractitionerRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PractitionerRoleEnum next : PractitionerRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PractitionerRoleEnum forCode(String theCode) { - PractitionerRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PractitionerRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PractitionerRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PractitionerRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PractitionerRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PractitionerRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PractitionerSpecialtyEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PractitionerSpecialtyEnum.java deleted file mode 100644 index 99ae1802ea8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PractitionerSpecialtyEnum.java +++ /dev/null @@ -1,132 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PractitionerSpecialtyEnum { - - /** - * Display: Cardiologist
- * Code Value: cardio - */ - CARDIOLOGIST("cardio", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Dentist
- * Code Value: dent - */ - DENTIST("dent", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Dietary consultant
- * Code Value: dietary - */ - DIETARY_CONSULTANT("dietary", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Midwife
- * Code Value: midw - */ - MIDWIFE("midw", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Systems architect
- * Code Value: sysarch - */ - SYSTEMS_ARCHITECT("sysarch", "http://hl7.org/fhir/practitioner-specialty"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/practitioner-specialty - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/practitioner-specialty"; - - /** - * Name for this Value Set: - * PractitionerSpecialty - */ - public static final String VALUESET_NAME = "PractitionerSpecialty"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PractitionerSpecialtyEnum next : PractitionerSpecialtyEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PractitionerSpecialtyEnum forCode(String theCode) { - PractitionerSpecialtyEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PractitionerSpecialtyEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PractitionerSpecialtyEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PractitionerSpecialtyEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PractitionerSpecialtyEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PractitionerSpecialtyEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ProcedureRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ProcedureRelationshipTypeEnum.java deleted file mode 100644 index 4812f4ef680..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ProcedureRelationshipTypeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ProcedureRelationshipTypeEnum { - - /** - * Code Value: caused-by - * - * This procedure had to be performed because of the related one. - */ - CAUSED_BY("caused-by", "http://hl7.org/fhir/procedure-relationship-type"), - - /** - * Code Value: because-of - * - * This procedure caused the related one to be performed. - */ - BECAUSE_OF("because-of", "http://hl7.org/fhir/procedure-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/procedure-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/procedure-relationship-type"; - - /** - * Name for this Value Set: - * ProcedureRelationshipType - */ - public static final String VALUESET_NAME = "ProcedureRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ProcedureRelationshipTypeEnum next : ProcedureRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ProcedureRelationshipTypeEnum forCode(String theCode) { - ProcedureRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ProcedureRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ProcedureRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ProcedureRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ProcedureRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ProcedureRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PropertyRepresentationEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PropertyRepresentationEnum.java deleted file mode 100644 index 9b211757d28..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/PropertyRepresentationEnum.java +++ /dev/null @@ -1,109 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PropertyRepresentationEnum { - - /** - * Code Value: xmlAttr - * - * In XML, this property is represented as an attribute not an element. - */ - XMLATTR("xmlAttr", "http://hl7.org/fhir/property-representation"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/property-representation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/property-representation"; - - /** - * Name for this Value Set: - * PropertyRepresentation - */ - public static final String VALUESET_NAME = "PropertyRepresentation"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PropertyRepresentationEnum next : PropertyRepresentationEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PropertyRepresentationEnum forCode(String theCode) { - PropertyRepresentationEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PropertyRepresentationEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PropertyRepresentationEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PropertyRepresentationEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PropertyRepresentationEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PropertyRepresentationEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ProvenanceEntityRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ProvenanceEntityRoleEnum.java deleted file mode 100644 index 7e23a98aee3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ProvenanceEntityRoleEnum.java +++ /dev/null @@ -1,109 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ProvenanceEntityRoleEnum { - - /** - * Code Value: derivation - * - * A transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a preexisting entity. - */ - DERIVATION("derivation", "http://hl7.org/fhir/provenance-entity-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/provenance-entity-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/provenance-entity-role"; - - /** - * Name for this Value Set: - * ProvenanceEntityRole - */ - public static final String VALUESET_NAME = "ProvenanceEntityRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ProvenanceEntityRoleEnum next : ProvenanceEntityRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ProvenanceEntityRoleEnum forCode(String theCode) { - ProvenanceEntityRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ProvenanceEntityRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ProvenanceEntityRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ProvenanceEntityRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ProvenanceEntityRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ProvenanceEntityRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuantityCompararatorEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuantityCompararatorEnum.java deleted file mode 100644 index 343c2fa347f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuantityCompararatorEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuantityCompararatorEnum { - - /** - * Code Value: < - * - * The actual value is less than the given value. - */ - LESSTHAN("<", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: <= - * - * The actual value is less than or equal to the given value. - */ - LESSTHAN_OR_EQUALS("<=", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: >= - * - * The actual value is greater than or equal to the given value. - */ - GREATERTHAN_OR_EQUALS(">=", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: > - * - * The actual value is greater than the given value. - */ - GREATERTHAN(">", "http://hl7.org/fhir/quantity-comparator"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/quantity-comparator - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/quantity-comparator"; - - /** - * Name for this Value Set: - * QuantityCompararator - */ - public static final String VALUESET_NAME = "QuantityCompararator"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuantityCompararatorEnum next : QuantityCompararatorEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuantityCompararatorEnum forCode(String theCode) { - QuantityCompararatorEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuantityCompararatorEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuantityCompararatorEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuantityCompararatorEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuantityCompararatorEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuantityCompararatorEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QueryOutcomeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QueryOutcomeEnum.java deleted file mode 100644 index e0d5dc7849d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QueryOutcomeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QueryOutcomeEnum { - - /** - * Code Value: ok - * - * The query was processed successfully. - */ - OK("ok", "http://hl7.org/fhir/query-outcome"), - - /** - * Code Value: limited - * - * The query was processed successfully, but some additional limitations were added. - */ - LIMITED("limited", "http://hl7.org/fhir/query-outcome"), - - /** - * Code Value: refused - * - * The server refused to process the query. - */ - REFUSED("refused", "http://hl7.org/fhir/query-outcome"), - - /** - * Code Value: error - * - * The server tried to process the query, but some error occurred. - */ - ERROR("error", "http://hl7.org/fhir/query-outcome"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/query-outcome - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/query-outcome"; - - /** - * Name for this Value Set: - * QueryOutcome - */ - public static final String VALUESET_NAME = "QueryOutcome"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QueryOutcomeEnum next : QueryOutcomeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QueryOutcomeEnum forCode(String theCode) { - QueryOutcomeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QueryOutcomeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QueryOutcomeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QueryOutcomeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QueryOutcomeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QueryOutcomeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireGroupNameEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireGroupNameEnum.java deleted file mode 100644 index 9c13cabd793..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireGroupNameEnum.java +++ /dev/null @@ -1,132 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuestionnaireGroupNameEnum { - - /** - * Display: Hair Color
- * Code Value: B.001 - */ - HAIR_COLOR("B.001", "http://hl7.org/fhir/questionnaire-group-name"), - - /** - * Display: Vision
- * Code Value: B.002 - */ - VISION("B.002", "http://hl7.org/fhir/questionnaire-group-name"), - - /** - * Display: Sleepwalker
- * Code Value: B.003 - */ - SLEEPWALKER("B.003", "http://hl7.org/fhir/questionnaire-group-name"), - - /** - * Display: Tooth extraction
- * Code Value: B.004 - */ - TOOTH_EXTRACTION("B.004", "http://hl7.org/fhir/questionnaire-group-name"), - - /** - * Display: Stutter
- * Code Value: B.005 - */ - STUTTER("B.005", "http://hl7.org/fhir/questionnaire-group-name"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/questionnaire-group-name - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/questionnaire-group-name"; - - /** - * Name for this Value Set: - * QuestionnaireGroupName - */ - public static final String VALUESET_NAME = "QuestionnaireGroupName"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuestionnaireGroupNameEnum next : QuestionnaireGroupNameEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuestionnaireGroupNameEnum forCode(String theCode) { - QuestionnaireGroupNameEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuestionnaireGroupNameEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuestionnaireGroupNameEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuestionnaireGroupNameEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuestionnaireGroupNameEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuestionnaireGroupNameEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireNameEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireNameEnum.java deleted file mode 100644 index b4ae32a20c3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireNameEnum.java +++ /dev/null @@ -1,120 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuestionnaireNameEnum { - - /** - * Display: Cancer Treatment Quality Questionnaire 2012
- * Code Value: CTQQ-2012 - */ - CANCER_TREATMENT_QUALITY_QUESTIONNAIRE_2012("CTQQ-2012", "http://hl7.org/fhir/questionnaire-name"), - - /** - * Display: Pre-admission standard Form A
- * Code Value: PA.form.A - */ - PRE_ADMISSION_STANDARD_FORM_A("PA.form.A", "http://hl7.org/fhir/questionnaire-name"), - - /** - * Display: Brazelton Neonatal Assessment Scale
- * Code Value: BNAS - */ - BRAZELTON_NEONATAL_ASSESSMENT_SCALE("BNAS", "http://hl7.org/fhir/questionnaire-name"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/questionnaire-name - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/questionnaire-name"; - - /** - * Name for this Value Set: - * QuestionnaireName - */ - public static final String VALUESET_NAME = "QuestionnaireName"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuestionnaireNameEnum next : QuestionnaireNameEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuestionnaireNameEnum forCode(String theCode) { - QuestionnaireNameEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuestionnaireNameEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuestionnaireNameEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuestionnaireNameEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuestionnaireNameEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuestionnaireNameEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireStatusEnum.java deleted file mode 100644 index e54d887fec6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/QuestionnaireStatusEnum.java +++ /dev/null @@ -1,150 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuestionnaireStatusEnum { - - /** - * Display: draft
- * Code Value: draft - * - * This Questionnaire is used as a template but the template is not ready for use or publication. - */ - DRAFT("draft", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: published
- * Code Value: published - * - * This Questionnaire is used as a template, is published and ready for use. - */ - PUBLISHED("published", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: retired
- * Code Value: retired - * - * This Questionnaire is used as a template but should no longer be used for new Questionnaires. - */ - RETIRED("retired", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: in progress
- * Code Value: in progress - * - * This Questionnaire has been filled out with answers, but changes or additions are still expected to be made to it. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: complete
- * Code Value: completed - * - * This Questionnaire has been filled out with answers, and the current content is regarded as definitive. - */ - COMPLETE("completed", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: amended
- * Code Value: amended - * - * This Questionnaire has been filled out with answers, then marked as complete, yet changes or additions have been made to it afterwards. - */ - AMENDED("amended", "http://hl7.org/fhir/questionnaire-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/questionnaire-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/questionnaire-status"; - - /** - * Name for this Value Set: - * QuestionnaireStatus - */ - public static final String VALUESET_NAME = "QuestionnaireStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuestionnaireStatusEnum next : QuestionnaireStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuestionnaireStatusEnum forCode(String theCode) { - QuestionnaireStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuestionnaireStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuestionnaireStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuestionnaireStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuestionnaireStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuestionnaireStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ReactionSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ReactionSeverityEnum.java deleted file mode 100644 index 6d812ad8fd6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ReactionSeverityEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ReactionSeverityEnum { - - /** - * Code Value: severe - * - * Severe complications arose due to the reaction. - */ - SEVERE("severe", "http://hl7.org/fhir/reactionSeverity"), - - /** - * Code Value: serious - * - * Serious inconvenience to the subject. - */ - SERIOUS("serious", "http://hl7.org/fhir/reactionSeverity"), - - /** - * Code Value: moderate - * - * Moderate inconvenience to the subject. - */ - MODERATE("moderate", "http://hl7.org/fhir/reactionSeverity"), - - /** - * Code Value: minor - * - * Minor inconvenience to the subject. - */ - MINOR("minor", "http://hl7.org/fhir/reactionSeverity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reactionSeverity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reactionSeverity"; - - /** - * Name for this Value Set: - * ReactionSeverity - */ - public static final String VALUESET_NAME = "ReactionSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ReactionSeverityEnum next : ReactionSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ReactionSeverityEnum forCode(String theCode) { - ReactionSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ReactionSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ReactionSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ReactionSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ReactionSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ReactionSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResourceProfileStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResourceProfileStatusEnum.java deleted file mode 100644 index 82473d28661..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResourceProfileStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceProfileStatusEnum { - - /** - * Code Value: draft - * - * This profile is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/resource-profile-status"), - - /** - * Code Value: active - * - * This profile is ready for normal use. - */ - ACTIVE("active", "http://hl7.org/fhir/resource-profile-status"), - - /** - * Code Value: retired - * - * This profile has been deprecated, withdrawn or superseded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/resource-profile-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-profile-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-profile-status"; - - /** - * Name for this Value Set: - * ResourceProfileStatus - */ - public static final String VALUESET_NAME = "ResourceProfileStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceProfileStatusEnum next : ResourceProfileStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceProfileStatusEnum forCode(String theCode) { - ResourceProfileStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceProfileStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceProfileStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceProfileStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceProfileStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceProfileStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResourceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResourceTypeEnum.java deleted file mode 100644 index 3c107718fdb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResourceTypeEnum.java +++ /dev/null @@ -1,550 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceTypeEnum { - - /** - * Code Value: AdverseReaction - * - * Records an unexpected reaction suspected to be related to the exposure of the reaction subject to a substance. - */ - ADVERSEREACTION("AdverseReaction", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Alert - * - * Prospective warnings of potential issues when providing care to the patient. - */ - ALERT("Alert", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: AllergyIntolerance - * - * Indicates the patient has a susceptibility to an adverse reaction upon exposure to a specified substance. - */ - ALLERGYINTOLERANCE("AllergyIntolerance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: CarePlan - * - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - */ - CAREPLAN("CarePlan", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Composition - * - * A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. - */ - COMPOSITION("Composition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ConceptMap - * - * A statement of relationships from one set of concepts to one or more other concept systems. - */ - CONCEPTMAP("ConceptMap", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Condition - * - * Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary. - */ - CONDITION("Condition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Conformance - * - * A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation. - */ - CONFORMANCE("Conformance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Device - * - * This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. - */ - DEVICE("Device", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DeviceObservationReport - * - * Describes the data produced by a device at a point in time. - */ - DEVICEOBSERVATIONREPORT("DeviceObservationReport", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DiagnosticOrder - * - * A request for a diagnostic investigation service to be performed. - */ - DIAGNOSTICORDER("DiagnosticOrder", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DiagnosticReport - * - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports. - */ - DIAGNOSTICREPORT("DiagnosticReport", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DocumentManifest - * - * A manifest that defines a set of documents. - */ - DOCUMENTMANIFEST("DocumentManifest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DocumentReference - * - * A reference to a document. - */ - DOCUMENTREFERENCE("DocumentReference", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Encounter - * - * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. - */ - ENCOUNTER("Encounter", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: FamilyHistory - * - * Significant health events and conditions for people related to the subject relevant in the context of care for the subject. - */ - FAMILYHISTORY("FamilyHistory", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Group - * - * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization. - */ - GROUP("Group", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ImagingStudy - * - * Manifest of a set of images produced in study. The set of images may include every image in the study, or it may be an incomplete sample, such as a list of key images. - */ - IMAGINGSTUDY("ImagingStudy", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Immunization - * - * Immunization event information. - */ - IMMUNIZATION("Immunization", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ImmunizationRecommendation - * - * A patient's point-of-time immunization status and recommendation with optional supporting justification. - */ - IMMUNIZATIONRECOMMENDATION("ImmunizationRecommendation", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: List - * - * A set of information summarized from a list of other resources. - */ - LIST("List", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Location - * - * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated. - */ - LOCATION("Location", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Media - * - * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference. - */ - MEDIA("Media", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Medication - * - * Primarily used for identification and definition of Medication, but also covers ingredients and packaging. - */ - MEDICATION("Medication", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationAdministration - * - * Describes the event of a patient being given a dose of a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. - */ - MEDICATIONADMINISTRATION("MedicationAdministration", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationDispense - * - * Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication. - */ - MEDICATIONDISPENSE("MedicationDispense", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationPrescription - * - * An order for both supply of the medication and the instructions for administration of the medicine to a patient. - */ - MEDICATIONPRESCRIPTION("MedicationPrescription", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationStatement - * - * A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician. - */ - MEDICATIONSTATEMENT("MedicationStatement", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MessageHeader - * - * The header for a message exchange that is either requesting or responding to an action. The resource(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. - */ - MESSAGEHEADER("MessageHeader", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Observation - * - * Measurements and simple assertions made about a patient, device or other subject. - */ - OBSERVATION("Observation", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OperationOutcome - * - * A collection of error, warning or information messages that result from a system action. - */ - OPERATIONOUTCOME("OperationOutcome", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Order - * - * A request to perform an action. - */ - ORDER("Order", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OrderResponse - * - * A response to an order. - */ - ORDERRESPONSE("OrderResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Organization - * - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc. - */ - ORGANIZATION("Organization", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Other - * - * Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest. - */ - OTHER("Other", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Patient - * - * Demographics and other administrative information about a person or animal receiving care or other health-related services. - */ - PATIENT("Patient", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Practitioner - * - * A person who is directly or indirectly involved in the provisioning of healthcare. - */ - PRACTITIONER("Practitioner", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Procedure - * - * An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy. - */ - PROCEDURE("Procedure", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Profile - * - * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions. - */ - PROFILE("Profile", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Provenance - * - * Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance. - */ - PROVENANCE("Provenance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Query - * - * A description of a query with a set of parameters. - */ - QUERY("Query", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Questionnaire - * - * A structured set of questions and their answers. The Questionnaire may contain questions, answers or both. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIRE("Questionnaire", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: RelatedPerson - * - * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. - */ - RELATEDPERSON("RelatedPerson", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: SecurityEvent - * - * A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage. - */ - SECURITYEVENT("SecurityEvent", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Specimen - * - * Sample for analysis. - */ - SPECIMEN("Specimen", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Substance - * - * A homogeneous material with a definite composition. - */ - SUBSTANCE("Substance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Supply - * - * A supply - a request for something, and provision of what is supplied. - */ - SUPPLY("Supply", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ValueSet - * - * A value set specifies a set of codes drawn from one or more code systems. - */ - VALUESET("ValueSet", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Appointment - * - * A scheduled appointment for a patient and/or practitioner(s) where a service may take place. - */ - APPOINTMENT("Appointment", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: AppointmentResponse - * - * A response to a scheduled appointment for a patient and/or practitioner(s) - */ - APPOINTMENTRESPONSE("AppointmentResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Availability - * - * A container for slot(s) of time that may be available for booking appointments - */ - AVAILABILITY("Availability", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Binary - * - * A binary resource - */ - BINARY("Binary", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Claim - * - * A claim - */ - CLAIM("Claim", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Coverage - * - * Insurance or medical plan - */ - COVERAGE("Coverage", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: GeneExpression - * - * Resource that records the patient's expression of a gene - */ - GENEEXPRESSION("GeneExpression", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: GeneticAnalysis - * - * Analysis of a patient's genetic test - */ - GENETICANALYSIS("GeneticAnalysis", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: GVFMeta - * - * Meta data of a GVF file - */ - GVFMETA("GVFMeta", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: GVFVariant - * - * A segment of a GVF file - */ - GVFVARIANT("GVFVariant", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Microarray - * - * A resource that displays result of a microarray - */ - MICROARRAY("Microarray", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Remittance - * - * A remittance - */ - REMITTANCE("Remittance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: SequencingAnalysis - * - * Computational analysis on a patient's genetic raw file - */ - SEQUENCINGANALYSIS("SequencingAnalysis", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: SequencingLab - * - * A lab for sequencing - */ - SEQUENCINGLAB("SequencingLab", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Slot - * - * A slot of time that may be available for booking appointments - */ - SLOT("Slot", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: User - * - * A user authorized to use the system - */ - USER("User", "http://hl7.org/fhir/resource-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-types"; - - /** - * Name for this Value Set: - * ResourceType - */ - public static final String VALUESET_NAME = "ResourceType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceTypeEnum next : ResourceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceTypeEnum forCode(String theCode) { - ResourceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResponseTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResponseTypeEnum.java deleted file mode 100644 index 2197789d6c2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ResponseTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResponseTypeEnum { - - /** - * Code Value: ok - * - * The message was accepted and processed without error. - */ - OK("ok", "http://hl7.org/fhir/response-code"), - - /** - * Code Value: transient-error - * - * Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required. - */ - TRANSIENT_ERROR("transient-error", "http://hl7.org/fhir/response-code"), - - /** - * Code Value: fatal-error - * - * The message was rejected because of some content in it. There is no point in re-sending without change. The response narrative SHALL describe what the issue is. - */ - FATAL_ERROR("fatal-error", "http://hl7.org/fhir/response-code"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/response-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/response-code"; - - /** - * Name for this Value Set: - * ResponseType - */ - public static final String VALUESET_NAME = "ResponseType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResponseTypeEnum next : ResponseTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResponseTypeEnum forCode(String theCode) { - ResponseTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResponseTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResponseTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResponseTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResponseTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResponseTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulConformanceModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulConformanceModeEnum.java deleted file mode 100644 index 3c052f5d238..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulConformanceModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RestfulConformanceModeEnum { - - /** - * Code Value: client - * - * The application acts as a server for this resource. - */ - CLIENT("client", "http://hl7.org/fhir/restful-conformance-mode"), - - /** - * Code Value: server - * - * The application acts as a client for this resource. - */ - SERVER("server", "http://hl7.org/fhir/restful-conformance-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/restful-conformance-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/restful-conformance-mode"; - - /** - * Name for this Value Set: - * RestfulConformanceMode - */ - public static final String VALUESET_NAME = "RestfulConformanceMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RestfulConformanceModeEnum next : RestfulConformanceModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RestfulConformanceModeEnum forCode(String theCode) { - RestfulConformanceModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RestfulConformanceModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RestfulConformanceModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RestfulConformanceModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RestfulConformanceModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RestfulConformanceModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulOperationSystemEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulOperationSystemEnum.java deleted file mode 100644 index 4194c55fe53..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulOperationSystemEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RestfulOperationSystemEnum { - - /** - * Code Value: transaction - */ - TRANSACTION("transaction", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: search-system - */ - SEARCH_SYSTEM("search-system", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: history-system - */ - HISTORY_SYSTEM("history-system", "http://hl7.org/fhir/restful-operation"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/system-restful-operation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/system-restful-operation"; - - /** - * Name for this Value Set: - * RestfulOperationSystem - */ - public static final String VALUESET_NAME = "RestfulOperationSystem"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RestfulOperationSystemEnum next : RestfulOperationSystemEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RestfulOperationSystemEnum forCode(String theCode) { - RestfulOperationSystemEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RestfulOperationSystemEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RestfulOperationSystemEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RestfulOperationSystemEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RestfulOperationSystemEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RestfulOperationSystemEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulOperationTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulOperationTypeEnum.java deleted file mode 100644 index e5b0acd85c0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulOperationTypeEnum.java +++ /dev/null @@ -1,147 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RestfulOperationTypeEnum { - - /** - * Code Value: read - */ - READ("read", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: vread - */ - VREAD("vread", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: update - */ - UPDATE("update", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: delete - */ - DELETE("delete", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: history-instance - */ - HISTORY_INSTANCE("history-instance", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: validate - */ - VALIDATE("validate", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: history-type - */ - HISTORY_TYPE("history-type", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: create - */ - CREATE("create", "http://hl7.org/fhir/restful-operation"), - - /** - * Code Value: search-type - */ - SEARCH_TYPE("search-type", "http://hl7.org/fhir/restful-operation"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/type-restful-operation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/type-restful-operation"; - - /** - * Name for this Value Set: - * RestfulOperationType - */ - public static final String VALUESET_NAME = "RestfulOperationType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RestfulOperationTypeEnum next : RestfulOperationTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RestfulOperationTypeEnum forCode(String theCode) { - RestfulOperationTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RestfulOperationTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RestfulOperationTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RestfulOperationTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RestfulOperationTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RestfulOperationTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulSecurityServiceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulSecurityServiceEnum.java deleted file mode 100644 index 582964e9484..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/RestfulSecurityServiceEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RestfulSecurityServiceEnum { - - /** - * Code Value: OAuth - * - * OAuth (see oauth.net). - */ - OAUTH("OAuth", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: OAuth2 - * - * OAuth version 2 (see oauth.net). - */ - OAUTH2("OAuth2", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: NTLM - * - * Microsoft NTLM Authentication. - */ - NTLM("NTLM", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: Basic - * - * Basic authentication defined in HTTP specification. - */ - BASIC("Basic", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: Kerberos - * - * see http://www.ietf.org/rfc/rfc4120.txt. - */ - KERBEROS("Kerberos", "http://hl7.org/fhir/restful-security-service"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/restful-security-service - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/restful-security-service"; - - /** - * Name for this Value Set: - * RestfulSecurityService - */ - public static final String VALUESET_NAME = "RestfulSecurityService"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RestfulSecurityServiceEnum next : RestfulSecurityServiceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RestfulSecurityServiceEnum forCode(String theCode) { - RestfulSecurityServiceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RestfulSecurityServiceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RestfulSecurityServiceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RestfulSecurityServiceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RestfulSecurityServiceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RestfulSecurityServiceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SearchParamTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SearchParamTypeEnum.java deleted file mode 100644 index 954f60aab09..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SearchParamTypeEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SearchParamTypeEnum { - - /** - * Code Value: number - * - * Search parameter SHALL be a number (a whole number, or a decimal). - */ - NUMBER("number", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: date - * - * Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported. - */ - DATE("date", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: string - * - * Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces. - */ - STRING("string", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: token - * - * Search parameter on a coded element or identifier. May be used to search through the text, displayname, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a "|", depending on the modifier used. - */ - TOKEN("token", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: reference - * - * A reference to another resource. - */ - REFERENCE("reference", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: composite - * - * A composite search parameter that combines a search on two values together. - */ - COMPOSITE("composite", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: quantity - * - * A search parameter that searches on a quantity. - */ - QUANTITY("quantity", "http://hl7.org/fhir/search-param-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/search-param-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/search-param-type"; - - /** - * Name for this Value Set: - * SearchParamType - */ - public static final String VALUESET_NAME = "SearchParamType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SearchParamTypeEnum next : SearchParamTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SearchParamTypeEnum forCode(String theCode) { - SearchParamTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SearchParamTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SearchParamTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SearchParamTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SearchParamTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SearchParamTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventActionEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventActionEnum.java deleted file mode 100644 index b1ed7cf2cd7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventActionEnum.java +++ /dev/null @@ -1,142 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventActionEnum { - - /** - * Display: Create
- * Code Value: C - * - * Create a new database object, such as Placing an Order. - */ - CREATE("C", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Read/View/Print
- * Code Value: R - * - * Display or print data, such as a Doctor Census. - */ - READ_VIEW_PRINT("R", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Update
- * Code Value: U - * - * Update data, such as Revise Patient Information. - */ - UPDATE("U", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Delete
- * Code Value: D - * - * Delete items, such as a doctor master file record. - */ - DELETE("D", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Execute
- * Code Value: E - * - * Perform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation. - */ - EXECUTE("E", "http://hl7.org/fhir/security-event-action"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-action - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-action"; - - /** - * Name for this Value Set: - * SecurityEventAction - */ - public static final String VALUESET_NAME = "SecurityEventAction"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventActionEnum next : SecurityEventActionEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventActionEnum forCode(String theCode) { - SecurityEventActionEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventActionEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventActionEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventActionEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventActionEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventActionEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectLifecycleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectLifecycleEnum.java deleted file mode 100644 index 2c8219849ad..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectLifecycleEnum.java +++ /dev/null @@ -1,207 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectLifecycleEnum { - - /** - * Code Value: 1 - * - * Origination / Creation. - */ - ORIGINATION_OR_CREATION("1", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 2 - * - * Import / Copy from original. - */ - IMPORT_OR_COPY_FROM_ORIGINAL("2", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 3 - * - * Amendment. - */ - AMENDMENT("3", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 4 - * - * Verification. - */ - VERIFICATION("4", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 5 - * - * Translation. - */ - TRANSLATION("5", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 6 - * - * Access / Use. - */ - ACCESS_OR_USE("6", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 7 - * - * De-identification. - */ - DE_IDENTIFICATION("7", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 8 - * - * Aggregation, summarization, derivation. - */ - AGGREGATION("8", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 9 - * - * Report. - */ - REPORT("9", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 10 - * - * Export / Copy to target. - */ - EXPORT_OR_COPY_TO_TARGET("10", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 11 - * - * Disclosure. - */ - DISCLOSURE("11", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 12 - * - * Receipt of disclosure. - */ - RECEIPT_OF_DISCLOSURE("12", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 13 - * - * Archiving. - */ - ARCHIVING("13", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 14 - * - * Logical deletion. - */ - LOGICAL_DELETION("14", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 15 - * - * Permanent erasure / Physical destruction. - */ - PERMANENT_ERASURE_OR_PHYSICAL_DESTRUCTION("15", "http://hl7.org/fhir/object-lifecycle"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-lifecycle - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-lifecycle"; - - /** - * Name for this Value Set: - * SecurityEventObjectLifecycle - */ - public static final String VALUESET_NAME = "SecurityEventObjectLifecycle"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectLifecycleEnum next : SecurityEventObjectLifecycleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectLifecycleEnum forCode(String theCode) { - SecurityEventObjectLifecycleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectLifecycleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectLifecycleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectLifecycleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectLifecycleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectLifecycleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectRoleEnum.java deleted file mode 100644 index b9b06e787c1..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectRoleEnum.java +++ /dev/null @@ -1,294 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectRoleEnum { - - /** - * Display: Patient
- * Code Value: 1 - * - * This object is the patient that is the subject of care related to this event. It is identifiable by patient ID or equivalent. The patient may be either human or animal. - */ - PATIENT("1", "http://hl7.org/fhir/object-role"), - - /** - * Display: Location
- * Code Value: 2 - * - * This is a location identified as related to the event. This is usually the location where the event took place. Note that for shipping, the usual events are arrival at a location or departure from a location. - */ - LOCATION("2", "http://hl7.org/fhir/object-role"), - - /** - * Display: Report
- * Code Value: 3 - * - * This object is any kind of persistent document created as a result of the event. This could be a paper report, film, electronic report, DICOM Study, etc. Issues related to medical records life cycle management are conveyed elsewhere. - */ - REPORT("3", "http://hl7.org/fhir/object-role"), - - /** - * Display: Resource
- * Code Value: 4 - * - * A logical object related to the event. (Deprecated). - */ - RESOURCE("4", "http://hl7.org/fhir/object-role"), - - /** - * Display: Master file
- * Code Value: 5 - * - * This is any configurable file used to control creation of documents. Examples include the objects maintained by the HL7 Master File transactions, Value Sets, etc. - */ - MASTER_FILE("5", "http://hl7.org/fhir/object-role"), - - /** - * Display: User
- * Code Value: 6 - * - * A human participant not otherwise identified by some other category. - */ - USER("6", "http://hl7.org/fhir/object-role"), - - /** - * Display: List
- * Code Value: 7 - * - * (deprecated). - */ - LIST("7", "http://hl7.org/fhir/object-role"), - - /** - * Display: Doctor
- * Code Value: 8 - * - * Typically a licensed person who is providing or performing care related to the event, generally a physician. The key distinction between doctor and practitioner is with regards to their role, not the licensing. The doctor is the human who actually performed the work. The practitioner is the human or organization that is responsible for the work. - */ - DOCTOR("8", "http://hl7.org/fhir/object-role"), - - /** - * Display: Subscriber
- * Code Value: 9 - * - * A person or system that is being notified as part of the event. This is relevant in situations where automated systems provide notifications to other parties when an event took place. - */ - SUBSCRIBER("9", "http://hl7.org/fhir/object-role"), - - /** - * Display: Guarantor
- * Code Value: 10 - * - * Insurance company, or any other organization who accepts responsibility for paying for the healthcare event. - */ - GUARANTOR("10", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security User Entity
- * Code Value: 11 - * - * A person or active system object involved in the event with a security role. - */ - SECURITY_USER_ENTITY("11", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security User Group
- * Code Value: 12 - * - * A person or system object involved in the event with the authority to modify security roles of other objects. - */ - SECURITY_USER_GROUP("12", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security Resource
- * Code Value: 13 - * - * A passive object, such as a role table, that is relevant to the event. - */ - SECURITY_RESOURCE("13", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security Granularity Definition
- * Code Value: 14 - * - * (deprecated) Relevant to certain RBAC security methodologies. - */ - SECURITY_GRANULARITY_DEFINITION("14", "http://hl7.org/fhir/object-role"), - - /** - * Display: Practitioner
- * Code Value: 15 - * - * Any person or organization responsible for providing care. This encompasses all forms of care, licensed or otherwise, and all sorts of teams and care groups. Note, the distinction between practitioners and the doctor that actually provided the care to the patient. - */ - PRACTITIONER("15", "http://hl7.org/fhir/object-role"), - - /** - * Display: Data Destination
- * Code Value: 16 - * - * The source or destination for data transfer, when it does not match some other role. - */ - DATA_DESTINATION("16", "http://hl7.org/fhir/object-role"), - - /** - * Display: Data Repository
- * Code Value: 17 - * - * A source or destination for data transfer, that acts as an archive, database, or similar role. - */ - DATA_REPOSITORY("17", "http://hl7.org/fhir/object-role"), - - /** - * Display: Schedule
- * Code Value: 18 - * - * An object that holds schedule information. This could be an appointment book, availability information, etc. - */ - SCHEDULE("18", "http://hl7.org/fhir/object-role"), - - /** - * Display: Customer
- * Code Value: 19 - * - * An organization or person that is the recipient of services. This could be an organization that is buying services for a patient, or a person that is buying services for an animal. - */ - CUSTOMER("19", "http://hl7.org/fhir/object-role"), - - /** - * Display: Job
- * Code Value: 20 - * - * An order, task, work item, procedure step, or other description of work to be performed. E.g., a particular instance of an MPPS. - */ - JOB("20", "http://hl7.org/fhir/object-role"), - - /** - * Display: Job Stream
- * Code Value: 21 - * - * A list of jobs or a system that provides lists of jobs. E.g., an MWL SCP. - */ - JOB_STREAM("21", "http://hl7.org/fhir/object-role"), - - /** - * Display: Table
- * Code Value: 22 - * - * (Deprecated). - */ - TABLE("22", "http://hl7.org/fhir/object-role"), - - /** - * Display: Routing Criteria
- * Code Value: 23 - * - * An object that specifies or controls the routing or delivery of items. For example, a distribution list is the routing criteria for mail. The items delivered may be documents, jobs, or other objects. - */ - ROUTING_CRITERIA("23", "http://hl7.org/fhir/object-role"), - - /** - * Display: Query
- * Code Value: 24 - * - * The contents of a query. This is used to capture the contents of any kind of query. For security surveillance purposes knowing the queries being made is very important. - */ - QUERY("24", "http://hl7.org/fhir/object-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-role"; - - /** - * Name for this Value Set: - * SecurityEventObjectRole - */ - public static final String VALUESET_NAME = "SecurityEventObjectRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectRoleEnum next : SecurityEventObjectRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectRoleEnum forCode(String theCode) { - SecurityEventObjectRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectSensitivityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectSensitivityEnum.java deleted file mode 100644 index ef3211c8d1f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectSensitivityEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectSensitivityEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-sensitivity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-sensitivity"; - - /** - * Name for this Value Set: - * Security Event Object Sensitivity - */ - public static final String VALUESET_NAME = "Security Event Object Sensitivity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectSensitivityEnum next : SecurityEventObjectSensitivityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectSensitivityEnum forCode(String theCode) { - SecurityEventObjectSensitivityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectSensitivityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectSensitivityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectSensitivityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectSensitivityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectSensitivityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectTypeEnum.java deleted file mode 100644 index 89544043bdb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventObjectTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectTypeEnum { - - /** - * Code Value: 1 - * - * Person. - */ - PERSON("1", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 2 - * - * System Object. - */ - SYSTEM_OBJECT("2", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 3 - * - * Organization. - */ - ORGANIZATION("3", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 4 - * - * Other. - */ - OTHER("4", "http://hl7.org/fhir/object-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-type"; - - /** - * Name for this Value Set: - * SecurityEventObjectType - */ - public static final String VALUESET_NAME = "SecurityEventObjectType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectTypeEnum next : SecurityEventObjectTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectTypeEnum forCode(String theCode) { - SecurityEventObjectTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventOutcomeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventOutcomeEnum.java deleted file mode 100644 index 138f34c8a22..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventOutcomeEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventOutcomeEnum { - - /** - * Display: Success
- * Code Value: 0 - * - * The operation completed successfully (whether with warnings or not). - */ - SUCCESS("0", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Minor failure
- * Code Value: 4 - * - * The action was not successful due to some kind of catered for error (often equivalent to an HTTP 400 response). - */ - MINOR_FAILURE("4", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Serious failure
- * Code Value: 8 - * - * The action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response). - */ - SERIOUS_FAILURE("8", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Major failure
- * Code Value: 12 - * - * An error of such magnitude occurred that the system is not longer available for use (i.e. the system died). - */ - MAJOR_FAILURE("12", "http://hl7.org/fhir/security-event-outcome"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-outcome - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-outcome"; - - /** - * Name for this Value Set: - * SecurityEventOutcome - */ - public static final String VALUESET_NAME = "SecurityEventOutcome"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventOutcomeEnum next : SecurityEventOutcomeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventOutcomeEnum forCode(String theCode) { - SecurityEventOutcomeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventOutcomeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventOutcomeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventOutcomeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventOutcomeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventOutcomeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventParticipantNetworkTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventParticipantNetworkTypeEnum.java deleted file mode 100644 index 5c5818422f8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventParticipantNetworkTypeEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventParticipantNetworkTypeEnum { - - /** - * Code Value: 1 - * - * Machine Name, including DNS name. - */ - MACHINE_NAME("1", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 2 - * - * IP Address. - */ - IP_ADDRESS("2", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 3 - * - * Telephone Number. - */ - TELEPHONE_NUMBER("3", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 4 - * - * Email address. - */ - EMAIL_ADDRESS("4", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 5 - * - * URI (User directory, HTTP-PUT, ftp, etc.). - */ - URI("5", "http://hl7.org/fhir/network-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/network-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/network-type"; - - /** - * Name for this Value Set: - * SecurityEventParticipantNetworkType - */ - public static final String VALUESET_NAME = "SecurityEventParticipantNetworkType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventParticipantNetworkTypeEnum next : SecurityEventParticipantNetworkTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventParticipantNetworkTypeEnum forCode(String theCode) { - SecurityEventParticipantNetworkTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventParticipantNetworkTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventParticipantNetworkTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventParticipantNetworkTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventParticipantNetworkTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventParticipantNetworkTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventSourceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventSourceTypeEnum.java deleted file mode 100644 index f353abf2950..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SecurityEventSourceTypeEnum.java +++ /dev/null @@ -1,174 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventSourceTypeEnum { - - /** - * Display: User Device
- * Code Value: 1 - * - * End-user display device, diagnostic device - */ - USER_DEVICE("1", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Data Interface
- * Code Value: 2 - * - * Data acquisition device or instrument - */ - DATA_INTERFACE("2", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Web Server
- * Code Value: 3 - * - * Web Server process or thread - */ - WEB_SERVER("3", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Application Server
- * Code Value: 4 - * - * Application Server process or thread - */ - APPLICATION_SERVER("4", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Database Server
- * Code Value: 5 - * - * Database Server process or thread - */ - DATABASE_SERVER("5", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Security Server
- * Code Value: 6 - * - * Security server, e.g., a domain controller - */ - SECURITY_SERVER("6", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Network Device
- * Code Value: 7 - * - * ISO level 1-3 network component - */ - NETWORK_DEVICE("7", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Network Router
- * Code Value: 8 - * - * ISO level 4-6 operating software - */ - NETWORK_ROUTER("8", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Other
- * Code Value: 9 - * - * other kind of device (defined by DICOM, but some other code/system can be used) - */ - OTHER("9", "http://hl7.org/fhir/security-source-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-source-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-source-type"; - - /** - * Name for this Value Set: - * Security Event Source Type - */ - public static final String VALUESET_NAME = "Security Event Source Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventSourceTypeEnum next : SecurityEventSourceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventSourceTypeEnum forCode(String theCode) { - SecurityEventSourceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventSourceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventSourceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventSourceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventSourceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventSourceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SensitivityStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SensitivityStatusEnum.java deleted file mode 100644 index 3aaffa01a7d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SensitivityStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SensitivityStatusEnum { - - /** - * Code Value: suspected - * - * A suspected sensitivity to a substance. - */ - SUSPECTED("suspected", "http://hl7.org/fhir/sensitivitystatus"), - - /** - * Code Value: confirmed - * - * The sensitivity has been confirmed and is active. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/sensitivitystatus"), - - /** - * Code Value: refuted - * - * The sensitivity has been shown to never have existed. - */ - REFUTED("refuted", "http://hl7.org/fhir/sensitivitystatus"), - - /** - * Code Value: resolved - * - * The sensitivity used to exist but no longer does. - */ - RESOLVED("resolved", "http://hl7.org/fhir/sensitivitystatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/sensitivitystatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/sensitivitystatus"; - - /** - * Name for this Value Set: - * SensitivityStatus - */ - public static final String VALUESET_NAME = "SensitivityStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SensitivityStatusEnum next : SensitivityStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SensitivityStatusEnum forCode(String theCode) { - SensitivityStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SensitivityStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SensitivityStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SensitivityStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SensitivityStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SensitivityStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SensitivityTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SensitivityTypeEnum.java deleted file mode 100644 index 64ee424c68a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SensitivityTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SensitivityTypeEnum { - - /** - * Code Value: allergy - * - * Allergic Reaction. - */ - ALLERGY("allergy", "http://hl7.org/fhir/sensitivitytype"), - - /** - * Code Value: intolerance - * - * Non-Allergic Reaction. - */ - INTOLERANCE("intolerance", "http://hl7.org/fhir/sensitivitytype"), - - /** - * Code Value: unknown - * - * Unknown type. - */ - UNKNOWN("unknown", "http://hl7.org/fhir/sensitivitytype"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/sensitivitytype - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/sensitivitytype"; - - /** - * Name for this Value Set: - * SensitivityType - */ - public static final String VALUESET_NAME = "SensitivityType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SensitivityTypeEnum next : SensitivityTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SensitivityTypeEnum forCode(String theCode) { - SensitivityTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SensitivityTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SensitivityTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SensitivityTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SensitivityTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SensitivityTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SlicingRulesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SlicingRulesEnum.java deleted file mode 100644 index 607578e31f2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SlicingRulesEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SlicingRulesEnum { - - /** - * Code Value: closed - * - * No additional content is allowed other than that described by the slices in this profile. - */ - CLOSED("closed", "http://hl7.org/fhir/resource-slicing-rules"), - - /** - * Code Value: open - * - * Additional content is allowed anywhere in the list. - */ - OPEN("open", "http://hl7.org/fhir/resource-slicing-rules"), - - /** - * Code Value: openAtEnd - * - * Additional content is allowed, but only at the end of the list. - */ - OPENATEND("openAtEnd", "http://hl7.org/fhir/resource-slicing-rules"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-slicing-rules - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-slicing-rules"; - - /** - * Name for this Value Set: - * SlicingRules - */ - public static final String VALUESET_NAME = "SlicingRules"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SlicingRulesEnum next : SlicingRulesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SlicingRulesEnum forCode(String theCode) { - SlicingRulesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SlicingRulesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SlicingRulesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SlicingRulesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SlicingRulesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SlicingRulesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SpecimenCollectionMethodEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SpecimenCollectionMethodEnum.java deleted file mode 100644 index 8bfd477920e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SpecimenCollectionMethodEnum.java +++ /dev/null @@ -1,167 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SpecimenCollectionMethodEnum { - - /** - * Code Value: 119295008 - */ - _119295008("119295008", "http://snomed.info/sct"), - - /** - * Code Value: 413651001 - */ - _413651001("413651001", "http://snomed.info/sct"), - - /** - * Code Value: 360020006 - */ - _360020006("360020006", "http://snomed.info/sct"), - - /** - * Code Value: 430823004 - */ - _430823004("430823004", "http://snomed.info/sct"), - - /** - * Code Value: 16404004 - */ - _16404004("16404004", "http://snomed.info/sct"), - - /** - * Code Value: 67889009 - */ - _67889009("67889009", "http://snomed.info/sct"), - - /** - * Code Value: 29240004 - */ - _29240004("29240004", "http://snomed.info/sct"), - - /** - * Code Value: 45710003 - */ - _45710003("45710003", "http://snomed.info/sct"), - - /** - * Code Value: 7800008 - */ - _7800008("7800008", "http://snomed.info/sct"), - - /** - * Code Value: 258431006 - */ - _258431006("258431006", "http://snomed.info/sct"), - - /** - * Code Value: 20255002 - */ - _20255002("20255002", "http://snomed.info/sct"), - - /** - * Code Value: 386147002 - */ - _386147002("386147002", "http://snomed.info/sct"), - - /** - * Code Value: 278450005 - */ - _278450005("278450005", "http://snomed.info/sct"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/specimen-collection-method - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/specimen-collection-method"; - - /** - * Name for this Value Set: - * SpecimenCollectionMethod - */ - public static final String VALUESET_NAME = "SpecimenCollectionMethod"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SpecimenCollectionMethodEnum next : SpecimenCollectionMethodEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SpecimenCollectionMethodEnum forCode(String theCode) { - SpecimenCollectionMethodEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SpecimenCollectionMethodEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SpecimenCollectionMethodEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SpecimenCollectionMethodEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SpecimenCollectionMethodEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SpecimenCollectionMethodEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SpecimenTreatmentProcedureEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SpecimenTreatmentProcedureEnum.java deleted file mode 100644 index c5c217ecf94..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SpecimenTreatmentProcedureEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SpecimenTreatmentProcedureEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/specimen-treatment-procedure - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/specimen-treatment-procedure"; - - /** - * Name for this Value Set: - * SpecimenTreatmentProcedure - */ - public static final String VALUESET_NAME = "SpecimenTreatmentProcedure"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SpecimenTreatmentProcedureEnum next : SpecimenTreatmentProcedureEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SpecimenTreatmentProcedureEnum forCode(String theCode) { - SpecimenTreatmentProcedureEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SpecimenTreatmentProcedureEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SpecimenTreatmentProcedureEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SpecimenTreatmentProcedureEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SpecimenTreatmentProcedureEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SpecimenTreatmentProcedureEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SubstanceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SubstanceTypeEnum.java deleted file mode 100644 index d393c5f887a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SubstanceTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SubstanceTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/substance-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/substance-type"; - - /** - * Name for this Value Set: - * Substance Type - */ - public static final String VALUESET_NAME = "Substance Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SubstanceTypeEnum next : SubstanceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SubstanceTypeEnum forCode(String theCode) { - SubstanceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SubstanceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SubstanceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SubstanceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SubstanceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SubstanceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyDispenseStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyDispenseStatusEnum.java deleted file mode 100644 index 1b5cd98b084..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyDispenseStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyDispenseStatusEnum { - - /** - * Display: In Progress
- * Code Value: in progress - * - * Supply has been requested, but not dispensed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - /** - * Display: Dispensed
- * Code Value: dispensed - * - * Supply is part of a pharmacy order and has been dispensed. - */ - DISPENSED("dispensed", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - /** - * Display: Abandoned
- * Code Value: abandoned - * - * Dispensing was not completed. - */ - ABANDONED("abandoned", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-supply-dispense-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-supply-dispense-status"; - - /** - * Name for this Value Set: - * SupplyDispenseStatus - */ - public static final String VALUESET_NAME = "SupplyDispenseStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyDispenseStatusEnum next : SupplyDispenseStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyDispenseStatusEnum forCode(String theCode) { - SupplyDispenseStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyDispenseStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyDispenseStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyDispenseStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyDispenseStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyDispenseStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyItemTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyItemTypeEnum.java deleted file mode 100644 index 94483807b87..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyItemTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyItemTypeEnum { - - /** - * Display: Central Supply
- * Code Value: medication - * - * Supply is a kind of medication. - */ - CENTRAL_SUPPLY("medication", "http://hl7.org/fhir/supply-item-type"), - - /** - * Display: Device
- * Code Value: device - * - * What is supplied (or requested) is a device - */ - DEVICE("device", "http://hl7.org/fhir/supply-item-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/supply-item - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/supply-item"; - - /** - * Name for this Value Set: - * Supply Item Type - */ - public static final String VALUESET_NAME = "Supply Item Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyItemTypeEnum next : SupplyItemTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyItemTypeEnum forCode(String theCode) { - SupplyItemTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyItemTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyItemTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyItemTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyItemTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyItemTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyStatusEnum.java deleted file mode 100644 index 19e524d1a40..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyStatusEnum.java +++ /dev/null @@ -1,142 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyStatusEnum { - - /** - * Display: Requested
- * Code Value: requested - * - * Supply has been requested, but not dispensed. - */ - REQUESTED("requested", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Dispensed
- * Code Value: dispensed - * - * Supply is part of a pharmacy order and has been dispensed. - */ - DISPENSED("dispensed", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Received
- * Code Value: received - * - * Supply has been received by the requestor. - */ - RECEIVED("received", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Failed
- * Code Value: failed - * - * The supply will not be completed because the supplier was unable or unwilling to supply the item. - */ - FAILED("failed", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Cancelled
- * Code Value: cancelled - * - * The orderer of the supply cancelled the request. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/valueset-supply-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-supply-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-supply-status"; - - /** - * Name for this Value Set: - * SupplyStatus - */ - public static final String VALUESET_NAME = "SupplyStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyStatusEnum next : SupplyStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyStatusEnum forCode(String theCode) { - SupplyStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyTypeEnum.java deleted file mode 100644 index 36197fbc1e4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/SupplyTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyTypeEnum { - - /** - * Display: Central Supply
- * Code Value: central - * - * Supply is stored and requested from central supply - */ - CENTRAL_SUPPLY("central", "http://hl7.org/fhir/supply-type"), - - /** - * Display: Non-Stock
- * Code Value: nonstock - * - * Supply is not onsite and must be requested from an outside vendor using a non-stock requisition - */ - NON_STOCK("nonstock", "http://hl7.org/fhir/supply-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/supply-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/supply-type"; - - /** - * Name for this Value Set: - * Supply Type - */ - public static final String VALUESET_NAME = "Supply Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyTypeEnum next : SupplyTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyTypeEnum forCode(String theCode) { - SupplyTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/UnitsOfTimeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/UnitsOfTimeEnum.java deleted file mode 100644 index 32c60720c24..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/UnitsOfTimeEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum UnitsOfTimeEnum { - - /** - * Code Value: s - */ - S("s", "http://unitsofmeasure.org"), - - /** - * Code Value: min - */ - MIN("min", "http://unitsofmeasure.org"), - - /** - * Code Value: h - */ - H("h", "http://unitsofmeasure.org"), - - /** - * Code Value: d - */ - D("d", "http://unitsofmeasure.org"), - - /** - * Code Value: wk - */ - WK("wk", "http://unitsofmeasure.org"), - - /** - * Code Value: mo - */ - MO("mo", "http://unitsofmeasure.org"), - - /** - * Code Value: a - */ - A("a", "http://unitsofmeasure.org"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/units-of-time - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/units-of-time"; - - /** - * Name for this Value Set: - * UnitsOfTime - */ - public static final String VALUESET_NAME = "UnitsOfTime"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (UnitsOfTimeEnum next : UnitsOfTimeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public UnitsOfTimeEnum forCode(String theCode) { - UnitsOfTimeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(UnitsOfTimeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(UnitsOfTimeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public UnitsOfTimeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public UnitsOfTimeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - UnitsOfTimeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ValueSetStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ValueSetStatusEnum.java deleted file mode 100644 index 51b011acaac..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/valueset/ValueSetStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ValueSetStatusEnum { - - /** - * Code Value: draft - * - * This valueset is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/valueset-status"), - - /** - * Code Value: active - * - * This valueset is ready for normal use. - */ - ACTIVE("active", "http://hl7.org/fhir/valueset-status"), - - /** - * Code Value: retired - * - * This valueset has been withdrawn or superceded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/valueset-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-status"; - - /** - * Name for this Value Set: - * ValueSetStatus - */ - public static final String VALUESET_NAME = "ValueSetStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ValueSetStatusEnum next : ValueSetStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ValueSetStatusEnum forCode(String theCode) { - ValueSetStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ValueSetStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ValueSetStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ValueSetStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ValueSetStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ValueSetStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java deleted file mode 100644 index af0bd5b3f1f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java +++ /dev/null @@ -1,112 +0,0 @@ -package ca.uhn.fhir.model.dstu2; - -/* - * #%L - * HAPI FHIR Structures - DSTU2 (FHIR v0.4.0) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.io.InputStream; - -import org.hl7.fhir.instance.model.IBaseResource; - -import ca.uhn.fhir.context.ConfigurationException; -import ca.uhn.fhir.context.FhirContext; -import ca.uhn.fhir.context.FhirVersionEnum; -import ca.uhn.fhir.context.RuntimeResourceDefinition; -import ca.uhn.fhir.model.api.IFhirVersion; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.base.composite.BaseCodingDt; -import ca.uhn.fhir.model.base.composite.BaseContainedDt; -import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; -import ca.uhn.fhir.model.dstu2.composite.ContainedDt; -import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; -import ca.uhn.fhir.rest.server.Dstu1BundleFactory; -import ca.uhn.fhir.rest.server.IResourceProvider; -import ca.uhn.fhir.rest.server.IServerConformanceProvider; -import ca.uhn.fhir.rest.server.IVersionSpecificBundleFactory; -import ca.uhn.fhir.rest.server.RestfulServer; - -public class FhirDstu2 implements IFhirVersion { - - private String myId; - - - - @Override - public IResourceProvider createServerProfilesProvider(RestfulServer theRestfulServer) { - throw new UnsupportedOperationException(); - } - - - @Override - public IServerConformanceProvider createServerConformanceProvider(RestfulServer theRestfulServer) { - throw new UnsupportedOperationException(); - } - - @Override - public FhirVersionEnum getVersion() { - return FhirVersionEnum.DSTU2; - } - - @Override - public InputStream getFhirVersionPropertiesFile() { - InputStream str = FhirDstu2.class.getResourceAsStream("/ca/uhn/fhir/model/dstu2/fhirversion.properties"); - if (str == null) { - str = FhirDstu2.class.getResourceAsStream("ca/uhn/fhir/model/dstu2/fhirversion.properties"); - } - if (str == null) { - throw new ConfigurationException("Can not find model property file on classpath: " + "/ca/uhn/fhir/model/dstu2/model.properties"); - } - return str; - } - - @Override - public String getPathToSchemaDefinitions() { - return "ca/uhn/fhir/model/dstu2/schema"; - } - - @Override - public Class getResourceReferenceType() { - return ResourceReferenceDt.class; - } - - @Override - public Class getContainedType() { - return ContainedDt.class; - } - - - @Override - public IResource generateProfile(RuntimeResourceDefinition theRuntimeResourceDefinition, String theServerBase) { - throw new UnsupportedOperationException(); - } - - - @Override - public BaseCodingDt newCodingDt() { - return new ca.uhn.fhir.model.dstu2.composite.CodingDt(); - } - - - @Override - public IVersionSpecificBundleFactory newBundleFactory(FhirContext theContext) { - throw new UnsupportedOperationException(); - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AddressDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AddressDt.java deleted file mode 100644 index 541bd20ae01..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AddressDt.java +++ /dev/null @@ -1,636 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR AddressDt Datatype - * (Address) - * - *

- * Definition: - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world - *

- * - *

- * Requirements: - * Need to be able to record postal addresses, along with notes about their use - *

- */ -@DatatypeDef(name="AddressDt") -public class AddressDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public AddressDt() { - // nothing - } - - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Address.use", - formalDefinition="The purpose of this address" - ) - private BoundCodeDt myUse; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Address.text", - formalDefinition="A full text representation of the address" - ) - private StringDt myText; - - @Child(name="line", type=StringDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Address.line", - formalDefinition="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information" - ) - private java.util.List myLine; - - @Child(name="city", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Address.city", - formalDefinition="The name of the city, town, village or other community or delivery center." - ) - private StringDt myCity; - - @Child(name="state", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Address.state", - formalDefinition="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." - ) - private StringDt myState; - - @Child(name="postalCode", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Address.postalCode", - formalDefinition="A postal code designating a region defined by the postal service." - ) - private StringDt myPostalCode; - - @Child(name="country", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Address.country", - formalDefinition="Country - a nation as commonly understood or generally accepted" - ) - private StringDt myCountry; - - @Child(name="period", type=PeriodDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="Address.period", - formalDefinition="Time period when address was/is in use" - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myLine, myCity, myState, myPostalCode, myCountry, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myText, myLine, myCity, myState, myPostalCode, myCountry, myPeriod); - } - - /** - * Gets the value(s) for use (Address.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this address - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(AddressUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (Address.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this address - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use (Address.use) - * - *

- * Definition: - * The purpose of this address - *

- */ - public AddressDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use (Address.use) - * - *

- * Definition: - * The purpose of this address - *

- */ - public AddressDt setUse(AddressUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for text (Address.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the address - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (Address.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the address - *

- */ - public String getText() { - return getTextElement().getValue(); - } - - /** - * Sets the value(s) for text (Address.text) - * - *

- * Definition: - * A full text representation of the address - *

- */ - public AddressDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - - - /** - * Sets the value for text (Address.text) - * - *

- * Definition: - * A full text representation of the address - *

- */ - public AddressDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for line (Address.line). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public java.util.List getLine() { - if (myLine == null) { - myLine = new java.util.ArrayList(); - } - return myLine; - } - - /** - * Sets the value(s) for line (Address.line) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public AddressDt setLine(java.util.List theValue) { - myLine = theValue; - return this; - } - - - - /** - * Adds and returns a new value for line (Address.line) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public StringDt addLine() { - StringDt newType = new StringDt(); - getLine().add(newType); - return newType; - } - - /** - * Gets the first repetition for line (Address.line), - * creating it if it does not already exist. - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- */ - public StringDt getLineFirstRep() { - if (getLine().isEmpty()) { - return addLine(); - } - return getLine().get(0); - } - /** - * Adds a new value for line (Address.line) - * - *

- * Definition: - * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AddressDt addLine( String theString) { - if (myLine == null) { - myLine = new java.util.ArrayList(); - } - myLine.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for city (Address.city). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public StringDt getCityElement() { - if (myCity == null) { - myCity = new StringDt(); - } - return myCity; - } - - - /** - * Gets the value(s) for city (Address.city). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public String getCity() { - return getCityElement().getValue(); - } - - /** - * Sets the value(s) for city (Address.city) - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public AddressDt setCity(StringDt theValue) { - myCity = theValue; - return this; - } - - - - /** - * Sets the value for city (Address.city) - * - *

- * Definition: - * The name of the city, town, village or other community or delivery center. - *

- */ - public AddressDt setCity( String theString) { - myCity = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for state (Address.state). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public StringDt getStateElement() { - if (myState == null) { - myState = new StringDt(); - } - return myState; - } - - - /** - * Gets the value(s) for state (Address.state). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public String getState() { - return getStateElement().getValue(); - } - - /** - * Sets the value(s) for state (Address.state) - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public AddressDt setState(StringDt theValue) { - myState = theValue; - return this; - } - - - - /** - * Sets the value for state (Address.state) - * - *

- * Definition: - * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). - *

- */ - public AddressDt setState( String theString) { - myState = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for postalCode (Address.postalCode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public StringDt getPostalCodeElement() { - if (myPostalCode == null) { - myPostalCode = new StringDt(); - } - return myPostalCode; - } - - - /** - * Gets the value(s) for postalCode (Address.postalCode). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public String getPostalCode() { - return getPostalCodeElement().getValue(); - } - - /** - * Sets the value(s) for postalCode (Address.postalCode) - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public AddressDt setPostalCode(StringDt theValue) { - myPostalCode = theValue; - return this; - } - - - - /** - * Sets the value for postalCode (Address.postalCode) - * - *

- * Definition: - * A postal code designating a region defined by the postal service. - *

- */ - public AddressDt setPostalCode( String theString) { - myPostalCode = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for country (Address.country). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public StringDt getCountryElement() { - if (myCountry == null) { - myCountry = new StringDt(); - } - return myCountry; - } - - - /** - * Gets the value(s) for country (Address.country). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public String getCountry() { - return getCountryElement().getValue(); - } - - /** - * Sets the value(s) for country (Address.country) - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public AddressDt setCountry(StringDt theValue) { - myCountry = theValue; - return this; - } - - - - /** - * Sets the value for country (Address.country) - * - *

- * Definition: - * Country - a nation as commonly understood or generally accepted - *

- */ - public AddressDt setCountry( String theString) { - myCountry = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for period (Address.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period when address was/is in use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (Address.period) - * - *

- * Definition: - * Time period when address was/is in use - *

- */ - public AddressDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AgeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AgeDt.java deleted file mode 100644 index dea05376cd8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AgeDt.java +++ /dev/null @@ -1,29 +0,0 @@ -package ca.uhn.fhir.model.dstu2.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; - -/* - * #%L - * HAPI FHIR Structures - DSTU2 (FHIR v0.4.0) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="AgeDt") -public class AgeDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AttachmentDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AttachmentDt.java deleted file mode 100644 index 702b845484b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/AttachmentDt.java +++ /dev/null @@ -1,577 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR AttachmentDt Datatype - * (Attachment) - * - *

- * Definition: - * For referring to data content defined in other formats. - *

- * - *

- * Requirements: - * Many models need to include data defined in other specifications that is complex and opaque to the healthcare model. This includes documents, media recordings, structured data, etc. - *

- */ -@DatatypeDef(name="AttachmentDt") -public class AttachmentDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public AttachmentDt() { - // nothing - } - - - @Child(name="contentType", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Attachment.contentType", - formalDefinition="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate" - ) - private CodeDt myContentType; - - @Child(name="language", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Attachment.language", - formalDefinition="The human language of the content. The value can be any valid value according to BCP 47" - ) - private CodeDt myLanguage; - - @Child(name="data", type=Base64BinaryDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Attachment.data", - formalDefinition="The actual data of the attachment - a sequence of bytes. In XML, represented using base64" - ) - private Base64BinaryDt myData; - - @Child(name="url", type=UriDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Attachment.url", - formalDefinition="An alternative location where the data can be accessed" - ) - private UriDt myUrl; - - @Child(name="size", type=IntegerDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Attachment.size", - formalDefinition="The number of bytes of data that make up this attachment." - ) - private IntegerDt mySize; - - @Child(name="hash", type=Base64BinaryDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Attachment.hash", - formalDefinition="The calculated hash of the data using SHA-1. Represented using base64" - ) - private Base64BinaryDt myHash; - - @Child(name="title", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="Attachment.title", - formalDefinition="A label or set of text to display in place of the data" - ) - private StringDt myTitle; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle); - } - - /** - * Gets the value(s) for contentType (Attachment.contentType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public CodeDt getContentTypeElement() { - if (myContentType == null) { - myContentType = new CodeDt(); - } - return myContentType; - } - - - /** - * Gets the value(s) for contentType (Attachment.contentType). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public String getContentType() { - return getContentTypeElement().getValue(); - } - - /** - * Sets the value(s) for contentType (Attachment.contentType) - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public AttachmentDt setContentType(CodeDt theValue) { - myContentType = theValue; - return this; - } - - - - /** - * Sets the value for contentType (Attachment.contentType) - * - *

- * Definition: - * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate - *

- */ - public AttachmentDt setContentType( String theCode) { - myContentType = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for language (Attachment.language). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public CodeDt getLanguageElement() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - - /** - * Gets the value(s) for language (Attachment.language). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public String getLanguage() { - return getLanguageElement().getValue(); - } - - /** - * Sets the value(s) for language (Attachment.language) - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public AttachmentDt setLanguage(CodeDt theValue) { - myLanguage = theValue; - return this; - } - - - - /** - * Sets the value for language (Attachment.language) - * - *

- * Definition: - * The human language of the content. The value can be any valid value according to BCP 47 - *

- */ - public AttachmentDt setLanguage( String theCode) { - myLanguage = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for data (Attachment.data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public Base64BinaryDt getDataElement() { - if (myData == null) { - myData = new Base64BinaryDt(); - } - return myData; - } - - - /** - * Gets the value(s) for data (Attachment.data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public byte[] getData() { - return getDataElement().getValue(); - } - - /** - * Sets the value(s) for data (Attachment.data) - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public AttachmentDt setData(Base64BinaryDt theValue) { - myData = theValue; - return this; - } - - - - /** - * Sets the value for data (Attachment.data) - * - *

- * Definition: - * The actual data of the attachment - a sequence of bytes. In XML, represented using base64 - *

- */ - public AttachmentDt setData( byte[] theBytes) { - myData = new Base64BinaryDt(theBytes); - return this; - } - - - /** - * Gets the value(s) for url (Attachment.url). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public UriDt getUrlElement() { - if (myUrl == null) { - myUrl = new UriDt(); - } - return myUrl; - } - - - /** - * Gets the value(s) for url (Attachment.url). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public String getUrl() { - return getUrlElement().getValue(); - } - - /** - * Sets the value(s) for url (Attachment.url) - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public AttachmentDt setUrl(UriDt theValue) { - myUrl = theValue; - return this; - } - - - - /** - * Sets the value for url (Attachment.url) - * - *

- * Definition: - * An alternative location where the data can be accessed - *

- */ - public AttachmentDt setUrl( String theUri) { - myUrl = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for size (Attachment.size). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public IntegerDt getSizeElement() { - if (mySize == null) { - mySize = new IntegerDt(); - } - return mySize; - } - - - /** - * Gets the value(s) for size (Attachment.size). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public Integer getSize() { - return getSizeElement().getValue(); - } - - /** - * Sets the value(s) for size (Attachment.size) - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public AttachmentDt setSize(IntegerDt theValue) { - mySize = theValue; - return this; - } - - - - /** - * Sets the value for size (Attachment.size) - * - *

- * Definition: - * The number of bytes of data that make up this attachment. - *

- */ - public AttachmentDt setSize( int theInteger) { - mySize = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for hash (Attachment.hash). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public Base64BinaryDt getHashElement() { - if (myHash == null) { - myHash = new Base64BinaryDt(); - } - return myHash; - } - - - /** - * Gets the value(s) for hash (Attachment.hash). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public byte[] getHash() { - return getHashElement().getValue(); - } - - /** - * Sets the value(s) for hash (Attachment.hash) - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public AttachmentDt setHash(Base64BinaryDt theValue) { - myHash = theValue; - return this; - } - - - - /** - * Sets the value for hash (Attachment.hash) - * - *

- * Definition: - * The calculated hash of the data using SHA-1. Represented using base64 - *

- */ - public AttachmentDt setHash( byte[] theBytes) { - myHash = new Base64BinaryDt(theBytes); - return this; - } - - - /** - * Gets the value(s) for title (Attachment.title). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public StringDt getTitleElement() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - - /** - * Gets the value(s) for title (Attachment.title). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public String getTitle() { - return getTitleElement().getValue(); - } - - /** - * Sets the value(s) for title (Attachment.title) - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public AttachmentDt setTitle(StringDt theValue) { - myTitle = theValue; - return this; - } - - - - /** - * Sets the value for title (Attachment.title) - * - *

- * Definition: - * A label or set of text to display in place of the data - *

- */ - public AttachmentDt setTitle( String theString) { - myTitle = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/BoundCodeableConceptDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/BoundCodeableConceptDt.java deleted file mode 100644 index 56b925bae7a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/BoundCodeableConceptDt.java +++ /dev/null @@ -1,125 +0,0 @@ -package ca.uhn.fhir.model.dstu2.composite; - -/* - * #%L - * HAPI FHIR Structures - DSTU2 (FHIR v0.4.0) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import static org.apache.commons.lang3.StringUtils.defaultString; - -import java.util.Collection; -import java.util.HashSet; -import java.util.Set; - -import ca.uhn.fhir.model.api.IBoundCodeableConcept; -import ca.uhn.fhir.model.api.IValueSetEnumBinder; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; - -@DatatypeDef(name = "CodeableConcept", isSpecialization = true) -public class BoundCodeableConceptDt> extends CodeableConceptDt implements IBoundCodeableConcept { - - private IValueSetEnumBinder myBinder; - - /** - * Constructor - */ - public BoundCodeableConceptDt(IValueSetEnumBinder theBinder) { - myBinder = theBinder; - } - - /** - * Constructor - */ - public BoundCodeableConceptDt(IValueSetEnumBinder theBinder, T theValue) { - myBinder = theBinder; - setValueAsEnum(theValue); - } - - /** - * Constructor - */ - public BoundCodeableConceptDt(IValueSetEnumBinder theBinder, Collection theValues) { - myBinder = theBinder; - setValueAsEnum(theValues); - } - - /** - * Sets the {@link #getCoding()} to contain a coding with the code and - * system defined by the given enumerated types, AND clearing any existing - * codings first. If theValue is null, existing codings are cleared and no - * codings are added. - * - * @param theValues - * The value to add, or null - */ - public void setValueAsEnum(Collection theValues) { - getCoding().clear(); - if (theValues != null) { - for (T next : theValues) { - getCoding().add(new CodingDt(myBinder.toSystemString(next), myBinder.toCodeString(next))); - } - } - } - - /** - * Sets the {@link #getCoding()} to contain a coding with the code and - * system defined by the given enumerated type, AND clearing any existing - * codings first. If theValue is null, existing codings are cleared and no - * codings are added. - * - * @param theValue - * The value to add, or null - */ - public void setValueAsEnum(T theValue) { - getCoding().clear(); - if (theValue == null) { - return; - } - getCoding().add(new CodingDt(myBinder.toSystemString(theValue), myBinder.toCodeString(theValue))); - } - - /** - * Loops through the {@link #getCoding() codings} in this codeable concept - * and returns the first bound enumerated type that matches. Use - * caution using this method, see the return description for more - * information. - * - * @return Returns the bound enumerated type, or null if none - * are found. Note that a null return value doesn't neccesarily - * imply that this Codeable Concept has no codes, only that it has - * no codes that match the enum. - */ - public Set getValueAsEnum() { - Set retVal = new HashSet(); - for (CodingDt next : getCoding()) { - if (next == null) { - continue; - } - T nextT = myBinder.fromCodeString(defaultString(next.getCodeElement().getValue()), defaultString(next.getSystemElement().getValueAsString())); - if (nextT != null) { - retVal.add(nextT); - } else { - // TODO: throw special exception type? - } - } - return retVal; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CodeableConceptDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CodeableConceptDt.java deleted file mode 100644 index b527ac2f26a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CodeableConceptDt.java +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR CodeableConceptDt Datatype - * (CodeableConcept) - * - *

- * Definition: - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text - *

- * - *

- * Requirements: - * This is a common pattern in healthcare - a concept that may be defined by one or more codes from formal definitions including LOINC and SNOMED CT, and/or defined by the provision of text that captures a human sense of the concept - *

- */ -@DatatypeDef(name="CodeableConceptDt") -public class CodeableConceptDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public CodeableConceptDt() { - // nothing - } - - /** - * Constructor which creates a CodeableConceptDt with one coding repetition, containing - * the given system and code - */ - public CodeableConceptDt(String theSystem, String theCode) { - addCoding().setSystem(theSystem).setCode(theCode); - } - - @Child(name="coding", type=CodingDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="CodeableConcept.coding", - formalDefinition="A reference to a code defined by a terminology system" - ) - private java.util.List myCoding; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="CodeableConcept.text", - formalDefinition="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user" - ) - private StringDt myText; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCoding, myText); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCoding, myText); - } - - /** - * Gets the value(s) for coding (CodeableConcept.coding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public java.util.List getCoding() { - if (myCoding == null) { - myCoding = new java.util.ArrayList(); - } - return myCoding; - } - - /** - * Sets the value(s) for coding (CodeableConcept.coding) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodeableConceptDt setCoding(java.util.List theValue) { - myCoding = theValue; - return this; - } - - - - /** - * Adds and returns a new value for coding (CodeableConcept.coding) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodingDt addCoding() { - CodingDt newType = new CodingDt(); - getCoding().add(newType); - return newType; - } - - /** - * Gets the first repetition for coding (CodeableConcept.coding), - * creating it if it does not already exist. - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- */ - public CodingDt getCodingFirstRep() { - if (getCoding().isEmpty()) { - return addCoding(); - } - return getCoding().get(0); - } - - /** - * Gets the value(s) for text (CodeableConcept.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (CodeableConcept.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public String getText() { - return getTextElement().getValue(); - } - - /** - * Sets the value(s) for text (CodeableConcept.text) - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public CodeableConceptDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - - - /** - * Sets the value for text (CodeableConcept.text) - * - *

- * Definition: - * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user - *

- */ - public CodeableConceptDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CodingDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CodingDt.java deleted file mode 100644 index 74040d0f8b8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CodingDt.java +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR CodingDt Datatype - * (Coding) - * - *

- * Definition: - * A reference to a code defined by a terminology system - *

- * - *

- * Requirements: - * References to codes are very common in healthcare models - *

- */ -@DatatypeDef(name="CodingDt") -public class CodingDt - extends BaseCodingDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public CodingDt() { - // nothing - } - - /** - * Creates a new Coding with the given system and code - */ - public CodingDt(String theSystem, String theCode) { - setSystem(theSystem); - setCode(theCode); - } - - /** - * Copy constructor: Creates a new Coding with the system and code copied out of the given coding - */ - public CodingDt(BaseCodingDt theCoding) { - this(theCoding.getSystemElement().getValueAsString(), theCoding.getCodeElement().getValue()); - } - - - @Child(name="system", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Coding.system", - formalDefinition="The identification of the code system that defines the meaning of the symbol in the code." - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Coding.version", - formalDefinition="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged" - ) - private StringDt myVersion; - - @Child(name="code", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Coding.code", - formalDefinition="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Coding.display", - formalDefinition="A representation of the meaning of the code in the system, following the rules of the system." - ) - private StringDt myDisplay; - - @Child(name="primary", type=BooleanDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Coding.primary", - formalDefinition="Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)" - ) - private BooleanDt myPrimary; - - @Child(name="valueSet", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu2.resource.ValueSet.class }) - @Description( - shortDefinition="Coding.valueSet", - formalDefinition="The set of possible coded values this coding was chosen from or constrained by" - ) - private ResourceReferenceDt myValueSet; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet); - } - - /** - * Gets the value(s) for system (Coding.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (Coding.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system (Coding.system) - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public CodingDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system (Coding.system) - * - *

- * Definition: - * The identification of the code system that defines the meaning of the symbol in the code. - *

- */ - public CodingDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (Coding.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (Coding.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version (Coding.version) - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public CodingDt setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version (Coding.version) - * - *

- * Definition: - * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged - *

- */ - public CodingDt setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (Coding.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Coding.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code (Coding.code) - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodingDt setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code (Coding.code) - * - *

- * Definition: - * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination) - *

- */ - public CodingDt setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (Coding.display). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Coding.display). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display (Coding.display) - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public CodingDt setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display (Coding.display) - * - *

- * Definition: - * A representation of the meaning of the code in the system, following the rules of the system. - *

- */ - public CodingDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for primary (Coding.primary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public BooleanDt getPrimaryElement() { - if (myPrimary == null) { - myPrimary = new BooleanDt(); - } - return myPrimary; - } - - - /** - * Gets the value(s) for primary (Coding.primary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public Boolean getPrimary() { - return getPrimaryElement().getValue(); - } - - /** - * Sets the value(s) for primary (Coding.primary) - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public CodingDt setPrimary(BooleanDt theValue) { - myPrimary = theValue; - return this; - } - - - - /** - * Sets the value for primary (Coding.primary) - * - *

- * Definition: - * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays) - *

- */ - public CodingDt setPrimary( boolean theBoolean) { - myPrimary = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for valueSet (Coding.valueSet). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

- */ - public ResourceReferenceDt getValueSet() { - if (myValueSet == null) { - myValueSet = new ResourceReferenceDt(); - } - return myValueSet; - } - - /** - * Sets the value(s) for valueSet (Coding.valueSet) - * - *

- * Definition: - * The set of possible coded values this coding was chosen from or constrained by - *

- */ - public CodingDt setValueSet(ResourceReferenceDt theValue) { - myValueSet = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ContactPointDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ContactPointDt.java deleted file mode 100644 index bc260c67e19..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ContactPointDt.java +++ /dev/null @@ -1,345 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR ContactPointDt Datatype - * (ContactPoint) - * - *

- * Definition: - * Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc. - *

- * - *

- * Requirements: - * Need to track phone, fax, mobile, sms numbers, email addresses, twitter tags, etc. - *

- */ -@DatatypeDef(name="ContactPointDt") -public class ContactPointDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ContactPointDt() { - // nothing - } - - - @Child(name="system", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="ContactPoint.system", - formalDefinition="Telecommunications form for contact point - what communications system is required to make use of the contact" - ) - private BoundCodeDt mySystem; - - @Child(name="value", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="ContactPoint.value", - formalDefinition="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)." - ) - private StringDt myValue; - - @Child(name="use", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="ContactPoint.use", - formalDefinition="Identifies the purpose for the contact point" - ) - private BoundCodeDt myUse; - - @Child(name="period", type=PeriodDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="ContactPoint.period", - formalDefinition="Time period when the contact point was/is in use" - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myValue, myUse, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myValue, myUse, myPeriod); - } - - /** - * Gets the value(s) for system (ContactPoint.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Telecommunications form for contact point - what communications system is required to make use of the contact - *

- */ - public BoundCodeDt getSystemElement() { - if (mySystem == null) { - mySystem = new BoundCodeDt(ContactPointSystemEnum.VALUESET_BINDER); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (ContactPoint.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Telecommunications form for contact point - what communications system is required to make use of the contact - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system (ContactPoint.system) - * - *

- * Definition: - * Telecommunications form for contact point - what communications system is required to make use of the contact - *

- */ - public ContactPointDt setSystem(BoundCodeDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value(s) for system (ContactPoint.system) - * - *

- * Definition: - * Telecommunications form for contact point - what communications system is required to make use of the contact - *

- */ - public ContactPointDt setSystem(ContactPointSystemEnum theValue) { - getSystemElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for value (ContactPoint.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (ContactPoint.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public String getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value (ContactPoint.value) - * - *

- * Definition: - * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public ContactPointDt setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value (ContactPoint.value) - * - *

- * Definition: - * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). - *

- */ - public ContactPointDt setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for use (ContactPoint.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for the contact point - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(ContactPointUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (ContactPoint.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for the contact point - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use (ContactPoint.use) - * - *

- * Definition: - * Identifies the purpose for the contact point - *

- */ - public ContactPointDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use (ContactPoint.use) - * - *

- * Definition: - * Identifies the purpose for the contact point - *

- */ - public ContactPointDt setUse(ContactPointUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for period (ContactPoint.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period when the contact point was/is in use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (ContactPoint.period) - * - *

- * Definition: - * Time period when the contact point was/is in use - *

- */ - public ContactPointDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ContainedDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ContainedDt.java deleted file mode 100644 index fd3def9868d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ContainedDt.java +++ /dev/null @@ -1,54 +0,0 @@ -package ca.uhn.fhir.model.dstu2.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.ArrayList; -import java.util.List; - -import ca.uhn.fhir.model.api.IDatatype; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.base.composite.BaseContainedDt; - -@DatatypeDef(name = "contained") -public class ContainedDt extends BaseContainedDt { - - @Child(name = "resource", type = IResource.class, order = 0, min = 0, max = Child.MAX_UNLIMITED) - private List myContainedResources; - - public List getContainedResources() { - if (myContainedResources == null) { - myContainedResources = new ArrayList(); - } - return myContainedResources; - } - - public void setContainedResources(List theContainedResources) { - myContainedResources = theContainedResources; - } - - @Override - public boolean isEmpty() { - return myContainedResources == null || myContainedResources.size() == 0; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CountDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CountDt.java deleted file mode 100644 index e2cdc77bad8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/CountDt.java +++ /dev/null @@ -1,29 +0,0 @@ -package ca.uhn.fhir.model.dstu2.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; - -/* - * #%L - * HAPI FHIR Structures - DSTU2 (FHIR v0.4.0) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="CountDt") -public class CountDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/DistanceDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/DistanceDt.java deleted file mode 100644 index f0ba234ec52..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/DistanceDt.java +++ /dev/null @@ -1,29 +0,0 @@ -package ca.uhn.fhir.model.dstu2.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; - -/* - * #%L - * HAPI FHIR Structures - DSTU2 (FHIR v0.4.0) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="DistanceDt") -public class DistanceDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/DurationDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/DurationDt.java deleted file mode 100644 index 2adbe807928..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/DurationDt.java +++ /dev/null @@ -1,29 +0,0 @@ -package ca.uhn.fhir.model.dstu2.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; - -/* - * #%L - * HAPI FHIR Structures - DSTU2 (FHIR v0.4.0) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="DurationDt") -public class DurationDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ElementDefinitionDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ElementDefinitionDt.java deleted file mode 100644 index 696579b6485..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ElementDefinitionDt.java +++ /dev/null @@ -1,3212 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR ElementDefinitionDt Datatype - * (ElementDefinition) - * - *

- * Definition: - * Captures constraints on each element within the resource, profile, or extension - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="ElementDefinitionDt") -public class ElementDefinitionDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ElementDefinitionDt() { - // nothing - } - - - @Child(name="path", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.path", - formalDefinition="The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension" - ) - private StringDt myPath; - - @Child(name="representation", type=CodeDt.class, order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.representation", - formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case" - ) - private java.util.List> myRepresentation; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.name", - formalDefinition="The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element" - ) - private StringDt myName; - - @Child(name="slicing", order=3, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.slicing", - formalDefinition="Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)" - ) - private Slicing mySlicing; - - @Child(name="short", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.short", - formalDefinition="A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification)" - ) - private StringDt myShort; - - @Child(name="formal", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.formal", - formalDefinition="The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource" - ) - private StringDt myFormal; - - @Child(name="comments", type=StringDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.comments", - formalDefinition="Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc." - ) - private StringDt myComments; - - @Child(name="requirements", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.requirements", - formalDefinition="Explains why this element is needed and why it's been constrained as it has" - ) - private StringDt myRequirements; - - @Child(name="synonym", type=StringDt.class, order=8, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.synonym", - formalDefinition="Identifies additional names by which this element might also be known" - ) - private java.util.List mySynonym; - - @Child(name="min", type=IntegerDt.class, order=9, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.min", - formalDefinition="The minimum number of times this element SHALL appear in the instance" - ) - private IntegerDt myMin; - - @Child(name="max", type=StringDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.max", - formalDefinition="The maximum number of times this element is permitted to appear in the instance" - ) - private StringDt myMax; - - @Child(name="type", order=11, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.type", - formalDefinition="The data type or resource that the value of this element is permitted to be" - ) - private java.util.List myType; - - @Child(name="nameReference", type=StringDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.nameReference", - formalDefinition="Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element" - ) - private StringDt myNameReference; - - @Child(name="defaultValue", type=IDatatype.class, order=13, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.defaultValue[x]", - formalDefinition="The value that should be used if there is no value stated in the instance" - ) - private IDatatype myDefaultValue; - - @Child(name="meaningWhenMissing", type=StringDt.class, order=14, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.meaningWhenMissing", - formalDefinition="The Implicit meaning that is to be understood when this element is missing" - ) - private StringDt myMeaningWhenMissing; - - @Child(name="fixed", type=IDatatype.class, order=15, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.fixed[x]", - formalDefinition="Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing" - ) - private IDatatype myFixed; - - @Child(name="pattern", type=IDatatype.class, order=16, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.pattern[x]", - formalDefinition="Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.)" - ) - private IDatatype myPattern; - - @Child(name="example", type=IDatatype.class, order=17, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.example[x]", - formalDefinition="An example value for this element" - ) - private IDatatype myExample; - - @Child(name="maxLength", type=IntegerDt.class, order=18, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.maxLength", - formalDefinition="Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element" - ) - private IntegerDt myMaxLength; - - @Child(name="condition", type=IdDt.class, order=19, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.condition", - formalDefinition="A reference to an invariant that may make additional statements about the cardinality or value in the instance" - ) - private java.util.List myCondition; - - @Child(name="constraint", order=20, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.constraint", - formalDefinition="Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance" - ) - private java.util.List myConstraint; - - @Child(name="mustSupport", type=BooleanDt.class, order=21, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.mustSupport", - formalDefinition="If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported" - ) - private BooleanDt myMustSupport; - - @Child(name="isModifier", type=BooleanDt.class, order=22, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.isModifier", - formalDefinition="If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system." - ) - private BooleanDt myIsModifier; - - @Child(name="isSummary", type=BooleanDt.class, order=23, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.isSummary", - formalDefinition="Whether the element should be included if a client requests a search with the parameter _summary=true" - ) - private BooleanDt myIsSummary; - - @Child(name="binding", order=24, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.binding", - formalDefinition="Binds to a value set if this element is coded (code, Coding, CodeableConcept)" - ) - private Binding myBinding; - - @Child(name="mapping", order=25, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.mapping", - formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element" - ) - private java.util.List myMapping; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPath, myRepresentation, myName, mySlicing, myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myDefaultValue, myMeaningWhenMissing, myFixed, myPattern, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myIsSummary, myBinding, myMapping); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPath, myRepresentation, myName, mySlicing, myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myDefaultValue, myMeaningWhenMissing, myFixed, myPattern, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myIsSummary, myBinding, myMapping); - } - - /** - * Gets the value(s) for path (ElementDefinition.path). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension - *

- */ - public StringDt getPathElement() { - if (myPath == null) { - myPath = new StringDt(); - } - return myPath; - } - - - /** - * Gets the value(s) for path (ElementDefinition.path). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension - *

- */ - public String getPath() { - return getPathElement().getValue(); - } - - /** - * Sets the value(s) for path (ElementDefinition.path) - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension - *

- */ - public ElementDefinitionDt setPath(StringDt theValue) { - myPath = theValue; - return this; - } - - - - /** - * Sets the value for path (ElementDefinition.path) - * - *

- * Definition: - * The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension - *

- */ - public ElementDefinitionDt setPath( String theString) { - myPath = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for representation (ElementDefinition.representation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public java.util.List> getRepresentation() { - if (myRepresentation == null) { - myRepresentation = new java.util.ArrayList>(); - } - return myRepresentation; - } - - /** - * Sets the value(s) for representation (ElementDefinition.representation) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public ElementDefinitionDt setRepresentation(java.util.List> theValue) { - myRepresentation = theValue; - return this; - } - - - - /** - * Add a value for representation (ElementDefinition.representation) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addRepresentation()} method. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt addRepresentation(PropertyRepresentationEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER, theValue); - getRepresentation().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for representation (ElementDefinition.representation), - * creating it if it does not already exist. - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt getRepresentationFirstRep() { - if (getRepresentation().size() == 0) { - addRepresentation(); - } - return getRepresentation().get(0); - } - - /** - * Add a value for representation (ElementDefinition.representation) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public BoundCodeDt addRepresentation() { - BoundCodeDt retVal = new BoundCodeDt(PropertyRepresentationEnum.VALUESET_BINDER); - getRepresentation().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for representation (ElementDefinition.representation) - * - *

- * Definition: - * Codes that define how this element is represented in instances, when the deviation varies from the normal case - *

- */ - public ElementDefinitionDt setRepresentation(PropertyRepresentationEnum theValue) { - getRepresentation().clear(); - addRepresentation(theValue); - return this; - } - - - /** - * Gets the value(s) for name (ElementDefinition.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (ElementDefinition.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name (ElementDefinition.name) - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public ElementDefinitionDt setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name (ElementDefinition.name) - * - *

- * Definition: - * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element - *

- */ - public ElementDefinitionDt setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for slicing (ElementDefinition.slicing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - public Slicing getSlicing() { - if (mySlicing == null) { - mySlicing = new Slicing(); - } - return mySlicing; - } - - /** - * Sets the value(s) for slicing (ElementDefinition.slicing) - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - public ElementDefinitionDt setSlicing(Slicing theValue) { - mySlicing = theValue; - return this; - } - - - - - /** - * Gets the value(s) for short (ElementDefinition.short). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public StringDt getShortElement() { - if (myShort == null) { - myShort = new StringDt(); - } - return myShort; - } - - - /** - * Gets the value(s) for short (ElementDefinition.short). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public String getShort() { - return getShortElement().getValue(); - } - - /** - * Sets the value(s) for short (ElementDefinition.short) - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public ElementDefinitionDt setShort(StringDt theValue) { - myShort = theValue; - return this; - } - - - - /** - * Sets the value for short (ElementDefinition.short) - * - *

- * Definition: - * A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification) - *

- */ - public ElementDefinitionDt setShort( String theString) { - myShort = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for formal (ElementDefinition.formal). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public StringDt getFormalElement() { - if (myFormal == null) { - myFormal = new StringDt(); - } - return myFormal; - } - - - /** - * Gets the value(s) for formal (ElementDefinition.formal). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public String getFormal() { - return getFormalElement().getValue(); - } - - /** - * Sets the value(s) for formal (ElementDefinition.formal) - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public ElementDefinitionDt setFormal(StringDt theValue) { - myFormal = theValue; - return this; - } - - - - /** - * Sets the value for formal (ElementDefinition.formal) - * - *

- * Definition: - * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource - *

- */ - public ElementDefinitionDt setFormal( String theString) { - myFormal = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for comments (ElementDefinition.comments). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public StringDt getCommentsElement() { - if (myComments == null) { - myComments = new StringDt(); - } - return myComments; - } - - - /** - * Gets the value(s) for comments (ElementDefinition.comments). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public String getComments() { - return getCommentsElement().getValue(); - } - - /** - * Sets the value(s) for comments (ElementDefinition.comments) - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public ElementDefinitionDt setComments(StringDt theValue) { - myComments = theValue; - return this; - } - - - - /** - * Sets the value for comments (ElementDefinition.comments) - * - *

- * Definition: - * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. - *

- */ - public ElementDefinitionDt setComments( String theString) { - myComments = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for requirements (ElementDefinition.requirements). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public StringDt getRequirementsElement() { - if (myRequirements == null) { - myRequirements = new StringDt(); - } - return myRequirements; - } - - - /** - * Gets the value(s) for requirements (ElementDefinition.requirements). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public String getRequirements() { - return getRequirementsElement().getValue(); - } - - /** - * Sets the value(s) for requirements (ElementDefinition.requirements) - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public ElementDefinitionDt setRequirements(StringDt theValue) { - myRequirements = theValue; - return this; - } - - - - /** - * Sets the value for requirements (ElementDefinition.requirements) - * - *

- * Definition: - * Explains why this element is needed and why it's been constrained as it has - *

- */ - public ElementDefinitionDt setRequirements( String theString) { - myRequirements = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for synonym (ElementDefinition.synonym). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public java.util.List getSynonym() { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - return mySynonym; - } - - /** - * Sets the value(s) for synonym (ElementDefinition.synonym) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public ElementDefinitionDt setSynonym(java.util.List theValue) { - mySynonym = theValue; - return this; - } - - - - /** - * Adds and returns a new value for synonym (ElementDefinition.synonym) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StringDt addSynonym() { - StringDt newType = new StringDt(); - getSynonym().add(newType); - return newType; - } - - /** - * Gets the first repetition for synonym (ElementDefinition.synonym), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- */ - public StringDt getSynonymFirstRep() { - if (getSynonym().isEmpty()) { - return addSynonym(); - } - return getSynonym().get(0); - } - /** - * Adds a new value for synonym (ElementDefinition.synonym) - * - *

- * Definition: - * Identifies additional names by which this element might also be known - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ElementDefinitionDt addSynonym( String theString) { - if (mySynonym == null) { - mySynonym = new java.util.ArrayList(); - } - mySynonym.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for min (ElementDefinition.min). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public IntegerDt getMinElement() { - if (myMin == null) { - myMin = new IntegerDt(); - } - return myMin; - } - - - /** - * Gets the value(s) for min (ElementDefinition.min). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public Integer getMin() { - return getMinElement().getValue(); - } - - /** - * Sets the value(s) for min (ElementDefinition.min) - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public ElementDefinitionDt setMin(IntegerDt theValue) { - myMin = theValue; - return this; - } - - - - /** - * Sets the value for min (ElementDefinition.min) - * - *

- * Definition: - * The minimum number of times this element SHALL appear in the instance - *

- */ - public ElementDefinitionDt setMin( int theInteger) { - myMin = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for max (ElementDefinition.max). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public StringDt getMaxElement() { - if (myMax == null) { - myMax = new StringDt(); - } - return myMax; - } - - - /** - * Gets the value(s) for max (ElementDefinition.max). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public String getMax() { - return getMaxElement().getValue(); - } - - /** - * Sets the value(s) for max (ElementDefinition.max) - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public ElementDefinitionDt setMax(StringDt theValue) { - myMax = theValue; - return this; - } - - - - /** - * Sets the value for max (ElementDefinition.max) - * - *

- * Definition: - * The maximum number of times this element is permitted to appear in the instance - *

- */ - public ElementDefinitionDt setMax( String theString) { - myMax = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (ElementDefinition.type). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public java.util.List getType() { - if (myType == null) { - myType = new java.util.ArrayList(); - } - return myType; - } - - /** - * Sets the value(s) for type (ElementDefinition.type) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public ElementDefinitionDt setType(java.util.List theValue) { - myType = theValue; - return this; - } - - - - /** - * Adds and returns a new value for type (ElementDefinition.type) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public Type addType() { - Type newType = new Type(); - getType().add(newType); - return newType; - } - - /** - * Gets the first repetition for type (ElementDefinition.type), - * creating it if it does not already exist. - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - public Type getTypeFirstRep() { - if (getType().isEmpty()) { - return addType(); - } - return getType().get(0); - } - - /** - * Gets the value(s) for nameReference (ElementDefinition.nameReference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public StringDt getNameReferenceElement() { - if (myNameReference == null) { - myNameReference = new StringDt(); - } - return myNameReference; - } - - - /** - * Gets the value(s) for nameReference (ElementDefinition.nameReference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public String getNameReference() { - return getNameReferenceElement().getValue(); - } - - /** - * Sets the value(s) for nameReference (ElementDefinition.nameReference) - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public ElementDefinitionDt setNameReference(StringDt theValue) { - myNameReference = theValue; - return this; - } - - - - /** - * Sets the value for nameReference (ElementDefinition.nameReference) - * - *

- * Definition: - * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element - *

- */ - public ElementDefinitionDt setNameReference( String theString) { - myNameReference = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for defaultValue[x] (ElementDefinition.defaultValue[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value that should be used if there is no value stated in the instance - *

- */ - public IDatatype getDefaultValue() { - return myDefaultValue; - } - - /** - * Sets the value(s) for defaultValue[x] (ElementDefinition.defaultValue[x]) - * - *

- * Definition: - * The value that should be used if there is no value stated in the instance - *

- */ - public ElementDefinitionDt setDefaultValue(IDatatype theValue) { - myDefaultValue = theValue; - return this; - } - - - - - /** - * Gets the value(s) for meaningWhenMissing (ElementDefinition.meaningWhenMissing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Implicit meaning that is to be understood when this element is missing - *

- */ - public StringDt getMeaningWhenMissingElement() { - if (myMeaningWhenMissing == null) { - myMeaningWhenMissing = new StringDt(); - } - return myMeaningWhenMissing; - } - - - /** - * Gets the value(s) for meaningWhenMissing (ElementDefinition.meaningWhenMissing). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The Implicit meaning that is to be understood when this element is missing - *

- */ - public String getMeaningWhenMissing() { - return getMeaningWhenMissingElement().getValue(); - } - - /** - * Sets the value(s) for meaningWhenMissing (ElementDefinition.meaningWhenMissing) - * - *

- * Definition: - * The Implicit meaning that is to be understood when this element is missing - *

- */ - public ElementDefinitionDt setMeaningWhenMissing(StringDt theValue) { - myMeaningWhenMissing = theValue; - return this; - } - - - - /** - * Sets the value for meaningWhenMissing (ElementDefinition.meaningWhenMissing) - * - *

- * Definition: - * The Implicit meaning that is to be understood when this element is missing - *

- */ - public ElementDefinitionDt setMeaningWhenMissing( String theString) { - myMeaningWhenMissing = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for fixed[x] (ElementDefinition.fixed[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing - *

- */ - public IDatatype getFixed() { - return myFixed; - } - - /** - * Sets the value(s) for fixed[x] (ElementDefinition.fixed[x]) - * - *

- * Definition: - * Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing - *

- */ - public ElementDefinitionDt setFixed(IDatatype theValue) { - myFixed = theValue; - return this; - } - - - - - /** - * Gets the value(s) for pattern[x] (ElementDefinition.pattern[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.) - *

- */ - public IDatatype getPattern() { - return myPattern; - } - - /** - * Sets the value(s) for pattern[x] (ElementDefinition.pattern[x]) - * - *

- * Definition: - * Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.) - *

- */ - public ElementDefinitionDt setPattern(IDatatype theValue) { - myPattern = theValue; - return this; - } - - - - - /** - * Gets the value(s) for example[x] (ElementDefinition.example[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An example value for this element - *

- */ - public IDatatype getExample() { - return myExample; - } - - /** - * Sets the value(s) for example[x] (ElementDefinition.example[x]) - * - *

- * Definition: - * An example value for this element - *

- */ - public ElementDefinitionDt setExample(IDatatype theValue) { - myExample = theValue; - return this; - } - - - - - /** - * Gets the value(s) for maxLength (ElementDefinition.maxLength). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element - *

- */ - public IntegerDt getMaxLengthElement() { - if (myMaxLength == null) { - myMaxLength = new IntegerDt(); - } - return myMaxLength; - } - - - /** - * Gets the value(s) for maxLength (ElementDefinition.maxLength). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element - *

- */ - public Integer getMaxLength() { - return getMaxLengthElement().getValue(); - } - - /** - * Sets the value(s) for maxLength (ElementDefinition.maxLength) - * - *

- * Definition: - * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element - *

- */ - public ElementDefinitionDt setMaxLength(IntegerDt theValue) { - myMaxLength = theValue; - return this; - } - - - - /** - * Sets the value for maxLength (ElementDefinition.maxLength) - * - *

- * Definition: - * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element - *

- */ - public ElementDefinitionDt setMaxLength( int theInteger) { - myMaxLength = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for condition (ElementDefinition.condition). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public java.util.List getCondition() { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - return myCondition; - } - - /** - * Sets the value(s) for condition (ElementDefinition.condition) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public ElementDefinitionDt setCondition(java.util.List theValue) { - myCondition = theValue; - return this; - } - - - - /** - * Adds and returns a new value for condition (ElementDefinition.condition) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public IdDt addCondition() { - IdDt newType = new IdDt(); - getCondition().add(newType); - return newType; - } - - /** - * Gets the first repetition for condition (ElementDefinition.condition), - * creating it if it does not already exist. - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- */ - public IdDt getConditionFirstRep() { - if (getCondition().isEmpty()) { - return addCondition(); - } - return getCondition().get(0); - } - /** - * Adds a new value for condition (ElementDefinition.condition) - * - *

- * Definition: - * A reference to an invariant that may make additional statements about the cardinality or value in the instance - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public ElementDefinitionDt addCondition( String theId) { - if (myCondition == null) { - myCondition = new java.util.ArrayList(); - } - myCondition.add(new IdDt(theId)); - return this; - } - - - /** - * Gets the value(s) for constraint (ElementDefinition.constraint). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public java.util.List getConstraint() { - if (myConstraint == null) { - myConstraint = new java.util.ArrayList(); - } - return myConstraint; - } - - /** - * Sets the value(s) for constraint (ElementDefinition.constraint) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public ElementDefinitionDt setConstraint(java.util.List theValue) { - myConstraint = theValue; - return this; - } - - - - /** - * Adds and returns a new value for constraint (ElementDefinition.constraint) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public Constraint addConstraint() { - Constraint newType = new Constraint(); - getConstraint().add(newType); - return newType; - } - - /** - * Gets the first repetition for constraint (ElementDefinition.constraint), - * creating it if it does not already exist. - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - public Constraint getConstraintFirstRep() { - if (getConstraint().isEmpty()) { - return addConstraint(); - } - return getConstraint().get(0); - } - - /** - * Gets the value(s) for mustSupport (ElementDefinition.mustSupport). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public BooleanDt getMustSupportElement() { - if (myMustSupport == null) { - myMustSupport = new BooleanDt(); - } - return myMustSupport; - } - - - /** - * Gets the value(s) for mustSupport (ElementDefinition.mustSupport). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public Boolean getMustSupport() { - return getMustSupportElement().getValue(); - } - - /** - * Sets the value(s) for mustSupport (ElementDefinition.mustSupport) - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public ElementDefinitionDt setMustSupport(BooleanDt theValue) { - myMustSupport = theValue; - return this; - } - - - - /** - * Sets the value for mustSupport (ElementDefinition.mustSupport) - * - *

- * Definition: - * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported - *

- */ - public ElementDefinitionDt setMustSupport( boolean theBoolean) { - myMustSupport = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for isModifier (ElementDefinition.isModifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public BooleanDt getIsModifierElement() { - if (myIsModifier == null) { - myIsModifier = new BooleanDt(); - } - return myIsModifier; - } - - - /** - * Gets the value(s) for isModifier (ElementDefinition.isModifier). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public Boolean getIsModifier() { - return getIsModifierElement().getValue(); - } - - /** - * Sets the value(s) for isModifier (ElementDefinition.isModifier) - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public ElementDefinitionDt setIsModifier(BooleanDt theValue) { - myIsModifier = theValue; - return this; - } - - - - /** - * Sets the value for isModifier (ElementDefinition.isModifier) - * - *

- * Definition: - * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. - *

- */ - public ElementDefinitionDt setIsModifier( boolean theBoolean) { - myIsModifier = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for isSummary (ElementDefinition.isSummary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the element should be included if a client requests a search with the parameter _summary=true - *

- */ - public BooleanDt getIsSummaryElement() { - if (myIsSummary == null) { - myIsSummary = new BooleanDt(); - } - return myIsSummary; - } - - - /** - * Gets the value(s) for isSummary (ElementDefinition.isSummary). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the element should be included if a client requests a search with the parameter _summary=true - *

- */ - public Boolean getIsSummary() { - return getIsSummaryElement().getValue(); - } - - /** - * Sets the value(s) for isSummary (ElementDefinition.isSummary) - * - *

- * Definition: - * Whether the element should be included if a client requests a search with the parameter _summary=true - *

- */ - public ElementDefinitionDt setIsSummary(BooleanDt theValue) { - myIsSummary = theValue; - return this; - } - - - - /** - * Sets the value for isSummary (ElementDefinition.isSummary) - * - *

- * Definition: - * Whether the element should be included if a client requests a search with the parameter _summary=true - *

- */ - public ElementDefinitionDt setIsSummary( boolean theBoolean) { - myIsSummary = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for binding (ElementDefinition.binding). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public Binding getBinding() { - if (myBinding == null) { - myBinding = new Binding(); - } - return myBinding; - } - - /** - * Sets the value(s) for binding (ElementDefinition.binding) - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - public ElementDefinitionDt setBinding(Binding theValue) { - myBinding = theValue; - return this; - } - - - - - /** - * Gets the value(s) for mapping (ElementDefinition.mapping). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public java.util.List getMapping() { - if (myMapping == null) { - myMapping = new java.util.ArrayList(); - } - return myMapping; - } - - /** - * Sets the value(s) for mapping (ElementDefinition.mapping) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public ElementDefinitionDt setMapping(java.util.List theValue) { - myMapping = theValue; - return this; - } - - - - /** - * Adds and returns a new value for mapping (ElementDefinition.mapping) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public Mapping addMapping() { - Mapping newType = new Mapping(); - getMapping().add(newType); - return newType; - } - - /** - * Gets the first repetition for mapping (ElementDefinition.mapping), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - public Mapping getMappingFirstRep() { - if (getMapping().isEmpty()) { - return addMapping(); - } - return getMapping().get(0); - } - - /** - * Block class for child element: ElementDefinition.slicing (ElementDefinition.slicing) - * - *

- * Definition: - * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set) - *

- */ - @Block() - public static class Slicing - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="discriminator", type=StringDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.slicing.discriminator", - formalDefinition="Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices" - ) - private java.util.List myDiscriminator; - - @Child(name="description", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.slicing.description", - formalDefinition="A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated" - ) - private StringDt myDescription; - - @Child(name="ordered", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.slicing.ordered", - formalDefinition="If the matching elements have to occur in the same order as defined in the profile" - ) - private BooleanDt myOrdered; - - @Child(name="rules", type=CodeDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.slicing.rules", - formalDefinition="Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end" - ) - private BoundCodeDt myRules; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDiscriminator, myDescription, myOrdered, myRules); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myDiscriminator, myDescription, myOrdered, myRules); - } - - /** - * Gets the value(s) for discriminator (ElementDefinition.slicing.discriminator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- */ - public java.util.List getDiscriminator() { - if (myDiscriminator == null) { - myDiscriminator = new java.util.ArrayList(); - } - return myDiscriminator; - } - - /** - * Sets the value(s) for discriminator (ElementDefinition.slicing.discriminator) - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- */ - public Slicing setDiscriminator(java.util.List theValue) { - myDiscriminator = theValue; - return this; - } - - - - /** - * Adds and returns a new value for discriminator (ElementDefinition.slicing.discriminator) - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- */ - public StringDt addDiscriminator() { - StringDt newType = new StringDt(); - getDiscriminator().add(newType); - return newType; - } - - /** - * Gets the first repetition for discriminator (ElementDefinition.slicing.discriminator), - * creating it if it does not already exist. - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- */ - public StringDt getDiscriminatorFirstRep() { - if (getDiscriminator().isEmpty()) { - return addDiscriminator(); - } - return getDiscriminator().get(0); - } - /** - * Adds a new value for discriminator (ElementDefinition.slicing.discriminator) - * - *

- * Definition: - * Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Slicing addDiscriminator( String theString) { - if (myDiscriminator == null) { - myDiscriminator = new java.util.ArrayList(); - } - myDiscriminator.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for description (ElementDefinition.slicing.description). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (ElementDefinition.slicing.description). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description (ElementDefinition.slicing.description) - * - *

- * Definition: - * A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated - *

- */ - public Slicing setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description (ElementDefinition.slicing.description) - * - *

- * Definition: - * A human-readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated - *

- */ - public Slicing setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for ordered (ElementDefinition.slicing.ordered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public BooleanDt getOrderedElement() { - if (myOrdered == null) { - myOrdered = new BooleanDt(); - } - return myOrdered; - } - - - /** - * Gets the value(s) for ordered (ElementDefinition.slicing.ordered). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public Boolean getOrdered() { - return getOrderedElement().getValue(); - } - - /** - * Sets the value(s) for ordered (ElementDefinition.slicing.ordered) - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public Slicing setOrdered(BooleanDt theValue) { - myOrdered = theValue; - return this; - } - - - - /** - * Sets the value for ordered (ElementDefinition.slicing.ordered) - * - *

- * Definition: - * If the matching elements have to occur in the same order as defined in the profile - *

- */ - public Slicing setOrdered( boolean theBoolean) { - myOrdered = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for rules (ElementDefinition.slicing.rules). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public BoundCodeDt getRulesElement() { - if (myRules == null) { - myRules = new BoundCodeDt(SlicingRulesEnum.VALUESET_BINDER); - } - return myRules; - } - - - /** - * Gets the value(s) for rules (ElementDefinition.slicing.rules). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public String getRules() { - return getRulesElement().getValue(); - } - - /** - * Sets the value(s) for rules (ElementDefinition.slicing.rules) - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public Slicing setRules(BoundCodeDt theValue) { - myRules = theValue; - return this; - } - - - - /** - * Sets the value(s) for rules (ElementDefinition.slicing.rules) - * - *

- * Definition: - * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end - *

- */ - public Slicing setRules(SlicingRulesEnum theValue) { - getRulesElement().setValueAsEnum(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: ElementDefinition.type (ElementDefinition.type) - * - *

- * Definition: - * The data type or resource that the value of this element is permitted to be - *

- */ - @Block() - public static class Type - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.type.code", - formalDefinition="Name of Data type or Resource that is a(or the) type used for this element" - ) - private BoundCodeDt myCode; - - @Child(name="profile", type=UriDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.type.profile", - formalDefinition="Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile" - ) - private UriDt myProfile; - - @Child(name="aggregation", type=CodeDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="ElementDefinition.type.aggregation", - formalDefinition="If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle" - ) - private java.util.List> myAggregation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myProfile, myAggregation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myProfile, myAggregation); - } - - /** - * Gets the value(s) for code (ElementDefinition.type.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of Data type or Resource that is a(or the) type used for this element - *

- */ - public BoundCodeDt getCodeElement() { - if (myCode == null) { - myCode = new BoundCodeDt(DataTypeEnum.VALUESET_BINDER); - } - return myCode; - } - - - /** - * Gets the value(s) for code (ElementDefinition.type.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Name of Data type or Resource that is a(or the) type used for this element - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code (ElementDefinition.type.code) - * - *

- * Definition: - * Name of Data type or Resource that is a(or the) type used for this element - *

- */ - public Type setCode(BoundCodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value(s) for code (ElementDefinition.type.code) - * - *

- * Definition: - * Name of Data type or Resource that is a(or the) type used for this element - *

- */ - public Type setCode(DataTypeEnum theValue) { - getCodeElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for profile (ElementDefinition.type.profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public UriDt getProfileElement() { - if (myProfile == null) { - myProfile = new UriDt(); - } - return myProfile; - } - - - /** - * Gets the value(s) for profile (ElementDefinition.type.profile). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public String getProfile() { - return getProfileElement().getValue(); - } - - /** - * Sets the value(s) for profile (ElementDefinition.type.profile) - * - *

- * Definition: - * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public Type setProfile(UriDt theValue) { - myProfile = theValue; - return this; - } - - - - /** - * Sets the value for profile (ElementDefinition.type.profile) - * - *

- * Definition: - * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile - *

- */ - public Type setProfile( String theUri) { - myProfile = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for aggregation (ElementDefinition.type.aggregation). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public java.util.List> getAggregation() { - if (myAggregation == null) { - myAggregation = new java.util.ArrayList>(); - } - return myAggregation; - } - - /** - * Sets the value(s) for aggregation (ElementDefinition.type.aggregation) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public Type setAggregation(java.util.List> theValue) { - myAggregation = theValue; - return this; - } - - - - /** - * Add a value for aggregation (ElementDefinition.type.aggregation) using an enumerated type. This - * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory - * or contain the desirable codes. If you wish to use codes other than those which are built-in, - * you may also use the {@link #addAggregation()} method. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt addAggregation(AggregationModeEnum theValue) { - BoundCodeDt retVal = new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER, theValue); - getAggregation().add(retVal); - return retVal; - } - - /** - * Gets the first repetition for aggregation (ElementDefinition.type.aggregation), - * creating it if it does not already exist. - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt getAggregationFirstRep() { - if (getAggregation().size() == 0) { - addAggregation(); - } - return getAggregation().get(0); - } - - /** - * Add a value for aggregation (ElementDefinition.type.aggregation) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public BoundCodeDt addAggregation() { - BoundCodeDt retVal = new BoundCodeDt(AggregationModeEnum.VALUESET_BINDER); - getAggregation().add(retVal); - return retVal; - } - - /** - * Sets the value(s), and clears any existing value(s) for aggregation (ElementDefinition.type.aggregation) - * - *

- * Definition: - * If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle - *

- */ - public Type setAggregation(AggregationModeEnum theValue) { - getAggregation().clear(); - addAggregation(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: ElementDefinition.constraint (ElementDefinition.constraint) - * - *

- * Definition: - * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance - *

- */ - @Block() - public static class Constraint - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="key", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.key", - formalDefinition="Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality" - ) - private IdDt myKey; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.name", - formalDefinition="Used to label the constraint in OCL or in short displays incapable of displaying the full human description" - ) - private StringDt myName; - - @Child(name="severity", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.severity", - formalDefinition="Identifies the impact constraint violation has on the conformance of the instance" - ) - private BoundCodeDt mySeverity; - - @Child(name="human", type=StringDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.human", - formalDefinition="Text that can be used to describe the constraint in messages identifying that the constraint has been violated" - ) - private StringDt myHuman; - - @Child(name="xpath", type=StringDt.class, order=4, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.constraint.xpath", - formalDefinition="An XPath expression of constraint that can be executed to see if this constraint is met" - ) - private StringDt myXpath; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myKey, myName, mySeverity, myHuman, myXpath); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myKey, myName, mySeverity, myHuman, myXpath); - } - - /** - * Gets the value(s) for key (ElementDefinition.constraint.key). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public IdDt getKeyElement() { - if (myKey == null) { - myKey = new IdDt(); - } - return myKey; - } - - - /** - * Gets the value(s) for key (ElementDefinition.constraint.key). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public String getKey() { - return getKeyElement().getValue(); - } - - /** - * Sets the value(s) for key (ElementDefinition.constraint.key) - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public Constraint setKey(IdDt theValue) { - myKey = theValue; - return this; - } - - - - /** - * Sets the value for key (ElementDefinition.constraint.key) - * - *

- * Definition: - * Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality - *

- */ - public Constraint setKey( String theId) { - myKey = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for name (ElementDefinition.constraint.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (ElementDefinition.constraint.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name (ElementDefinition.constraint.name) - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public Constraint setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name (ElementDefinition.constraint.name) - * - *

- * Definition: - * Used to label the constraint in OCL or in short displays incapable of displaying the full human description - *

- */ - public Constraint setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for severity (ElementDefinition.constraint.severity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public BoundCodeDt getSeverityElement() { - if (mySeverity == null) { - mySeverity = new BoundCodeDt(ConstraintSeverityEnum.VALUESET_BINDER); - } - return mySeverity; - } - - - /** - * Gets the value(s) for severity (ElementDefinition.constraint.severity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public String getSeverity() { - return getSeverityElement().getValue(); - } - - /** - * Sets the value(s) for severity (ElementDefinition.constraint.severity) - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public Constraint setSeverity(BoundCodeDt theValue) { - mySeverity = theValue; - return this; - } - - - - /** - * Sets the value(s) for severity (ElementDefinition.constraint.severity) - * - *

- * Definition: - * Identifies the impact constraint violation has on the conformance of the instance - *

- */ - public Constraint setSeverity(ConstraintSeverityEnum theValue) { - getSeverityElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for human (ElementDefinition.constraint.human). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public StringDt getHumanElement() { - if (myHuman == null) { - myHuman = new StringDt(); - } - return myHuman; - } - - - /** - * Gets the value(s) for human (ElementDefinition.constraint.human). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public String getHuman() { - return getHumanElement().getValue(); - } - - /** - * Sets the value(s) for human (ElementDefinition.constraint.human) - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public Constraint setHuman(StringDt theValue) { - myHuman = theValue; - return this; - } - - - - /** - * Sets the value for human (ElementDefinition.constraint.human) - * - *

- * Definition: - * Text that can be used to describe the constraint in messages identifying that the constraint has been violated - *

- */ - public Constraint setHuman( String theString) { - myHuman = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for xpath (ElementDefinition.constraint.xpath). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An XPath expression of constraint that can be executed to see if this constraint is met - *

- */ - public StringDt getXpathElement() { - if (myXpath == null) { - myXpath = new StringDt(); - } - return myXpath; - } - - - /** - * Gets the value(s) for xpath (ElementDefinition.constraint.xpath). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An XPath expression of constraint that can be executed to see if this constraint is met - *

- */ - public String getXpath() { - return getXpathElement().getValue(); - } - - /** - * Sets the value(s) for xpath (ElementDefinition.constraint.xpath) - * - *

- * Definition: - * An XPath expression of constraint that can be executed to see if this constraint is met - *

- */ - public Constraint setXpath(StringDt theValue) { - myXpath = theValue; - return this; - } - - - - /** - * Sets the value for xpath (ElementDefinition.constraint.xpath) - * - *

- * Definition: - * An XPath expression of constraint that can be executed to see if this constraint is met - *

- */ - public Constraint setXpath( String theString) { - myXpath = new StringDt(theString); - return this; - } - - - - } - - - /** - * Block class for child element: ElementDefinition.binding (ElementDefinition.binding) - * - *

- * Definition: - * Binds to a value set if this element is coded (code, Coding, CodeableConcept) - *

- */ - @Block() - public static class Binding - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.binding.name", - formalDefinition="A descriptive name for this - can be useful for generating implementation artifacts" - ) - private StringDt myName; - - @Child(name="isExtensible", type=BooleanDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.binding.isExtensible", - formalDefinition="If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone" - ) - private BooleanDt myIsExtensible; - - @Child(name="conformance", type=CodeDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.binding.conformance", - formalDefinition="Indicates the degree of conformance expectations associated with this binding" - ) - private BoundCodeDt myConformance; - - @Child(name="description", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="ElementDefinition.binding.description", - formalDefinition="Describes the intended use of this particular set of codes" - ) - private StringDt myDescription; - - @Child(name="reference", order=4, min=0, max=1, type={ - UriDt.class, ValueSet.class }) - @Description( - shortDefinition="ElementDefinition.binding.reference[x]", - formalDefinition="Points to the value set or external definition that identifies the set of codes to be used" - ) - private IDatatype myReference; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myIsExtensible, myConformance, myDescription, myReference); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myIsExtensible, myConformance, myDescription, myReference); - } - - /** - * Gets the value(s) for name (ElementDefinition.binding.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (ElementDefinition.binding.name). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name (ElementDefinition.binding.name) - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public Binding setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name (ElementDefinition.binding.name) - * - *

- * Definition: - * A descriptive name for this - can be useful for generating implementation artifacts - *

- */ - public Binding setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for isExtensible (ElementDefinition.binding.isExtensible). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public BooleanDt getIsExtensibleElement() { - if (myIsExtensible == null) { - myIsExtensible = new BooleanDt(); - } - return myIsExtensible; - } - - - /** - * Gets the value(s) for isExtensible (ElementDefinition.binding.isExtensible). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Boolean getIsExtensible() { - return getIsExtensibleElement().getValue(); - } - - /** - * Sets the value(s) for isExtensible (ElementDefinition.binding.isExtensible) - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Binding setIsExtensible(BooleanDt theValue) { - myIsExtensible = theValue; - return this; - } - - - - /** - * Sets the value for isExtensible (ElementDefinition.binding.isExtensible) - * - *

- * Definition: - * If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone - *

- */ - public Binding setIsExtensible( boolean theBoolean) { - myIsExtensible = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for conformance (ElementDefinition.binding.conformance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public BoundCodeDt getConformanceElement() { - if (myConformance == null) { - myConformance = new BoundCodeDt(BindingConformanceEnum.VALUESET_BINDER); - } - return myConformance; - } - - - /** - * Gets the value(s) for conformance (ElementDefinition.binding.conformance). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public String getConformance() { - return getConformanceElement().getValue(); - } - - /** - * Sets the value(s) for conformance (ElementDefinition.binding.conformance) - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public Binding setConformance(BoundCodeDt theValue) { - myConformance = theValue; - return this; - } - - - - /** - * Sets the value(s) for conformance (ElementDefinition.binding.conformance) - * - *

- * Definition: - * Indicates the degree of conformance expectations associated with this binding - *

- */ - public Binding setConformance(BindingConformanceEnum theValue) { - getConformanceElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for description (ElementDefinition.binding.description). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (ElementDefinition.binding.description). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description (ElementDefinition.binding.description) - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public Binding setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description (ElementDefinition.binding.description) - * - *

- * Definition: - * Describes the intended use of this particular set of codes - *

- */ - public Binding setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for reference[x] (ElementDefinition.binding.reference[x]). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Points to the value set or external definition that identifies the set of codes to be used - *

- */ - public IDatatype getReference() { - return myReference; - } - - /** - * Sets the value(s) for reference[x] (ElementDefinition.binding.reference[x]) - * - *

- * Definition: - * Points to the value set or external definition that identifies the set of codes to be used - *

- */ - public Binding setReference(IDatatype theValue) { - myReference = theValue; - return this; - } - - - - - - } - - - /** - * Block class for child element: ElementDefinition.mapping (ElementDefinition.mapping) - * - *

- * Definition: - * Identifies a concept from an external specification that roughly corresponds to this element - *

- */ - @Block() - public static class Mapping - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identity", type=IdDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.mapping.identity", - formalDefinition="An internal reference to the definition of a mapping" - ) - private IdDt myIdentity; - - @Child(name="map", type=StringDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="ElementDefinition.mapping.map", - formalDefinition="Expresses what part of the target specification corresponds to this element" - ) - private StringDt myMap; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myMap); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentity, myMap); - } - - /** - * Gets the value(s) for identity (ElementDefinition.mapping.identity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public IdDt getIdentityElement() { - if (myIdentity == null) { - myIdentity = new IdDt(); - } - return myIdentity; - } - - - /** - * Gets the value(s) for identity (ElementDefinition.mapping.identity). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public String getIdentity() { - return getIdentityElement().getValue(); - } - - /** - * Sets the value(s) for identity (ElementDefinition.mapping.identity) - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public Mapping setIdentity(IdDt theValue) { - myIdentity = theValue; - return this; - } - - - - /** - * Sets the value for identity (ElementDefinition.mapping.identity) - * - *

- * Definition: - * An internal reference to the definition of a mapping - *

- */ - public Mapping setIdentity( String theId) { - myIdentity = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for map (ElementDefinition.mapping.map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public StringDt getMapElement() { - if (myMap == null) { - myMap = new StringDt(); - } - return myMap; - } - - - /** - * Gets the value(s) for map (ElementDefinition.mapping.map). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public String getMap() { - return getMapElement().getValue(); - } - - /** - * Sets the value(s) for map (ElementDefinition.mapping.map) - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public Mapping setMap(StringDt theValue) { - myMap = theValue; - return this; - } - - - - /** - * Sets the value for map (ElementDefinition.mapping.map) - * - *

- * Definition: - * Expresses what part of the target specification corresponds to this element - *

- */ - public Mapping setMap( String theString) { - myMap = new StringDt(theString); - return this; - } - - - - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/HumanNameDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/HumanNameDt.java deleted file mode 100644 index 3511b89962f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/HumanNameDt.java +++ /dev/null @@ -1,625 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR HumanNameDt Datatype - * (HumanName) - * - *

- * Definition: - * A human's name with the ability to identify parts and usage - *

- * - *

- * Requirements: - * Need to be able to record names, along with notes about their use - *

- */ -@DatatypeDef(name="HumanNameDt") -public class HumanNameDt - extends BaseHumanNameDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public HumanNameDt() { - // nothing - } - - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="HumanName.use", - formalDefinition="Identifies the purpose for this name" - ) - private BoundCodeDt myUse; - - @Child(name="text", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="HumanName.text", - formalDefinition="A full text representation of the name" - ) - private StringDt myText; - - @Child(name="family", type=StringDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="HumanName.family", - formalDefinition="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." - ) - private java.util.List myFamily; - - @Child(name="given", type=StringDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="HumanName.given", - formalDefinition="Given name" - ) - private java.util.List myGiven; - - @Child(name="prefix", type=StringDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="HumanName.prefix", - formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name" - ) - private java.util.List myPrefix; - - @Child(name="suffix", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="HumanName.suffix", - formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name" - ) - private java.util.List mySuffix; - - @Child(name="period", type=PeriodDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="HumanName.period", - formalDefinition="Indicates the period of time when this name was valid for the named person." - ) - private PeriodDt myPeriod; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod); - } - - /** - * Gets the value(s) for use (HumanName.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(NameUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (HumanName.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use (HumanName.use) - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public HumanNameDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use (HumanName.use) - * - *

- * Definition: - * Identifies the purpose for this name - *

- */ - public HumanNameDt setUse(NameUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for text (HumanName.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the name - *

- */ - public StringDt getTextElement() { - if (myText == null) { - myText = new StringDt(); - } - return myText; - } - - - /** - * Gets the value(s) for text (HumanName.text). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A full text representation of the name - *

- */ - public String getText() { - return getTextElement().getValue(); - } - - /** - * Sets the value(s) for text (HumanName.text) - * - *

- * Definition: - * A full text representation of the name - *

- */ - public HumanNameDt setText(StringDt theValue) { - myText = theValue; - return this; - } - - - - /** - * Sets the value for text (HumanName.text) - * - *

- * Definition: - * A full text representation of the name - *

- */ - public HumanNameDt setText( String theString) { - myText = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for family (HumanName.family). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public java.util.List getFamily() { - if (myFamily == null) { - myFamily = new java.util.ArrayList(); - } - return myFamily; - } - - /** - * Sets the value(s) for family (HumanName.family) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public HumanNameDt setFamily(java.util.List theValue) { - myFamily = theValue; - return this; - } - - - - /** - * Adds and returns a new value for family (HumanName.family) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public StringDt addFamily() { - StringDt newType = new StringDt(); - getFamily().add(newType); - return newType; - } - - /** - * Gets the first repetition for family (HumanName.family), - * creating it if it does not already exist. - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- */ - public StringDt getFamilyFirstRep() { - if (getFamily().isEmpty()) { - return addFamily(); - } - return getFamily().get(0); - } - /** - * Adds a new value for family (HumanName.family) - * - *

- * Definition: - * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addFamily( String theString) { - if (myFamily == null) { - myFamily = new java.util.ArrayList(); - } - myFamily.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for given (HumanName.given). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Given name - *

- */ - public java.util.List getGiven() { - if (myGiven == null) { - myGiven = new java.util.ArrayList(); - } - return myGiven; - } - - /** - * Sets the value(s) for given (HumanName.given) - * - *

- * Definition: - * Given name - *

- */ - public HumanNameDt setGiven(java.util.List theValue) { - myGiven = theValue; - return this; - } - - - - /** - * Adds and returns a new value for given (HumanName.given) - * - *

- * Definition: - * Given name - *

- */ - public StringDt addGiven() { - StringDt newType = new StringDt(); - getGiven().add(newType); - return newType; - } - - /** - * Gets the first repetition for given (HumanName.given), - * creating it if it does not already exist. - * - *

- * Definition: - * Given name - *

- */ - public StringDt getGivenFirstRep() { - if (getGiven().isEmpty()) { - return addGiven(); - } - return getGiven().get(0); - } - /** - * Adds a new value for given (HumanName.given) - * - *

- * Definition: - * Given name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addGiven( String theString) { - if (myGiven == null) { - myGiven = new java.util.ArrayList(); - } - myGiven.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for prefix (HumanName.prefix). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public java.util.List getPrefix() { - if (myPrefix == null) { - myPrefix = new java.util.ArrayList(); - } - return myPrefix; - } - - /** - * Sets the value(s) for prefix (HumanName.prefix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public HumanNameDt setPrefix(java.util.List theValue) { - myPrefix = theValue; - return this; - } - - - - /** - * Adds and returns a new value for prefix (HumanName.prefix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public StringDt addPrefix() { - StringDt newType = new StringDt(); - getPrefix().add(newType); - return newType; - } - - /** - * Gets the first repetition for prefix (HumanName.prefix), - * creating it if it does not already exist. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- */ - public StringDt getPrefixFirstRep() { - if (getPrefix().isEmpty()) { - return addPrefix(); - } - return getPrefix().get(0); - } - /** - * Adds a new value for prefix (HumanName.prefix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addPrefix( String theString) { - if (myPrefix == null) { - myPrefix = new java.util.ArrayList(); - } - myPrefix.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for suffix (HumanName.suffix). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public java.util.List getSuffix() { - if (mySuffix == null) { - mySuffix = new java.util.ArrayList(); - } - return mySuffix; - } - - /** - * Sets the value(s) for suffix (HumanName.suffix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public HumanNameDt setSuffix(java.util.List theValue) { - mySuffix = theValue; - return this; - } - - - - /** - * Adds and returns a new value for suffix (HumanName.suffix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public StringDt addSuffix() { - StringDt newType = new StringDt(); - getSuffix().add(newType); - return newType; - } - - /** - * Gets the first repetition for suffix (HumanName.suffix), - * creating it if it does not already exist. - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- */ - public StringDt getSuffixFirstRep() { - if (getSuffix().isEmpty()) { - return addSuffix(); - } - return getSuffix().get(0); - } - /** - * Adds a new value for suffix (HumanName.suffix) - * - *

- * Definition: - * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public HumanNameDt addSuffix( String theString) { - if (mySuffix == null) { - mySuffix = new java.util.ArrayList(); - } - mySuffix.add(new StringDt(theString)); - return this; - } - - - /** - * Gets the value(s) for period (HumanName.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates the period of time when this name was valid for the named person. - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (HumanName.period) - * - *

- * Definition: - * Indicates the period of time when this name was valid for the named person. - *

- */ - public HumanNameDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/IdentifierDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/IdentifierDt.java deleted file mode 100644 index 3cdb8907bec..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/IdentifierDt.java +++ /dev/null @@ -1,478 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR IdentifierDt Datatype - * (Identifier) - * - *

- * Definition: - * A technical identifier - identifies some entity uniquely and unambiguously - *

- * - *

- * Requirements: - * Need to be able to identify things with confidence and be sure that the identification is not subject to misinterpretation - *

- */ -@DatatypeDef(name="IdentifierDt") -public class IdentifierDt - extends BaseIdentifierDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public IdentifierDt() { - // nothing - } - - /** - * Creates a new identifier with the given system and value - */ - @SimpleSetter - public IdentifierDt(@SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theValue") String theValue) { - setSystem(theSystem); - setValue(theValue); - } - - /** - * Creates a new identifier with the given system and value - */ - @SimpleSetter - public IdentifierDt(@SimpleSetter.Parameter(name="theUse") IdentifierUseEnum theUse, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theValue") String theValue, @SimpleSetter.Parameter(name="theLabel") String theLabel) { - setUse(theUse); - setSystem(theSystem); - setValue(theValue); - setLabel(theLabel); - } - - @Override - public String toString() { - return "IdentifierDt[" + getValueAsQueryToken() + "]"; - } - - @Child(name="use", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Identifier.use", - formalDefinition="The purpose of this identifier" - ) - private BoundCodeDt myUse; - - @Child(name="label", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Identifier.label", - formalDefinition="A text string for the identifier that can be displayed to a human so they can recognize the identifier" - ) - private StringDt myLabel; - - @Child(name="system", type=UriDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Identifier.system", - formalDefinition="Establishes the namespace in which set of possible id values is unique." - ) - private UriDt mySystem; - - @Child(name="value", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Identifier.value", - formalDefinition="The portion of the identifier typically displayed to the user and which is unique within the context of the system." - ) - private StringDt myValue; - - @Child(name="period", type=PeriodDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Identifier.period", - formalDefinition="Time period during which identifier is/was valid for use" - ) - private PeriodDt myPeriod; - - @Child(name="assigner", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu2.resource.Organization.class }) - @Description( - shortDefinition="Identifier.assigner", - formalDefinition="Organization that issued/manages the identifier" - ) - private ResourceReferenceDt myAssigner; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myLabel, mySystem, myValue, myPeriod, myAssigner); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myLabel, mySystem, myValue, myPeriod, myAssigner); - } - - /** - * Gets the value(s) for use (Identifier.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public BoundCodeDt getUseElement() { - if (myUse == null) { - myUse = new BoundCodeDt(IdentifierUseEnum.VALUESET_BINDER); - } - return myUse; - } - - - /** - * Gets the value(s) for use (Identifier.use). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public String getUse() { - return getUseElement().getValue(); - } - - /** - * Sets the value(s) for use (Identifier.use) - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public IdentifierDt setUse(BoundCodeDt theValue) { - myUse = theValue; - return this; - } - - - - /** - * Sets the value(s) for use (Identifier.use) - * - *

- * Definition: - * The purpose of this identifier - *

- */ - public IdentifierDt setUse(IdentifierUseEnum theValue) { - getUseElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for label (Identifier.label). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public StringDt getLabelElement() { - if (myLabel == null) { - myLabel = new StringDt(); - } - return myLabel; - } - - - /** - * Gets the value(s) for label (Identifier.label). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public String getLabel() { - return getLabelElement().getValue(); - } - - /** - * Sets the value(s) for label (Identifier.label) - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public IdentifierDt setLabel(StringDt theValue) { - myLabel = theValue; - return this; - } - - - - /** - * Sets the value for label (Identifier.label) - * - *

- * Definition: - * A text string for the identifier that can be displayed to a human so they can recognize the identifier - *

- */ - public IdentifierDt setLabel( String theString) { - myLabel = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for system (Identifier.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (Identifier.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system (Identifier.system) - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public IdentifierDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system (Identifier.system) - * - *

- * Definition: - * Establishes the namespace in which set of possible id values is unique. - *

- */ - public IdentifierDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for value (Identifier.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Identifier.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public String getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value (Identifier.value) - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public IdentifierDt setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value (Identifier.value) - * - *

- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *

- */ - public IdentifierDt setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for period (Identifier.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Time period during which identifier is/was valid for use - *

- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (Identifier.period) - * - *

- * Definition: - * Time period during which identifier is/was valid for use - *

- */ - public IdentifierDt setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - - - /** - * Gets the value(s) for assigner (Identifier.assigner). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Organization that issued/manages the identifier - *

- */ - public ResourceReferenceDt getAssigner() { - if (myAssigner == null) { - myAssigner = new ResourceReferenceDt(); - } - return myAssigner; - } - - /** - * Sets the value(s) for assigner (Identifier.assigner) - * - *

- * Definition: - * Organization that issued/manages the identifier - *

- */ - public IdentifierDt setAssigner(ResourceReferenceDt theValue) { - myAssigner = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/MoneyDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/MoneyDt.java deleted file mode 100644 index a5c7f645a09..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/MoneyDt.java +++ /dev/null @@ -1,29 +0,0 @@ -package ca.uhn.fhir.model.dstu2.composite; - -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; - -/* - * #%L - * HAPI FHIR Structures - DSTU2 (FHIR v0.4.0) - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -@DatatypeDef(name="MoneyDt") -public class MoneyDt extends QuantityDt { - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/NarrativeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/NarrativeDt.java deleted file mode 100644 index 49388639a59..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/NarrativeDt.java +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.List; - -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.base.composite.BaseNarrativeDt; -import ca.uhn.fhir.model.dstu.valueset.NarrativeStatusEnum; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.XhtmlDt; - -/** - * HAPI/FHIR Narrative Datatype - * (A human-readable formatted text, including images) - * - *

- * Definition: - * A human-readable formatted text, including images - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="Narrative") -public class NarrativeDt extends BaseNarrativeDt { - - @Child(name="status", type=CodeDt.class, order=0, min=1, max=1) - private BoundCodeDt myStatus; - - @Child(name="div", type=XhtmlDt.class, order=1, min=1, max=1) - private XhtmlDt myDiv; - - public NarrativeDt() { - // nothing - } - - public NarrativeDt(XhtmlDt theDiv, NarrativeStatusEnum theStatus) { - setDiv(theDiv); - setStatus(theStatus); - } - - @Override - public boolean isEmpty() { - return ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myDiv ); - } - - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( theType, myStatus, myDiv ); - } - - /** - * Gets the value(s) for status (generated | extensions | additional). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public BoundCodeDt getStatus() { - if (myStatus == null) { - myStatus = new BoundCodeDt(NarrativeStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - /** - * Sets the value(s) for status (generated | extensions | additional) - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public void setStatus(BoundCodeDt theValue) { - myStatus = theValue; - } - - /** - * Sets the value(s) for status (generated | extensions | additional) - * - *

- * Definition: - * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data - *

- */ - public void setStatus(NarrativeStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - } - - - /** - * Gets the value(s) for div (Limited xhtml content). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The actual narrative content, a stripped down version of XHTML - *

- */ - public XhtmlDt getDiv() { - if (myDiv == null) { - myDiv = new XhtmlDt(); - } - return myDiv; - } - - /** - * Sets the value(s) for div (Limited xhtml content) - * - *

- * Definition: - * The actual narrative content, a stripped down version of XHTML - *

- */ - public void setDiv(XhtmlDt theValue) { - myDiv = theValue; - } - - /** - * Sets the value using a textual DIV (or simple text block which will be - * converted to XHTML) - */ - public void setDiv(String theTextDiv) { - myDiv = new XhtmlDt(theTextDiv); - } - - - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/PeriodDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/PeriodDt.java deleted file mode 100644 index 76cfb2be073..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/PeriodDt.java +++ /dev/null @@ -1,263 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR PeriodDt Datatype - * (Period) - * - *

- * Definition: - * A time period defined by a start and end date and optionally time. - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="PeriodDt") -public class PeriodDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public PeriodDt() { - // nothing - } - - - @Child(name="start", type=DateTimeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Period.start", - formalDefinition="The start of the period. The boundary is inclusive." - ) - private DateTimeDt myStart; - - @Child(name="end", type=DateTimeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Period.end", - formalDefinition="The end of the period. If the end of the period is missing, it means that the period is ongoing" - ) - private DateTimeDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStart, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStart, myEnd); - } - - /** - * Gets the value(s) for start (Period.start). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public DateTimeDt getStartElement() { - if (myStart == null) { - myStart = new DateTimeDt(); - } - return myStart; - } - - - /** - * Gets the value(s) for start (Period.start). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public Date getStart() { - return getStartElement().getValue(); - } - - /** - * Sets the value(s) for start (Period.start) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStart(DateTimeDt theValue) { - myStart = theValue; - return this; - } - - - - /** - * Sets the value for start (Period.start) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStart( Date theDate, TemporalPrecisionEnum thePrecision) { - myStart = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for start (Period.start) - * - *

- * Definition: - * The start of the period. The boundary is inclusive. - *

- */ - public PeriodDt setStartWithSecondsPrecision( Date theDate) { - myStart = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for end (Period.end). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public DateTimeDt getEndElement() { - if (myEnd == null) { - myEnd = new DateTimeDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (Period.end). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public Date getEnd() { - return getEndElement().getValue(); - } - - /** - * Sets the value(s) for end (Period.end) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEnd(DateTimeDt theValue) { - myEnd = theValue; - return this; - } - - - - /** - * Sets the value for end (Period.end) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for end (Period.end) - * - *

- * Definition: - * The end of the period. If the end of the period is missing, it means that the period is ongoing - *

- */ - public PeriodDt setEndWithSecondsPrecision( Date theDate) { - myEnd = new DateTimeDt(theDate); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/QuantityDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/QuantityDt.java deleted file mode 100644 index 97cfeb2711e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/QuantityDt.java +++ /dev/null @@ -1,528 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR QuantityDt Datatype - * (Quantity) - * - *

- * Definition: - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies - *

- * - *

- * Requirements: - * Need to able to capture all sorts of measured values, even if the measured value are not precisely quantified. Values include exact measures such as 3.51g, customary units such as 3 tablets, and currencies such as $100.32USD - *

- */ -@DatatypeDef(name="QuantityDt") -public class QuantityDt - extends BaseQuantityDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public QuantityDt() { - // nothing - } - - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theValue") double theValue) { - setValue(theValue); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theValue") long theValue) { - setValue(theValue); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") double theValue, - @SimpleSetter.Parameter(name = "theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") long theValue, - @SimpleSetter.Parameter(name = "theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") double theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setSystem(theSystem); - setUnits(theUnits); - } - - /** - * Constructor - */ - @SimpleSetter - public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") long theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) { - setValue(theValue); - setComparator(theComparator); - setSystem(theSystem); - setUnits(theUnits); - } - - - @Child(name="value", type=DecimalDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Quantity.value", - formalDefinition="The value of the measured amount. The value includes an implicit precision in the presentation of the value" - ) - private DecimalDt myValue; - - @Child(name="comparator", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Quantity.comparator", - formalDefinition="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value" - ) - private BoundCodeDt myComparator; - - @Child(name="units", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Quantity.units", - formalDefinition="A human-readable form of the units" - ) - private StringDt myUnits; - - @Child(name="system", type=UriDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Quantity.system", - formalDefinition="The identification of the system that provides the coded form of the unit" - ) - private UriDt mySystem; - - @Child(name="code", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Quantity.code", - formalDefinition="A computer processable form of the units in some unit representation system" - ) - private CodeDt myCode; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myValue, myComparator, myUnits, mySystem, myCode); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myValue, myComparator, myUnits, mySystem, myCode); - } - - /** - * Gets the value(s) for value (Quantity.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public DecimalDt getValueElement() { - if (myValue == null) { - myValue = new DecimalDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (Quantity.value). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public BigDecimal getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value (Quantity.value) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue(DecimalDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value (Quantity.value) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( long theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for value (Quantity.value) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( double theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for value (Quantity.value) - * - *

- * Definition: - * The value of the measured amount. The value includes an implicit precision in the presentation of the value - *

- */ - public QuantityDt setValue( java.math.BigDecimal theValue) { - myValue = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for comparator (Quantity.comparator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public BoundCodeDt getComparatorElement() { - if (myComparator == null) { - myComparator = new BoundCodeDt(QuantityComparatorEnum.VALUESET_BINDER); - } - return myComparator; - } - - - /** - * Gets the value(s) for comparator (Quantity.comparator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public String getComparator() { - return getComparatorElement().getValue(); - } - - /** - * Sets the value(s) for comparator (Quantity.comparator) - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public QuantityDt setComparator(BoundCodeDt theValue) { - myComparator = theValue; - return this; - } - - - - /** - * Sets the value(s) for comparator (Quantity.comparator) - * - *

- * Definition: - * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value - *

- */ - public QuantityDt setComparator(QuantityComparatorEnum theValue) { - getComparatorElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for units (Quantity.units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public StringDt getUnitsElement() { - if (myUnits == null) { - myUnits = new StringDt(); - } - return myUnits; - } - - - /** - * Gets the value(s) for units (Quantity.units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public String getUnits() { - return getUnitsElement().getValue(); - } - - /** - * Sets the value(s) for units (Quantity.units) - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public QuantityDt setUnits(StringDt theValue) { - myUnits = theValue; - return this; - } - - - - /** - * Sets the value for units (Quantity.units) - * - *

- * Definition: - * A human-readable form of the units - *

- */ - public QuantityDt setUnits( String theString) { - myUnits = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for system (Quantity.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (Quantity.system). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system (Quantity.system) - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public QuantityDt setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system (Quantity.system) - * - *

- * Definition: - * The identification of the system that provides the coded form of the unit - *

- */ - public QuantityDt setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for code (Quantity.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (Quantity.code). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code (Quantity.code) - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public QuantityDt setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code (Quantity.code) - * - *

- * Definition: - * A computer processable form of the units in some unit representation system - *

- */ - public QuantityDt setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/RangeDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/RangeDt.java deleted file mode 100644 index 2bde1eadb69..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/RangeDt.java +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR RangeDt Datatype - * (Range) - * - *

- * Definition: - * A set of ordered Quantities defined by a low and high limit. - *

- * - *

- * Requirements: - * Need to be able to specify ranges of values - *

- */ -@DatatypeDef(name="RangeDt") -public class RangeDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public RangeDt() { - // nothing - } - - - @Child(name="low", type=QuantityDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Range.low", - formalDefinition="The low limit. The boundary is inclusive." - ) - private QuantityDt myLow; - - @Child(name="high", type=QuantityDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Range.high", - formalDefinition="The high limit. The boundary is inclusive." - ) - private QuantityDt myHigh; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLow, myHigh); - } - - /** - * Gets the value(s) for low (Range.low). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public QuantityDt getLow() { - if (myLow == null) { - myLow = new QuantityDt(); - } - return myLow; - } - - /** - * Sets the value(s) for low (Range.low) - * - *

- * Definition: - * The low limit. The boundary is inclusive. - *

- */ - public RangeDt setLow(QuantityDt theValue) { - myLow = theValue; - return this; - } - - - - - /** - * Gets the value(s) for high (Range.high). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public QuantityDt getHigh() { - if (myHigh == null) { - myHigh = new QuantityDt(); - } - return myHigh; - } - - /** - * Sets the value(s) for high (Range.high) - * - *

- * Definition: - * The high limit. The boundary is inclusive. - *

- */ - public RangeDt setHigh(QuantityDt theValue) { - myHigh = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/RatioDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/RatioDt.java deleted file mode 100644 index 4437f4721dd..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/RatioDt.java +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR RatioDt Datatype - * (Ratio) - * - *

- * Definition: - * A relationship of two Quantity values - expressed as a numerator and a denominator. - *

- * - *

- * Requirements: - * Need to able to capture ratios for some measurements (titers) and some rates (costs) - *

- */ -@DatatypeDef(name="RatioDt") -public class RatioDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public RatioDt() { - // nothing - } - - - @Child(name="numerator", type=QuantityDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Ratio.numerator", - formalDefinition="The value of the numerator" - ) - private QuantityDt myNumerator; - - @Child(name="denominator", type=QuantityDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Ratio.denominator", - formalDefinition="The value of the denominator" - ) - private QuantityDt myDenominator; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumerator, myDenominator); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myNumerator, myDenominator); - } - - /** - * Gets the value(s) for numerator (Ratio.numerator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the numerator - *

- */ - public QuantityDt getNumerator() { - if (myNumerator == null) { - myNumerator = new QuantityDt(); - } - return myNumerator; - } - - /** - * Sets the value(s) for numerator (Ratio.numerator) - * - *

- * Definition: - * The value of the numerator - *

- */ - public RatioDt setNumerator(QuantityDt theValue) { - myNumerator = theValue; - return this; - } - - - - - /** - * Gets the value(s) for denominator (Ratio.denominator). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The value of the denominator - *

- */ - public QuantityDt getDenominator() { - if (myDenominator == null) { - myDenominator = new QuantityDt(); - } - return myDenominator; - } - - /** - * Sets the value(s) for denominator (Ratio.denominator) - * - *

- * Definition: - * The value of the denominator - *

- */ - public RatioDt setDenominator(QuantityDt theValue) { - myDenominator = theValue; - return this; - } - - - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ReferenceDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ReferenceDt.java deleted file mode 100644 index d82d765b7ef..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ReferenceDt.java +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR ReferenceDt Datatype - * (Reference) - * - *

- * Definition: - * A reference from one resource to another - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="ReferenceDt") -public class ReferenceDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ReferenceDt() { - // nothing - } - - - @Child(name="reference", type=StringDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Reference.reference", - formalDefinition="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources" - ) - private StringDt myReference; - - @Child(name="display", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Reference.display", - formalDefinition="Plain text narrative that identifies the resource in addition to the resource reference" - ) - private StringDt myDisplay; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReference, myDisplay); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myReference, myDisplay); - } - - /** - * Gets the value(s) for reference (Reference.reference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public StringDt getReferenceElement() { - if (myReference == null) { - myReference = new StringDt(); - } - return myReference; - } - - - /** - * Gets the value(s) for reference (Reference.reference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public String getReference() { - return getReferenceElement().getValue(); - } - - /** - * Sets the value(s) for reference (Reference.reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ReferenceDt setReference(StringDt theValue) { - myReference = theValue; - return this; - } - - - - /** - * Sets the value for reference (Reference.reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ReferenceDt setReference( String theString) { - myReference = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for display (Reference.display). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (Reference.display). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display (Reference.display) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ReferenceDt setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display (Reference.display) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ReferenceDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ResourceReferenceDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ResourceReferenceDt.java deleted file mode 100644 index 7a35d538c65..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/ResourceReferenceDt.java +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import java.util.List; - -import ca.uhn.fhir.model.api.ICompositeDatatype; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.DatatypeDef; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.SimpleSetter; -import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.StringDt; - -/** - * HAPI/FHIR ResourceReferenceDt Datatype - * (A reference from one resource to another) - * - *

- * Definition: - * A reference from one resource to another - *

- * - *

- * Requirements: - * - *

- */ -@DatatypeDef(name="ResourceReferenceDt") -public class ResourceReferenceDt - extends BaseResourceReferenceDt implements ICompositeDatatype -{ - - /** - * Constructor - */ - public ResourceReferenceDt() { - // nothing - } - - /** - * Constructor which creates a resource reference containing the actual resource in question. - *

- * When using this in a server: Generally if this is serialized, it will be serialized as a contained - * resource, so this should not be used if the intent is not to actually supply the referenced resource. This is not - * a hard-and-fast rule however, as the server can be configured to not serialized this resource, or to load an ID - * and contain even if this constructor is not used. - *

- * - * @param theResource - * The resource instance - */ - @SimpleSetter() - public ResourceReferenceDt(IResource theResource) { - super(theResource); - } - - /** - * Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute - * URL) - * - * @param theId - * The reference itself - */ - public ResourceReferenceDt(String theId) { - setReference(new IdDt(theId)); - } - - /** - * Constructor which accepts a reference directly (this can be an ID, a partial/relative URL or a complete/absolute - * URL) - * - * @param theResourceId - * The reference itself - */ - public ResourceReferenceDt(IdDt theResourceId) { - setReference(theResourceId); - } - - @Child(name="reference", type=IdDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Relative, internal or absolute URL reference", - formalDefinition="A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources" - ) - private IdDt myReference; - - @Child(name="display", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Text alternative for the resource", - formalDefinition="Plain text narrative that identifies the resource in addition to the resource reference" - ) - private StringDt myDisplay; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReference, myDisplay); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myReference, myDisplay); - } - - /** - * Gets the value(s) for reference (Relative, internal or absolute URL reference). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public IdDt getReference() { - if (myReference == null) { - myReference = new IdDt(); - } - return myReference; - } - - /** - * Sets the value(s) for reference (Relative, internal or absolute URL reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ResourceReferenceDt setReference(IdDt theValue) { - myReference = theValue; - return this; - } - - /** - * Sets the value for reference (Relative, internal or absolute URL reference) - * - *

- * Definition: - * A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources - *

- */ - public ResourceReferenceDt setReference( String theId) { - myReference = new IdDt(theId); - return this; - } - - - /** - * Gets the value(s) for display (Text alternative for the resource). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public StringDt getDisplay() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - /** - * Sets the value(s) for display (Text alternative for the resource) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ResourceReferenceDt setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - /** - * Sets the value for display (Text alternative for the resource) - * - *

- * Definition: - * Plain text narrative that identifies the resource in addition to the resource reference - *

- */ - public ResourceReferenceDt setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - @Override - public StringDt getDisplayElement() { - return getDisplay(); - } - - - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/SampledDataDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/SampledDataDt.java deleted file mode 100644 index 720c434d68a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/SampledDataDt.java +++ /dev/null @@ -1,653 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR SampledDataDt Datatype - * (SampledData) - * - *

- * Definition: - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data - *

- * - *

- * Requirements: - * There is a need for a concise way to handle the data produced by devices that sample a physical state at a high frequency - *

- */ -@DatatypeDef(name="SampledDataDt") -public class SampledDataDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public SampledDataDt() { - // nothing - } - - - @Child(name="origin", type=QuantityDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="SampledData.origin", - formalDefinition="The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series" - ) - private QuantityDt myOrigin; - - @Child(name="period", type=DecimalDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="SampledData.period", - formalDefinition="The length of time between sampling times, measured in milliseconds" - ) - private DecimalDt myPeriod; - - @Child(name="factor", type=DecimalDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="SampledData.factor", - formalDefinition="A correction factor that is applied to the sampled data points before they are added to the origin" - ) - private DecimalDt myFactor; - - @Child(name="lowerLimit", type=DecimalDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="SampledData.lowerLimit", - formalDefinition="The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)" - ) - private DecimalDt myLowerLimit; - - @Child(name="upperLimit", type=DecimalDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="SampledData.upperLimit", - formalDefinition="The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)" - ) - private DecimalDt myUpperLimit; - - @Child(name="dimensions", type=IntegerDt.class, order=5, min=1, max=1) - @Description( - shortDefinition="SampledData.dimensions", - formalDefinition="The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once" - ) - private IntegerDt myDimensions; - - @Child(name="data", type=StringDt.class, order=6, min=1, max=1) - @Description( - shortDefinition="SampledData.data", - formalDefinition="A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value" - ) - private StringDt myData; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData); - } - - /** - * Gets the value(s) for origin (SampledData.origin). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public QuantityDt getOrigin() { - if (myOrigin == null) { - myOrigin = new QuantityDt(); - } - return myOrigin; - } - - /** - * Sets the value(s) for origin (SampledData.origin) - * - *

- * Definition: - * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series - *

- */ - public SampledDataDt setOrigin(QuantityDt theValue) { - myOrigin = theValue; - return this; - } - - - - - /** - * Gets the value(s) for period (SampledData.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public DecimalDt getPeriodElement() { - if (myPeriod == null) { - myPeriod = new DecimalDt(); - } - return myPeriod; - } - - - /** - * Gets the value(s) for period (SampledData.period). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public BigDecimal getPeriod() { - return getPeriodElement().getValue(); - } - - /** - * Sets the value(s) for period (SampledData.period) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod(DecimalDt theValue) { - myPeriod = theValue; - return this; - } - - - - /** - * Sets the value for period (SampledData.period) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( long theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for period (SampledData.period) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( double theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for period (SampledData.period) - * - *

- * Definition: - * The length of time between sampling times, measured in milliseconds - *

- */ - public SampledDataDt setPeriod( java.math.BigDecimal theValue) { - myPeriod = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for factor (SampledData.factor). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public DecimalDt getFactorElement() { - if (myFactor == null) { - myFactor = new DecimalDt(); - } - return myFactor; - } - - - /** - * Gets the value(s) for factor (SampledData.factor). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public BigDecimal getFactor() { - return getFactorElement().getValue(); - } - - /** - * Sets the value(s) for factor (SampledData.factor) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor(DecimalDt theValue) { - myFactor = theValue; - return this; - } - - - - /** - * Sets the value for factor (SampledData.factor) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( long theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for factor (SampledData.factor) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( double theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for factor (SampledData.factor) - * - *

- * Definition: - * A correction factor that is applied to the sampled data points before they are added to the origin - *

- */ - public SampledDataDt setFactor( java.math.BigDecimal theValue) { - myFactor = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for lowerLimit (SampledData.lowerLimit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public DecimalDt getLowerLimitElement() { - if (myLowerLimit == null) { - myLowerLimit = new DecimalDt(); - } - return myLowerLimit; - } - - - /** - * Gets the value(s) for lowerLimit (SampledData.lowerLimit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public BigDecimal getLowerLimit() { - return getLowerLimitElement().getValue(); - } - - /** - * Sets the value(s) for lowerLimit (SampledData.lowerLimit) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit(DecimalDt theValue) { - myLowerLimit = theValue; - return this; - } - - - - /** - * Sets the value for lowerLimit (SampledData.lowerLimit) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( long theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for lowerLimit (SampledData.lowerLimit) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( double theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for lowerLimit (SampledData.lowerLimit) - * - *

- * Definition: - * The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit) - *

- */ - public SampledDataDt setLowerLimit( java.math.BigDecimal theValue) { - myLowerLimit = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for upperLimit (SampledData.upperLimit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public DecimalDt getUpperLimitElement() { - if (myUpperLimit == null) { - myUpperLimit = new DecimalDt(); - } - return myUpperLimit; - } - - - /** - * Gets the value(s) for upperLimit (SampledData.upperLimit). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public BigDecimal getUpperLimit() { - return getUpperLimitElement().getValue(); - } - - /** - * Sets the value(s) for upperLimit (SampledData.upperLimit) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit(DecimalDt theValue) { - myUpperLimit = theValue; - return this; - } - - - - /** - * Sets the value for upperLimit (SampledData.upperLimit) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( long theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for upperLimit (SampledData.upperLimit) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( double theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for upperLimit (SampledData.upperLimit) - * - *

- * Definition: - * The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit) - *

- */ - public SampledDataDt setUpperLimit( java.math.BigDecimal theValue) { - myUpperLimit = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for dimensions (SampledData.dimensions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public IntegerDt getDimensionsElement() { - if (myDimensions == null) { - myDimensions = new IntegerDt(); - } - return myDimensions; - } - - - /** - * Gets the value(s) for dimensions (SampledData.dimensions). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public Integer getDimensions() { - return getDimensionsElement().getValue(); - } - - /** - * Sets the value(s) for dimensions (SampledData.dimensions) - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public SampledDataDt setDimensions(IntegerDt theValue) { - myDimensions = theValue; - return this; - } - - - - /** - * Sets the value for dimensions (SampledData.dimensions) - * - *

- * Definition: - * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once - *

- */ - public SampledDataDt setDimensions( int theInteger) { - myDimensions = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for data (SampledData.data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public StringDt getDataElement() { - if (myData == null) { - myData = new StringDt(); - } - return myData; - } - - - /** - * Gets the value(s) for data (SampledData.data). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public String getData() { - return getDataElement().getValue(); - } - - /** - * Sets the value(s) for data (SampledData.data) - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public SampledDataDt setData(StringDt theValue) { - myData = theValue; - return this; - } - - - - /** - * Sets the value for data (SampledData.data) - * - *

- * Definition: - * A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value - *

- */ - public SampledDataDt setData( String theString) { - myData = new StringDt(theString); - return this; - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/TimingDt.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/TimingDt.java deleted file mode 100644 index 187f43feb37..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/composite/TimingDt.java +++ /dev/null @@ -1,684 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.composite; - -import java.net.URI; -import java.math.BigDecimal; - -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -import ca.uhn.fhir.model.api.*; -import ca.uhn.fhir.model.primitive.*; -import ca.uhn.fhir.model.api.annotation.*; -import ca.uhn.fhir.model.base.composite.*; -import ca.uhn.fhir.model.dstu2.valueset.AddressUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.AggregationModeEnum; -import ca.uhn.fhir.model.dstu2.valueset.BindingConformanceEnum; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.valueset.ConstraintSeverityEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointSystemEnum; -import ca.uhn.fhir.model.dstu2.valueset.ContactPointUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.DataTypeEnum; -import ca.uhn.fhir.model.dstu2.valueset.EventTimingEnum; -import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu2.valueset.NameUseEnum; -import ca.uhn.fhir.model.dstu2.resource.Organization; -import ca.uhn.fhir.model.dstu2.composite.PeriodDt; -import ca.uhn.fhir.model.dstu2.valueset.PropertyRepresentationEnum; -import ca.uhn.fhir.model.dstu2.valueset.QuantityComparatorEnum; -import ca.uhn.fhir.model.dstu2.composite.QuantityDt; -import ca.uhn.fhir.model.dstu2.valueset.SlicingRulesEnum; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.dstu2.valueset.UnitsOfTimeEnum; -import ca.uhn.fhir.model.dstu2.resource.ValueSet; -import ca.uhn.fhir.model.primitive.Base64BinaryDt; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; - -/** - * HAPI/FHIR TimingDt Datatype - * (Timing) - * - *

- * Definition: - * Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur. - *

- * - *

- * Requirements: - * Need to able to track proposed timing schedules. There are several different ways to do this: one or more specified times, a simple rules like three times a day, or before/after meals - *

- */ -@DatatypeDef(name="TimingDt") -public class TimingDt - extends BaseIdentifiableElement implements ICompositeDatatype -{ - - /** - * Constructor - */ - public TimingDt() { - // nothing - } - - - @Child(name="event", type=PeriodDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Timing.event", - formalDefinition="Identifies specific time periods when the event should occur" - ) - private java.util.List myEvent; - - @Child(name="repeat", order=1, min=0, max=1) - @Description( - shortDefinition="Timing.repeat", - formalDefinition="Identifies a repeating pattern to the intended time periods." - ) - private Repeat myRepeat; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myRepeat); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEvent, myRepeat); - } - - /** - * Gets the value(s) for event (Timing.event). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public java.util.List getEvent() { - if (myEvent == null) { - myEvent = new java.util.ArrayList(); - } - return myEvent; - } - - /** - * Sets the value(s) for event (Timing.event) - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public TimingDt setEvent(java.util.List theValue) { - myEvent = theValue; - return this; - } - - - - /** - * Adds and returns a new value for event (Timing.event) - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public PeriodDt addEvent() { - PeriodDt newType = new PeriodDt(); - getEvent().add(newType); - return newType; - } - - /** - * Gets the first repetition for event (Timing.event), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifies specific time periods when the event should occur - *

- */ - public PeriodDt getEventFirstRep() { - if (getEvent().isEmpty()) { - return addEvent(); - } - return getEvent().get(0); - } - - /** - * Gets the value(s) for repeat (Timing.repeat). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - public Repeat getRepeat() { - if (myRepeat == null) { - myRepeat = new Repeat(); - } - return myRepeat; - } - - /** - * Sets the value(s) for repeat (Timing.repeat) - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - public TimingDt setRepeat(Repeat theValue) { - myRepeat = theValue; - return this; - } - - - - - /** - * Block class for child element: Timing.repeat (Timing.repeat) - * - *

- * Definition: - * Identifies a repeating pattern to the intended time periods. - *

- */ - @Block() - public static class Repeat - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="frequency", type=IntegerDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Timing.repeat.frequency", - formalDefinition="Indicates how often the event should occur." - ) - private IntegerDt myFrequency; - - @Child(name="when", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Timing.repeat.when", - formalDefinition="Identifies the occurrence of daily life that determines timing" - ) - private BoundCodeDt myWhen; - - @Child(name="duration", type=DecimalDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Timing.repeat.duration", - formalDefinition="How long each repetition should last" - ) - private DecimalDt myDuration; - - @Child(name="units", type=CodeDt.class, order=3, min=1, max=1) - @Description( - shortDefinition="Timing.repeat.units", - formalDefinition="The units of time for the duration" - ) - private BoundCodeDt myUnits; - - @Child(name="count", type=IntegerDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Timing.repeat.count", - formalDefinition="A total count of the desired number of repetitions" - ) - private IntegerDt myCount; - - @Child(name="end", type=DateTimeDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="Timing.repeat.end", - formalDefinition="When to stop repeating the timing schedule" - ) - private DateTimeDt myEnd; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myFrequency, myWhen, myDuration, myUnits, myCount, myEnd); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myFrequency, myWhen, myDuration, myUnits, myCount, myEnd); - } - - /** - * Gets the value(s) for frequency (Timing.repeat.frequency). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public IntegerDt getFrequencyElement() { - if (myFrequency == null) { - myFrequency = new IntegerDt(); - } - return myFrequency; - } - - - /** - * Gets the value(s) for frequency (Timing.repeat.frequency). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public Integer getFrequency() { - return getFrequencyElement().getValue(); - } - - /** - * Sets the value(s) for frequency (Timing.repeat.frequency) - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public Repeat setFrequency(IntegerDt theValue) { - myFrequency = theValue; - return this; - } - - - - /** - * Sets the value for frequency (Timing.repeat.frequency) - * - *

- * Definition: - * Indicates how often the event should occur. - *

- */ - public Repeat setFrequency( int theInteger) { - myFrequency = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for when (Timing.repeat.when). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public BoundCodeDt getWhenElement() { - if (myWhen == null) { - myWhen = new BoundCodeDt(EventTimingEnum.VALUESET_BINDER); - } - return myWhen; - } - - - /** - * Gets the value(s) for when (Timing.repeat.when). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public String getWhen() { - return getWhenElement().getValue(); - } - - /** - * Sets the value(s) for when (Timing.repeat.when) - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public Repeat setWhen(BoundCodeDt theValue) { - myWhen = theValue; - return this; - } - - - - /** - * Sets the value(s) for when (Timing.repeat.when) - * - *

- * Definition: - * Identifies the occurrence of daily life that determines timing - *

- */ - public Repeat setWhen(EventTimingEnum theValue) { - getWhenElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for duration (Timing.repeat.duration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How long each repetition should last - *

- */ - public DecimalDt getDurationElement() { - if (myDuration == null) { - myDuration = new DecimalDt(); - } - return myDuration; - } - - - /** - * Gets the value(s) for duration (Timing.repeat.duration). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * How long each repetition should last - *

- */ - public BigDecimal getDuration() { - return getDurationElement().getValue(); - } - - /** - * Sets the value(s) for duration (Timing.repeat.duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration(DecimalDt theValue) { - myDuration = theValue; - return this; - } - - - - /** - * Sets the value for duration (Timing.repeat.duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( long theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for duration (Timing.repeat.duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( double theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for duration (Timing.repeat.duration) - * - *

- * Definition: - * How long each repetition should last - *

- */ - public Repeat setDuration( java.math.BigDecimal theValue) { - myDuration = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for units (Timing.repeat.units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The units of time for the duration - *

- */ - public BoundCodeDt getUnitsElement() { - if (myUnits == null) { - myUnits = new BoundCodeDt(UnitsOfTimeEnum.VALUESET_BINDER); - } - return myUnits; - } - - - /** - * Gets the value(s) for units (Timing.repeat.units). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The units of time for the duration - *

- */ - public String getUnits() { - return getUnitsElement().getValue(); - } - - /** - * Sets the value(s) for units (Timing.repeat.units) - * - *

- * Definition: - * The units of time for the duration - *

- */ - public Repeat setUnits(BoundCodeDt theValue) { - myUnits = theValue; - return this; - } - - - - /** - * Sets the value(s) for units (Timing.repeat.units) - * - *

- * Definition: - * The units of time for the duration - *

- */ - public Repeat setUnits(UnitsOfTimeEnum theValue) { - getUnitsElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for count (Timing.repeat.count). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public IntegerDt getCountElement() { - if (myCount == null) { - myCount = new IntegerDt(); - } - return myCount; - } - - - /** - * Gets the value(s) for count (Timing.repeat.count). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public Integer getCount() { - return getCountElement().getValue(); - } - - /** - * Sets the value(s) for count (Timing.repeat.count) - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public Repeat setCount(IntegerDt theValue) { - myCount = theValue; - return this; - } - - - - /** - * Sets the value for count (Timing.repeat.count) - * - *

- * Definition: - * A total count of the desired number of repetitions - *

- */ - public Repeat setCount( int theInteger) { - myCount = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for end (Timing.repeat.end). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public DateTimeDt getEndElement() { - if (myEnd == null) { - myEnd = new DateTimeDt(); - } - return myEnd; - } - - - /** - * Gets the value(s) for end (Timing.repeat.end). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public Date getEnd() { - return getEndElement().getValue(); - } - - /** - * Sets the value(s) for end (Timing.repeat.end) - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public Repeat setEnd(DateTimeDt theValue) { - myEnd = theValue; - return this; - } - - - - /** - * Sets the value for end (Timing.repeat.end) - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public Repeat setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for end (Timing.repeat.end) - * - *

- * Definition: - * When to stop repeating the timing schedule - *

- */ - public Repeat setEndWithSecondsPrecision( Date theDate) { - myEnd = new DateTimeDt(theDate); - return this; - } - - - - } - - - - -} \ No newline at end of file diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/BaseResource.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/BaseResource.java deleted file mode 100644 index 1f74df52a13..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/BaseResource.java +++ /dev/null @@ -1,164 +0,0 @@ -package ca.uhn.fhir.model.dstu2.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 - 2015 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - -import org.apache.commons.lang3.Validate; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -import ca.uhn.fhir.model.api.BaseElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.base.resource.ResourceMetadataMap; -import ca.uhn.fhir.model.dstu2.composite.ContainedDt; -import ca.uhn.fhir.model.dstu2.composite.NarrativeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.IdDt; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.util.ElementUtil; - -public abstract class BaseResource extends BaseElement implements IResource { - - /** - * Search parameter constant for _language - */ - @SearchParamDefinition(name="_language", path="", description="The language of the resource", type="string" ) - public static final String SP_RES_LANGUAGE = "_language"; - - - /** - * Search parameter constant for _id - */ - @SearchParamDefinition(name="_id", path="", description="The ID of the resource", type="string" ) - public static final String SP_RES_ID = "_id"; - - /** - * Fluent Client search parameter constant for _id - *

- * Description: the _id of a resource
- * Type: string
- * Path: Resource._id
- *

- */ - public static final StringClientParam RES_ID = new StringClientParam(BaseResource.SP_RES_ID); - - - @Child(name = "contained", order = 2, min = 0, max = 1) - private ContainedDt myContained; - - private IdDt myId; - - @Child(name = "language", order = 0, min = 0, max = Child.MAX_UNLIMITED) - private CodeDt myLanguage; - - private ResourceMetadataMap myResourceMetadata; - - @Child(name = "text", order = 1, min = 0, max = 1) - private NarrativeDt myText; - - @Override - public ContainedDt getContained() { - if (myContained == null) { - myContained = new ContainedDt(); - } - return myContained; - } - - public IdDt getId() { - if (myId == null) { - myId = new IdDt(); - } - return myId; - } - - @Override - public CodeDt getLanguage() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - @Override - public ResourceMetadataMap getResourceMetadata() { - if (myResourceMetadata == null) { - myResourceMetadata = new ResourceMetadataMap(); - } - return myResourceMetadata; - } - - @Override - public NarrativeDt getText() { - if (myText == null) { - myText = new NarrativeDt(); - } - return myText; - } - - public void setContained(ContainedDt theContained) { - myContained = theContained; - } - - public void setId(IdDt theId) { - myId = theId; - } - - public void setId(String theId) { - if (theId == null) { - myId = null; - } else { - myId = new IdDt(theId); - } - } - - @Override - public void setLanguage(CodeDt theLanguage) { - myLanguage = theLanguage; - } - - @Override - public void setResourceMetadata(ResourceMetadataMap theMap) { - Validate.notNull(theMap, "The Map must not be null"); - myResourceMetadata = theMap; - } - - public void setText(NarrativeDt theText) { - myText = theText; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE); - b.append("id", getId().toUnqualified()); - return b.toString(); - } - - /** - * Intended to be called by extending classes {@link #isEmpty()} implementations, returns true if all - * content in this superclass instance is empty per the semantics of {@link #isEmpty()}. - */ - @Override - protected boolean isBaseEmpty() { - return super.isBaseEmpty() && ElementUtil.isEmpty(myLanguage, myText, myId); - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/Organization.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/Organization.java deleted file mode 100644 index fffdd8f2ad6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/Organization.java +++ /dev/null @@ -1,1103 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.resource; - -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu2.composite.AddressDt; -import ca.uhn.fhir.model.dstu2.composite.BoundCodeableConceptDt; -import ca.uhn.fhir.model.dstu2.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu2.composite.ContactPointDt; -import ca.uhn.fhir.model.dstu2.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu2.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu2.valueset.AdministrativeGenderEnum; -import ca.uhn.fhir.model.dstu2.valueset.OrganizationTypeEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Organization Resource - * (administration) - * - *

- * Definition: - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/Organization - *

- * - */ -@ResourceDef(name="Organization", profile="http://hl7.org/fhir/profiles/Organization", id="organization") -public class Organization - extends BaseResource implements IResource { - - /** - * Search parameter constant for name - *

- * Description: A portion of the organization's name
- * Type: string
- * Path: Organization.name
- *

- */ - @SearchParamDefinition(name="name", path="Organization.name", description="A portion of the organization's name", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: A portion of the organization's name
- * Type: string
- * Path: Organization.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for phonetic - *

- * Description: A portion of the organization's name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - @SearchParamDefinition(name="phonetic", path="", description="A portion of the organization's name using some kind of phonetic matching algorithm", type="string" ) - public static final String SP_PHONETIC = "phonetic"; - - /** - * Fluent Client search parameter constant for phonetic - *

- * Description: A portion of the organization's name using some kind of phonetic matching algorithm
- * Type: string
- * Path:
- *

- */ - public static final StringClientParam PHONETIC = new StringClientParam(SP_PHONETIC); - - /** - * Search parameter constant for type - *

- * Description: A code for the type of organization
- * Type: token
- * Path: Organization.type
- *

- */ - @SearchParamDefinition(name="type", path="Organization.type", description="A code for the type of organization", type="token" ) - public static final String SP_TYPE = "type"; - - /** - * Fluent Client search parameter constant for type - *

- * Description: A code for the type of organization
- * Type: token
- * Path: Organization.type
- *

- */ - public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); - - /** - * Search parameter constant for identifier - *

- * Description: Any identifier for the organization (not the accreditation issuer's identifier)
- * Type: token
- * Path: Organization.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Organization.identifier", description="Any identifier for the organization (not the accreditation issuer's identifier)", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Any identifier for the organization (not the accreditation issuer's identifier)
- * Type: token
- * Path: Organization.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for partof - *

- * Description: Search all organizations that are part of the given organization
- * Type: reference
- * Path: Organization.partOf
- *

- */ - @SearchParamDefinition(name="partof", path="Organization.partOf", description="Search all organizations that are part of the given organization", type="reference" ) - public static final String SP_PARTOF = "partof"; - - /** - * Fluent Client search parameter constant for partof - *

- * Description: Search all organizations that are part of the given organization
- * Type: reference
- * Path: Organization.partOf
- *

- */ - public static final ReferenceClientParam PARTOF = new ReferenceClientParam(SP_PARTOF); - - /** - * Search parameter constant for active - *

- * Description: Whether the organization's record is active
- * Type: token
- * Path: Organization.active
- *

- */ - @SearchParamDefinition(name="active", path="Organization.active", description="Whether the organization's record is active", type="token" ) - public static final String SP_ACTIVE = "active"; - - /** - * Fluent Client search parameter constant for active - *

- * Description: Whether the organization's record is active
- * Type: token
- * Path: Organization.active
- *

- */ - public static final TokenClientParam ACTIVE = new TokenClientParam(SP_ACTIVE); - - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "". - */ - public static final Include INCLUDE_ = new Include(""); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.active". - */ - public static final Include INCLUDE_ACTIVE = new Include("Organization.active"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.identifier". - */ - public static final Include INCLUDE_IDENTIFIER = new Include("Organization.identifier"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.name". - */ - public static final Include INCLUDE_NAME = new Include("Organization.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.partOf". - */ - public static final Include INCLUDE_PARTOF = new Include("Organization.partOf"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Organization.type". - */ - public static final Include INCLUDE_TYPE = new Include("Organization.type"); - - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="id", - formalDefinition="Identifier for the organization that is used to identify the organization across multiple disparate systems" - ) - private java.util.List myIdentifier; - - @Child(name="name", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A name associated with the organization" - ) - private StringDt myName; - - @Child(name="type", type=CodeableConceptDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="The kind of organization that this is" - ) - private BoundCodeableConceptDt myType; - - @Child(name="telecom", type=ContactPointDt.class, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A contact detail for the organization" - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="An address for the organization" - ) - private java.util.List myAddress; - - @Child(name="partOf", order=5, min=0, max=1, type={ - ca.uhn.fhir.model.dstu2.resource.Organization.class }) - @Description( - shortDefinition="", - formalDefinition="The organization of which this organization forms a part" - ) - private ResourceReferenceDt myPartOf; - - @Child(name="contact", order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myContact; - - @Child(name="location", order=7, min=0, max=Child.MAX_UNLIMITED, type={ - ca.uhn.fhir.model.dstu2.resource.Organization.class }) - @Description( - shortDefinition="where", - formalDefinition="Location(s) the organization uses to provide services" - ) - private java.util.List myLocation; - - @Child(name="active", type=BooleanDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="status", - formalDefinition="Whether the organization's record is still in active use" - ) - private BooleanDt myActive; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myType, myTelecom, myAddress, myPartOf, myContact, myLocation, myActive); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myType, myTelecom, myAddress, myPartOf, myContact, myLocation, myActive); - } - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public java.util.List getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList(); - } - return myIdentifier; - } - - /** - * Sets the value(s) for identifier (id) - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public Organization setIdentifier(java.util.List theValue) { - myIdentifier = theValue; - return this; - } - - - - /** - * Adds and returns a new value for identifier (id) - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (id), - * creating it if it does not already exist. - * - *

- * Definition: - * Identifier for the organization that is used to identify the organization across multiple disparate systems - *

- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the organization - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the organization - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A name associated with the organization - *

- */ - public Organization setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * A name associated with the organization - *

- */ - public Organization setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for type (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public BoundCodeableConceptDt getType() { - if (myType == null) { - myType = new BoundCodeableConceptDt(OrganizationTypeEnum.VALUESET_BINDER); - } - return myType; - } - - /** - * Sets the value(s) for type (class) - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public Organization setType(BoundCodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - - /** - * Sets the value(s) for type (class) - * - *

- * Definition: - * The kind of organization that this is - *

- */ - public Organization setType(OrganizationTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public Organization setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail for the organization - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for address (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An address for the organization - *

- */ - public java.util.List getAddress() { - if (myAddress == null) { - myAddress = new java.util.ArrayList(); - } - return myAddress; - } - - /** - * Sets the value(s) for address () - * - *

- * Definition: - * An address for the organization - *

- */ - public Organization setAddress(java.util.List theValue) { - myAddress = theValue; - return this; - } - - - - /** - * Adds and returns a new value for address () - * - *

- * Definition: - * An address for the organization - *

- */ - public AddressDt addAddress() { - AddressDt newType = new AddressDt(); - getAddress().add(newType); - return newType; - } - - /** - * Gets the first repetition for address (), - * creating it if it does not already exist. - * - *

- * Definition: - * An address for the organization - *

- */ - public AddressDt getAddressFirstRep() { - if (getAddress().isEmpty()) { - return addAddress(); - } - return getAddress().get(0); - } - - /** - * Gets the value(s) for partOf (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The organization of which this organization forms a part - *

- */ - public ResourceReferenceDt getPartOf() { - if (myPartOf == null) { - myPartOf = new ResourceReferenceDt(); - } - return myPartOf; - } - - /** - * Sets the value(s) for partOf () - * - *

- * Definition: - * The organization of which this organization forms a part - *

- */ - public Organization setPartOf(ResourceReferenceDt theValue) { - myPartOf = theValue; - return this; - } - - - - - /** - * Gets the value(s) for contact (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContact() { - if (myContact == null) { - myContact = new java.util.ArrayList(); - } - return myContact; - } - - /** - * Sets the value(s) for contact () - * - *

- * Definition: - * - *

- */ - public Organization setContact(java.util.List theValue) { - myContact = theValue; - return this; - } - - - - /** - * Adds and returns a new value for contact () - * - *

- * Definition: - * - *

- */ - public Contact addContact() { - Contact newType = new Contact(); - getContact().add(newType); - return newType; - } - - /** - * Gets the first repetition for contact (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public Contact getContactFirstRep() { - if (getContact().isEmpty()) { - return addContact(); - } - return getContact().get(0); - } - - /** - * Gets the value(s) for location (where). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public java.util.List getLocation() { - if (myLocation == null) { - myLocation = new java.util.ArrayList(); - } - return myLocation; - } - - /** - * Sets the value(s) for location (where) - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public Organization setLocation(java.util.List theValue) { - myLocation = theValue; - return this; - } - - - - /** - * Adds and returns a new value for location (where) - * - *

- * Definition: - * Location(s) the organization uses to provide services - *

- */ - public ResourceReferenceDt addLocation() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getLocation().add(newType); - return newType; - } - - /** - * Gets the value(s) for active (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public BooleanDt getActiveElement() { - if (myActive == null) { - myActive = new BooleanDt(); - } - return myActive; - } - - - /** - * Gets the value(s) for active (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public Boolean getActive() { - return getActiveElement().getValue(); - } - - /** - * Sets the value(s) for active (status) - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public Organization setActive(BooleanDt theValue) { - myActive = theValue; - return this; - } - - - - /** - * Sets the value for active (status) - * - *

- * Definition: - * Whether the organization's record is still in active use - *

- */ - public Organization setActive( boolean theBoolean) { - myActive = new BooleanDt(theBoolean); - return this; - } - - - /** - * Block class for child element: Organization.contact () - * - *

- * Definition: - * - *

- */ - @Block() - public static class Contact - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="purpose", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Indicates a purpose for which the contact can be reached" - ) - private CodeableConceptDt myPurpose; - - @Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A name associated with the contact" - ) - private HumanNameDt myName; - - @Child(name="telecom", type=ContactPointDt.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the party may be contacted." - ) - private java.util.List myTelecom; - - @Child(name="address", type=AddressDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Visiting or postal addresses for the contact" - ) - private AddressDt myAddress; - - @Child(name="gender", type=CodeDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." - ) - private BoundCodeDt myGender; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPurpose, myName, myTelecom, myAddress, myGender); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myPurpose, myName, myTelecom, myAddress, myGender); - } - - /** - * Gets the value(s) for purpose (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Indicates a purpose for which the contact can be reached - *

- */ - public CodeableConceptDt getPurpose() { - if (myPurpose == null) { - myPurpose = new CodeableConceptDt(); - } - return myPurpose; - } - - /** - * Sets the value(s) for purpose () - * - *

- * Definition: - * Indicates a purpose for which the contact can be reached - *

- */ - public Contact setPurpose(CodeableConceptDt theValue) { - myPurpose = theValue; - return this; - } - - - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A name associated with the contact - *

- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A name associated with the contact - *

- */ - public Contact setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public Contact setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * A contact detail (e.g. a telephone number or an email address) by which the party may be contacted. - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for address (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Visiting or postal addresses for the contact - *

- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - /** - * Sets the value(s) for address () - * - *

- * Definition: - * Visiting or postal addresses for the contact - *

- */ - public Contact setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - - - /** - * Gets the value(s) for gender (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public BoundCodeDt getGenderElement() { - if (myGender == null) { - myGender = new BoundCodeDt(AdministrativeGenderEnum.VALUESET_BINDER); - } - return myGender; - } - - - /** - * Gets the value(s) for gender (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public String getGender() { - return getGenderElement().getValue(); - } - - /** - * Sets the value(s) for gender () - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Contact setGender(BoundCodeDt theValue) { - myGender = theValue; - return this; - } - - - - /** - * Sets the value(s) for gender () - * - *

- * Definition: - * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. - *

- */ - public Contact setGender(AdministrativeGenderEnum theValue) { - getGenderElement().setValueAsEnum(theValue); - return this; - } - - - - } - - - - - @Override - public String getResourceName() { - return "Organization"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/ValueSet.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/ValueSet.java deleted file mode 100644 index e52b9cbb945..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/resource/ValueSet.java +++ /dev/null @@ -1,4077 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu2.resource; - -import java.net.URI; -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu2.composite.CodingDt; -import ca.uhn.fhir.model.dstu2.composite.ContactPointDt; -import ca.uhn.fhir.model.dstu2.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu2.valueset.FilterOperatorEnum; -import ca.uhn.fhir.model.dstu2.valueset.ValueSetStatusEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.model.primitive.UriDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR ValueSet Resource - * (infrastructure) - * - *

- * Definition: - * A value set specifies a set of codes drawn from one or more code systems - *

- * - *

- * Requirements: - * - *

- * - *

- * Profile Definition: - * http://hl7.org/fhir/profiles/ValueSet - *

- * - */ -@ResourceDef(name="ValueSet", profile="http://hl7.org/fhir/profiles/ValueSet", id="valueset") -public class ValueSet - extends BaseResource implements IResource { - - /** - * Search parameter constant for identifier - *

- * Description: The identifier of the value set
- * Type: token
- * Path: ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="ValueSet.identifier", description="The identifier of the value set", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - - /** - * Fluent Client search parameter constant for identifier - *

- * Description: The identifier of the value set
- * Type: token
- * Path: ValueSet.identifier
- *

- */ - public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter constant for version - *

- * Description: The version identifier of the value set
- * Type: token
- * Path: ValueSet.version
- *

- */ - @SearchParamDefinition(name="version", path="ValueSet.version", description="The version identifier of the value set", type="token" ) - public static final String SP_VERSION = "version"; - - /** - * Fluent Client search parameter constant for version - *

- * Description: The version identifier of the value set
- * Type: token
- * Path: ValueSet.version
- *

- */ - public static final TokenClientParam VERSION = new TokenClientParam(SP_VERSION); - - /** - * Search parameter constant for name - *

- * Description: The name of the value set
- * Type: string
- * Path: ValueSet.name
- *

- */ - @SearchParamDefinition(name="name", path="ValueSet.name", description="The name of the value set", type="string" ) - public static final String SP_NAME = "name"; - - /** - * Fluent Client search parameter constant for name - *

- * Description: The name of the value set
- * Type: string
- * Path: ValueSet.name
- *

- */ - public static final StringClientParam NAME = new StringClientParam(SP_NAME); - - /** - * Search parameter constant for publisher - *

- * Description: Name of the publisher of the value set
- * Type: string
- * Path: ValueSet.publisher
- *

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

- * Description: Name of the publisher of the value set
- * Type: string
- * Path: ValueSet.publisher
- *

- */ - public static final StringClientParam PUBLISHER = new StringClientParam(SP_PUBLISHER); - - /** - * Search parameter constant for description - *

- * Description: Text search in the description of the value set
- * Type: string
- * Path: ValueSet.description
- *

- */ - @SearchParamDefinition(name="description", path="ValueSet.description", description="Text search in the description of the value set", type="string" ) - public static final String SP_DESCRIPTION = "description"; - - /** - * Fluent Client search parameter constant for description - *

- * Description: Text search in the description of the value set
- * Type: string
- * Path: ValueSet.description
- *

- */ - public static final StringClientParam DESCRIPTION = new StringClientParam(SP_DESCRIPTION); - - /** - * Search parameter constant for status - *

- * Description: The status of the value set
- * Type: token
- * Path: ValueSet.status
- *

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

- * Description: The status of the value set
- * Type: token
- * Path: ValueSet.status
- *

- */ - public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS); - - /** - * Search parameter constant for date - *

- * Description: The value set publication date
- * Type: date
- * Path: ValueSet.date
- *

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

- * Description: The value set publication date
- * Type: date
- * Path: ValueSet.date
- *

- */ - public static final DateClientParam DATE = new DateClientParam(SP_DATE); - - /** - * Search parameter constant for system - *

- * Description: The system for any codes defined by this value set
- * Type: token
- * Path: ValueSet.define.system
- *

- */ - @SearchParamDefinition(name="system", path="ValueSet.define.system", description="The system for any codes defined by this value set", type="token" ) - public static final String SP_SYSTEM = "system"; - - /** - * Fluent Client search parameter constant for system - *

- * Description: The system for any codes defined by this value set
- * Type: token
- * Path: ValueSet.define.system
- *

- */ - public static final TokenClientParam SYSTEM = new TokenClientParam(SP_SYSTEM); - - /** - * Search parameter constant for code - *

- * Description: A code defined in the value set
- * Type: token
- * Path: ValueSet.define.concept.code
- *

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

- * Description: A code defined in the value set
- * Type: token
- * Path: ValueSet.define.concept.code
- *

- */ - public static final TokenClientParam CODE = new TokenClientParam(SP_CODE); - - /** - * Search parameter constant for reference - *

- * Description: A code system included or excluded in the value set or an imported value set
- * Type: token
- * Path: ValueSet.compose.include.system
- *

- */ - @SearchParamDefinition(name="reference", path="ValueSet.compose.include.system", description="A code system included or excluded in the value set or an imported value set", type="token" ) - public static final String SP_REFERENCE = "reference"; - - /** - * Fluent Client search parameter constant for reference - *

- * Description: A code system included or excluded in the value set or an imported value set
- * Type: token
- * Path: ValueSet.compose.include.system
- *

- */ - public static final TokenClientParam REFERENCE = new TokenClientParam(SP_REFERENCE); - - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.compose.include.system". - */ - public static final Include INCLUDE_COMPOSE_INCLUDE_SYSTEM = new Include("ValueSet.compose.include.system"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.date". - */ - public static final Include INCLUDE_DATE = new Include("ValueSet.date"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.define.concept.code". - */ - public static final Include INCLUDE_DEFINE_CONCEPT_CODE = new Include("ValueSet.define.concept.code"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.define.system". - */ - public static final Include INCLUDE_DEFINE_SYSTEM = new Include("ValueSet.define.system"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.description". - */ - public static final Include INCLUDE_DESCRIPTION = new Include("ValueSet.description"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.identifier". - */ - public static final Include INCLUDE_IDENTIFIER = new Include("ValueSet.identifier"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.name". - */ - public static final Include INCLUDE_NAME = new Include("ValueSet.name"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.publisher". - */ - public static final Include INCLUDE_PUBLISHER = new Include("ValueSet.publisher"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.status". - */ - public static final Include INCLUDE_STATUS = new Include("ValueSet.status"); - - /** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ValueSet.version". - */ - public static final Include INCLUDE_VERSION = new Include("ValueSet.version"); - - - @Child(name="identifier", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="id", - formalDefinition="The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)" - ) - private UriDt myIdentifier; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="id.version", - formalDefinition="The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp" - ) - private StringDt myVersion; - - @Child(name="name", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language name describing the value set" - ) - private StringDt myName; - - @Child(name="purpose", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="why", - formalDefinition="This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set." - ) - private StringDt myPurpose; - - @Child(name="immutable", type=BooleanDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change" - ) - private BooleanDt myImmutable; - - @Child(name="publisher", type=StringDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="who.witness", - formalDefinition="The name of the individual or organization that published the value set" - ) - private StringDt myPublisher; - - @Child(name="telecom", type=ContactPointDt.class, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Contacts of the publisher to assist a user in finding and communicating with the publisher" - ) - private java.util.List myTelecom; - - @Child(name="description", type=StringDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set" - ) - private StringDt myDescription; - - @Child(name="copyright", type=StringDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set" - ) - private StringDt myCopyright; - - @Child(name="status", type=CodeDt.class, order=9, min=1, max=1) - @Description( - shortDefinition="status", - formalDefinition="The status of the value set" - ) - private BoundCodeDt myStatus; - - @Child(name="experimental", type=BooleanDt.class, order=10, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage" - ) - private BooleanDt myExperimental; - - @Child(name="extensible", type=BooleanDt.class, order=11, min=0, max=1) - @Description( - shortDefinition="class", - formalDefinition="Whether this is intended to be used with an extensible binding or not" - ) - private BooleanDt myExtensible; - - @Child(name="date", type=DateTimeDt.class, order=12, min=0, max=1) - @Description( - shortDefinition="when.recorded", - formalDefinition="The date that the value set status was last changed" - ) - private DateTimeDt myDate; - - @Child(name="stableDate", type=DateDt.class, order=13, min=0, max=1) - @Description( - shortDefinition="when.init", - formalDefinition="If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date." - ) - private DateDt myStableDate; - - @Child(name="define", order=14, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private Define myDefine; - - @Child(name="compose", order=15, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private Compose myCompose; - - @Child(name="expansion", order=16, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed" - ) - private Expansion myExpansion; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPurpose, myImmutable, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myStableDate, myDefine, myCompose, myExpansion); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myVersion, myName, myPurpose, myImmutable, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myStableDate, myDefine, myCompose, myExpansion); - } - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public UriDt getIdentifierElement() { - if (myIdentifier == null) { - myIdentifier = new UriDt(); - } - return myIdentifier; - } - - - /** - * Gets the value(s) for identifier (id). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public String getIdentifier() { - return getIdentifierElement().getValue(); - } - - /** - * Sets the value(s) for identifier (id) - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public ValueSet setIdentifier(UriDt theValue) { - myIdentifier = theValue; - return this; - } - - - - /** - * Sets the value for identifier (id) - * - *

- * Definition: - * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI) - *

- */ - public ValueSet setIdentifier( String theUri) { - myIdentifier = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (id.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (id.version). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version (id.version) - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public ValueSet setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version (id.version) - * - *

- * Definition: - * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp - *

- */ - public ValueSet setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public StringDt getNameElement() { - if (myName == null) { - myName = new StringDt(); - } - return myName; - } - - - /** - * Gets the value(s) for name (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public String getName() { - return getNameElement().getValue(); - } - - /** - * Sets the value(s) for name () - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public ValueSet setName(StringDt theValue) { - myName = theValue; - return this; - } - - - - /** - * Sets the value for name () - * - *

- * Definition: - * A free text natural language name describing the value set - *

- */ - public ValueSet setName( String theString) { - myName = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for purpose (why). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set. - *

- */ - public StringDt getPurposeElement() { - if (myPurpose == null) { - myPurpose = new StringDt(); - } - return myPurpose; - } - - - /** - * Gets the value(s) for purpose (why). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set. - *

- */ - public String getPurpose() { - return getPurposeElement().getValue(); - } - - /** - * Sets the value(s) for purpose (why) - * - *

- * Definition: - * This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set. - *

- */ - public ValueSet setPurpose(StringDt theValue) { - myPurpose = theValue; - return this; - } - - - - /** - * Sets the value for purpose (why) - * - *

- * Definition: - * This should describe \"the semantic space\" to be included in the value set. This can also describe the approach taken to build the value set. - *

- */ - public ValueSet setPurpose( String theString) { - myPurpose = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for immutable (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change - *

- */ - public BooleanDt getImmutableElement() { - if (myImmutable == null) { - myImmutable = new BooleanDt(); - } - return myImmutable; - } - - - /** - * Gets the value(s) for immutable (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change - *

- */ - public Boolean getImmutable() { - return getImmutableElement().getValue(); - } - - /** - * Sets the value(s) for immutable (class) - * - *

- * Definition: - * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change - *

- */ - public ValueSet setImmutable(BooleanDt theValue) { - myImmutable = theValue; - return this; - } - - - - /** - * Sets the value for immutable (class) - * - *

- * Definition: - * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change - *

- */ - public ValueSet setImmutable( boolean theBoolean) { - myImmutable = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for publisher (who.witness). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public StringDt getPublisherElement() { - if (myPublisher == null) { - myPublisher = new StringDt(); - } - return myPublisher; - } - - - /** - * Gets the value(s) for publisher (who.witness). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public String getPublisher() { - return getPublisherElement().getValue(); - } - - /** - * Sets the value(s) for publisher (who.witness) - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public ValueSet setPublisher(StringDt theValue) { - myPublisher = theValue; - return this; - } - - - - /** - * Sets the value for publisher (who.witness) - * - *

- * Definition: - * The name of the individual or organization that published the value set - *

- */ - public ValueSet setPublisher( String theString) { - myPublisher = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for telecom (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public java.util.List getTelecom() { - if (myTelecom == null) { - myTelecom = new java.util.ArrayList(); - } - return myTelecom; - } - - /** - * Sets the value(s) for telecom () - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ValueSet setTelecom(java.util.List theValue) { - myTelecom = theValue; - return this; - } - - - - /** - * Adds and returns a new value for telecom () - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt addTelecom() { - ContactPointDt newType = new ContactPointDt(); - getTelecom().add(newType); - return newType; - } - - /** - * Gets the first repetition for telecom (), - * creating it if it does not already exist. - * - *

- * Definition: - * Contacts of the publisher to assist a user in finding and communicating with the publisher - *

- */ - public ContactPointDt getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - return addTelecom(); - } - return getTelecom().get(0); - } - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set - *

- */ - public StringDt getDescriptionElement() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - - /** - * Gets the value(s) for description (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set - *

- */ - public String getDescription() { - return getDescriptionElement().getValue(); - } - - /** - * Sets the value(s) for description () - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set - *

- */ - public ValueSet setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - - - /** - * Sets the value for description () - * - *

- * Definition: - * A free text natural language description of the use of the value set - reason for definition, conditions of use, etc. The description may include a list of expected usages for the value set - *

- */ - public ValueSet setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for copyright (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set - *

- */ - public StringDt getCopyrightElement() { - if (myCopyright == null) { - myCopyright = new StringDt(); - } - return myCopyright; - } - - - /** - * Gets the value(s) for copyright (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set - *

- */ - public String getCopyright() { - return getCopyrightElement().getValue(); - } - - /** - * Sets the value(s) for copyright () - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set - *

- */ - public ValueSet setCopyright(StringDt theValue) { - myCopyright = theValue; - return this; - } - - - - /** - * Sets the value for copyright () - * - *

- * Definition: - * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set - *

- */ - public ValueSet setCopyright( String theString) { - myCopyright = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the value set - *

- */ - public BoundCodeDt getStatusElement() { - if (myStatus == null) { - myStatus = new BoundCodeDt(ValueSetStatusEnum.VALUESET_BINDER); - } - return myStatus; - } - - - /** - * Gets the value(s) for status (status). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The status of the value set - *

- */ - public String getStatus() { - return getStatusElement().getValue(); - } - - /** - * Sets the value(s) for status (status) - * - *

- * Definition: - * The status of the value set - *

- */ - public ValueSet setStatus(BoundCodeDt theValue) { - myStatus = theValue; - return this; - } - - - - /** - * Sets the value(s) for status (status) - * - *

- * Definition: - * The status of the value set - *

- */ - public ValueSet setStatus(ValueSetStatusEnum theValue) { - getStatusElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for experimental (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public BooleanDt getExperimentalElement() { - if (myExperimental == null) { - myExperimental = new BooleanDt(); - } - return myExperimental; - } - - - /** - * Gets the value(s) for experimental (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public Boolean getExperimental() { - return getExperimentalElement().getValue(); - } - - /** - * Sets the value(s) for experimental (class) - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public ValueSet setExperimental(BooleanDt theValue) { - myExperimental = theValue; - return this; - } - - - - /** - * Sets the value for experimental (class) - * - *

- * Definition: - * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage - *

- */ - public ValueSet setExperimental( boolean theBoolean) { - myExperimental = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for extensible (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public BooleanDt getExtensibleElement() { - if (myExtensible == null) { - myExtensible = new BooleanDt(); - } - return myExtensible; - } - - - /** - * Gets the value(s) for extensible (class). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public Boolean getExtensible() { - return getExtensibleElement().getValue(); - } - - /** - * Sets the value(s) for extensible (class) - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public ValueSet setExtensible(BooleanDt theValue) { - myExtensible = theValue; - return this; - } - - - - /** - * Sets the value for extensible (class) - * - *

- * Definition: - * Whether this is intended to be used with an extensible binding or not - *

- */ - public ValueSet setExtensible( boolean theBoolean) { - myExtensible = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for date (when.recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public DateTimeDt getDateElement() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - - /** - * Gets the value(s) for date (when.recorded). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public Date getDate() { - return getDateElement().getValue(); - } - - /** - * Sets the value(s) for date (when.recorded) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - - - /** - * Sets the value for date (when.recorded) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for date (when.recorded) - * - *

- * Definition: - * The date that the value set status was last changed - *

- */ - public ValueSet setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for stableDate (when.init). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public DateDt getStableDateElement() { - if (myStableDate == null) { - myStableDate = new DateDt(); - } - return myStableDate; - } - - - /** - * Gets the value(s) for stableDate (when.init). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public Date getStableDate() { - return getStableDateElement().getValue(); - } - - /** - * Sets the value(s) for stableDate (when.init) - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public ValueSet setStableDate(DateDt theValue) { - myStableDate = theValue; - return this; - } - - - - /** - * Sets the value for stableDate (when.init) - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public ValueSet setStableDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myStableDate = new DateDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for stableDate (when.init) - * - *

- * Definition: - * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. - *

- */ - public ValueSet setStableDateWithDayPrecision( Date theDate) { - myStableDate = new DateDt(theDate); - return this; - } - - - /** - * Gets the value(s) for define (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Define getDefine() { - if (myDefine == null) { - myDefine = new Define(); - } - return myDefine; - } - - /** - * Sets the value(s) for define () - * - *

- * Definition: - * - *

- */ - public ValueSet setDefine(Define theValue) { - myDefine = theValue; - return this; - } - - - - - /** - * Gets the value(s) for compose (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public Compose getCompose() { - if (myCompose == null) { - myCompose = new Compose(); - } - return myCompose; - } - - /** - * Sets the value(s) for compose () - * - *

- * Definition: - * - *

- */ - public ValueSet setCompose(Compose theValue) { - myCompose = theValue; - return this; - } - - - - - /** - * Gets the value(s) for expansion (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed - *

- */ - public Expansion getExpansion() { - if (myExpansion == null) { - myExpansion = new Expansion(); - } - return myExpansion; - } - - /** - * Sets the value(s) for expansion () - * - *

- * Definition: - * A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed - *

- */ - public ValueSet setExpansion(Expansion theValue) { - myExpansion = theValue; - return this; - } - - - - - /** - * Block class for child element: ValueSet.define () - * - *

- * Definition: - * - *

- */ - @Block() - public static class Define - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked" - ) - private StringDt myVersion; - - @Child(name="caseSensitive", type=BooleanDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="If code comparison is case sensitive when codes within this system are compared to each other" - ) - private BooleanDt myCaseSensitive; - - @Child(name="concept", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myConcept; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCaseSensitive, myConcept); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCaseSensitive, myConcept); - } - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system () - * - *

- * Definition: - * - *

- */ - public Define setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system () - * - *

- * Definition: - * - *

- */ - public Define setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public Define setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The version of this code system that defines the codes. Note that the version is optional because a well maintained code system does not suffer from versioning, and therefore the version does not need to be maintained. However many code systems are not well maintained, and the version needs to be defined and tracked - *

- */ - public Define setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for caseSensitive (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public BooleanDt getCaseSensitiveElement() { - if (myCaseSensitive == null) { - myCaseSensitive = new BooleanDt(); - } - return myCaseSensitive; - } - - - /** - * Gets the value(s) for caseSensitive (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public Boolean getCaseSensitive() { - return getCaseSensitiveElement().getValue(); - } - - /** - * Sets the value(s) for caseSensitive () - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public Define setCaseSensitive(BooleanDt theValue) { - myCaseSensitive = theValue; - return this; - } - - - - /** - * Sets the value for caseSensitive () - * - *

- * Definition: - * If code comparison is case sensitive when codes within this system are compared to each other - *

- */ - public Define setCaseSensitive( boolean theBoolean) { - myCaseSensitive = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for concept (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - /** - * Sets the value(s) for concept () - * - *

- * Definition: - * - *

- */ - public Define setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - - - /** - * Adds and returns a new value for concept () - * - *

- * Definition: - * - *

- */ - public DefineConcept addConcept() { - DefineConcept newType = new DefineConcept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public DefineConcept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.define.concept () - * - *

- * Definition: - * - *

- */ - @Block() - public static class DefineConcept - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private CodeDt myCode; - - @Child(name="abstract", type=BooleanDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="If this code is not for use as a real concept" - ) - private BooleanDt myAbstract; - - @Child(name="display", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private StringDt myDisplay; - - @Child(name="definition", type=StringDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept" - ) - private StringDt myDefinition; - - @Child(name="designation", order=4, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc" - ) - private java.util.List myDesignation; - - @Child(name="concept", type=DefineConcept.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myConcept; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myAbstract, myDisplay, myDefinition, myDesignation, myConcept); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myAbstract, myDisplay, myDefinition, myDesignation, myConcept); - } - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code () - * - *

- * Definition: - * - *

- */ - public DefineConcept setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code () - * - *

- * Definition: - * - *

- */ - public DefineConcept setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for abstract (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public BooleanDt getAbstractElement() { - if (myAbstract == null) { - myAbstract = new BooleanDt(); - } - return myAbstract; - } - - - /** - * Gets the value(s) for abstract (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public Boolean getAbstract() { - return getAbstractElement().getValue(); - } - - /** - * Sets the value(s) for abstract () - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public DefineConcept setAbstract(BooleanDt theValue) { - myAbstract = theValue; - return this; - } - - - - /** - * Sets the value for abstract () - * - *

- * Definition: - * If this code is not for use as a real concept - *

- */ - public DefineConcept setAbstract( boolean theBoolean) { - myAbstract = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display () - * - *

- * Definition: - * - *

- */ - public DefineConcept setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display () - * - *

- * Definition: - * - *

- */ - public DefineConcept setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public StringDt getDefinitionElement() { - if (myDefinition == null) { - myDefinition = new StringDt(); - } - return myDefinition; - } - - - /** - * Gets the value(s) for definition (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public String getDefinition() { - return getDefinitionElement().getValue(); - } - - /** - * Sets the value(s) for definition () - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public DefineConcept setDefinition(StringDt theValue) { - myDefinition = theValue; - return this; - } - - - - /** - * Sets the value for definition () - * - *

- * Definition: - * The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept - *

- */ - public DefineConcept setDefinition( String theString) { - myDefinition = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for designation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public java.util.List getDesignation() { - if (myDesignation == null) { - myDesignation = new java.util.ArrayList(); - } - return myDesignation; - } - - /** - * Sets the value(s) for designation () - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConcept setDesignation(java.util.List theValue) { - myDesignation = theValue; - return this; - } - - - - /** - * Adds and returns a new value for designation () - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConceptDesignation addDesignation() { - DefineConceptDesignation newType = new DefineConceptDesignation(); - getDesignation().add(newType); - return newType; - } - - /** - * Gets the first repetition for designation (), - * creating it if it does not already exist. - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConceptDesignation getDesignationFirstRep() { - if (getDesignation().isEmpty()) { - return addDesignation(); - } - return getDesignation().get(0); - } - - /** - * Gets the value(s) for concept (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - /** - * Sets the value(s) for concept () - * - *

- * Definition: - * - *

- */ - public DefineConcept setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - - - /** - * Adds and returns a new value for concept () - * - *

- * Definition: - * - *

- */ - public DefineConcept addConcept() { - DefineConcept newType = new DefineConcept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public DefineConcept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.define.concept.designation () - * - *

- * Definition: - * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - @Block() - public static class DefineConceptDesignation - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="language", type=CodeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The language this designation is defined for" - ) - private CodeDt myLanguage; - - @Child(name="use", type=CodingDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="A code that details how this designation would be used" - ) - private CodingDt myUse; - - @Child(name="value", type=StringDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The text value for this designation" - ) - private StringDt myValue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLanguage, myUse, myValue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLanguage, myUse, myValue); - } - - /** - * Gets the value(s) for language (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The language this designation is defined for - *

- */ - public CodeDt getLanguageElement() { - if (myLanguage == null) { - myLanguage = new CodeDt(); - } - return myLanguage; - } - - - /** - * Gets the value(s) for language (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The language this designation is defined for - *

- */ - public String getLanguage() { - return getLanguageElement().getValue(); - } - - /** - * Sets the value(s) for language () - * - *

- * Definition: - * The language this designation is defined for - *

- */ - public DefineConceptDesignation setLanguage(CodeDt theValue) { - myLanguage = theValue; - return this; - } - - - - /** - * Sets the value for language () - * - *

- * Definition: - * The language this designation is defined for - *

- */ - public DefineConceptDesignation setLanguage( String theCode) { - myLanguage = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for use (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that details how this designation would be used - *

- */ - public CodingDt getUse() { - if (myUse == null) { - myUse = new CodingDt(); - } - return myUse; - } - - /** - * Sets the value(s) for use () - * - *

- * Definition: - * A code that details how this designation would be used - *

- */ - public DefineConceptDesignation setUse(CodingDt theValue) { - myUse = theValue; - return this; - } - - - - - /** - * Gets the value(s) for value (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text value for this designation - *

- */ - public StringDt getValueElement() { - if (myValue == null) { - myValue = new StringDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text value for this designation - *

- */ - public String getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value () - * - *

- * Definition: - * The text value for this designation - *

- */ - public DefineConceptDesignation setValue(StringDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value () - * - *

- * Definition: - * The text value for this designation - *

- */ - public DefineConceptDesignation setValue( String theString) { - myValue = new StringDt(theString); - return this; - } - - - - } - - - - - /** - * Block class for child element: ValueSet.compose () - * - *

- * Definition: - * - *

- */ - @Block() - public static class Compose - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="import", type=UriDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Includes the contents of the referenced value set as a part of the contents of this value set" - ) - private java.util.List myImport; - - @Child(name="include", order=1, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Include one or more codes from a code system" - ) - private java.util.List myInclude; - - @Child(name="exclude", type=ComposeInclude.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Exclude one or more codes from the value set" - ) - private java.util.List myExclude; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myImport, myInclude, myExclude); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myImport, myInclude, myExclude); - } - - /** - * Gets the value(s) for import (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public java.util.List getImport() { - if (myImport == null) { - myImport = new java.util.ArrayList(); - } - return myImport; - } - - /** - * Sets the value(s) for import () - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public Compose setImport(java.util.List theValue) { - myImport = theValue; - return this; - } - - - - /** - * Adds and returns a new value for import () - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public UriDt addImport() { - UriDt newType = new UriDt(); - getImport().add(newType); - return newType; - } - - /** - * Gets the first repetition for import (), - * creating it if it does not already exist. - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- */ - public UriDt getImportFirstRep() { - if (getImport().isEmpty()) { - return addImport(); - } - return getImport().get(0); - } - /** - * Adds a new value for import () - * - *

- * Definition: - * Includes the contents of the referenced value set as a part of the contents of this value set - *

- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Compose addImport( String theUri) { - if (myImport == null) { - myImport = new java.util.ArrayList(); - } - myImport.add(new UriDt(theUri)); - return this; - } - - - /** - * Gets the value(s) for include (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public java.util.List getInclude() { - if (myInclude == null) { - myInclude = new java.util.ArrayList(); - } - return myInclude; - } - - /** - * Sets the value(s) for include () - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public Compose setInclude(java.util.List theValue) { - myInclude = theValue; - return this; - } - - - - /** - * Adds and returns a new value for include () - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public ComposeInclude addInclude() { - ComposeInclude newType = new ComposeInclude(); - getInclude().add(newType); - return newType; - } - - /** - * Gets the first repetition for include (), - * creating it if it does not already exist. - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - public ComposeInclude getIncludeFirstRep() { - if (getInclude().isEmpty()) { - return addInclude(); - } - return getInclude().get(0); - } - - /** - * Gets the value(s) for exclude (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public java.util.List getExclude() { - if (myExclude == null) { - myExclude = new java.util.ArrayList(); - } - return myExclude; - } - - /** - * Sets the value(s) for exclude () - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public Compose setExclude(java.util.List theValue) { - myExclude = theValue; - return this; - } - - - - /** - * Adds and returns a new value for exclude () - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public ComposeInclude addExclude() { - ComposeInclude newType = new ComposeInclude(); - getExclude().add(newType); - return newType; - } - - /** - * Gets the first repetition for exclude (), - * creating it if it does not already exist. - * - *

- * Definition: - * Exclude one or more codes from the value set - *

- */ - public ComposeInclude getExcludeFirstRep() { - if (getExclude().isEmpty()) { - return addExclude(); - } - return getExclude().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.compose.include () - * - *

- * Definition: - * Include one or more codes from a code system - *

- */ - @Block() - public static class ComposeInclude - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The code system from which the selected codes come from" - ) - private UriDt mySystem; - - @Child(name="version", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The version of the code system that the codes are selected from" - ) - private StringDt myVersion; - - @Child(name="concept", order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Specifies a concept to be included or excluded." - ) - private java.util.List myConcept; - - @Child(name="filter", order=3, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true." - ) - private java.util.List myFilter; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myConcept, myFilter); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myConcept, myFilter); - } - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system () - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public ComposeInclude setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system () - * - *

- * Definition: - * The code system from which the selected codes come from - *

- */ - public ComposeInclude setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public ComposeInclude setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The version of the code system that the codes are selected from - *

- */ - public ComposeInclude setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for concept (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - public java.util.List getConcept() { - if (myConcept == null) { - myConcept = new java.util.ArrayList(); - } - return myConcept; - } - - /** - * Sets the value(s) for concept () - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - public ComposeInclude setConcept(java.util.List theValue) { - myConcept = theValue; - return this; - } - - - - /** - * Adds and returns a new value for concept () - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - public ComposeIncludeConcept addConcept() { - ComposeIncludeConcept newType = new ComposeIncludeConcept(); - getConcept().add(newType); - return newType; - } - - /** - * Gets the first repetition for concept (), - * creating it if it does not already exist. - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - public ComposeIncludeConcept getConceptFirstRep() { - if (getConcept().isEmpty()) { - return addConcept(); - } - return getConcept().get(0); - } - - /** - * Gets the value(s) for filter (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public java.util.List getFilter() { - if (myFilter == null) { - myFilter = new java.util.ArrayList(); - } - return myFilter; - } - - /** - * Sets the value(s) for filter () - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeInclude setFilter(java.util.List theValue) { - myFilter = theValue; - return this; - } - - - - /** - * Adds and returns a new value for filter () - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeIncludeFilter addFilter() { - ComposeIncludeFilter newType = new ComposeIncludeFilter(); - getFilter().add(newType); - return newType; - } - - /** - * Gets the first repetition for filter (), - * creating it if it does not already exist. - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - public ComposeIncludeFilter getFilterFirstRep() { - if (getFilter().isEmpty()) { - return addFilter(); - } - return getFilter().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.compose.include.concept () - * - *

- * Definition: - * Specifies a concept to be included or excluded. - *

- */ - @Block() - public static class ComposeIncludeConcept - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="Specifies a code for the concept to be included or excluded" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system" - ) - private StringDt myDisplay; - - @Child(name="designation", type=DefineConceptDesignation.class, order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc" - ) - private java.util.List myDesignation; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDisplay, myDesignation); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDisplay, myDesignation); - } - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a code for the concept to be included or excluded - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Specifies a code for the concept to be included or excluded - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code () - * - *

- * Definition: - * Specifies a code for the concept to be included or excluded - *

- */ - public ComposeIncludeConcept setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code () - * - *

- * Definition: - * Specifies a code for the concept to be included or excluded - *

- */ - public ComposeIncludeConcept setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display () - * - *

- * Definition: - * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system - *

- */ - public ComposeIncludeConcept setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display () - * - *

- * Definition: - * The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system - *

- */ - public ComposeIncludeConcept setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for designation (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public java.util.List getDesignation() { - if (myDesignation == null) { - myDesignation = new java.util.ArrayList(); - } - return myDesignation; - } - - /** - * Sets the value(s) for designation () - * - *

- * Definition: - * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public ComposeIncludeConcept setDesignation(java.util.List theValue) { - myDesignation = theValue; - return this; - } - - - - /** - * Adds and returns a new value for designation () - * - *

- * Definition: - * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConceptDesignation addDesignation() { - DefineConceptDesignation newType = new DefineConceptDesignation(); - getDesignation().add(newType); - return newType; - } - - /** - * Gets the first repetition for designation (), - * creating it if it does not already exist. - * - *

- * Definition: - * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc - *

- */ - public DefineConceptDesignation getDesignationFirstRep() { - if (getDesignation().isEmpty()) { - return addDesignation(); - } - return getDesignation().get(0); - } - - - } - - - /** - * Block class for child element: ValueSet.compose.include.filter () - * - *

- * Definition: - * Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true. - *

- */ - @Block() - public static class ComposeIncludeFilter - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="property", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="A code that identifies a property defined in the code system" - ) - private CodeDt myProperty; - - @Child(name="op", type=CodeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The kind of operation to perform as a part of the filter criteria" - ) - private BoundCodeDt myOp; - - @Child(name="value", type=CodeDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value" - ) - private CodeDt myValue; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myProperty, myOp, myValue); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myProperty, myOp, myValue); - } - - /** - * Gets the value(s) for property (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public CodeDt getPropertyElement() { - if (myProperty == null) { - myProperty = new CodeDt(); - } - return myProperty; - } - - - /** - * Gets the value(s) for property (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public String getProperty() { - return getPropertyElement().getValue(); - } - - /** - * Sets the value(s) for property () - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public ComposeIncludeFilter setProperty(CodeDt theValue) { - myProperty = theValue; - return this; - } - - - - /** - * Sets the value for property () - * - *

- * Definition: - * A code that identifies a property defined in the code system - *

- */ - public ComposeIncludeFilter setProperty( String theCode) { - myProperty = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for op (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public BoundCodeDt getOpElement() { - if (myOp == null) { - myOp = new BoundCodeDt(FilterOperatorEnum.VALUESET_BINDER); - } - return myOp; - } - - - /** - * Gets the value(s) for op (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public String getOp() { - return getOpElement().getValue(); - } - - /** - * Sets the value(s) for op () - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public ComposeIncludeFilter setOp(BoundCodeDt theValue) { - myOp = theValue; - return this; - } - - - - /** - * Sets the value(s) for op () - * - *

- * Definition: - * The kind of operation to perform as a part of the filter criteria - *

- */ - public ComposeIncludeFilter setOp(FilterOperatorEnum theValue) { - getOpElement().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for value (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public CodeDt getValueElement() { - if (myValue == null) { - myValue = new CodeDt(); - } - return myValue; - } - - - /** - * Gets the value(s) for value (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public String getValue() { - return getValueElement().getValue(); - } - - /** - * Sets the value(s) for value () - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public ComposeIncludeFilter setValue(CodeDt theValue) { - myValue = theValue; - return this; - } - - - - /** - * Sets the value for value () - * - *

- * Definition: - * The match value may be either a code defined by the system, or a string value which is used a regex match on the literal string of the property value - *

- */ - public ComposeIncludeFilter setValue( String theCode) { - myValue = new CodeDt(theCode); - return this; - } - - - - } - - - - - /** - * Block class for child element: ValueSet.expansion () - * - *

- * Definition: - * A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed - *

- */ - @Block() - public static class Expansion - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so" - ) - private IdentifierDt myIdentifier; - - @Child(name="timestamp", type=DateTimeDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="", - formalDefinition="The time at which the expansion was produced by the expanding system." - ) - private DateTimeDt myTimestamp; - - @Child(name="contains", order=2, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="The codes that are contained in the value set expansion" - ) - private java.util.List myContains; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myTimestamp, myContains); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myTimestamp, myContains); - } - - /** - * Gets the value(s) for identifier (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - /** - * Sets the value(s) for identifier () - * - *

- * Definition: - * An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so - *

- */ - public Expansion setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - - - - /** - * Gets the value(s) for timestamp (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public DateTimeDt getTimestampElement() { - if (myTimestamp == null) { - myTimestamp = new DateTimeDt(); - } - return myTimestamp; - } - - - /** - * Gets the value(s) for timestamp (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public Date getTimestamp() { - return getTimestampElement().getValue(); - } - - /** - * Sets the value(s) for timestamp () - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public Expansion setTimestamp(DateTimeDt theValue) { - myTimestamp = theValue; - return this; - } - - - - /** - * Sets the value for timestamp () - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public Expansion setTimestamp( Date theDate, TemporalPrecisionEnum thePrecision) { - myTimestamp = new DateTimeDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for timestamp () - * - *

- * Definition: - * The time at which the expansion was produced by the expanding system. - *

- */ - public Expansion setTimestampWithSecondsPrecision( Date theDate) { - myTimestamp = new DateTimeDt(theDate); - return this; - } - - - /** - * Gets the value(s) for contains (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - public java.util.List getContains() { - if (myContains == null) { - myContains = new java.util.ArrayList(); - } - return myContains; - } - - /** - * Sets the value(s) for contains () - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - public Expansion setContains(java.util.List theValue) { - myContains = theValue; - return this; - } - - - - /** - * Adds and returns a new value for contains () - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - public ExpansionContains addContains() { - ExpansionContains newType = new ExpansionContains(); - getContains().add(newType); - return newType; - } - - /** - * Gets the first repetition for contains (), - * creating it if it does not already exist. - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - public ExpansionContains getContainsFirstRep() { - if (getContains().isEmpty()) { - return addContains(); - } - return getContains().get(0); - } - - - } - - /** - * Block class for child element: ValueSet.expansion.contains () - * - *

- * Definition: - * The codes that are contained in the value set expansion - *

- */ - @Block() - public static class ExpansionContains - extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="system", type=UriDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The system in which the code for this item in the expansion is defined" - ) - private UriDt mySystem; - - @Child(name="abstract", type=BooleanDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value" - ) - private BooleanDt myAbstract; - - @Child(name="version", type=StringDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence" - ) - private StringDt myVersion; - - @Child(name="code", type=CodeDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private CodeDt myCode; - - @Child(name="display", type=StringDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="", - formalDefinition="" - ) - private StringDt myDisplay; - - @Child(name="contains", type=ExpansionContains.class, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="", - formalDefinition="" - ) - private java.util.List myContains; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myAbstract, myVersion, myCode, myDisplay, myContains); - } - - @Override - public List getAllPopulatedChildElementsOfType(Class theType) { - return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myAbstract, myVersion, myCode, myDisplay, myContains); - } - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The system in which the code for this item in the expansion is defined - *

- */ - public UriDt getSystemElement() { - if (mySystem == null) { - mySystem = new UriDt(); - } - return mySystem; - } - - - /** - * Gets the value(s) for system (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The system in which the code for this item in the expansion is defined - *

- */ - public String getSystem() { - return getSystemElement().getValue(); - } - - /** - * Sets the value(s) for system () - * - *

- * Definition: - * The system in which the code for this item in the expansion is defined - *

- */ - public ExpansionContains setSystem(UriDt theValue) { - mySystem = theValue; - return this; - } - - - - /** - * Sets the value for system () - * - *

- * Definition: - * The system in which the code for this item in the expansion is defined - *

- */ - public ExpansionContains setSystem( String theUri) { - mySystem = new UriDt(theUri); - return this; - } - - - /** - * Gets the value(s) for abstract (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value - *

- */ - public BooleanDt getAbstractElement() { - if (myAbstract == null) { - myAbstract = new BooleanDt(); - } - return myAbstract; - } - - - /** - * Gets the value(s) for abstract (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value - *

- */ - public Boolean getAbstract() { - return getAbstractElement().getValue(); - } - - /** - * Sets the value(s) for abstract () - * - *

- * Definition: - * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value - *

- */ - public ExpansionContains setAbstract(BooleanDt theValue) { - myAbstract = theValue; - return this; - } - - - - /** - * Sets the value for abstract () - * - *

- * Definition: - * If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value - *

- */ - public ExpansionContains setAbstract( boolean theBoolean) { - myAbstract = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence - *

- */ - public StringDt getVersionElement() { - if (myVersion == null) { - myVersion = new StringDt(); - } - return myVersion; - } - - - /** - * Gets the value(s) for version (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence - *

- */ - public String getVersion() { - return getVersionElement().getValue(); - } - - /** - * Sets the value(s) for version () - * - *

- * Definition: - * The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence - *

- */ - public ExpansionContains setVersion(StringDt theValue) { - myVersion = theValue; - return this; - } - - - - /** - * Sets the value for version () - * - *

- * Definition: - * The version of this code system that defined this code and/or display. This should only be used with code systems that do not enforce concept permanence - *

- */ - public ExpansionContains setVersion( String theString) { - myVersion = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public CodeDt getCodeElement() { - if (myCode == null) { - myCode = new CodeDt(); - } - return myCode; - } - - - /** - * Gets the value(s) for code (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getCode() { - return getCodeElement().getValue(); - } - - /** - * Sets the value(s) for code () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setCode(CodeDt theValue) { - myCode = theValue; - return this; - } - - - - /** - * Sets the value for code () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setCode( String theCode) { - myCode = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public StringDt getDisplayElement() { - if (myDisplay == null) { - myDisplay = new StringDt(); - } - return myDisplay; - } - - - /** - * Gets the value(s) for display (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public String getDisplay() { - return getDisplayElement().getValue(); - } - - /** - * Sets the value(s) for display () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setDisplay(StringDt theValue) { - myDisplay = theValue; - return this; - } - - - - /** - * Sets the value for display () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setDisplay( String theString) { - myDisplay = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for contains (). - * creating it if it does - * not exist. Will not return null. - * - *

- * Definition: - * - *

- */ - public java.util.List getContains() { - if (myContains == null) { - myContains = new java.util.ArrayList(); - } - return myContains; - } - - /** - * Sets the value(s) for contains () - * - *

- * Definition: - * - *

- */ - public ExpansionContains setContains(java.util.List theValue) { - myContains = theValue; - return this; - } - - - - /** - * Adds and returns a new value for contains () - * - *

- * Definition: - * - *

- */ - public ExpansionContains addContains() { - ExpansionContains newType = new ExpansionContains(); - getContains().add(newType); - return newType; - } - - /** - * Gets the first repetition for contains (), - * creating it if it does not already exist. - * - *

- * Definition: - * - *

- */ - public ExpansionContains getContainsFirstRep() { - if (getContains().isEmpty()) { - return addContains(); - } - return getContains().get(0); - } - - - } - - - - - - @Override - public String getResourceName() { - return "ValueSet"; - } - - public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { - return ca.uhn.fhir.context.FhirVersionEnum.DSTU2; - } - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AddressUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AddressUseEnum.java deleted file mode 100644 index ca6f650e90d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AddressUseEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AddressUseEnum { - - /** - * Code Value: home - * - * A communication address at a home. - */ - HOME("home", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: work - * - * An office address. First choice for business related contacts during business hours. - */ - WORK("work", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: temp - * - * A temporary address. The period can provide more detailed information. - */ - TEMP("temp", "http://hl7.org/fhir/address-use"), - - /** - * Code Value: old - * - * This address is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/address-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/address-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/address-use"; - - /** - * Name for this Value Set: - * AddressUse - */ - public static final String VALUESET_NAME = "AddressUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AddressUseEnum next : AddressUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AddressUseEnum forCode(String theCode) { - AddressUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AddressUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AddressUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AddressUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AddressUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AddressUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjudicationCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjudicationCodesEnum.java deleted file mode 100644 index 9ea9ab6e662..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjudicationCodesEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdjudicationCodesEnum { - - /** - * Code Value: total - */ - TOTAL("total", "http://hl7.org/fhir/adjudication"), - - /** - * Code Value: copay - */ - COPAY("copay", "http://hl7.org/fhir/adjudication"), - - /** - * Code Value: eligible - */ - ELIGIBLE("eligible", "http://hl7.org/fhir/adjudication"), - - /** - * Code Value: deductable - */ - DEDUCTABLE("deductable", "http://hl7.org/fhir/adjudication"), - - /** - * Code Value: eligpercent - */ - ELIGPERCENT("eligpercent", "http://hl7.org/fhir/adjudication"), - - /** - * Code Value: tax - */ - TAX("tax", "http://hl7.org/fhir/adjudication"), - - /** - * Code Value: benefit - */ - BENEFIT("benefit", "http://hl7.org/fhir/adjudication"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/adjudication - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/adjudication"; - - /** - * Name for this Value Set: - * Adjudication Codes - */ - public static final String VALUESET_NAME = "Adjudication Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdjudicationCodesEnum next : AdjudicationCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdjudicationCodesEnum forCode(String theCode) { - AdjudicationCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdjudicationCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdjudicationCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdjudicationCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdjudicationCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdjudicationCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjudicationErrorCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjudicationErrorCodesEnum.java deleted file mode 100644 index ae6bdb9ef67..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjudicationErrorCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdjudicationErrorCodesEnum { - - /** - * Code Value: A001 - */ - A001("A001", "http://hl7.org/fhir/adjudication-error"), - - /** - * Code Value: A002 - */ - A002("A002", "http://hl7.org/fhir/adjudication-error"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/adjudication-error - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/adjudication-error"; - - /** - * Name for this Value Set: - * Adjudication Error Codes - */ - public static final String VALUESET_NAME = "Adjudication Error Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdjudicationErrorCodesEnum next : AdjudicationErrorCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdjudicationErrorCodesEnum forCode(String theCode) { - AdjudicationErrorCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdjudicationErrorCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdjudicationErrorCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdjudicationErrorCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdjudicationErrorCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdjudicationErrorCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjustmentReasonCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjustmentReasonCodesEnum.java deleted file mode 100644 index da97fb98121..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdjustmentReasonCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdjustmentReasonCodesEnum { - - /** - * Code Value: A001 - */ - A001("A001", "http://hl7.org/fhir/adjustment-reason"), - - /** - * Code Value: A002 - */ - A002("A002", "http://hl7.org/fhir/adjustment-reason"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/adjustment-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/adjustment-reason"; - - /** - * Name for this Value Set: - * Adjustment Reason Codes - */ - public static final String VALUESET_NAME = "Adjustment Reason Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdjustmentReasonCodesEnum next : AdjustmentReasonCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdjustmentReasonCodesEnum forCode(String theCode) { - AdjustmentReasonCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdjustmentReasonCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdjustmentReasonCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdjustmentReasonCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdjustmentReasonCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdjustmentReasonCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdministrativeGenderEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdministrativeGenderEnum.java deleted file mode 100644 index f082171b590..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdministrativeGenderEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdministrativeGenderEnum { - - /** - * Code Value: male - * - * Male - */ - MALE("male", "http://hl7.org/fhir/administrative-gender"), - - /** - * Code Value: female - * - * Female - */ - FEMALE("female", "http://hl7.org/fhir/administrative-gender"), - - /** - * Code Value: other - * - * Other - */ - OTHER("other", "http://hl7.org/fhir/administrative-gender"), - - /** - * Code Value: unknown - * - * Unknown - */ - UNKNOWN("unknown", "http://hl7.org/fhir/administrative-gender"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/administrative-gender - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/administrative-gender"; - - /** - * Name for this Value Set: - * AdministrativeGender - */ - public static final String VALUESET_NAME = "AdministrativeGender"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdministrativeGenderEnum next : AdministrativeGenderEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdministrativeGenderEnum forCode(String theCode) { - AdministrativeGenderEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdministrativeGenderEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdministrativeGenderEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdministrativeGenderEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdministrativeGenderEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdministrativeGenderEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdmitSourceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdmitSourceEnum.java deleted file mode 100644 index 8572c6de073..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AdmitSourceEnum.java +++ /dev/null @@ -1,162 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AdmitSourceEnum { - - /** - * Display: Transferred from other hospital
- * Code Value: hosp-trans - */ - TRANSFERRED_FROM_OTHER_HOSPITAL("hosp-trans", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From accident/emergency department
- * Code Value: emd - */ - FROM_ACCIDENT_EMERGENCY_DEPARTMENT("emd", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From outpatient department
- * Code Value: outp - */ - FROM_OUTPATIENT_DEPARTMENT("outp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Born in hospital
- * Code Value: born - */ - BORN_IN_HOSPITAL("born", "http://hl7.org/fhir/admit-source"), - - /** - * Display: General Practitioner referral
- * Code Value: gp - */ - GENERAL_PRACTITIONER_REFERRAL("gp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Medical Practitioner/physician referral
- * Code Value: mp - */ - MEDICAL_PRACTITIONER_PHYSICIAN_REFERRAL("mp", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From nursing home
- * Code Value: nursing - */ - FROM_NURSING_HOME("nursing", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From psychiatric hospital
- * Code Value: psych - */ - FROM_PSYCHIATRIC_HOSPITAL("psych", "http://hl7.org/fhir/admit-source"), - - /** - * Display: From rehabilitation facility
- * Code Value: rehab - */ - FROM_REHABILITATION_FACILITY("rehab", "http://hl7.org/fhir/admit-source"), - - /** - * Display: Other
- * Code Value: other - */ - OTHER("other", "http://hl7.org/fhir/admit-source"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-admit-source - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-admit-source"; - - /** - * Name for this Value Set: - * AdmitSource - */ - public static final String VALUESET_NAME = "AdmitSource"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AdmitSourceEnum next : AdmitSourceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AdmitSourceEnum forCode(String theCode) { - AdmitSourceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AdmitSourceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AdmitSourceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AdmitSourceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AdmitSourceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AdmitSourceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AggregationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AggregationModeEnum.java deleted file mode 100644 index a91d66c6a18..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AggregationModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AggregationModeEnum { - - /** - * Code Value: contained - * - * The reference is a local reference to a contained resource. - */ - CONTAINED("contained", "http://hl7.org/fhir/resource-aggregation-mode"), - - /** - * Code Value: referenced - * - * The reference to a resource that has to be resolved externally to the resource that includes the reference. - */ - REFERENCED("referenced", "http://hl7.org/fhir/resource-aggregation-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-aggregation-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-aggregation-mode"; - - /** - * Name for this Value Set: - * AggregationMode - */ - public static final String VALUESET_NAME = "AggregationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AggregationModeEnum next : AggregationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AggregationModeEnum forCode(String theCode) { - AggregationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AggregationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AggregationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AggregationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AggregationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AggregationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AlertStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AlertStatusEnum.java deleted file mode 100644 index 42e6992bad8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AlertStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AlertStatusEnum { - - /** - * Code Value: active - * - * A current alert that should be displayed to a user. A system may use the category to determine which roles should view the alert. - */ - ACTIVE("active", "http://hl7.org/fhir/alert-status"), - - /** - * Code Value: inactive - * - * The alert does not need to be displayed any more. - */ - INACTIVE("inactive", "http://hl7.org/fhir/alert-status"), - - /** - * Code Value: entered in error - * - * The alert was added in error, and should no longer be displayed. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/alert-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/alert-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/alert-status"; - - /** - * Name for this Value Set: - * AlertStatus - */ - public static final String VALUESET_NAME = "AlertStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AlertStatusEnum next : AlertStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AlertStatusEnum forCode(String theCode) { - AlertStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AlertStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AlertStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AlertStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AlertStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AlertStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCategoryEnum.java deleted file mode 100644 index e76d5ad8f4a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCategoryEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AllergyIntoleranceCategoryEnum { - - /** - * Display: Food
- * Code Value: food - * - * Any substance consumed to provide nutritional support for the body. - */ - FOOD("food", "http://hl7.org/fhir/allergy-intolerance-category"), - - /** - * Display: Medication
- * Code Value: medication - * - * Substances administered to achieve a physiological effect. - */ - MEDICATION("medication", "http://hl7.org/fhir/allergy-intolerance-category"), - - /** - * Display: Environment
- * Code Value: environment - * - * Substances that are encountered in the environment. - */ - ENVIRONMENT("environment", "http://hl7.org/fhir/allergy-intolerance-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/allergy-intolerance-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/allergy-intolerance-category"; - - /** - * Name for this Value Set: - * AllergyIntoleranceCategory - */ - public static final String VALUESET_NAME = "AllergyIntoleranceCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AllergyIntoleranceCategoryEnum next : AllergyIntoleranceCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AllergyIntoleranceCategoryEnum forCode(String theCode) { - AllergyIntoleranceCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AllergyIntoleranceCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AllergyIntoleranceCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AllergyIntoleranceCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AllergyIntoleranceCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AllergyIntoleranceCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCertaintyEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCertaintyEnum.java deleted file mode 100644 index f0d4384b4db..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCertaintyEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AllergyIntoleranceCertaintyEnum { - - /** - * Display: Unlikely
- * Code Value: unlikely - * - * There is a low level of clinical certainty that the reaction was caused by the identified Substance. - */ - UNLIKELY("unlikely", "http://hl7.org/fhir/reaction-event-certainty"), - - /** - * Display: Likely
- * Code Value: likely - * - * There is a high level of clinical certainty that the reaction was caused by the identified Substance. - */ - LIKELY("likely", "http://hl7.org/fhir/reaction-event-certainty"), - - /** - * Display: Confirmed
- * Code Value: confirmed - * - * There is a very high level of clinical certainty that the reaction was due to the identified Substance, which may include clinical evidence by testing or rechallenge. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/reaction-event-certainty"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reaction-event-certainty - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reaction-event-certainty"; - - /** - * Name for this Value Set: - * AllergyIntoleranceCertainty - */ - public static final String VALUESET_NAME = "AllergyIntoleranceCertainty"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AllergyIntoleranceCertaintyEnum next : AllergyIntoleranceCertaintyEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AllergyIntoleranceCertaintyEnum forCode(String theCode) { - AllergyIntoleranceCertaintyEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AllergyIntoleranceCertaintyEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AllergyIntoleranceCertaintyEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AllergyIntoleranceCertaintyEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AllergyIntoleranceCertaintyEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AllergyIntoleranceCertaintyEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCriticalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCriticalityEnum.java deleted file mode 100644 index b2a2fb0be00..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceCriticalityEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AllergyIntoleranceCriticalityEnum { - - /** - * Display: Low Risk
- * Code Value: low - * - * The potential clinical impact of a future reaction is estimated as low risk: exposure to substance is unlikely to result in a life threatening or organ system threatening outcome. Future exposure to the Substance is considered a relative contra-indication. - */ - LOW_RISK("low", "http://hl7.org/fhir/allergy-intolerance-criticality"), - - /** - * Display: High Risk
- * Code Value: high - * - * The potential clinical impact of a future reaction is estimated as high risk: exposure to substance may result in a life threatening or organ system threatening outcome. Future exposure to the Substance may be considered an absolute contra-indication. - */ - HIGH_RISK("high", "http://hl7.org/fhir/allergy-intolerance-criticality"), - - /** - * Display: Unable to determine
- * Code Value: unassessible - * - * Unable to assess the potential clinical impact with the information available. - */ - UNABLE_TO_DETERMINE("unassessible", "http://hl7.org/fhir/allergy-intolerance-criticality"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/allergy-intolerance-criticality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/allergy-intolerance-criticality"; - - /** - * Name for this Value Set: - * AllergyIntoleranceCriticality - */ - public static final String VALUESET_NAME = "AllergyIntoleranceCriticality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AllergyIntoleranceCriticalityEnum next : AllergyIntoleranceCriticalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AllergyIntoleranceCriticalityEnum forCode(String theCode) { - AllergyIntoleranceCriticalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AllergyIntoleranceCriticalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AllergyIntoleranceCriticalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AllergyIntoleranceCriticalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AllergyIntoleranceCriticalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AllergyIntoleranceCriticalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceSeverityEnum.java deleted file mode 100644 index 70d169f0790..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceSeverityEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AllergyIntoleranceSeverityEnum { - - /** - * Display: Mild
- * Code Value: mild - * - * Causes mild physiological effects. - */ - MILD("mild", "http://hl7.org/fhir/reaction-event-severity"), - - /** - * Display: Moderate
- * Code Value: moderate - * - * Causes moderate physiological effects. - */ - MODERATE("moderate", "http://hl7.org/fhir/reaction-event-severity"), - - /** - * Display: Severe
- * Code Value: severe - * - * Causes severe physiological effects. - */ - SEVERE("severe", "http://hl7.org/fhir/reaction-event-severity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/reaction-event-severity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/reaction-event-severity"; - - /** - * Name for this Value Set: - * AllergyIntoleranceSeverity - */ - public static final String VALUESET_NAME = "AllergyIntoleranceSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AllergyIntoleranceSeverityEnum next : AllergyIntoleranceSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AllergyIntoleranceSeverityEnum forCode(String theCode) { - AllergyIntoleranceSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AllergyIntoleranceSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AllergyIntoleranceSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AllergyIntoleranceSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AllergyIntoleranceSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AllergyIntoleranceSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceStatusEnum.java deleted file mode 100644 index bef95731901..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceStatusEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AllergyIntoleranceStatusEnum { - - /** - * Display: Unconfirmed
- * Code Value: unconfirmed - * - * A low level of certainty about the propensity for a reaction to the identified Substance. - */ - UNCONFIRMED("unconfirmed", "http://hl7.org/fhir/allergy-intolerance-status"), - - /** - * Display: Confirmed
- * Code Value: confirmed - * - * A high level of certainty about the propensity for a reaction to the identified Substance, which may include clinical evidence by testing or rechallenge. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/allergy-intolerance-status"), - - /** - * Display: Resolved
- * Code Value: resolved - * - * A reaction to the identified Substance has been clinically reassessed by testing or rechallenge and considered to be resolved. - */ - RESOLVED("resolved", "http://hl7.org/fhir/allergy-intolerance-status"), - - /** - * Display: Refuted
- * Code Value: refuted - * - * A propensity for a reaction to the identified Substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted. - */ - REFUTED("refuted", "http://hl7.org/fhir/allergy-intolerance-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/allergy-intolerance-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/allergy-intolerance-status"; - - /** - * Name for this Value Set: - * AllergyIntoleranceStatus - */ - public static final String VALUESET_NAME = "AllergyIntoleranceStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AllergyIntoleranceStatusEnum next : AllergyIntoleranceStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AllergyIntoleranceStatusEnum forCode(String theCode) { - AllergyIntoleranceStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AllergyIntoleranceStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AllergyIntoleranceStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AllergyIntoleranceStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AllergyIntoleranceStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AllergyIntoleranceStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceTypeEnum.java deleted file mode 100644 index 487b7327ce2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AllergyIntoleranceTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AllergyIntoleranceTypeEnum { - - /** - * Display: Immune Mediated
- * Code Value: immune - * - * Immune mediated reaction, including allergic reactions and hypersensitivities. - */ - IMMUNE_MEDIATED("immune", "http://hl7.org/fhir/allergy-intolerance-type"), - - /** - * Display: Non-immune mediated
- * Code Value: non-immune - * - * A non-immune mediated reaction, which can include pseudoallergic reactions, side effects, intolerances, drug toxicities (eg to Gentamicin), drug-drug interactions, food-drug interactions, and drug-disease interactions. - */ - NON_IMMUNE_MEDIATED("non-immune", "http://hl7.org/fhir/allergy-intolerance-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/allergy-intolerance-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/allergy-intolerance-type"; - - /** - * Name for this Value Set: - * AllergyIntoleranceType - */ - public static final String VALUESET_NAME = "AllergyIntoleranceType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AllergyIntoleranceTypeEnum next : AllergyIntoleranceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AllergyIntoleranceTypeEnum forCode(String theCode) { - AllergyIntoleranceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AllergyIntoleranceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AllergyIntoleranceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AllergyIntoleranceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AllergyIntoleranceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AllergyIntoleranceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AnimalSpeciesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AnimalSpeciesEnum.java deleted file mode 100644 index a64e787d411..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AnimalSpeciesEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AnimalSpeciesEnum { - - /** - * Display: Dog
- * Code Value: canislf - * - * Canis lupus familiaris - */ - DOG("canislf", "http://hl7.org/fhir/animal-species"), - - /** - * Display: Sheep
- * Code Value: ovisa - * - * Ovis aries - */ - SHEEP("ovisa", "http://hl7.org/fhir/animal-species"), - - /** - * Display: Domestic Canary
- * Code Value: serinuscd - * - * Serinus canaria domestica - */ - DOMESTIC_CANARY("serinuscd", "http://hl7.org/fhir/animal-species"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/animal-species - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/animal-species"; - - /** - * Name for this Value Set: - * AnimalSpecies - */ - public static final String VALUESET_NAME = "AnimalSpecies"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AnimalSpeciesEnum next : AnimalSpeciesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AnimalSpeciesEnum forCode(String theCode) { - AnimalSpeciesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AnimalSpeciesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AnimalSpeciesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AnimalSpeciesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AnimalSpeciesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AnimalSpeciesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AnswerFormatEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AnswerFormatEnum.java deleted file mode 100644 index 4c1e3c09ea3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AnswerFormatEnum.java +++ /dev/null @@ -1,200 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AnswerFormatEnum { - - /** - * Code Value: boolean - * - * Answer is a yes/no answer. - */ - BOOLEAN("boolean", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: decimal - * - * Answer is a floating point number. - */ - DECIMAL("decimal", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: integer - * - * Answer is an integer. - */ - INTEGER("integer", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: date - * - * Answer is a date. - */ - DATE("date", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: dateTime - * - * Answer is a date and time. - */ - DATETIME("dateTime", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: instant - * - * Answer is a system timestamp. - */ - INSTANT("instant", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: time - * - * Answer is a time independent of date. - */ - TIME("time", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: string - * - * Answer is a short (few words to short sentence) free-text entry. - */ - STRING("string", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: text - * - * Answer is a long (potentially multi-paragram) free-text entry. - */ - TEXT("text", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: choice - * - * Answer is a choice from a list of options. - */ - CHOICE("choice", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: open-choice - * - * Answer is a choice from a list of options or a free-text entry. - */ - OPEN_CHOICE("open-choice", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: attachment - * - * Answer is binary content such as a image, PDF, etc. - */ - ATTACHMENT("attachment", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: reference - * - * Answer is a reference to another resource (practitioner, organization, etc.). - */ - REFERENCE("reference", "http://hl7.org/fhir/answer-format"), - - /** - * Code Value: quantity - * - * Answer is a combination of a numeric value and unit. - */ - QUANTITY("quantity", "http://hl7.org/fhir/answer-format"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/answer-format - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/answer-format"; - - /** - * Name for this Value Set: - * AnswerFormat - */ - public static final String VALUESET_NAME = "AnswerFormat"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AnswerFormatEnum next : AnswerFormatEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AnswerFormatEnum forCode(String theCode) { - AnswerFormatEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AnswerFormatEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AnswerFormatEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AnswerFormatEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AnswerFormatEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AnswerFormatEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AppointmentStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AppointmentStatusEnum.java deleted file mode 100644 index 97a5a2c4c26..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/AppointmentStatusEnum.java +++ /dev/null @@ -1,150 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum AppointmentStatusEnum { - - /** - * Display: Pending
- * Code Value: pending - * - * Some or all of the participant(s) have not finalized their acceptance of the appointment request. - */ - PENDING("pending", "http://hl7.org/fhir/appointmentstatus"), - - /** - * Display: Booked
- * Code Value: booked - * - * All participant(s) have been considered and the appointment is condirmed to go ahead at the date/times specified. - */ - BOOKED("booked", "http://hl7.org/fhir/appointmentstatus"), - - /** - * Display: Arrived
- * Code Value: arrived - * - * Some of the patients have arrived. - */ - ARRIVED("arrived", "http://hl7.org/fhir/appointmentstatus"), - - /** - * Display: Fulfilled
- * Code Value: fulfilled - * - * This appointment has completed and may have resulted in an encounter. - */ - FULFILLED("fulfilled", "http://hl7.org/fhir/appointmentstatus"), - - /** - * Display: Cancelled
- * Code Value: cancelled - * - * The appointment has been cancelled. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/appointmentstatus"), - - /** - * Display: No Show
- * Code Value: noshow - * - * Some or all of the participant(s) have not/did not appear for the appointment (usually the patient). - */ - NO_SHOW("noshow", "http://hl7.org/fhir/appointmentstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/appointmentstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/appointmentstatus"; - - /** - * Name for this Value Set: - * AppointmentStatus - */ - public static final String VALUESET_NAME = "AppointmentStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (AppointmentStatusEnum next : AppointmentStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public AppointmentStatusEnum forCode(String theCode) { - AppointmentStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(AppointmentStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(AppointmentStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public AppointmentStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public AppointmentStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - AppointmentStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/BindingConformanceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/BindingConformanceEnum.java deleted file mode 100644 index c89a825db49..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/BindingConformanceEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum BindingConformanceEnum { - - /** - * Code Value: required - * - * Only codes in the specified set are allowed. If the binding is extensible, other codes may be used for concepts not covered by the bound set of codes. - */ - REQUIRED("required", "http://hl7.org/fhir/binding-conformance"), - - /** - * Code Value: preferred - * - * For greater interoperability, implementers are strongly encouraged to use the bound set of codes, however alternate codes may be used in derived profiles and implementations if necessary without being considered non-conformant. - */ - PREFERRED("preferred", "http://hl7.org/fhir/binding-conformance"), - - /** - * Code Value: example - * - * The codes in the set are an example to illustrate the meaning of the field. There is no particular preference for its use nor any assertion that the provided values are sufficient to meet implementation needs. - */ - EXAMPLE("example", "http://hl7.org/fhir/binding-conformance"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/binding-conformance - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/binding-conformance"; - - /** - * Name for this Value Set: - * BindingConformance - */ - public static final String VALUESET_NAME = "BindingConformance"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (BindingConformanceEnum next : BindingConformanceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public BindingConformanceEnum forCode(String theCode) { - BindingConformanceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(BindingConformanceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(BindingConformanceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public BindingConformanceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public BindingConformanceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - BindingConformanceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlan2StatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlan2StatusEnum.java deleted file mode 100644 index 8ab46477d66..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlan2StatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlan2StatusEnum { - - /** - * Code Value: planned - * - * The plan is in development or awaiting use but is not yet intended to be acted upon. - */ - PLANNED("planned", "http://hl7.org/fhir/care-plan2-status"), - - /** - * Code Value: active - * - * The plan is intended to be followed and used as part of patient care. - */ - ACTIVE("active", "http://hl7.org/fhir/care-plan2-status"), - - /** - * Code Value: completed - * - * The plan is no longer in use and is not expected to be followed or used in patient care. - */ - COMPLETED("completed", "http://hl7.org/fhir/care-plan2-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan2-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan2-status"; - - /** - * Name for this Value Set: - * CarePlan2Status - */ - public static final String VALUESET_NAME = "CarePlan2Status"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlan2StatusEnum next : CarePlan2StatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlan2StatusEnum forCode(String theCode) { - CarePlan2StatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlan2StatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlan2StatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlan2StatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlan2StatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlan2StatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanActivityCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanActivityCategoryEnum.java deleted file mode 100644 index 48a64ff2e8d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanActivityCategoryEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanActivityCategoryEnum { - - /** - * Code Value: diet - * - * Plan for the patient to consume food of a specified nature. - */ - DIET("diet", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: drug - * - * Plan for the patient to consume/receive a drug, vaccine or other product. - */ - DRUG("drug", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: encounter - * - * Plan to meet or communicate with the patient (in-patient, out-patient, phone call, etc.). - */ - ENCOUNTER("encounter", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: observation - * - * Plan to capture information about a patient (vitals, labs, diagnostic images, etc.). - */ - OBSERVATION("observation", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: procedure - * - * Plan to modify the patient in some way (surgery, physiotherapy, education, counseling, etc.). - */ - PROCEDURE("procedure", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: supply - * - * Plan to provide something to the patient (medication, medical supply, etc.). - */ - SUPPLY("supply", "http://hl7.org/fhir/care-plan-activity-category"), - - /** - * Code Value: other - * - * Some other form of action. - */ - OTHER("other", "http://hl7.org/fhir/care-plan-activity-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-activity-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-activity-category"; - - /** - * Name for this Value Set: - * CarePlanActivityCategory - */ - public static final String VALUESET_NAME = "CarePlanActivityCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanActivityCategoryEnum next : CarePlanActivityCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanActivityCategoryEnum forCode(String theCode) { - CarePlanActivityCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanActivityCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanActivityCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanActivityCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanActivityCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanActivityCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanActivityStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanActivityStatusEnum.java deleted file mode 100644 index 160d0a90e0d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanActivityStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanActivityStatusEnum { - - /** - * Code Value: not started - * - * Activity is planned but no action has yet been taken. - */ - NOT_STARTED("not started", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: scheduled - * - * Appointment or other booking has occurred but activity has not yet begun. - */ - SCHEDULED("scheduled", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: in progress - * - * Activity has been started but is not yet complete. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: on hold - * - * Activity was started but has temporarily ceased with an expectation of resumption at a future time. - */ - ON_HOLD("on hold", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: completed - * - * The activities have been completed (more or less) as planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/care-plan-activity-status"), - - /** - * Code Value: cancelled - * - * The activities have been ended prior to completion (perhaps even before they were started). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/care-plan-activity-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-activity-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-activity-status"; - - /** - * Name for this Value Set: - * CarePlanActivityStatus - */ - public static final String VALUESET_NAME = "CarePlanActivityStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanActivityStatusEnum next : CarePlanActivityStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanActivityStatusEnum forCode(String theCode) { - CarePlanActivityStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanActivityStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanActivityStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanActivityStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanActivityStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanActivityStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanGoalStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanGoalStatusEnum.java deleted file mode 100644 index eeaaccd3d5f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanGoalStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanGoalStatusEnum { - - /** - * Code Value: in progress - * - * The goal is being sought but has not yet been reached. (Also applies if goal was reached in the past but there has been regression and goal is being sought again). - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: achieved - * - * The goal has been met and no further action is needed. - */ - ACHIEVED("achieved", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: sustaining - * - * The goal has been met, but ongoing activity is needed to sustain the goal objective. - */ - SUSTAINING("sustaining", "http://hl7.org/fhir/care-plan-goal-status"), - - /** - * Code Value: cancelled - * - * The goal is no longer being sought. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/care-plan-goal-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-goal-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-goal-status"; - - /** - * Name for this Value Set: - * CarePlanGoalStatus - */ - public static final String VALUESET_NAME = "CarePlanGoalStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanGoalStatusEnum next : CarePlanGoalStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanGoalStatusEnum forCode(String theCode) { - CarePlanGoalStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanGoalStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanGoalStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanGoalStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanGoalStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanGoalStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanStatusEnum.java deleted file mode 100644 index 6abded13fa4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CarePlanStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CarePlanStatusEnum { - - /** - * Code Value: planned - * - * The plan is in development or awaiting use but is not yet intended to be acted upon. - */ - PLANNED("planned", "http://hl7.org/fhir/care-plan-status"), - - /** - * Code Value: active - * - * The plan is intended to be followed and used as part of patient care. - */ - ACTIVE("active", "http://hl7.org/fhir/care-plan-status"), - - /** - * Code Value: completed - * - * The plan is no longer in use and is not expected to be followed or used in patient care. - */ - COMPLETED("completed", "http://hl7.org/fhir/care-plan-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/care-plan-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/care-plan-status"; - - /** - * Name for this Value Set: - * CarePlanStatus - */ - public static final String VALUESET_NAME = "CarePlanStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CarePlanStatusEnum next : CarePlanStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CarePlanStatusEnum forCode(String theCode) { - CarePlanStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CarePlanStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CarePlanStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CarePlanStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CarePlanStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CarePlanStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CommunicationRequestStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CommunicationRequestStatusEnum.java deleted file mode 100644 index 75f07364669..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CommunicationRequestStatusEnum.java +++ /dev/null @@ -1,172 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CommunicationRequestStatusEnum { - - /** - * Code Value: proposed - * - * The request has been proposed. - */ - PROPOSED("proposed", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: planned - * - * The request has been planned. - */ - PLANNED("planned", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: requested - * - * The request has been placed. - */ - REQUESTED("requested", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: received - * - * The receiving system has received the request but not yet decided whether it will be performed. - */ - RECEIVED("received", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: accepted - * - * The receiving system has accepted the order, but work has not yet commenced. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: in progress - * - * The work to fulfill the order is happening. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: completed - * - * The work has been complete, the report(s) released, and no further work is planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: suspended - * - * The request has been held by originating system/user request. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: rejected - * - * The receiving system has declined to fulfill the request. - */ - REJECTED("rejected", "http://hl7.org/fhir/communication-request-status"), - - /** - * Code Value: failed - * - * The communication was attempted, but due to some procedural error, it could not be completed. - */ - FAILED("failed", "http://hl7.org/fhir/communication-request-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/communication-request-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/communication-request-status"; - - /** - * Name for this Value Set: - * CommunicationRequestStatus - */ - public static final String VALUESET_NAME = "CommunicationRequestStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CommunicationRequestStatusEnum next : CommunicationRequestStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CommunicationRequestStatusEnum forCode(String theCode) { - CommunicationRequestStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CommunicationRequestStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CommunicationRequestStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CommunicationRequestStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CommunicationRequestStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CommunicationRequestStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CommunicationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CommunicationStatusEnum.java deleted file mode 100644 index 95f2adee189..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CommunicationStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CommunicationStatusEnum { - - /** - * Code Value: in progress - * - * The communication transmission is ongoing. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/communication-status"), - - /** - * Code Value: completed - * - * The message transmission is complete, i.e., delivered to the recipient's destination. - */ - COMPLETED("completed", "http://hl7.org/fhir/communication-status"), - - /** - * Code Value: suspended - * - * The communication transmission has been held by originating system/user request. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/communication-status"), - - /** - * Code Value: rejected - * - * The receiving system has declined to accept the message. - */ - REJECTED("rejected", "http://hl7.org/fhir/communication-status"), - - /** - * Code Value: failed - * - * There was a failure in transmitting the message out. - */ - FAILED("failed", "http://hl7.org/fhir/communication-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/communication-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/communication-status"; - - /** - * Name for this Value Set: - * CommunicationStatus - */ - public static final String VALUESET_NAME = "CommunicationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CommunicationStatusEnum next : CommunicationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CommunicationStatusEnum forCode(String theCode) { - CommunicationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CommunicationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CommunicationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CommunicationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CommunicationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CommunicationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CompositionAttestationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CompositionAttestationModeEnum.java deleted file mode 100644 index 700fd8b651c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CompositionAttestationModeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CompositionAttestationModeEnum { - - /** - * Code Value: personal - * - * The person authenticated the content in their personal capacity. - */ - PERSONAL("personal", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: professional - * - * The person authenticated the content in their professional capacity. - */ - PROFESSIONAL("professional", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: legal - * - * The person authenticated the content and accepted legal responsibility for its content. - */ - LEGAL("legal", "http://hl7.org/fhir/composition-attestation-mode"), - - /** - * Code Value: official - * - * The organization authenticated the content as consistent with their policies and procedures. - */ - OFFICIAL("official", "http://hl7.org/fhir/composition-attestation-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/composition-attestation-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/composition-attestation-mode"; - - /** - * Name for this Value Set: - * CompositionAttestationMode - */ - public static final String VALUESET_NAME = "CompositionAttestationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CompositionAttestationModeEnum next : CompositionAttestationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CompositionAttestationModeEnum forCode(String theCode) { - CompositionAttestationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CompositionAttestationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CompositionAttestationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CompositionAttestationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CompositionAttestationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CompositionAttestationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CompositionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CompositionStatusEnum.java deleted file mode 100644 index 81bcfe36de5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/CompositionStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum CompositionStatusEnum { - - /** - * Code Value: preliminary - * - * This is a preliminary composition or document (also known as initial or interim). The content may be incomplete or unverified. - */ - PRELIMINARY("preliminary", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: final - * - * The composition or document is complete and verified by an appropriate person, and no further work is planned. - */ - FINAL("final", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: appended - * - * The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. The modifications added new information to the composition or document, but did not revise existing content. - */ - APPENDED("appended", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: amended - * - * The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. - */ - AMENDED("amended", "http://hl7.org/fhir/composition-status"), - - /** - * Code Value: entered in error - * - * The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/composition-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/composition-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/composition-status"; - - /** - * Name for this Value Set: - * CompositionStatus - */ - public static final String VALUESET_NAME = "CompositionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (CompositionStatusEnum next : CompositionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public CompositionStatusEnum forCode(String theCode) { - CompositionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(CompositionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(CompositionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public CompositionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public CompositionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - CompositionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConceptMapEquivalenceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConceptMapEquivalenceEnum.java deleted file mode 100644 index 7ab63b2d4ee..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConceptMapEquivalenceEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConceptMapEquivalenceEnum { - - /** - * Code Value: equivalent - * - * The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical). - */ - EQUIVALENT("equivalent", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: wider - * - * The target mapping is wider in meaning than the source concept. - */ - WIDER("wider", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: narrower - * - * The target mapping is narrower in meaning that the source concept. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally. - */ - NARROWER("narrower", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: inexact - * - * The target mapping overlaps with the source concept, but both source and target cover additional meaning, or the definitions are imprecise and it is uncertain whether they have the same boundaries to their meaning. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally. - */ - INEXACT("inexact", "http://hl7.org/fhir/concept-equivalence"), - - /** - * Code Value: unmatched - * - * There is no match for this concept in the destination concept system. - */ - UNMATCHED("unmatched", "http://hl7.org/fhir/concept-equivalence"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/concept-equivalence - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/concept-equivalence"; - - /** - * Name for this Value Set: - * ConceptMapEquivalence - */ - public static final String VALUESET_NAME = "ConceptMapEquivalence"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConceptMapEquivalenceEnum next : ConceptMapEquivalenceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConceptMapEquivalenceEnum forCode(String theCode) { - ConceptMapEquivalenceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConceptMapEquivalenceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConceptMapEquivalenceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConceptMapEquivalenceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConceptMapEquivalenceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConceptMapEquivalenceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConditionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConditionStatusEnum.java deleted file mode 100644 index b2befb7dc78..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConditionStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConditionStatusEnum { - - /** - * Code Value: provisional - * - * This is a tentative diagnosis - still a candidate that is under consideration. - */ - PROVISIONAL("provisional", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: working - * - * The patient is being treated on the basis that this is the condition, but it is still not confirmed. - */ - WORKING("working", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: confirmed - * - * There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition. - */ - CONFIRMED("confirmed", "http://hl7.org/fhir/condition-status"), - - /** - * Code Value: refuted - * - * This condition has been ruled out by diagnostic and clinical evidence. - */ - REFUTED("refuted", "http://hl7.org/fhir/condition-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/condition-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/condition-status"; - - /** - * Name for this Value Set: - * ConditionStatus - */ - public static final String VALUESET_NAME = "ConditionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConditionStatusEnum next : ConditionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConditionStatusEnum forCode(String theCode) { - ConditionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConditionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConditionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConditionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConditionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConditionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConditionsCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConditionsCodesEnum.java deleted file mode 100644 index 32a77518b7f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConditionsCodesEnum.java +++ /dev/null @@ -1,107 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConditionsCodesEnum { - - /** - * Code Value: 123987 - */ - _123987("123987", "http://hl7.org/fhir/fm-conditions"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/fm-conditions - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/fm-conditions"; - - /** - * Name for this Value Set: - * Conditions Codes - */ - public static final String VALUESET_NAME = "Conditions Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConditionsCodesEnum next : ConditionsCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConditionsCodesEnum forCode(String theCode) { - ConditionsCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConditionsCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConditionsCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConditionsCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConditionsCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConditionsCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConformanceEventModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConformanceEventModeEnum.java deleted file mode 100644 index 1277f1fce47..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConformanceEventModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConformanceEventModeEnum { - - /** - * Code Value: sender - * - * The application sends requests and receives responses. - */ - SENDER("sender", "http://hl7.org/fhir/message-conformance-event-mode"), - - /** - * Code Value: receiver - * - * The application receives requests and sends responses. - */ - RECEIVER("receiver", "http://hl7.org/fhir/message-conformance-event-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-conformance-event-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-conformance-event-mode"; - - /** - * Name for this Value Set: - * ConformanceEventMode - */ - public static final String VALUESET_NAME = "ConformanceEventMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConformanceEventModeEnum next : ConformanceEventModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConformanceEventModeEnum forCode(String theCode) { - ConformanceEventModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConformanceEventModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConformanceEventModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConformanceEventModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConformanceEventModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConformanceEventModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConformanceStatementStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConformanceStatementStatusEnum.java deleted file mode 100644 index 1a29b33682b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConformanceStatementStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConformanceStatementStatusEnum { - - /** - * Code Value: draft - * - * This conformance statement is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/conformance-statement-status"), - - /** - * Code Value: active - * - * This conformance statement is ready for use in production systems. - */ - ACTIVE("active", "http://hl7.org/fhir/conformance-statement-status"), - - /** - * Code Value: retired - * - * This conformance statement has been withdrawn or superceded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/conformance-statement-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/conformance-statement-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/conformance-statement-status"; - - /** - * Name for this Value Set: - * ConformanceStatementStatus - */ - public static final String VALUESET_NAME = "ConformanceStatementStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConformanceStatementStatusEnum next : ConformanceStatementStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConformanceStatementStatusEnum forCode(String theCode) { - ConformanceStatementStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConformanceStatementStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConformanceStatementStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConformanceStatementStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConformanceStatementStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConformanceStatementStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConstraintSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConstraintSeverityEnum.java deleted file mode 100644 index 8e5d2ffd333..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ConstraintSeverityEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ConstraintSeverityEnum { - - /** - * Code Value: error - * - * If the constraint is violated, the resource is not conformant. - */ - ERROR("error", "http://hl7.org/fhir/constraint-severity"), - - /** - * Code Value: warning - * - * If the constraint is violated, the resource is conformant, but it is not necessarily following best practice. - */ - WARNING("warning", "http://hl7.org/fhir/constraint-severity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/constraint-severity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/constraint-severity"; - - /** - * Name for this Value Set: - * ConstraintSeverity - */ - public static final String VALUESET_NAME = "ConstraintSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ConstraintSeverityEnum next : ConstraintSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ConstraintSeverityEnum forCode(String theCode) { - ConstraintSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ConstraintSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ConstraintSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ConstraintSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ConstraintSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ConstraintSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContactPointSystemEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContactPointSystemEnum.java deleted file mode 100644 index cfa5a34f87e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContactPointSystemEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContactPointSystemEnum { - - /** - * Code Value: phone - * - * The value is a telephone number used for voice calls. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required. - */ - PHONE("phone", "http://hl7.org/fhir/contact-point-system"), - - /** - * Code Value: fax - * - * The value is a fax machine. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required. - */ - FAX("fax", "http://hl7.org/fhir/contact-point-system"), - - /** - * Code Value: email - * - * The value is an email address. - */ - EMAIL("email", "http://hl7.org/fhir/contact-point-system"), - - /** - * Code Value: url - * - * The value is a url. This is intended for various personal contacts including blogs, Twitter, Facebook, etc. Do not use for email addresses. - */ - URL("url", "http://hl7.org/fhir/contact-point-system"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contact-point-system - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contact-point-system"; - - /** - * Name for this Value Set: - * ContactPointSystem - */ - public static final String VALUESET_NAME = "ContactPointSystem"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContactPointSystemEnum next : ContactPointSystemEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContactPointSystemEnum forCode(String theCode) { - ContactPointSystemEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContactPointSystemEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContactPointSystemEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContactPointSystemEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContactPointSystemEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContactPointSystemEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContactPointUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContactPointUseEnum.java deleted file mode 100644 index d4359896def..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContactPointUseEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContactPointUseEnum { - - /** - * Code Value: home - * - * A communication contact point at a home; attempted contacts for business purposes might intrude privacy and chances are one will contact family or other household members instead of the person one wishes to call. Typically used with urgent cases, or if no other contacts are available. - */ - HOME("home", "http://hl7.org/fhir/contact-point-use"), - - /** - * Code Value: work - * - * An office contact point. First choice for business related contacts during business hours. - */ - WORK("work", "http://hl7.org/fhir/contact-point-use"), - - /** - * Code Value: temp - * - * A temporary contact point. The period can provide more detailed information. - */ - TEMP("temp", "http://hl7.org/fhir/contact-point-use"), - - /** - * Code Value: old - * - * This contact point is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/contact-point-use"), - - /** - * Code Value: mobile - * - * A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business. - */ - MOBILE("mobile", "http://hl7.org/fhir/contact-point-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contact-point-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contact-point-use"; - - /** - * Name for this Value Set: - * ContactPointUse - */ - public static final String VALUESET_NAME = "ContactPointUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContactPointUseEnum next : ContactPointUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContactPointUseEnum forCode(String theCode) { - ContactPointUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContactPointUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContactPointUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContactPointUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContactPointUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContactPointUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractSignerTypeCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractSignerTypeCodesEnum.java deleted file mode 100644 index b32b7bebbb4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractSignerTypeCodesEnum.java +++ /dev/null @@ -1,238 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContractSignerTypeCodesEnum { - - /** - * Display: AuthorID
- * Code Value: 1.2.840.10065.1.12.1.1 - * - * Author - */ - AUTHORID("1.2.840.10065.1.12.1.1", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Co-AuthorID
- * Code Value: 1.2.840.10065.1.12.1.2 - * - * Co-Author - */ - CO_AUTHORID("1.2.840.10065.1.12.1.2", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Co-Participated
- * Code Value: 1.2.840.10065.1.12.1.3 - * - * Co-Participated - */ - CO_PARTICIPATED("1.2.840.10065.1.12.1.3", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Transcriptionist
- * Code Value: 1.2.840.10065.1.12.1.4 - * - * Transcriptionist - */ - TRANSCRIPTIONIST("1.2.840.10065.1.12.1.4", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Verification
- * Code Value: 1.2.840.10065.1.12.1.5 - * - * Verification - */ - VERIFICATION("1.2.840.10065.1.12.1.5", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Validation
- * Code Value: 1.2.840.10065.1.12.1.6 - * - * Validation - */ - VALIDATION("1.2.840.10065.1.12.1.6", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Consent
- * Code Value: 1.2.840.10065.1.12.1.7 - * - * Consent - */ - CONSENT("1.2.840.10065.1.12.1.7", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Witness
- * Code Value: 1.2.840.10065.1.12.1.8 - * - * Witness - */ - WITNESS("1.2.840.10065.1.12.1.8", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Event-Witness
- * Code Value: 1.2.840.10065.1.12.1.9 - * - * Event Witness - */ - EVENT_WITNESS("1.2.840.10065.1.12.1.9", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Identity-Witness
- * Code Value: 1.2.840.10065.1.12.1.10 - * - * Identity Witness - */ - IDENTITY_WITNESS("1.2.840.10065.1.12.1.10", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Consent-Witness
- * Code Value: 1.2.840.10065.1.12.1.11 - * - * Consent Witness - */ - CONSENT_WITNESS("1.2.840.10065.1.12.1.11", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Interpreter
- * Code Value: 1.2.840.10065.1.12.1.12 - * - * Interpreter - */ - INTERPRETER("1.2.840.10065.1.12.1.12", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Review
- * Code Value: 1.2.840.10065.1.12.1.13 - * - * Review - */ - REVIEW("1.2.840.10065.1.12.1.13", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Source
- * Code Value: 1.2.840.10065.1.12.1.14 - * - * Source - */ - SOURCE("1.2.840.10065.1.12.1.14", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Addendum
- * Code Value: 1.2.840.10065.1.12.1.15 - * - * Addendum - */ - ADDENDUM("1.2.840.10065.1.12.1.15", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Administrative
- * Code Value: 1.2.840.10065.1.12.1.16 - * - * Administrative - */ - ADMINISTRATIVE("1.2.840.10065.1.12.1.16", "http://www.hl7.org/fhir/contractsignertypecodes"), - - /** - * Display: Timestamp
- * Code Value: 1.2.840.10065.1.12.1.17 - * - * Timestamp - */ - TIMESTAMP("1.2.840.10065.1.12.1.17", "http://www.hl7.org/fhir/contractsignertypecodes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contract-signer-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contract-signer-type"; - - /** - * Name for this Value Set: - * Contract Signer Type Codes - */ - public static final String VALUESET_NAME = "Contract Signer Type Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContractSignerTypeCodesEnum next : ContractSignerTypeCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContractSignerTypeCodesEnum forCode(String theCode) { - ContractSignerTypeCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContractSignerTypeCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContractSignerTypeCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContractSignerTypeCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContractSignerTypeCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContractSignerTypeCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractSubtypeCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractSubtypeCodesEnum.java deleted file mode 100644 index 69583cb960b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractSubtypeCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContractSubtypeCodesEnum { - - /** - * Code Value: disclosure-CA - */ - DISCLOSURE_CA("disclosure-CA", "http://www.hl7.org/fhir/contractsubtypecodes"), - - /** - * Code Value: disclosure-US - */ - DISCLOSURE_US("disclosure-US", "http://www.hl7.org/fhir/contractsubtypecodes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contract-subtype - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contract-subtype"; - - /** - * Name for this Value Set: - * Contract Subtype Codes - */ - public static final String VALUESET_NAME = "Contract Subtype Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContractSubtypeCodesEnum next : ContractSubtypeCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContractSubtypeCodesEnum forCode(String theCode) { - ContractSubtypeCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContractSubtypeCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContractSubtypeCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContractSubtypeCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContractSubtypeCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContractSubtypeCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractTermTypeCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractTermTypeCodesEnum.java deleted file mode 100644 index be9e8207bd4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractTermTypeCodesEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContractTermTypeCodesEnum { - - /** - * Code Value: OralHealth-Basic - */ - ORALHEALTH_BASIC("OralHealth-Basic", "http://www.hl7.org/fhir/contracttermsubtypecodes"), - - /** - * Code Value: OralHealth-Major - */ - ORALHEALTH_MAJOR("OralHealth-Major", "http://www.hl7.org/fhir/contracttermsubtypecodes"), - - /** - * Code Value: OralHealth-Orthodontic - */ - ORALHEALTH_ORTHODONTIC("OralHealth-Orthodontic", "http://www.hl7.org/fhir/contracttermsubtypecodes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contract-term-subtype - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contract-term-subtype"; - - /** - * Name for this Value Set: - * Contract Term Type Codes - */ - public static final String VALUESET_NAME = "Contract Term Type Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContractTermTypeCodesEnum next : ContractTermTypeCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContractTermTypeCodesEnum forCode(String theCode) { - ContractTermTypeCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContractTermTypeCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContractTermTypeCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContractTermTypeCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContractTermTypeCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContractTermTypeCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractTypeCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractTypeCodesEnum.java deleted file mode 100644 index 0171d555094..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ContractTypeCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ContractTypeCodesEnum { - - /** - * Code Value: privacy - */ - PRIVACY("privacy", "http://www.hl7.org/fhir/contracttypecodes"), - - /** - * Code Value: disclosure - */ - DISCLOSURE("disclosure", "http://www.hl7.org/fhir/contracttypecodes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/contract-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/contract-type"; - - /** - * Name for this Value Set: - * Contract Type Codes - */ - public static final String VALUESET_NAME = "Contract Type Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ContractTypeCodesEnum next : ContractTypeCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ContractTypeCodesEnum forCode(String theCode) { - ContractTypeCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ContractTypeCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ContractTypeCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ContractTypeCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ContractTypeCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ContractTypeCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataAbsentReasonEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataAbsentReasonEnum.java deleted file mode 100644 index 64aeee2e32b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataAbsentReasonEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DataAbsentReasonEnum { - - /** - * Code Value: unknown - * - * The value is not known - */ - UNKNOWN("unknown", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: asked - * - * The source human does not know the value - */ - ASKED("asked", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: temp - * - * There is reason to expect (from the workflow) that the value may become known - */ - TEMP("temp", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: notasked - * - * The workflow didn't lead to this value being known - */ - NOTASKED("notasked", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: masked - * - * The information is not available due to security, privacy or related reasons - */ - MASKED("masked", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: unsupported - * - * The source system wasn't capable of supporting this element - */ - UNSUPPORTED("unsupported", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: astext - * - * The content of the data is represented in the resource narrative - */ - ASTEXT("astext", "http://hl7.org/fhir/data-absent-reason"), - - /** - * Code Value: error - * - * Some system or workflow process error means that the information is not available - */ - ERROR("error", "http://hl7.org/fhir/data-absent-reason"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/data-absent-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/data-absent-reason"; - - /** - * Name for this Value Set: - * DataAbsentReason - */ - public static final String VALUESET_NAME = "DataAbsentReason"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DataAbsentReasonEnum next : DataAbsentReasonEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DataAbsentReasonEnum forCode(String theCode) { - DataAbsentReasonEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DataAbsentReasonEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DataAbsentReasonEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DataAbsentReasonEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DataAbsentReasonEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DataAbsentReasonEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataElementGranularityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataElementGranularityEnum.java deleted file mode 100644 index df7a74e3e05..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataElementGranularityEnum.java +++ /dev/null @@ -1,109 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DataElementGranularityEnum { - - /** - * Code Value: comparable - * - * The data element is sufficiently well-constrained that multiple pieces of data captured according to the constraints of the data element will be comparable (though in some cases, a degree of automated conversion/normalization may be required). - */ - COMPARABLE("comparable", "http://hl7.org/fhir/dataelement-granularity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/dataelement-granularity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/dataelement-granularity"; - - /** - * Name for this Value Set: - * DataElementGranularity - */ - public static final String VALUESET_NAME = "DataElementGranularity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DataElementGranularityEnum next : DataElementGranularityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DataElementGranularityEnum forCode(String theCode) { - DataElementGranularityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DataElementGranularityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DataElementGranularityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DataElementGranularityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DataElementGranularityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DataElementGranularityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataTypeEnum.java deleted file mode 100644 index 03900c69c3e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DataTypeEnum.java +++ /dev/null @@ -1,368 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DataTypeEnum { - - /** - * Code Value: Address - * - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world. - */ - ADDRESS("Address", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Age - * - * A duration (length of time) with a UCUM code - */ - AGE("Age", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Attachment - * - * For referring to data content defined in other formats. - */ - ATTACHMENT("Attachment", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: BackboneElement - * - * Base definition for all elements that are defined inside a resource - but not those in a data type. - */ - BACKBONEELEMENT("BackboneElement", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: CodeableConcept - * - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. - */ - CODEABLECONCEPT("CodeableConcept", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Coding - * - * A reference to a code defined by a terminology system. - */ - CODING("Coding", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: ContactPoint - * - * Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc. - */ - CONTACTPOINT("ContactPoint", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Count - * - * A count of a discrete element (no unit) - */ - COUNT("Count", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Distance - * - * A measure of distance - */ - DISTANCE("Distance", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Duration - * - * A length of time - */ - DURATION("Duration", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Element - * - * Base definition for all elements in a resource. - */ - ELEMENT("Element", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: ElementDefinition - * - * Captures constraints on each element within the resource, profile, or extension. - */ - ELEMENTDEFINITION("ElementDefinition", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Extension - * - * Optional Extensions Element - found in all resources. - */ - EXTENSION("Extension", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: HumanName - * - * A human's name with the ability to identify parts and usage. - */ - HUMANNAME("HumanName", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Identifier - * - * A technical identifier - identifies some entity uniquely and unambiguously. - */ - IDENTIFIER("Identifier", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Money - * - * An amount of money. With regard to precision, see [[X]] - */ - MONEY("Money", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Narrative - * - * A human-readable formatted text, including images. - */ - NARRATIVE("Narrative", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Period - * - * A time period defined by a start and end date and optionally time. - */ - PERIOD("Period", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Quantity - * - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. - */ - QUANTITY("Quantity", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Range - * - * A set of ordered Quantities defined by a low and high limit. - */ - RANGE("Range", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Ratio - * - * A relationship of two Quantity values - expressed as a numerator and a denominator. - */ - RATIO("Ratio", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Reference - * - * A reference from one resource to another. - */ - REFERENCE("Reference", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: SampledData - * - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. - */ - SAMPLEDDATA("SampledData", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: Timing - * - * Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur. - */ - TIMING("Timing", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: base64Binary - * - * A stream of bytes - */ - BASE64BINARY("base64Binary", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: boolean - * - * Value of "true" or "false" - */ - BOOLEAN("boolean", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: code - * - * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents - */ - CODE("code", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: date - * - * A date, or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. - */ - DATE("date", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: dateTime - * - * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds may be provided but may also be ignored. Dates SHALL be valid dates. - */ - DATETIME("dateTime", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: decimal - * - * A rational number with implicit precision - */ - DECIMAL("decimal", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: id - * - * Any combination of lowercase letters, numerals, "-" and ".", with a length limit of 36 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Systems SHALL send ids as lower-case but SHOULD interpret them case-insensitively. - */ - ID("id", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: instant - * - * An instant in time - known at least to the second - */ - INSTANT("instant", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: integer - * - * A whole number - */ - INTEGER("integer", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: oid - * - * An oid represented as a URI - */ - OID("oid", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: string - * - * A sequence of Unicode characters - */ - STRING("string", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: time - * - * A time during the day, with no date specified - */ - TIME("time", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: uri - * - * String of characters used to identify a name or a resource - */ - URI("uri", "http://hl7.org/fhir/data-types"), - - /** - * Code Value: uuid - * - * A UUID, represented as a URI - */ - UUID("uuid", "http://hl7.org/fhir/data-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/data-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/data-types"; - - /** - * Name for this Value Set: - * DataType - */ - public static final String VALUESET_NAME = "DataType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DataTypeEnum next : DataTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DataTypeEnum forCode(String theCode) { - DataTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DataTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DataTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DataTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DataTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DataTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCalibrationStateEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCalibrationStateEnum.java deleted file mode 100644 index 9fc1a4ea670..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCalibrationStateEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DeviceMetricCalibrationStateEnum { - - /** - * Code Value: not-calibrated - * - * The metric has not been calibrated. - */ - NOT_CALIBRATED("not-calibrated", "http://hl7.org/fhir/metric-calibration-state"), - - /** - * Code Value: calibration-required - * - * The metric needs to be calibrated. - */ - CALIBRATION_REQUIRED("calibration-required", "http://hl7.org/fhir/metric-calibration-state"), - - /** - * Code Value: calibrated - * - * The metric has been calibrated. - */ - CALIBRATED("calibrated", "http://hl7.org/fhir/metric-calibration-state"), - - /** - * Code Value: unspecified - * - * The state of calibration of this metric is unspecified. - */ - UNSPECIFIED("unspecified", "http://hl7.org/fhir/metric-calibration-state"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/metric-calibration-state - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/metric-calibration-state"; - - /** - * Name for this Value Set: - * DeviceMetricCalibrationState - */ - public static final String VALUESET_NAME = "DeviceMetricCalibrationState"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DeviceMetricCalibrationStateEnum next : DeviceMetricCalibrationStateEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DeviceMetricCalibrationStateEnum forCode(String theCode) { - DeviceMetricCalibrationStateEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DeviceMetricCalibrationStateEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DeviceMetricCalibrationStateEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DeviceMetricCalibrationStateEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DeviceMetricCalibrationStateEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DeviceMetricCalibrationStateEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCalibrationTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCalibrationTypeEnum.java deleted file mode 100644 index 3882ef346a3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCalibrationTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DeviceMetricCalibrationTypeEnum { - - /** - * Code Value: unspecified - * - * TODO. - */ - UNSPECIFIED("unspecified", "http://hl7.org/fhir/metric-calibration-type"), - - /** - * Code Value: offset - * - * TODO. - */ - OFFSET("offset", "http://hl7.org/fhir/metric-calibration-type"), - - /** - * Code Value: gain - * - * TODO. - */ - GAIN("gain", "http://hl7.org/fhir/metric-calibration-type"), - - /** - * Code Value: two-point - * - * TODO. - */ - TWO_POINT("two-point", "http://hl7.org/fhir/metric-calibration-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/metric-calibration-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/metric-calibration-type"; - - /** - * Name for this Value Set: - * DeviceMetricCalibrationType - */ - public static final String VALUESET_NAME = "DeviceMetricCalibrationType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DeviceMetricCalibrationTypeEnum next : DeviceMetricCalibrationTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DeviceMetricCalibrationTypeEnum forCode(String theCode) { - DeviceMetricCalibrationTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DeviceMetricCalibrationTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DeviceMetricCalibrationTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DeviceMetricCalibrationTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DeviceMetricCalibrationTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DeviceMetricCalibrationTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCategoryEnum.java deleted file mode 100644 index d39974fe40e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricCategoryEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DeviceMetricCategoryEnum { - - /** - * Code Value: measurement - * - * DeviceObservations generated for this DeviceMetric are measured. - */ - MEASUREMENT("measurement", "http://hl7.org/fhir/metric-category"), - - /** - * Code Value: setting - * - * DeviceObservations generated for this DeviceMetric is a setting that will influence the behavior of the Device. - */ - SETTING("setting", "http://hl7.org/fhir/metric-category"), - - /** - * Code Value: calculation - * - * DeviceObservations generated for this DeviceMetric are calculated. - */ - CALCULATION("calculation", "http://hl7.org/fhir/metric-category"), - - /** - * Code Value: unspecified - * - * The category of this DeviceMetric is unspecified. - */ - UNSPECIFIED("unspecified", "http://hl7.org/fhir/metric-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/metric-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/metric-category"; - - /** - * Name for this Value Set: - * DeviceMetricCategory - */ - public static final String VALUESET_NAME = "DeviceMetricCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DeviceMetricCategoryEnum next : DeviceMetricCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DeviceMetricCategoryEnum forCode(String theCode) { - DeviceMetricCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DeviceMetricCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DeviceMetricCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DeviceMetricCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DeviceMetricCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DeviceMetricCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricOperationalStateEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricOperationalStateEnum.java deleted file mode 100644 index 622c698585d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceMetricOperationalStateEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DeviceMetricOperationalStateEnum { - - /** - * Code Value: on - * - * The DeviceMetric is operating and will generate DeviceObservations. - */ - ON("on", "http://hl7.org/fhir/metric-operational-status"), - - /** - * Code Value: off - * - * The DeviceMetric is not operating. - */ - OFF("off", "http://hl7.org/fhir/metric-operational-status"), - - /** - * Code Value: standby - * - * The DeviceMetric is operating, but will not generate any DeviceObservations. - */ - STANDBY("standby", "http://hl7.org/fhir/metric-operational-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/metric-operational-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/metric-operational-status"; - - /** - * Name for this Value Set: - * DeviceMetricOperationalState - */ - public static final String VALUESET_NAME = "DeviceMetricOperationalState"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DeviceMetricOperationalStateEnum next : DeviceMetricOperationalStateEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DeviceMetricOperationalStateEnum forCode(String theCode) { - DeviceMetricOperationalStateEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DeviceMetricOperationalStateEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DeviceMetricOperationalStateEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DeviceMetricOperationalStateEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DeviceMetricOperationalStateEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DeviceMetricOperationalStateEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceUseRequestPriorityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceUseRequestPriorityEnum.java deleted file mode 100644 index 011911b5bf6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceUseRequestPriorityEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DeviceUseRequestPriorityEnum { - - /** - * Code Value: routine - * - * The request has a normal priority. - */ - ROUTINE("routine", "http://hl7.org/fhir/device-use-request-priority"), - - /** - * Code Value: urgent - * - * The request should be done urgently. - */ - URGENT("urgent", "http://hl7.org/fhir/device-use-request-priority"), - - /** - * Code Value: stat - * - * The request is time-critical. - */ - STAT("stat", "http://hl7.org/fhir/device-use-request-priority"), - - /** - * Code Value: asap - * - * The request should be acted on as soon as possible. - */ - ASAP("asap", "http://hl7.org/fhir/device-use-request-priority"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/device-use-request-priority - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/device-use-request-priority"; - - /** - * Name for this Value Set: - * DeviceUseRequestPriority - */ - public static final String VALUESET_NAME = "DeviceUseRequestPriority"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DeviceUseRequestPriorityEnum next : DeviceUseRequestPriorityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DeviceUseRequestPriorityEnum forCode(String theCode) { - DeviceUseRequestPriorityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DeviceUseRequestPriorityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DeviceUseRequestPriorityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DeviceUseRequestPriorityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DeviceUseRequestPriorityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DeviceUseRequestPriorityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceUseRequestStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceUseRequestStatusEnum.java deleted file mode 100644 index 71ee2293228..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DeviceUseRequestStatusEnum.java +++ /dev/null @@ -1,172 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DeviceUseRequestStatusEnum { - - /** - * Code Value: proposed - * - * The request has been proposed. - */ - PROPOSED("proposed", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: planned - * - * The request has been planned. - */ - PLANNED("planned", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: requested - * - * The request has been placed. - */ - REQUESTED("requested", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: received - * - * The receiving system has received the request but not yet decided whether it will be performed. - */ - RECEIVED("received", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: accepted - * - * The receiving system has accepted the request but work has not yet commenced. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: in progress - * - * The work to fulfill the order is happening. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: completed - * - * The work has been complete, the report(s) released, and no further work is planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: suspended - * - * The request has been held by originating system/user request. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: rejected - * - * The receiving system has declined to fulfill the request. - */ - REJECTED("rejected", "http://hl7.org/fhir/device-use-request-status"), - - /** - * Code Value: aborted - * - * The request was attempted, but due to some procedural error, it could not be completed. - */ - ABORTED("aborted", "http://hl7.org/fhir/device-use-request-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/device-use-request-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/device-use-request-status"; - - /** - * Name for this Value Set: - * DeviceUseRequestStatus - */ - public static final String VALUESET_NAME = "DeviceUseRequestStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DeviceUseRequestStatusEnum next : DeviceUseRequestStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DeviceUseRequestStatusEnum forCode(String theCode) { - DeviceUseRequestStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DeviceUseRequestStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DeviceUseRequestStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DeviceUseRequestStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DeviceUseRequestStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DeviceUseRequestStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticOrderPriorityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticOrderPriorityEnum.java deleted file mode 100644 index 3ba7c16fe2f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticOrderPriorityEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticOrderPriorityEnum { - - /** - * Display: Routine
- * Code Value: routine - * - * The order has a normal priority. - */ - ROUTINE("routine", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: Urgent
- * Code Value: urgent - * - * The order should be urgently. - */ - URGENT("urgent", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: Stat
- * Code Value: stat - * - * The order is time-critical. - */ - STAT("stat", "http://hl7.org/fhir/diagnostic-order-priority"), - - /** - * Display: ASAP
- * Code Value: asap - * - * The order should be acted on as soon as possible. - */ - ASAP("asap", "http://hl7.org/fhir/diagnostic-order-priority"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-order-priority - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-order-priority"; - - /** - * Name for this Value Set: - * DiagnosticOrderPriority - */ - public static final String VALUESET_NAME = "DiagnosticOrderPriority"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticOrderPriorityEnum next : DiagnosticOrderPriorityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticOrderPriorityEnum forCode(String theCode) { - DiagnosticOrderPriorityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticOrderPriorityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticOrderPriorityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticOrderPriorityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticOrderPriorityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticOrderPriorityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticOrderStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticOrderStatusEnum.java deleted file mode 100644 index aefa03f4b18..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticOrderStatusEnum.java +++ /dev/null @@ -1,165 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticOrderStatusEnum { - - /** - * Code Value: requested - * - * The request has been placed. - */ - REQUESTED("requested", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: received - * - * The receiving system has received the order, but not yet decided whether it will be performed. - */ - RECEIVED("received", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: accepted - * - * The receiving system has accepted the order, but work has not yet commenced. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: in progress - * - * The work to fulfill the order is happening. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: review - * - * The work is complete, and the outcomes are being reviewed for approval. - */ - REVIEW("review", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: completed - * - * The work has been complete, the report(s) released, and no further work is planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: suspended - * - * The request has been held by originating system/user request. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: rejected - * - * The receiving system has declined to fulfill the request. - */ - REJECTED("rejected", "http://hl7.org/fhir/diagnostic-order-status"), - - /** - * Code Value: failed - * - * The diagnostic investigation was attempted, but due to some procedural error, it could not be completed. - */ - FAILED("failed", "http://hl7.org/fhir/diagnostic-order-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-order-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-order-status"; - - /** - * Name for this Value Set: - * DiagnosticOrderStatus - */ - public static final String VALUESET_NAME = "DiagnosticOrderStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticOrderStatusEnum next : DiagnosticOrderStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticOrderStatusEnum forCode(String theCode) { - DiagnosticOrderStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticOrderStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticOrderStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticOrderStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticOrderStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticOrderStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticReportStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticReportStatusEnum.java deleted file mode 100644 index 3f54ca9572f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DiagnosticReportStatusEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DiagnosticReportStatusEnum { - - /** - * Code Value: registered - * - * The existence of the report is registered, but there is nothing yet available. - */ - REGISTERED("registered", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: partial - * - * This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified. - */ - PARTIAL("partial", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: final - * - * The report is complete and verified by an authorized person. - */ - FINAL("final", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: corrected - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person. - */ - CORRECTED("corrected", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: amended - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person, and data has been changed. - */ - AMENDED("amended", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: appended - * - * The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed. - */ - APPENDED("appended", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: cancelled - * - * The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/diagnostic-report-status"), - - /** - * Code Value: entered in error - * - * The report has been withdrawn following previous Final release. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/diagnostic-report-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/diagnostic-report-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-report-status"; - - /** - * Name for this Value Set: - * DiagnosticReportStatus - */ - public static final String VALUESET_NAME = "DiagnosticReportStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DiagnosticReportStatusEnum next : DiagnosticReportStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DiagnosticReportStatusEnum forCode(String theCode) { - DiagnosticReportStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DiagnosticReportStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DiagnosticReportStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DiagnosticReportStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DiagnosticReportStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DiagnosticReportStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentModeEnum.java deleted file mode 100644 index 97e6997332b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentModeEnum { - - /** - * Code Value: producer - * - * The application produces documents of the specified type. - */ - PRODUCER("producer", "http://hl7.org/fhir/document-mode"), - - /** - * Code Value: consumer - * - * The application consumes documents of the specified type. - */ - CONSUMER("consumer", "http://hl7.org/fhir/document-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-mode"; - - /** - * Name for this Value Set: - * DocumentMode - */ - public static final String VALUESET_NAME = "DocumentMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentModeEnum next : DocumentModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentModeEnum forCode(String theCode) { - DocumentModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentReferenceStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentReferenceStatusEnum.java deleted file mode 100644 index 74bbce27502..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentReferenceStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentReferenceStatusEnum { - - /** - * Code Value: current - * - * This is the current reference for this document. - */ - CURRENT("current", "http://hl7.org/fhir/document-reference-status"), - - /** - * Code Value: superceded - * - * This reference has been superseded by another reference. - */ - SUPERCEDED("superceded", "http://hl7.org/fhir/document-reference-status"), - - /** - * Code Value: entered in error - * - * This reference was created in error. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/document-reference-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-reference-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-reference-status"; - - /** - * Name for this Value Set: - * DocumentReferenceStatus - */ - public static final String VALUESET_NAME = "DocumentReferenceStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentReferenceStatusEnum next : DocumentReferenceStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentReferenceStatusEnum forCode(String theCode) { - DocumentReferenceStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentReferenceStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentReferenceStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentReferenceStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentReferenceStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentReferenceStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentRelationshipTypeEnum.java deleted file mode 100644 index 523eae8dc76..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/DocumentRelationshipTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum DocumentRelationshipTypeEnum { - - /** - * Code Value: replaces - * - * This document logically replaces or supercedes the target document. - */ - REPLACES("replaces", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: transforms - * - * This document was generated by transforming the target document (e.g. format or language conversion). - */ - TRANSFORMS("transforms", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: signs - * - * This document is a signature of the target document. - */ - SIGNS("signs", "http://hl7.org/fhir/document-relationship-type"), - - /** - * Code Value: appends - * - * This document adds additional information to the target document. - */ - APPENDS("appends", "http://hl7.org/fhir/document-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/document-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/document-relationship-type"; - - /** - * Name for this Value Set: - * DocumentRelationshipType - */ - public static final String VALUESET_NAME = "DocumentRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (DocumentRelationshipTypeEnum next : DocumentRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public DocumentRelationshipTypeEnum forCode(String theCode) { - DocumentRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(DocumentRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(DocumentRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public DocumentRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public DocumentRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - DocumentRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterClassEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterClassEnum.java deleted file mode 100644 index 8f8f5cf48ea..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterClassEnum.java +++ /dev/null @@ -1,165 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterClassEnum { - - /** - * Code Value: inpatient - * - * An encounter during which the patient is hospitalized and stays overnight. - */ - INPATIENT("inpatient", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: outpatient - * - * An encounter during which the patient is not hospitalized overnight. - */ - OUTPATIENT("outpatient", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: ambulatory - * - * An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit. - */ - AMBULATORY("ambulatory", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: emergency - * - * An encounter where the patient needs urgent care. - */ - EMERGENCY("emergency", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: home - * - * An encounter where the practitioner visits the patient at his/her home. - */ - HOME("home", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: field - * - * An encounter taking place outside the regular environment for giving care. - */ - FIELD("field", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: daytime - * - * An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight. - */ - DAYTIME("daytime", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: virtual - * - * An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact. - */ - VIRTUAL("virtual", "http://hl7.org/fhir/encounter-class"), - - /** - * Code Value: other - * - * Any other encounter type that is not described by one of the other values. Where this is used it is expected that an implementer will include an extension value to define what the actual other type is. - */ - OTHER("other", "http://hl7.org/fhir/encounter-class"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-class - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-class"; - - /** - * Name for this Value Set: - * EncounterClass - */ - public static final String VALUESET_NAME = "EncounterClass"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterClassEnum next : EncounterClassEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterClassEnum forCode(String theCode) { - EncounterClassEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterClassEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterClassEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterClassEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterClassEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterClassEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterLocationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterLocationStatusEnum.java deleted file mode 100644 index 54d8e23d118..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterLocationStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterLocationStatusEnum { - - /** - * Display: Planned
- * Code Value: planned - * - * The patient is planned to be moved to this location at some point in the future. - */ - PLANNED("planned", "http://hl7.org/fhir/encounter-location-status"), - - /** - * Display: Present
- * Code Value: present - * - * The patient is currently at this location, or was between the period specified. - */ - PRESENT("present", "http://hl7.org/fhir/encounter-location-status"), - - /** - * Display: Reserved
- * Code Value: reserved - * - * This location is held empty for this patient. - */ - RESERVED("reserved", "http://hl7.org/fhir/encounter-location-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-location-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-location-status"; - - /** - * Name for this Value Set: - * EncounterLocationStatus - */ - public static final String VALUESET_NAME = "EncounterLocationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterLocationStatusEnum next : EncounterLocationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterLocationStatusEnum forCode(String theCode) { - EncounterLocationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterLocationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterLocationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterLocationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterLocationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterLocationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterReasonCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterReasonCodesEnum.java deleted file mode 100644 index 77458d00029..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterReasonCodesEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterReasonCodesEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-reason"; - - /** - * Name for this Value Set: - * Encounter Reason Codes - */ - public static final String VALUESET_NAME = "Encounter Reason Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterReasonCodesEnum next : EncounterReasonCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterReasonCodesEnum forCode(String theCode) { - EncounterReasonCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterReasonCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterReasonCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterReasonCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterReasonCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterReasonCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterStateEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterStateEnum.java deleted file mode 100644 index 9d750764f92..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterStateEnum.java +++ /dev/null @@ -1,150 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterStateEnum { - - /** - * Display: Planned
- * Code Value: planned - * - * The Encounter has not yet started. - */ - PLANNED("planned", "http://hl7.org/fhir/encounter-state"), - - /** - * Display: Arrived
- * Code Value: arrived - * - * The Patient is present for the encounter, however is not currently meeting with a practitioner. - */ - ARRIVED("arrived", "http://hl7.org/fhir/encounter-state"), - - /** - * Display: In Progress
- * Code Value: in progress - * - * The Encounter has begun and the patient is present / the practitioner and the patient are meeting. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/encounter-state"), - - /** - * Display: On Leave
- * Code Value: onleave - * - * The Encounter has begun, but the patient is temporarily on leave. - */ - ON_LEAVE("onleave", "http://hl7.org/fhir/encounter-state"), - - /** - * Display: Finished
- * Code Value: finished - * - * The Encounter has ended. - */ - FINISHED("finished", "http://hl7.org/fhir/encounter-state"), - - /** - * Display: Cancelled
- * Code Value: cancelled - * - * The Encounter has ended before it has begun. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/encounter-state"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-state - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-state"; - - /** - * Name for this Value Set: - * EncounterState - */ - public static final String VALUESET_NAME = "EncounterState"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterStateEnum next : EncounterStateEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterStateEnum forCode(String theCode) { - EncounterStateEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterStateEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterStateEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterStateEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterStateEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterStateEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterTypeEnum.java deleted file mode 100644 index 03bc4471860..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EncounterTypeEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EncounterTypeEnum { - - /** - * Display: Annual diabetes mellitus screening
- * Code Value: ADMS - */ - ANNUAL_DIABETES_MELLITUS_SCREENING("ADMS", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Bone drilling/bone marrow punction in clinic
- * Code Value: BD/BM-clin - */ - BONE_DRILLING_BONE_MARROW_PUNCTION_IN_CLINIC("BD/BM-clin", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Infant colon screening - 60 minutes
- * Code Value: CCS60 - */ - INFANT_COLON_SCREENING___60_MINUTES("CCS60", "http://hl7.org/fhir/encounter-type"), - - /** - * Display: Outpatient Kenacort injection
- * Code Value: OKI - */ - OUTPATIENT_KENACORT_INJECTION("OKI", "http://hl7.org/fhir/encounter-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-type"; - - /** - * Name for this Value Set: - * EncounterType - */ - public static final String VALUESET_NAME = "EncounterType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EncounterTypeEnum next : EncounterTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EncounterTypeEnum forCode(String theCode) { - EncounterTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EncounterTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EncounterTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EncounterTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EncounterTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EncounterTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EnteralFormulaAdditiveTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EnteralFormulaAdditiveTypeEnum.java deleted file mode 100644 index ca21fc4fe08..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EnteralFormulaAdditiveTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EnteralFormulaAdditiveTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/entformula-additive - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/entformula-additive"; - - /** - * Name for this Value Set: - * EnteralFormulaAdditiveType - */ - public static final String VALUESET_NAME = "EnteralFormulaAdditiveType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EnteralFormulaAdditiveTypeEnum next : EnteralFormulaAdditiveTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EnteralFormulaAdditiveTypeEnum forCode(String theCode) { - EnteralFormulaAdditiveTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EnteralFormulaAdditiveTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EnteralFormulaAdditiveTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EnteralFormulaAdditiveTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EnteralFormulaAdditiveTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EnteralFormulaAdditiveTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EnteralFormulaTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EnteralFormulaTypeEnum.java deleted file mode 100644 index 0cbcb38f40c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EnteralFormulaTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EnteralFormulaTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/entformula-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/entformula-type"; - - /** - * Name for this Value Set: - * EnteralFormulaType - */ - public static final String VALUESET_NAME = "EnteralFormulaType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EnteralFormulaTypeEnum next : EnteralFormulaTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EnteralFormulaTypeEnum forCode(String theCode) { - EnteralFormulaTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EnteralFormulaTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EnteralFormulaTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EnteralFormulaTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EnteralFormulaTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EnteralFormulaTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EpisodeOfCareStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EpisodeOfCareStatusEnum.java deleted file mode 100644 index 631abfa351b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EpisodeOfCareStatusEnum.java +++ /dev/null @@ -1,150 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EpisodeOfCareStatusEnum { - - /** - * Display: Planned
- * Code Value: planned - * - * This episode of care is planned to start at the date specified in the period.start. During this status an organization may perform assessments to determine if they are eligible to receive services, or be organizing to make resources available to provide care services. - */ - PLANNED("planned", "http://hl7.org/fhir/episode-of-care-status"), - - /** - * Display: Active
- * Code Value: active - * - * This episode of care is current. - */ - ACTIVE("active", "http://hl7.org/fhir/episode-of-care-status"), - - /** - * Display: On Hold
- * Code Value: onhold - * - * This episode of care is on hold, the organization has limitted responsibility for the patient (such as while on respite). - */ - ON_HOLD("onhold", "http://hl7.org/fhir/episode-of-care-status"), - - /** - * Display: Finished
- * Code Value: finished - * - * This episode of care is finished at the organization is not expecting to be providing care to the patient. - */ - FINISHED("finished", "http://hl7.org/fhir/episode-of-care-status"), - - /** - * Display: Withdrawn
- * Code Value: withdrawn - * - * The episode of care was withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. - */ - WITHDRAWN("withdrawn", "http://hl7.org/fhir/episode-of-care-status"), - - /** - * Display: Other
- * Code Value: other - * - * The status is outside one of these values, an extension should be used to define what the status reason is. - */ - OTHER("other", "http://hl7.org/fhir/episode-of-care-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/episode-of-care-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/episode-of-care-status"; - - /** - * Name for this Value Set: - * EpisodeOfCareStatus - */ - public static final String VALUESET_NAME = "EpisodeOfCareStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EpisodeOfCareStatusEnum next : EpisodeOfCareStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EpisodeOfCareStatusEnum forCode(String theCode) { - EpisodeOfCareStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EpisodeOfCareStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EpisodeOfCareStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EpisodeOfCareStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EpisodeOfCareStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EpisodeOfCareStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EventTimingEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EventTimingEnum.java deleted file mode 100644 index 8f4e3a47b53..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/EventTimingEnum.java +++ /dev/null @@ -1,152 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum EventTimingEnum { - - /** - * Code Value: HS - */ - HS("HS", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: WAKE - */ - WAKE("WAKE", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: AC - */ - AC("AC", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: ACM - */ - ACM("ACM", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: ACD - */ - ACD("ACD", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: ACV - */ - ACV("ACV", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: PC - */ - PC("PC", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: PCM - */ - PCM("PCM", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: PCD - */ - PCD("PCD", "http://hl7.org/fhir/v3/TimingEvent"), - - /** - * Code Value: PCV - */ - PCV("PCV", "http://hl7.org/fhir/v3/TimingEvent"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/event-timing - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/event-timing"; - - /** - * Name for this Value Set: - * EventTiming - */ - public static final String VALUESET_NAME = "EventTiming"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (EventTimingEnum next : EventTimingEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public EventTimingEnum forCode(String theCode) { - EventTimingEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(EventTimingEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(EventTimingEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public EventTimingEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public EventTimingEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - EventTimingEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExceptionCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExceptionCodesEnum.java deleted file mode 100644 index 3a3f33288e5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExceptionCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ExceptionCodesEnum { - - /** - * Code Value: student - */ - STUDENT("student", "http://hl7.org/fhir/exception"), - - /** - * Code Value: disabled - */ - DISABLED("disabled", "http://hl7.org/fhir/exception"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/exception - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/exception"; - - /** - * Name for this Value Set: - * Exception Codes - */ - public static final String VALUESET_NAME = "Exception Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ExceptionCodesEnum next : ExceptionCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ExceptionCodesEnum forCode(String theCode) { - ExceptionCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ExceptionCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ExceptionCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ExceptionCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ExceptionCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ExceptionCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExcludeFoodModifierEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExcludeFoodModifierEnum.java deleted file mode 100644 index ff7129f7bd4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExcludeFoodModifierEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ExcludeFoodModifierEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/exclude-food-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/exclude-food-type"; - - /** - * Name for this Value Set: - * ExcludeFoodModifier - */ - public static final String VALUESET_NAME = "ExcludeFoodModifier"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ExcludeFoodModifierEnum next : ExcludeFoodModifierEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ExcludeFoodModifierEnum forCode(String theCode) { - ExcludeFoodModifierEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ExcludeFoodModifierEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ExcludeFoodModifierEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ExcludeFoodModifierEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ExcludeFoodModifierEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ExcludeFoodModifierEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExtensionContextEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExtensionContextEnum.java deleted file mode 100644 index 0b2f9840463..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ExtensionContextEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ExtensionContextEnum { - - /** - * Code Value: resource - * - * The context is all elements matching a particular resource element path. - */ - RESOURCE("resource", "http://hl7.org/fhir/extension-context"), - - /** - * Code Value: datatype - * - * The context is all nodes matching a particular data type element path (root or repeating element) or all elements referencing a particular primitive data type (expressed as the datatype name). - */ - DATATYPE("datatype", "http://hl7.org/fhir/extension-context"), - - /** - * Code Value: mapping - * - * The context is all nodes whose mapping to a specified reference model corresponds to a particular mapping structure. The context identifies the mapping target. The mapping should clearly identify where such an extension could be used. - */ - MAPPING("mapping", "http://hl7.org/fhir/extension-context"), - - /** - * Code Value: extension - * - * The context is a particular extension from a particular profile. Expressed as uri#name, where uri identifies the profile and #name identifies the extension code. - */ - EXTENSION("extension", "http://hl7.org/fhir/extension-context"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/extension-context - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/extension-context"; - - /** - * Name for this Value Set: - * ExtensionContext - */ - public static final String VALUESET_NAME = "ExtensionContext"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ExtensionContextEnum next : ExtensionContextEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ExtensionContextEnum forCode(String theCode) { - ExtensionContextEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ExtensionContextEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ExtensionContextEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ExtensionContextEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ExtensionContextEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ExtensionContextEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FHIRDefinedTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FHIRDefinedTypeEnum.java deleted file mode 100644 index 8532f1f18f0..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FHIRDefinedTypeEnum.java +++ /dev/null @@ -1,1061 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FHIRDefinedTypeEnum { - - /** - * Code Value: Address - * - * There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world. - */ - ADDRESS("Address", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Age - * - * A duration (length of time) with a UCUM code - */ - AGE("Age", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Attachment - * - * For referring to data content defined in other formats. - */ - ATTACHMENT("Attachment", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: BackboneElement - * - * Base definition for all elements that are defined inside a resource - but not those in a data type. - */ - BACKBONEELEMENT("BackboneElement", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: CodeableConcept - * - * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. - */ - CODEABLECONCEPT("CodeableConcept", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Coding - * - * A reference to a code defined by a terminology system. - */ - CODING("Coding", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ContactPoint - * - * Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc. - */ - CONTACTPOINT("ContactPoint", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Count - * - * A count of a discrete element (no unit) - */ - COUNT("Count", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Distance - * - * A measure of distance - */ - DISTANCE("Distance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Duration - * - * A length of time - */ - DURATION("Duration", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Element - * - * Base definition for all elements in a resource. - */ - ELEMENT("Element", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ElementDefinition - * - * Captures constraints on each element within the resource, profile, or extension. - */ - ELEMENTDEFINITION("ElementDefinition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Extension - * - * Optional Extensions Element - found in all resources. - */ - EXTENSION("Extension", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: HumanName - * - * A human's name with the ability to identify parts and usage. - */ - HUMANNAME("HumanName", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Identifier - * - * A technical identifier - identifies some entity uniquely and unambiguously. - */ - IDENTIFIER("Identifier", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Money - * - * An amount of money. With regard to precision, see [[X]] - */ - MONEY("Money", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Narrative - * - * A human-readable formatted text, including images. - */ - NARRATIVE("Narrative", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Period - * - * A time period defined by a start and end date and optionally time. - */ - PERIOD("Period", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Quantity - * - * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. - */ - QUANTITY("Quantity", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Range - * - * A set of ordered Quantities defined by a low and high limit. - */ - RANGE("Range", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Ratio - * - * A relationship of two Quantity values - expressed as a numerator and a denominator. - */ - RATIO("Ratio", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Reference - * - * A reference from one resource to another. - */ - REFERENCE("Reference", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: SampledData - * - * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. - */ - SAMPLEDDATA("SampledData", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Timing - * - * Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur. - */ - TIMING("Timing", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: base64Binary - * - * A stream of bytes - */ - BASE64BINARY("base64Binary", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: boolean - * - * Value of "true" or "false" - */ - BOOLEAN("boolean", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: code - * - * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents - */ - CODE("code", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: date - * - * A date, or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. - */ - DATE("date", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: dateTime - * - * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds may be provided but may also be ignored. Dates SHALL be valid dates. - */ - DATETIME("dateTime", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: decimal - * - * A rational number with implicit precision - */ - DECIMAL("decimal", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: id - * - * Any combination of lowercase letters, numerals, "-" and ".", with a length limit of 36 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Systems SHALL send ids as lower-case but SHOULD interpret them case-insensitively. - */ - ID("id", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: instant - * - * An instant in time - known at least to the second - */ - INSTANT("instant", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: integer - * - * A whole number - */ - INTEGER("integer", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: oid - * - * An oid represented as a URI - */ - OID("oid", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: string - * - * A sequence of Unicode characters - */ - STRING("string", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: time - * - * A time during the day, with no date specified - */ - TIME("time", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: uri - * - * String of characters used to identify a name or a resource - */ - URI("uri", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: uuid - * - * A UUID, represented as a URI - */ - UUID("uuid", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Alert - * - * Prospective warnings of potential issues when providing care to the patient. - */ - ALERT("Alert", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: AllergyIntolerance - * - * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance. - */ - ALLERGYINTOLERANCE("AllergyIntolerance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Appointment - * - * A scheduled healthcare event for a patient and/or practitioner(s) where a service may take place at a specific date/time. - */ - APPOINTMENT("Appointment", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: AppointmentResponse - * - * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. - */ - APPOINTMENTRESPONSE("AppointmentResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Basic - * - * Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification. - */ - BASIC("Basic", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Binary - * - * A binary resource can contain any content, whether text, image, pdf, zip archive, etc. - */ - BINARY("Binary", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Bundle - * - * A container for a group of resources. - */ - BUNDLE("Bundle", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: CarePlan - * - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - */ - CAREPLAN("CarePlan", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: CarePlan2 - * - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - */ - CAREPLAN2("CarePlan2", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ClaimResponse - * - * This resource provides the adjudication details from the processing of a Claim resource. - */ - CLAIMRESPONSE("ClaimResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ClinicalAssessment - * - * A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. - */ - CLINICALASSESSMENT("ClinicalAssessment", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Communication - * - * An occurrence of information being transmitted. E.g., an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition. - */ - COMMUNICATION("Communication", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: CommunicationRequest - * - * A request to convey information. E.g., the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. - */ - COMMUNICATIONREQUEST("CommunicationRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Composition - * - * A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. - */ - COMPOSITION("Composition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ConceptMap - * - * A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models. - */ - CONCEPTMAP("ConceptMap", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Condition - * - * Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary. - */ - CONDITION("Condition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Conformance - * - * A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation. - */ - CONFORMANCE("Conformance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Contract - * - * A formal agreement between parties regarding the conduct of business, exchange of information or other matters. - */ - CONTRACT("Contract", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Contraindication - * - * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient. E.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc. - */ - CONTRAINDICATION("Contraindication", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Coverage - * - * Financial instrument which may be used to pay for or reimburse for health care products and services. - */ - COVERAGE("Coverage", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DataElement - * - * The formal description of a single piece of information that can be gathered and reported. - */ - DATAELEMENT("DataElement", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Device - * - * This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. - */ - DEVICE("Device", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DeviceComponent - * - * Describes the characteristics, operational status and capabilities of a medical-related component of a medical device. - */ - DEVICECOMPONENT("DeviceComponent", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DeviceMetric - * - * Describes a measurement, calculation or setting capability of a medical device. - */ - DEVICEMETRIC("DeviceMetric", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DeviceUseRequest - * - * Represents a request for the use of a device. - */ - DEVICEUSEREQUEST("DeviceUseRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DeviceUseStatement - * - * A record of a device being used by a patient where the record is the result of a report from the patient or another clinician. - */ - DEVICEUSESTATEMENT("DeviceUseStatement", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DiagnosticOrder - * - * A request for a diagnostic investigation service to be performed. - */ - DIAGNOSTICORDER("DiagnosticOrder", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DiagnosticReport - * - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports. - */ - DIAGNOSTICREPORT("DiagnosticReport", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DocumentManifest - * - * A manifest that defines a set of documents. - */ - DOCUMENTMANIFEST("DocumentManifest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: DocumentReference - * - * A reference to a document. - */ - DOCUMENTREFERENCE("DocumentReference", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: EligibilityRequest - * - * This resource provides the insurance eligibility details from the insurer regarding a specified coverage and optionally some class of service. - */ - ELIGIBILITYREQUEST("EligibilityRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: EligibilityResponse - * - * This resource provides eligibility and plan details from the processing of an Eligibility resource. - */ - ELIGIBILITYRESPONSE("EligibilityResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Encounter - * - * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. - */ - ENCOUNTER("Encounter", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: EnrollmentRequest - * - * This resource provides the insurance Enrollment details to the insurer regarding a specified coverage. - */ - ENROLLMENTREQUEST("EnrollmentRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: EnrollmentResponse - * - * This resource provides Enrollment and plan details from the processing of an Enrollment resource. - */ - ENROLLMENTRESPONSE("EnrollmentResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: EpisodeOfCare - * - * An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time. - */ - EPISODEOFCARE("EpisodeOfCare", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ExplanationOfBenefit - * - * This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided. - */ - EXPLANATIONOFBENEFIT("ExplanationOfBenefit", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ExtensionDefinition - * - * Defines an extension that can be used in resources. - */ - EXTENSIONDEFINITION("ExtensionDefinition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: FamilyHistory - * - * Significant health events and conditions for people related to the subject relevant in the context of care for the subject. - */ - FAMILYHISTORY("FamilyHistory", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Goal - * - * Describes the intended objective(s) of the care. - */ - GOAL("Goal", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Group - * - * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization. - */ - GROUP("Group", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: HealthcareService - * - * The details of a Healthcare Service available at a location. - */ - HEALTHCARESERVICE("HealthcareService", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ImagingObjectSelection - * - * A set of DICOM SOP Instances of a patient, selected for some application purpose, e.g., quality assurance, teaching, conference, consulting, etc. Objects selected can be from different studies, but must be of the same patient. - */ - IMAGINGOBJECTSELECTION("ImagingObjectSelection", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ImagingStudy - * - * Representation of the content produced in a DICOM imaging study. A study comprises a set of Series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A Series is of only one modality (e.g., X-ray, CT, MR, ultrasound), but a Study may have multiple Series of different modalities. - */ - IMAGINGSTUDY("ImagingStudy", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Immunization - * - * Immunization event information. - */ - IMMUNIZATION("Immunization", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ImmunizationRecommendation - * - * A patient's point-of-time immunization status and recommendation with optional supporting justification. - */ - IMMUNIZATIONRECOMMENDATION("ImmunizationRecommendation", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: InstitutionalClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - INSTITUTIONALCLAIM("InstitutionalClaim", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: List - * - * A set of information summarized from a list of other resources. - */ - LIST("List", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Location - * - * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated. - */ - LOCATION("Location", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Media - * - * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference. - */ - MEDIA("Media", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Medication - * - * Primarily used for identification and definition of Medication, but also covers ingredients and packaging. - */ - MEDICATION("Medication", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationAdministration - * - * Describes the event of a patient being given a dose of a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. - */ - MEDICATIONADMINISTRATION("MedicationAdministration", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationDispense - * - * Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication. - */ - MEDICATIONDISPENSE("MedicationDispense", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationPrescription - * - * An order for both supply of the medication and the instructions for administration of the medicine to a patient. - */ - MEDICATIONPRESCRIPTION("MedicationPrescription", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MedicationStatement - * - * A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician. - */ - MEDICATIONSTATEMENT("MedicationStatement", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: MessageHeader - * - * The header for a message exchange that is either requesting or responding to an action. The Reference(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. - */ - MESSAGEHEADER("MessageHeader", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: NamingSystem - * - * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types. - */ - NAMINGSYSTEM("NamingSystem", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: NutritionOrder - * - * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. - */ - NUTRITIONORDER("NutritionOrder", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Observation - * - * Measurements and simple assertions made about a patient, device or other subject. - */ - OBSERVATION("Observation", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OperationDefinition - * - * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). - */ - OPERATIONDEFINITION("OperationDefinition", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OperationOutcome - * - * A collection of error, warning or information messages that result from a system action. - */ - OPERATIONOUTCOME("OperationOutcome", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OralHealthClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - ORALHEALTHCLAIM("OralHealthClaim", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Order - * - * A request to perform an action. - */ - ORDER("Order", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: OrderResponse - * - * A response to an order. - */ - ORDERRESPONSE("OrderResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Organization - * - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc. - */ - ORGANIZATION("Organization", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Other - * - * Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest. - */ - OTHER("Other", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Patient - * - * Demographics and other administrative information about a person or animal receiving care or other health-related services. - */ - PATIENT("Patient", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: PaymentNotice - * - * This resource provides the status of the payment for goods and services rendered, and the request and response resource references. - */ - PAYMENTNOTICE("PaymentNotice", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: PaymentReconciliation - * - * This resource provides payment details and claim references supporting a bulk payment. - */ - PAYMENTRECONCILIATION("PaymentReconciliation", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: PendedRequest - * - * This resource provides the request and response details for the resource for which the status is to be checked. - */ - PENDEDREQUEST("PendedRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Person - * - * Demographics and administrative information about a person independent of a specific health-related context. - */ - PERSON("Person", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: PharmacyClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - PHARMACYCLAIM("PharmacyClaim", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Practitioner - * - * A person who is directly or indirectly involved in the provisioning of healthcare. - */ - PRACTITIONER("Practitioner", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Procedure - * - * An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy. - */ - PROCEDURE("Procedure", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ProcedureRequest - * - * A request for a procedure to be performed. May be a proposal or an order. - */ - PROCEDUREREQUEST("ProcedureRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ProfessionalClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - PROFESSIONALCLAIM("ProfessionalClaim", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Profile - * - * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions. - */ - PROFILE("Profile", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Provenance - * - * Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance. - */ - PROVENANCE("Provenance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Questionnaire - * - * A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIRE("Questionnaire", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: QuestionnaireAnswers - * - * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIREANSWERS("QuestionnaireAnswers", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Readjudicate - * - * This resource provides the request and line items details for the claim which is to be re-adjudicated. - */ - READJUDICATE("Readjudicate", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ReferralRequest - * - * Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organisation. - */ - REFERRALREQUEST("ReferralRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: RelatedPerson - * - * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. - */ - RELATEDPERSON("RelatedPerson", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Reversal - * - * This resource provides the request and response details for the request for which all actions are to be reversed or terminated. - */ - REVERSAL("Reversal", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: RiskAssessment - * - * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. - */ - RISKASSESSMENT("RiskAssessment", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Schedule - * - * A container for slot(s) of time that may be available for booking appointments. - */ - SCHEDULE("Schedule", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: SearchParameter - * - * A Search Parameter that defines a named search item that can be used to search/filter on a resource. - */ - SEARCHPARAMETER("SearchParameter", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: SecurityEvent - * - * A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage. - */ - SECURITYEVENT("SecurityEvent", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Slot - * - * A slot of time on a schedule that may be available for booking appointments. - */ - SLOT("Slot", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Specimen - * - * Sample for analysis. - */ - SPECIMEN("Specimen", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: StatusRequest - * - * This resource provides the request and response details for the resource for which the processing status is to be checked. - */ - STATUSREQUEST("StatusRequest", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: StatusResponse - * - * This resource provides processing status, errors and notes from the processing of a resource. - */ - STATUSRESPONSE("StatusResponse", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Subscription - * - * Todo. - */ - SUBSCRIPTION("Subscription", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Substance - * - * A homogeneous material with a definite composition. - */ - SUBSTANCE("Substance", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: Supply - * - * A supply - a request for something, and provision of what is supplied. - */ - SUPPLY("Supply", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: SupportingDocumentation - * - * This resource provides the supporting information for a process, for example clinical or financial information related to a claim or pre-authorization. - */ - SUPPORTINGDOCUMENTATION("SupportingDocumentation", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: ValueSet - * - * A value set specifies a set of codes drawn from one or more code systems. - */ - VALUESET("ValueSet", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: VisionClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - VISIONCLAIM("VisionClaim", "http://hl7.org/fhir/defined-types"), - - /** - * Code Value: VisionPrescription - * - * An authorization for the supply of glasses and/or contact lenses to a patient. - */ - VISIONPRESCRIPTION("VisionPrescription", "http://hl7.org/fhir/defined-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/defined-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/defined-types"; - - /** - * Name for this Value Set: - * FHIRDefinedType - */ - public static final String VALUESET_NAME = "FHIRDefinedType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FHIRDefinedTypeEnum next : FHIRDefinedTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FHIRDefinedTypeEnum forCode(String theCode) { - FHIRDefinedTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FHIRDefinedTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FHIRDefinedTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FHIRDefinedTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FHIRDefinedTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FHIRDefinedTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FilterOperatorEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FilterOperatorEnum.java deleted file mode 100644 index 99cadfd2ef7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FilterOperatorEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FilterOperatorEnum { - - /** - * Code Value: = - * - * The specified property of the code equals the provided value. - */ - EQUALS("=", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: is-a - * - * The specified property of the code has an is-a relationship with the provided value. - */ - IS_A("is-a", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: is-not-a - * - * The specified property of the code does not have an is-a relationship with the provided value. - */ - IS_NOT_A("is-not-a", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: regex - * - * The specified property of the code matches the regex specified in the provided value. - */ - REGEX("regex", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: in - * - * The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list). - */ - IN("in", "http://hl7.org/fhir/filter-operator"), - - /** - * Code Value: not in - * - * The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list). - */ - NOT_IN("not in", "http://hl7.org/fhir/filter-operator"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/filter-operator - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/filter-operator"; - - /** - * Name for this Value Set: - * FilterOperator - */ - public static final String VALUESET_NAME = "FilterOperator"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FilterOperatorEnum next : FilterOperatorEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FilterOperatorEnum forCode(String theCode) { - FilterOperatorEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FilterOperatorEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FilterOperatorEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FilterOperatorEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FilterOperatorEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FilterOperatorEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FluidConsistencyTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FluidConsistencyTypeEnum.java deleted file mode 100644 index c31e8838470..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FluidConsistencyTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FluidConsistencyTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/consistency-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/consistency-type"; - - /** - * Name for this Value Set: - * FluidConsistencyType - */ - public static final String VALUESET_NAME = "FluidConsistencyType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FluidConsistencyTypeEnum next : FluidConsistencyTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FluidConsistencyTypeEnum forCode(String theCode) { - FluidConsistencyTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FluidConsistencyTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FluidConsistencyTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FluidConsistencyTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FluidConsistencyTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FluidConsistencyTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FoodTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FoodTypeEnum.java deleted file mode 100644 index aa23031f680..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/FoodTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum FoodTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/food-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/food-type"; - - /** - * Name for this Value Set: - * FoodType - */ - public static final String VALUESET_NAME = "FoodType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (FoodTypeEnum next : FoodTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public FoodTypeEnum forCode(String theCode) { - FoodTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(FoodTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(FoodTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public FoodTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public FoodTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - FoodTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/GoalStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/GoalStatusEnum.java deleted file mode 100644 index 0c757cf4aca..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/GoalStatusEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum GoalStatusEnum { - - /** - * Code Value: proposed - * - * A goal is proposed for this patient. - */ - PROPOSED("proposed", "http://hl7.org/fhir/goal-status"), - - /** - * Code Value: planned - * - * A goal is planned for this patient. - */ - PLANNED("planned", "http://hl7.org/fhir/goal-status"), - - /** - * Code Value: in progress - * - * The goal is being sought but has not yet been reached. (Also applies if goal was reached in the past but there has been regression and goal is being sought again). - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/goal-status"), - - /** - * Code Value: achieved - * - * The goal has been met and no further action is needed. - */ - ACHIEVED("achieved", "http://hl7.org/fhir/goal-status"), - - /** - * Code Value: sustaining - * - * The goal has been met, but ongoing activity is needed to sustain the goal objective. - */ - SUSTAINING("sustaining", "http://hl7.org/fhir/goal-status"), - - /** - * Code Value: cancelled - * - * The goal is no longer being sought. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/goal-status"), - - /** - * Code Value: accepted - * - * A proposed goal was accepted. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/goal-status"), - - /** - * Code Value: rejected - * - * A proposed goal was rejected. - */ - REJECTED("rejected", "http://hl7.org/fhir/goal-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/goal-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/goal-status"; - - /** - * Name for this Value Set: - * GoalStatus - */ - public static final String VALUESET_NAME = "GoalStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (GoalStatusEnum next : GoalStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public GoalStatusEnum forCode(String theCode) { - GoalStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(GoalStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(GoalStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public GoalStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public GoalStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - GoalStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/GroupTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/GroupTypeEnum.java deleted file mode 100644 index 922954f1c62..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/GroupTypeEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum GroupTypeEnum { - - /** - * Code Value: person - * - * Group contains "person" Patient resources. - */ - PERSON("person", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: animal - * - * Group contains "animal" Patient resources. - */ - ANIMAL("animal", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: practitioner - * - * Group contains healthcare practitioner resources. - */ - PRACTITIONER("practitioner", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: device - * - * Group contains Device resources. - */ - DEVICE("device", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: medication - * - * Group contains Medication resources. - */ - MEDICATION("medication", "http://hl7.org/fhir/group-type"), - - /** - * Code Value: substance - * - * Group contains Substance resources. - */ - SUBSTANCE("substance", "http://hl7.org/fhir/group-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/group-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/group-type"; - - /** - * Name for this Value Set: - * GroupType - */ - public static final String VALUESET_NAME = "GroupType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (GroupTypeEnum next : GroupTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public GroupTypeEnum forCode(String theCode) { - GroupTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(GroupTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(GroupTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public GroupTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public GroupTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - GroupTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/HierarchicalRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/HierarchicalRelationshipTypeEnum.java deleted file mode 100644 index 4439e6dbc85..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/HierarchicalRelationshipTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum HierarchicalRelationshipTypeEnum { - - /** - * Display: Parent
- * Code Value: parent - * - * The target resource is the parent of the focal specimen resource. - */ - PARENT("parent", "http://hl7.org/fhir/hierarchical-relationship-type"), - - /** - * Display: Child
- * Code Value: child - * - * The target resource is the child of the focal specimen resource. - */ - CHILD("child", "http://hl7.org/fhir/hierarchical-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/hierarchical-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/hierarchical-relationship-type"; - - /** - * Name for this Value Set: - * HierarchicalRelationshipType - */ - public static final String VALUESET_NAME = "HierarchicalRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (HierarchicalRelationshipTypeEnum next : HierarchicalRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public HierarchicalRelationshipTypeEnum forCode(String theCode) { - HierarchicalRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(HierarchicalRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(HierarchicalRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public HierarchicalRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public HierarchicalRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - HierarchicalRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IdentifierUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IdentifierUseEnum.java deleted file mode 100644 index bd360e4ecc9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IdentifierUseEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IdentifierUseEnum { - - /** - * Code Value: usual - * - * the identifier recommended for display and use in real-world interactions. - */ - USUAL("usual", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: official - * - * the identifier considered to be most trusted for the identification of this item. - */ - OFFICIAL("official", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: temp - * - * A temporary identifier. - */ - TEMP("temp", "http://hl7.org/fhir/identifier-use"), - - /** - * Code Value: secondary - * - * An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context. - */ - SECONDARY("secondary", "http://hl7.org/fhir/identifier-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/identifier-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/identifier-use"; - - /** - * Name for this Value Set: - * IdentifierUse - */ - public static final String VALUESET_NAME = "IdentifierUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IdentifierUseEnum next : IdentifierUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IdentifierUseEnum forCode(String theCode) { - IdentifierUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IdentifierUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IdentifierUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IdentifierUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IdentifierUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IdentifierUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IdentityAssuranceLevelEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IdentityAssuranceLevelEnum.java deleted file mode 100644 index 3ebd1040990..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IdentityAssuranceLevelEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IdentityAssuranceLevelEnum { - - /** - * Display: Level 1
- * Code Value: level1 - * - * Little or no confidence in the asserted identity's accuracy. - */ - LEVEL_1("level1", "http://hl7.org/fhir/identity-assuranceLevel"), - - /** - * Display: Level 2
- * Code Value: level2 - * - * Some confidence in the asserted identity's accuracy. - */ - LEVEL_2("level2", "http://hl7.org/fhir/identity-assuranceLevel"), - - /** - * Display: Level 3
- * Code Value: level3 - * - * High confidence in the asserted identity's accuracy. - */ - LEVEL_3("level3", "http://hl7.org/fhir/identity-assuranceLevel"), - - /** - * Display: Level 4
- * Code Value: level4 - * - * Very high confidence in the asserted identity's accuracy. - */ - LEVEL_4("level4", "http://hl7.org/fhir/identity-assuranceLevel"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/identity-assuranceLevel - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/identity-assuranceLevel"; - - /** - * Name for this Value Set: - * IdentityAssuranceLevel - */ - public static final String VALUESET_NAME = "IdentityAssuranceLevel"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IdentityAssuranceLevelEnum next : IdentityAssuranceLevelEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IdentityAssuranceLevelEnum forCode(String theCode) { - IdentityAssuranceLevelEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IdentityAssuranceLevelEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IdentityAssuranceLevelEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IdentityAssuranceLevelEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IdentityAssuranceLevelEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IdentityAssuranceLevelEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImagingModalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImagingModalityEnum.java deleted file mode 100644 index 45d4950652d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImagingModalityEnum.java +++ /dev/null @@ -1,282 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImagingModalityEnum { - - /** - * Code Value: AR - */ - AR("AR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BMD - */ - BMD("BMD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BDUS - */ - BDUS("BDUS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: EPS - */ - EPS("EPS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: CR - */ - CR("CR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: CT - */ - CT("CT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: DX - */ - DX("DX", "http://nema.org/dicom/dcid"), - - /** - * Code Value: ECG - */ - ECG("ECG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: ES - */ - ES("ES", "http://nema.org/dicom/dcid"), - - /** - * Code Value: XC - */ - XC("XC", "http://nema.org/dicom/dcid"), - - /** - * Code Value: GM - */ - GM("GM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: HD - */ - HD("HD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IO - */ - IO("IO", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IVOCT - */ - IVOCT("IVOCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IVUS - */ - IVUS("IVUS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: KER - */ - KER("KER", "http://nema.org/dicom/dcid"), - - /** - * Code Value: LEN - */ - LEN("LEN", "http://nema.org/dicom/dcid"), - - /** - * Code Value: MR - */ - MR("MR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: MG - */ - MG("MG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: NM - */ - NM("NM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OAM - */ - OAM("OAM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OCT - */ - OCT("OCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPM - */ - OPM("OPM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OP - */ - OP("OP", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPR - */ - OPR("OPR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPT - */ - OPT("OPT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPV - */ - OPV("OPV", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PX - */ - PX("PX", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PT - */ - PT("PT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RF - */ - RF("RF", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RG - */ - RG("RG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SM - */ - SM("SM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SRF - */ - SRF("SRF", "http://nema.org/dicom/dcid"), - - /** - * Code Value: US - */ - US("US", "http://nema.org/dicom/dcid"), - - /** - * Code Value: VA - */ - VA("VA", "http://nema.org/dicom/dcid"), - - /** - * Code Value: XA - */ - XA("XA", "http://nema.org/dicom/dcid"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/imaging-modality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/imaging-modality"; - - /** - * Name for this Value Set: - * ImagingModality - */ - public static final String VALUESET_NAME = "ImagingModality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImagingModalityEnum next : ImagingModalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImagingModalityEnum forCode(String theCode) { - ImagingModalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImagingModalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImagingModalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImagingModalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImagingModalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImagingModalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationReasonCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationReasonCodesEnum.java deleted file mode 100644 index 4b6742b15a5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationReasonCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationReasonCodesEnum { - - /** - * Code Value: 429060002 - */ - _429060002("429060002", "http://snomed.info/sct"), - - /** - * Code Value: 281657000 - */ - _281657000("281657000", "http://snomed.info/sct"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-reason - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-reason"; - - /** - * Name for this Value Set: - * Immunization Reason Codes - */ - public static final String VALUESET_NAME = "Immunization Reason Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationReasonCodesEnum next : ImmunizationReasonCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationReasonCodesEnum forCode(String theCode) { - ImmunizationReasonCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationReasonCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationReasonCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationReasonCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationReasonCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationReasonCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java deleted file mode 100644 index da9daf9a3b8..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRecommendationDateCriterionCodesEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRecommendationDateCriterionCodesEnum { - - /** - * Display: due
- * Code Value: due - * - * Date the next dose is considered due - */ - DUE("due", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - /** - * Display: overdue
- * Code Value: overdue - * - * Date the next dose is considered overdue - */ - OVERDUE("overdue", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - /** - * Display: latest
- * Code Value: latest - * - * The latest date the next dose is to be given - */ - LATEST("latest", "http://hl7.org/fhir/immunization-recommendation-date-criterion"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-recommendation-date-criterion - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-recommendation-date-criterion"; - - /** - * Name for this Value Set: - * Immunization Recommendation Date Criterion Codes - */ - public static final String VALUESET_NAME = "Immunization Recommendation Date Criterion Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRecommendationDateCriterionCodesEnum next : ImmunizationRecommendationDateCriterionCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRecommendationDateCriterionCodesEnum forCode(String theCode) { - ImmunizationRecommendationDateCriterionCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRecommendationDateCriterionCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRecommendationDateCriterionCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRecommendationDateCriterionCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRecommendationDateCriterionCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRecommendationDateCriterionCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRecommendationStatusCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRecommendationStatusCodesEnum.java deleted file mode 100644 index 3bf58b5947a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRecommendationStatusCodesEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRecommendationStatusCodesEnum { - - /** - * Display: due
- * Code Value: due - * - * The patient is due for their next vaccination - */ - DUE("due", "http://hl7.org/fhir/immunization-recommendation-status"), - - /** - * Display: overdue
- * Code Value: overdue - * - * The patient is considered overdue for their next vaccination - */ - OVERDUE("overdue", "http://hl7.org/fhir/immunization-recommendation-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-recommendation-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-recommendation-status"; - - /** - * Name for this Value Set: - * Immunization Recommendation Status Codes - */ - public static final String VALUESET_NAME = "Immunization Recommendation Status Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRecommendationStatusCodesEnum next : ImmunizationRecommendationStatusCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRecommendationStatusCodesEnum forCode(String theCode) { - ImmunizationRecommendationStatusCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRecommendationStatusCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRecommendationStatusCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRecommendationStatusCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRecommendationStatusCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRecommendationStatusCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRouteCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRouteCodesEnum.java deleted file mode 100644 index c8b0722f24f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ImmunizationRouteCodesEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ImmunizationRouteCodesEnum { - - /** - * Code Value: IM - */ - IM("IM", "http://hl7.org/fhir/v3/RouteOfAdministration"), - - /** - * Code Value: PO - */ - PO("PO", "http://hl7.org/fhir/v3/RouteOfAdministration"), - - /** - * Code Value: NASINHL - */ - NASINHL("NASINHL", "http://hl7.org/fhir/v3/RouteOfAdministration"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/immunization-route - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/immunization-route"; - - /** - * Name for this Value Set: - * Immunization Route Codes - */ - public static final String VALUESET_NAME = "Immunization Route Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ImmunizationRouteCodesEnum next : ImmunizationRouteCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ImmunizationRouteCodesEnum forCode(String theCode) { - ImmunizationRouteCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ImmunizationRouteCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ImmunizationRouteCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ImmunizationRouteCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ImmunizationRouteCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ImmunizationRouteCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/InstanceAvailabilityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/InstanceAvailabilityEnum.java deleted file mode 100644 index f0fc893bd1f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/InstanceAvailabilityEnum.java +++ /dev/null @@ -1,122 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum InstanceAvailabilityEnum { - - /** - * Code Value: ONLINE - */ - ONLINE("ONLINE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OFFLINE - */ - OFFLINE("OFFLINE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: NEARLINE - */ - NEARLINE("NEARLINE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: UNAVAILABLE - */ - UNAVAILABLE("UNAVAILABLE", "http://nema.org/dicom/dcid"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/instance-availability - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/instance-availability"; - - /** - * Name for this Value Set: - * InstanceAvailability - */ - public static final String VALUESET_NAME = "InstanceAvailability"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (InstanceAvailabilityEnum next : InstanceAvailabilityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public InstanceAvailabilityEnum forCode(String theCode) { - InstanceAvailabilityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(InstanceAvailabilityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(InstanceAvailabilityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public InstanceAvailabilityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public InstanceAvailabilityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - InstanceAvailabilityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/InterventionCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/InterventionCodesEnum.java deleted file mode 100644 index 3e145fa76b3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/InterventionCodesEnum.java +++ /dev/null @@ -1,112 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum InterventionCodesEnum { - - /** - * Code Value: unknown - */ - UNKNOWN("unknown", "http://hl7.org/fhir/intervention"), - - /** - * Code Value: other - */ - OTHER("other", "http://hl7.org/fhir/intervention"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/intervention - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/intervention"; - - /** - * Name for this Value Set: - * Intervention Codes - */ - public static final String VALUESET_NAME = "Intervention Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (InterventionCodesEnum next : InterventionCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public InterventionCodesEnum forCode(String theCode) { - InterventionCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(InterventionCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(InterventionCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public InterventionCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public InterventionCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - InterventionCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IssueSeverityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IssueSeverityEnum.java deleted file mode 100644 index 5bb2002316b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IssueSeverityEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IssueSeverityEnum { - - /** - * Code Value: fatal - * - * The issue caused the action to fail, and no further checking could be performed. - */ - FATAL("fatal", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: error - * - * The issue is sufficiently important to cause the action to fail. - */ - ERROR("error", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: warning - * - * The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired. - */ - WARNING("warning", "http://hl7.org/fhir/issue-severity"), - - /** - * Code Value: information - * - * The issue has no relation to the degree of success of the action. - */ - INFORMATION("information", "http://hl7.org/fhir/issue-severity"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/issue-severity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/issue-severity"; - - /** - * Name for this Value Set: - * IssueSeverity - */ - public static final String VALUESET_NAME = "IssueSeverity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IssueSeverityEnum next : IssueSeverityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IssueSeverityEnum forCode(String theCode) { - IssueSeverityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IssueSeverityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IssueSeverityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IssueSeverityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IssueSeverityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IssueSeverityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IssueTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IssueTypeEnum.java deleted file mode 100644 index 7ec7389b81b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/IssueTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum IssueTypeEnum { - - /** - * Code Value: invalid - * - * Content invalid against Specification or Profile. - */ - INVALID("invalid", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: security - * - * authorization/permissions issue. - */ - SECURITY("security", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: processing - * - * processing issues. - */ - PROCESSING("processing", "http://hl7.org/fhir/issue-type"), - - /** - * Code Value: transient - * - * transient processing issues. - */ - TRANSIENT("transient", "http://hl7.org/fhir/issue-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/issue-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/issue-type"; - - /** - * Name for this Value Set: - * IssueType - */ - public static final String VALUESET_NAME = "IssueType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (IssueTypeEnum next : IssueTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public IssueTypeEnum forCode(String theCode) { - IssueTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(IssueTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(IssueTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public IssueTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public IssueTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - IssueTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/KOStitleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/KOStitleEnum.java deleted file mode 100644 index e31794f3d78..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/KOStitleEnum.java +++ /dev/null @@ -1,227 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum KOStitleEnum { - - /** - * Code Value: 113000 - */ - _113000("113000", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113001 - */ - _113001("113001", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113002 - */ - _113002("113002", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113003 - */ - _113003("113003", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113004 - */ - _113004("113004", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113005 - */ - _113005("113005", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113006 - */ - _113006("113006", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113007 - */ - _113007("113007", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113008 - */ - _113008("113008", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113009 - */ - _113009("113009", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113010 - */ - _113010("113010", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113013 - */ - _113013("113013", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113018 - */ - _113018("113018", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113020 - */ - _113020("113020", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113021 - */ - _113021("113021", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113030 - */ - _113030("113030", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113031 - */ - _113031("113031", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113032 - */ - _113032("113032", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113033 - */ - _113033("113033", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113034 - */ - _113034("113034", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113035 - */ - _113035("113035", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113036 - */ - _113036("113036", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113037 - */ - _113037("113037", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113038 - */ - _113038("113038", "http://nema.org/dicom/dcid"), - - /** - * Code Value: 113039 - */ - _113039("113039", "http://nema.org/dicom/dcid"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/kos-title - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/kos-title"; - - /** - * Name for this Value Set: - * KOStitle - */ - public static final String VALUESET_NAME = "KOStitle"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (KOStitleEnum next : KOStitleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public KOStitleEnum forCode(String theCode) { - KOStitleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(KOStitleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(KOStitleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public KOStitleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public KOStitleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - KOStitleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LinkTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LinkTypeEnum.java deleted file mode 100644 index 16c21f15093..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LinkTypeEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LinkTypeEnum { - - /** - * Display: replace
- * Code Value: replace - * - * The patient resource containing this link must no longer be used. The link points forward to another patient resource that must be used in lieu of the patient resource that contains the link. - */ - REPLACE("replace", "http://hl7.org/fhir/link-type"), - - /** - * Display: refer
- * Code Value: refer - * - * The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information. - */ - REFER("refer", "http://hl7.org/fhir/link-type"), - - /** - * Display: see also
- * Code Value: seealso - * - * The patient resource containing this link is in use and valid, but points to another patient resource that is known to contain data about the same person. Data in this resource might overlap or contradict information found in the other patient resource. This link does not indicate any relative importance of the resources concerned, and both should be regarded as equally valid. - */ - SEE_ALSO("seealso", "http://hl7.org/fhir/link-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/link-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/link-type"; - - /** - * Name for this Value Set: - * LinkType - */ - public static final String VALUESET_NAME = "LinkType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LinkTypeEnum next : LinkTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LinkTypeEnum forCode(String theCode) { - LinkTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LinkTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LinkTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LinkTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LinkTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LinkTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ListModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ListModeEnum.java deleted file mode 100644 index 0cf064e95b5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ListModeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ListModeEnum { - - /** - * Code Value: working - * - * This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes. - */ - WORKING("working", "http://hl7.org/fhir/list-mode"), - - /** - * Code Value: snapshot - * - * This list was prepared as a snapshot. It should not be assumed to be current. - */ - SNAPSHOT("snapshot", "http://hl7.org/fhir/list-mode"), - - /** - * Code Value: changes - * - * The list is prepared as a statement of changes that have been made or recommended. - */ - CHANGES("changes", "http://hl7.org/fhir/list-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/list-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/list-mode"; - - /** - * Name for this Value Set: - * ListMode - */ - public static final String VALUESET_NAME = "ListMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ListModeEnum next : ListModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ListModeEnum forCode(String theCode) { - ListModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ListModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ListModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ListModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ListModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ListModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationModeEnum.java deleted file mode 100644 index 11f74d74084..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationModeEnum { - - /** - * Code Value: instance - * - * The Location resource represents a specific instance of a Location. - */ - INSTANCE("instance", "http://hl7.org/fhir/location-mode"), - - /** - * Code Value: kind - * - * The Location represents a class of Locations. - */ - KIND("kind", "http://hl7.org/fhir/location-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-mode"; - - /** - * Name for this Value Set: - * LocationMode - */ - public static final String VALUESET_NAME = "LocationMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationModeEnum next : LocationModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationModeEnum forCode(String theCode) { - LocationModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationStatusEnum.java deleted file mode 100644 index 5aa2f5804ce..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationStatusEnum { - - /** - * Code Value: active - * - * The location is operational. - */ - ACTIVE("active", "http://hl7.org/fhir/location-status"), - - /** - * Code Value: suspended - * - * The location is temporarily closed. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/location-status"), - - /** - * Code Value: inactive - * - * The location is no longer used. - */ - INACTIVE("inactive", "http://hl7.org/fhir/location-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-status"; - - /** - * Name for this Value Set: - * LocationStatus - */ - public static final String VALUESET_NAME = "LocationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationStatusEnum next : LocationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationStatusEnum forCode(String theCode) { - LocationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationTypeEnum.java deleted file mode 100644 index a99df59b09f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/LocationTypeEnum.java +++ /dev/null @@ -1,150 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum LocationTypeEnum { - - /** - * Display: Building
- * Code Value: bu - */ - BUILDING("bu", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Wing
- * Code Value: wi - */ - WING("wi", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Corridor
- * Code Value: co - */ - CORRIDOR("co", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Room
- * Code Value: ro - */ - ROOM("ro", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Vehicle
- * Code Value: ve - */ - VEHICLE("ve", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: House
- * Code Value: ho - */ - HOUSE("ho", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Cabinet
- * Code Value: ca - */ - CABINET("ca", "http://hl7.org/fhir/location-physical-type"), - - /** - * Display: Road
- * Code Value: rd - */ - ROAD("rd", "http://hl7.org/fhir/location-physical-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/location-physical-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/location-physical-type"; - - /** - * Name for this Value Set: - * LocationType - */ - public static final String VALUESET_NAME = "LocationType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (LocationTypeEnum next : LocationTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public LocationTypeEnum forCode(String theCode) { - LocationTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(LocationTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(LocationTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public LocationTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public LocationTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - LocationTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MaritalStatusCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MaritalStatusCodesEnum.java deleted file mode 100644 index c837a3fa6df..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MaritalStatusCodesEnum.java +++ /dev/null @@ -1,160 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MaritalStatusCodesEnum { - - /** - * Display: unmarried
- * Code Value: U - * - * The person is not presently married. The marital history is not known or stated - */ - UNMARRIED("U", "http://hl7.org/fhir/marital-status"), - - /** - * Code Value: A - */ - A("A", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: D - */ - D("D", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: I - */ - I("I", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: L - */ - L("L", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: M - */ - M("M", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: P - */ - P("P", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: S - */ - S("S", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: T - */ - T("T", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: W - */ - W("W", "http://hl7.org/fhir/v3/MaritalStatus"), - - /** - * Code Value: UNK - */ - UNK("UNK", "http://hl7.org/fhir/v3/NullFlavor"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/marital-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/marital-status"; - - /** - * Name for this Value Set: - * Marital Status Codes - */ - public static final String VALUESET_NAME = "Marital Status Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MaritalStatusCodesEnum next : MaritalStatusCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MaritalStatusCodesEnum forCode(String theCode) { - MaritalStatusCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MaritalStatusCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MaritalStatusCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MaritalStatusCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MaritalStatusCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MaritalStatusCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MeasmntPrincipleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MeasmntPrincipleEnum.java deleted file mode 100644 index fd0cb34e6a9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MeasmntPrincipleEnum.java +++ /dev/null @@ -1,190 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MeasmntPrincipleEnum { - - /** - * Display: msp-other
- * Code Value: other - * - * Measurement principle isn't in the list. - */ - MSP_OTHER("other", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-chemical
- * Code Value: chemical - * - * Measurement is done using chemical. - */ - MSP_CHEMICAL("chemical", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-electrical
- * Code Value: electrical - * - * Measurement is done using electrical. - */ - MSP_ELECTRICAL("electrical", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-impedance
- * Code Value: impedance - * - * Measurement is done using impedance. - */ - MSP_IMPEDANCE("impedance", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-nuclear
- * Code Value: nuclear - * - * Measurement is done using nuclear. - */ - MSP_NUCLEAR("nuclear", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-optical
- * Code Value: optical - * - * Measurement is done using optical. - */ - MSP_OPTICAL("optical", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-thermal
- * Code Value: thermal - * - * Measurement is done using thermal. - */ - MSP_THERMAL("thermal", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-biological
- * Code Value: biological - * - * Measurement is done using biological. - */ - MSP_BIOLOGICAL("biological", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-mechanical
- * Code Value: mechanical - * - * Measurement is done using mechanical. - */ - MSP_MECHANICAL("mechanical", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-acoustical
- * Code Value: acoustical - * - * Measurement is done using acoustical. - */ - MSP_ACOUSTICAL("acoustical", "http://hl7.org/fhir/measurement-principle"), - - /** - * Display: msp-manual
- * Code Value: manual - * - * Measurement is done using manual. - */ - MSP_MANUAL("manual", "http://hl7.org/fhir/measurement-principle"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/measurement-principle - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/measurement-principle"; - - /** - * Name for this Value Set: - * Measmnt-Principle - */ - public static final String VALUESET_NAME = "Measmnt-Principle"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MeasmntPrincipleEnum next : MeasmntPrincipleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MeasmntPrincipleEnum forCode(String theCode) { - MeasmntPrincipleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MeasmntPrincipleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MeasmntPrincipleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MeasmntPrincipleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MeasmntPrincipleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MeasmntPrincipleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MediaTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MediaTypeEnum.java deleted file mode 100644 index 1da5a9af566..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MediaTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MediaTypeEnum { - - /** - * Code Value: photo - * - * The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents. - */ - PHOTO("photo", "http://hl7.org/fhir/media-type"), - - /** - * Code Value: video - * - * The media consists of a series of frames that capture a moving image. - */ - VIDEO("video", "http://hl7.org/fhir/media-type"), - - /** - * Code Value: audio - * - * The media consists of a sound recording. - */ - AUDIO("audio", "http://hl7.org/fhir/media-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/media-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/media-type"; - - /** - * Name for this Value Set: - * MediaType - */ - public static final String VALUESET_NAME = "MediaType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MediaTypeEnum next : MediaTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MediaTypeEnum forCode(String theCode) { - MediaTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MediaTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MediaTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MediaTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MediaTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MediaTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationAdministrationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationAdministrationStatusEnum.java deleted file mode 100644 index 34a29d159ef..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationAdministrationStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationAdministrationStatusEnum { - - /** - * Code Value: in progress - * - * The administration has started but has not yet completed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: on hold - * - * Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the administration have occurred. - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: entered in error - * - * The administration was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-admin-status"), - - /** - * Code Value: stopped - * - * Actions implied by the administration have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-admin-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-admin-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-admin-status"; - - /** - * Name for this Value Set: - * MedicationAdministrationStatus - */ - public static final String VALUESET_NAME = "MedicationAdministrationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationAdministrationStatusEnum next : MedicationAdministrationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationAdministrationStatusEnum forCode(String theCode) { - MedicationAdministrationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationAdministrationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationAdministrationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationAdministrationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationAdministrationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationAdministrationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationDispenseStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationDispenseStatusEnum.java deleted file mode 100644 index f37b1521ab5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationDispenseStatusEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationDispenseStatusEnum { - - /** - * Code Value: in progress - * - * The dispense has started but has not yet completed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: on hold - * - * Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the dispense have occurred. - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: entered in error - * - * The dispense was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-dispense-status"), - - /** - * Code Value: stopped - * - * Actions implied by the dispense have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-dispense-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-dispense-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-dispense-status"; - - /** - * Name for this Value Set: - * MedicationDispenseStatus - */ - public static final String VALUESET_NAME = "MedicationDispenseStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationDispenseStatusEnum next : MedicationDispenseStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationDispenseStatusEnum forCode(String theCode) { - MedicationDispenseStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationDispenseStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationDispenseStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationDispenseStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationDispenseStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationDispenseStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationKindEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationKindEnum.java deleted file mode 100644 index 0c3322237eb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationKindEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationKindEnum { - - /** - * Code Value: product - * - * The medication is a product. - */ - PRODUCT("product", "http://hl7.org/fhir/medication-kind"), - - /** - * Code Value: package - * - * The medication is a package - a contained group of one of more products. - */ - PACKAGE("package", "http://hl7.org/fhir/medication-kind"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-kind - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-kind"; - - /** - * Name for this Value Set: - * MedicationKind - */ - public static final String VALUESET_NAME = "MedicationKind"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationKindEnum next : MedicationKindEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationKindEnum forCode(String theCode) { - MedicationKindEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationKindEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationKindEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationKindEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationKindEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationKindEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationPrescriptionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationPrescriptionStatusEnum.java deleted file mode 100644 index 33eb4b4e91b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MedicationPrescriptionStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MedicationPrescriptionStatusEnum { - - /** - * Code Value: active - * - * The prescription is 'actionable', but not all actions that are implied by it have occurred yet. - */ - ACTIVE("active", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: on hold - * - * Actions implied by the prescription have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - ON_HOLD("on hold", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: completed - * - * All actions that are implied by the prescription have occurred (this will rarely be made explicit). - */ - COMPLETED("completed", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: entered in error - * - * The prescription was entered in error and therefore nullified. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: stopped - * - * Actions implied by the prescription have been permanently halted, before all of them occurred. - */ - STOPPED("stopped", "http://hl7.org/fhir/medication-prescription-status"), - - /** - * Code Value: superceded - * - * The prescription was replaced by a newer one, which encompasses all the information in the previous one. - */ - SUPERCEDED("superceded", "http://hl7.org/fhir/medication-prescription-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/medication-prescription-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/medication-prescription-status"; - - /** - * Name for this Value Set: - * MedicationPrescriptionStatus - */ - public static final String VALUESET_NAME = "MedicationPrescriptionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MedicationPrescriptionStatusEnum next : MedicationPrescriptionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MedicationPrescriptionStatusEnum forCode(String theCode) { - MedicationPrescriptionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MedicationPrescriptionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MedicationPrescriptionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MedicationPrescriptionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MedicationPrescriptionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MedicationPrescriptionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageEventEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageEventEnum.java deleted file mode 100644 index b20ed0fd479..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageEventEnum.java +++ /dev/null @@ -1,186 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageEventEnum { - - /** - * Code Value: MedicationAdministration-Complete - * - * Change the status of a Medication Administration to show that it is complete. - */ - MEDICATIONADMINISTRATION_COMPLETE("MedicationAdministration-Complete", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Nullification - * - * Someone wishes to record that the record of administration of a medication is in error and should be ignored. - */ - MEDICATIONADMINISTRATION_NULLIFICATION("MedicationAdministration-Nullification", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Recording - * - * Indicates that a medication has been recorded against the patient's record. - */ - MEDICATIONADMINISTRATION_RECORDING("MedicationAdministration-Recording", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: MedicationAdministration-Update - * - * Update a Medication Administration record. - */ - MEDICATIONADMINISTRATION_UPDATE("MedicationAdministration-Update", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: admin-notify - * - * Notification of a change to an administrative resource (either create or update). Note that there is no delete, though some administrative resources have status or period elements for this use. - */ - ADMIN_NOTIFY("admin-notify", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: conceptmap-translate - * - * Translate a code from one value set to another, based on the existing value set and concept maps resources, and/or other additional knowledge available to the server. The coded value is carried as an extension in the message header. The outcome is an operationOutcome with hints, warnings, or errors, or the translated code in an extension. - */ - CONCEPTMAP_TRANSLATE("conceptmap-translate", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: diagnosticreport-provide - * - * Provide a diagnostic report, or update a previously provided diagnostic report. - */ - DIAGNOSTICREPORT_PROVIDE("diagnosticreport-provide", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: observation-provide - * - * Provide a simple observation or update a previously provided simple observation. - */ - OBSERVATION_PROVIDE("observation-provide", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: patient-link - * - * Notification that two patient records actually identify the same patient. - */ - PATIENT_LINK("patient-link", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: patient-unlink - * - * Notification that previous advice that two patient records concern the same patient is now considered incorrect. - */ - PATIENT_UNLINK("patient-unlink", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: valueset-expand - * - * The definition of a value set is used to create a simple collection of codes suitable for use for data entry or validation. An expanded value set will be returned, or an error message. - */ - VALUESET_EXPAND("valueset-expand", "http://hl7.org/fhir/message-events"), - - /** - * Code Value: valueset-validate - * - * Validate that a coded value is in the set of codes allowed by a value set. The coded value is carried as an extension in the message header. The outcome is an OperationOutcome with hints, warnings, or errors. - */ - VALUESET_VALIDATE("valueset-validate", "http://hl7.org/fhir/message-events"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-events - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-events"; - - /** - * Name for this Value Set: - * MessageEvent - */ - public static final String VALUESET_NAME = "MessageEvent"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageEventEnum next : MessageEventEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageEventEnum forCode(String theCode) { - MessageEventEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageEventEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageEventEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageEventEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageEventEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageEventEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageSignificanceCategoryEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageSignificanceCategoryEnum.java deleted file mode 100644 index 5949b3ee3d7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageSignificanceCategoryEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageSignificanceCategoryEnum { - - /** - * Code Value: Consequence - * - * The message represents/requests a change that should not be processed more than once. E.g. Making a booking for an appointment. - */ - CONSEQUENCE("Consequence", "http://hl7.org/fhir/message-significance-category"), - - /** - * Code Value: Currency - * - * The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful. - */ - CURRENCY("Currency", "http://hl7.org/fhir/message-significance-category"), - - /** - * Code Value: Notification - * - * The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications. - */ - NOTIFICATION("Notification", "http://hl7.org/fhir/message-significance-category"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-significance-category - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-significance-category"; - - /** - * Name for this Value Set: - * MessageSignificanceCategory - */ - public static final String VALUESET_NAME = "MessageSignificanceCategory"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageSignificanceCategoryEnum next : MessageSignificanceCategoryEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageSignificanceCategoryEnum forCode(String theCode) { - MessageSignificanceCategoryEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageSignificanceCategoryEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageSignificanceCategoryEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageSignificanceCategoryEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageSignificanceCategoryEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageSignificanceCategoryEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageTransportEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageTransportEnum.java deleted file mode 100644 index 784d49baebd..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/MessageTransportEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum MessageTransportEnum { - - /** - * Code Value: http - * - * The application sends or receives messages using HTTP POST (may be over http or https). - */ - HTTP("http", "http://hl7.org/fhir/message-transport"), - - /** - * Code Value: ftp - * - * The application sends or receives messages using File Transfer Protocol. - */ - FTP("ftp", "http://hl7.org/fhir/message-transport"), - - /** - * Code Value: mllp - * - * The application sends or receivers messages using HL7's Minimal Lower Level Protocol. - */ - MLLP("mllp", "http://hl7.org/fhir/message-transport"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/message-transport - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-transport"; - - /** - * Name for this Value Set: - * MessageTransport - */ - public static final String VALUESET_NAME = "MessageTransport"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (MessageTransportEnum next : MessageTransportEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public MessageTransportEnum forCode(String theCode) { - MessageTransportEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(MessageTransportEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(MessageTransportEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public MessageTransportEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public MessageTransportEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - MessageTransportEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ModalityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ModalityEnum.java deleted file mode 100644 index 29a60c31118..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ModalityEnum.java +++ /dev/null @@ -1,367 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ModalityEnum { - - /** - * Code Value: AR - */ - AR("AR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: AU - */ - AU("AU", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BDUS - */ - BDUS("BDUS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BI - */ - BI("BI", "http://nema.org/dicom/dcid"), - - /** - * Code Value: BMD - */ - BMD("BMD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: CR - */ - CR("CR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: CT - */ - CT("CT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: DG - */ - DG("DG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: DX - */ - DX("DX", "http://nema.org/dicom/dcid"), - - /** - * Code Value: ECG - */ - ECG("ECG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: EPS - */ - EPS("EPS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: ES - */ - ES("ES", "http://nema.org/dicom/dcid"), - - /** - * Code Value: GM - */ - GM("GM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: HC - */ - HC("HC", "http://nema.org/dicom/dcid"), - - /** - * Code Value: HD - */ - HD("HD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IO - */ - IO("IO", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IVOCT - */ - IVOCT("IVOCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: IVUS - */ - IVUS("IVUS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: KER - */ - KER("KER", "http://nema.org/dicom/dcid"), - - /** - * Code Value: KO - */ - KO("KO", "http://nema.org/dicom/dcid"), - - /** - * Code Value: LEN - */ - LEN("LEN", "http://nema.org/dicom/dcid"), - - /** - * Code Value: LS - */ - LS("LS", "http://nema.org/dicom/dcid"), - - /** - * Code Value: MG - */ - MG("MG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: MR - */ - MR("MR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: NM - */ - NM("NM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OAM - */ - OAM("OAM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OCT - */ - OCT("OCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OP - */ - OP("OP", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPM - */ - OPM("OPM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPT - */ - OPT("OPT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OPV - */ - OPV("OPV", "http://nema.org/dicom/dcid"), - - /** - * Code Value: OT - */ - OT("OT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PR - */ - PR("PR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PT - */ - PT("PT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: PX - */ - PX("PX", "http://nema.org/dicom/dcid"), - - /** - * Code Value: REG - */ - REG("REG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RF - */ - RF("RF", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RG - */ - RG("RG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTDOSE - */ - RTDOSE("RTDOSE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTIMAGE - */ - RTIMAGE("RTIMAGE", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTPLAN - */ - RTPLAN("RTPLAN", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTRECORD - */ - RTRECORD("RTRECORD", "http://nema.org/dicom/dcid"), - - /** - * Code Value: RTSTRUCT - */ - RTSTRUCT("RTSTRUCT", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SEG - */ - SEG("SEG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SM - */ - SM("SM", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SMR - */ - SMR("SMR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SR - */ - SR("SR", "http://nema.org/dicom/dcid"), - - /** - * Code Value: SRF - */ - SRF("SRF", "http://nema.org/dicom/dcid"), - - /** - * Code Value: TG - */ - TG("TG", "http://nema.org/dicom/dcid"), - - /** - * Code Value: US - */ - US("US", "http://nema.org/dicom/dcid"), - - /** - * Code Value: VA - */ - VA("VA", "http://nema.org/dicom/dcid"), - - /** - * Code Value: XA - */ - XA("XA", "http://nema.org/dicom/dcid"), - - /** - * Code Value: XC - */ - XC("XC", "http://nema.org/dicom/dcid"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/modality - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/modality"; - - /** - * Name for this Value Set: - * Modality - */ - public static final String VALUESET_NAME = "Modality"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ModalityEnum next : ModalityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ModalityEnum forCode(String theCode) { - ModalityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ModalityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ModalityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ModalityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ModalityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ModalityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NameUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NameUseEnum.java deleted file mode 100644 index c3d0996859f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NameUseEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NameUseEnum { - - /** - * Code Value: usual - * - * Known as/conventional/the one you normally use. - */ - USUAL("usual", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: official - * - * The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called "legal name". - */ - OFFICIAL("official", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: temp - * - * A temporary name. Name.period can provide more detailed information. This may also be used for temporary names assigned at birth or in emergency situations. - */ - TEMP("temp", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: nickname - * - * A name that is used to address the person in an informal manner, but is not part of their formal or usual name. - */ - NICKNAME("nickname", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: anonymous - * - * Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons). - */ - ANONYMOUS("anonymous", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: old - * - * This name is no longer in use (or was never correct, but retained for records). - */ - OLD("old", "http://hl7.org/fhir/name-use"), - - /** - * Code Value: maiden - * - * A name used prior to marriage. Marriage naming customs vary greatly around the world. This name use is for use by applications that collect and store "maiden" names. Though the concept of maiden name is often gender specific, the use of this term is not gender specific. The use of this term does not imply any particular history for a person's name, nor should the maiden name be determined algorithmically. - */ - MAIDEN("maiden", "http://hl7.org/fhir/name-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/name-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/name-use"; - - /** - * Name for this Value Set: - * NameUse - */ - public static final String VALUESET_NAME = "NameUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NameUseEnum next : NameUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NameUseEnum forCode(String theCode) { - NameUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NameUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NameUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NameUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NameUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NameUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemIdentifierTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemIdentifierTypeEnum.java deleted file mode 100644 index 15a24c29cd1..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemIdentifierTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NamingSystemIdentifierTypeEnum { - - /** - * Code Value: oid - * - * An ISO object identifier. E.g. 1.2.3.4.5. - */ - OID("oid", "http://hl7.org/fhir/namingsystem-identifier-type"), - - /** - * Code Value: uuid - * - * A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11. - */ - UUID("uuid", "http://hl7.org/fhir/namingsystem-identifier-type"), - - /** - * Code Value: uri - * - * A uniform resource identifier (ideally a URL - uniform resource locator). E.g. http://unitsofmeasure.org. - */ - URI("uri", "http://hl7.org/fhir/namingsystem-identifier-type"), - - /** - * Code Value: other - * - * Some other type of unique identifier. E.g HL7-assigned reserved string such as LN for LOINC. - */ - OTHER("other", "http://hl7.org/fhir/namingsystem-identifier-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/namingsystem-identifier-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/namingsystem-identifier-type"; - - /** - * Name for this Value Set: - * NamingSystemIdentifierType - */ - public static final String VALUESET_NAME = "NamingSystemIdentifierType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NamingSystemIdentifierTypeEnum next : NamingSystemIdentifierTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NamingSystemIdentifierTypeEnum forCode(String theCode) { - NamingSystemIdentifierTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NamingSystemIdentifierTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NamingSystemIdentifierTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NamingSystemIdentifierTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NamingSystemIdentifierTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NamingSystemIdentifierTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemStatusEnum.java deleted file mode 100644 index 71c41cc073e..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NamingSystemStatusEnum { - - /** - * Code Value: proposed - * - * System has been submitted but not yet approved. - */ - PROPOSED("proposed", "http://hl7.org/fhir/namingsystem-status"), - - /** - * Code Value: active - * - * System is valid for use. - */ - ACTIVE("active", "http://hl7.org/fhir/namingsystem-status"), - - /** - * Code Value: retired - * - * System should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/namingsystem-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/namingsystem-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/namingsystem-status"; - - /** - * Name for this Value Set: - * NamingSystemStatus - */ - public static final String VALUESET_NAME = "NamingSystemStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NamingSystemStatusEnum next : NamingSystemStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NamingSystemStatusEnum forCode(String theCode) { - NamingSystemStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NamingSystemStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NamingSystemStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NamingSystemStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NamingSystemStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NamingSystemStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemTypeEnum.java deleted file mode 100644 index 501d73b9977..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NamingSystemTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NamingSystemTypeEnum { - - /** - * Code Value: codesystem - * - * The namingsystem is used to define concepts and symbols to represent those concepts. E.g. UCUM, LOINC, NDC code, local lab codes, etc. - */ - CODESYSTEM("codesystem", "http://hl7.org/fhir/namingsystem-type"), - - /** - * Code Value: identifier - * - * The namingsystem is used to manage identifiers (e.g. license numbers, order numbers, etc.). - */ - IDENTIFIER("identifier", "http://hl7.org/fhir/namingsystem-type"), - - /** - * Code Value: root - * - * The namingsystem is used as the root for other identifiers and namingsystems. - */ - ROOT("root", "http://hl7.org/fhir/namingsystem-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/namingsystem-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/namingsystem-type"; - - /** - * Name for this Value Set: - * NamingSystemType - */ - public static final String VALUESET_NAME = "NamingSystemType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NamingSystemTypeEnum next : NamingSystemTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NamingSystemTypeEnum forCode(String theCode) { - NamingSystemTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NamingSystemTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NamingSystemTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NamingSystemTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NamingSystemTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NamingSystemTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NoteTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NoteTypeEnum.java deleted file mode 100644 index 7df31007fa2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NoteTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NoteTypeEnum { - - /** - * Code Value: display - * - * Display the note. - */ - DISPLAY("display", "http://hl7.org/fhir/NT-link"), - - /** - * Code Value: print - * - * Print the note on the form. - */ - PRINT("print", "http://hl7.org/fhir/NT-link"), - - /** - * Code Value: printoper - * - * Print the note for the operator. - */ - PRINTOPER("printoper", "http://hl7.org/fhir/NT-link"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/NT-link - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/NT-link"; - - /** - * Name for this Value Set: - * NoteType - */ - public static final String VALUESET_NAME = "NoteType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NoteTypeEnum next : NoteTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NoteTypeEnum forCode(String theCode) { - NoteTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NoteTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NoteTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NoteTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NoteTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NoteTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NutrientModifierEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NutrientModifierEnum.java deleted file mode 100644 index 6ed608c8ddf..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NutrientModifierEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NutrientModifierEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/nutrient-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/nutrient-code"; - - /** - * Name for this Value Set: - * NutrientModifier - */ - public static final String VALUESET_NAME = "NutrientModifier"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NutrientModifierEnum next : NutrientModifierEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NutrientModifierEnum forCode(String theCode) { - NutrientModifierEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NutrientModifierEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NutrientModifierEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NutrientModifierEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NutrientModifierEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NutrientModifierEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NutritionOrderStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NutritionOrderStatusEnum.java deleted file mode 100644 index c6b52ec44d6..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/NutritionOrderStatusEnum.java +++ /dev/null @@ -1,142 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum NutritionOrderStatusEnum { - - /** - * Display: Requested
- * Code Value: requested - * - * TODO. - */ - REQUESTED("requested", "http://hl7.org/fhir/nutrition-order-status"), - - /** - * Display: Active
- * Code Value: active - * - * TODO. - */ - ACTIVE("active", "http://hl7.org/fhir/nutrition-order-status"), - - /** - * Display: Inactive
- * Code Value: inactive - * - * TODO. - */ - INACTIVE("inactive", "http://hl7.org/fhir/nutrition-order-status"), - - /** - * Display: Held
- * Code Value: held - * - * TODO. - */ - HELD("held", "http://hl7.org/fhir/nutrition-order-status"), - - /** - * Display: Cancelled
- * Code Value: cancelled - * - * TODO. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/nutrition-order-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/nutrition-order-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/nutrition-order-status"; - - /** - * Name for this Value Set: - * NutritionOrderStatus - */ - public static final String VALUESET_NAME = "NutritionOrderStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (NutritionOrderStatusEnum next : NutritionOrderStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public NutritionOrderStatusEnum forCode(String theCode) { - NutritionOrderStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(NutritionOrderStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(NutritionOrderStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public NutritionOrderStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public NutritionOrderStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - NutritionOrderStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationInterpretationCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationInterpretationCodesEnum.java deleted file mode 100644 index a23a632dc7f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationInterpretationCodesEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationInterpretationCodesEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-interpretation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-interpretation"; - - /** - * Name for this Value Set: - * Observation Interpretation Codes - */ - public static final String VALUESET_NAME = "Observation Interpretation Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationInterpretationCodesEnum next : ObservationInterpretationCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationInterpretationCodesEnum forCode(String theCode) { - ObservationInterpretationCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationInterpretationCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationInterpretationCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationInterpretationCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationInterpretationCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationInterpretationCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationRelationshipTypeEnum.java deleted file mode 100644 index ac64c5bcbfd..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationRelationshipTypeEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationRelationshipTypeEnum { - - /** - * Code Value: has-component - * - * The target observation is a component of this observation (e.g. Systolic and Diastolic Blood Pressure). - */ - HAS_COMPONENT("has-component", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: has-member - * - * This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group. - */ - HAS_MEMBER("has-member", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: derived-from - * - * The target observation is part of the information from which this observation value is derived (e.g. calculated anion gap, Apgar score). - */ - DERIVED_FROM("derived-from", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: sequel-to - * - * This observation follows the target observation (e.g. timed tests such as Glucose Tolerance Test). - */ - SEQUEL_TO("sequel-to", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: replaces - * - * This observation replaces a previous observation (i.e. a revised value). The target observation is now obsolete. - */ - REPLACES("replaces", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: qualified-by - * - * The value of the target observation qualifies (refines) the semantics of the source observation (e.g. a lipaemia measure target from a plasma measure). - */ - QUALIFIED_BY("qualified-by", "http://hl7.org/fhir/observation-relationshiptypes"), - - /** - * Code Value: interfered-by - * - * The value of the target observation interferes (degardes quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure which has no value). - */ - INTERFERED_BY("interfered-by", "http://hl7.org/fhir/observation-relationshiptypes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-relationshiptypes - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-relationshiptypes"; - - /** - * Name for this Value Set: - * ObservationRelationshipType - */ - public static final String VALUESET_NAME = "ObservationRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationRelationshipTypeEnum next : ObservationRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationRelationshipTypeEnum forCode(String theCode) { - ObservationRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationReliabilityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationReliabilityEnum.java deleted file mode 100644 index ef4ccfc7ffc..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationReliabilityEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationReliabilityEnum { - - /** - * Code Value: ok - * - * The result has no reliability concerns. - */ - OK("ok", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: ongoing - * - * An early estimate of value; measurement is still occurring. - */ - ONGOING("ongoing", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: early - * - * An early estimate of value; processing is still occurring. - */ - EARLY("early", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: questionable - * - * The observation value should be treated with care. - */ - QUESTIONABLE("questionable", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: calibrating - * - * The result has been generated while calibration is occurring. - */ - CALIBRATING("calibrating", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: error - * - * The observation could not be completed because of an error. - */ - ERROR("error", "http://hl7.org/fhir/observation-reliability"), - - /** - * Code Value: unknown - * - * No observation reliability value was available. - */ - UNKNOWN("unknown", "http://hl7.org/fhir/observation-reliability"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-reliability - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-reliability"; - - /** - * Name for this Value Set: - * ObservationReliability - */ - public static final String VALUESET_NAME = "ObservationReliability"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationReliabilityEnum next : ObservationReliabilityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationReliabilityEnum forCode(String theCode) { - ObservationReliabilityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationReliabilityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationReliabilityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationReliabilityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationReliabilityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationReliabilityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationStatusEnum.java deleted file mode 100644 index 7bebc46a0f2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ObservationStatusEnum.java +++ /dev/null @@ -1,145 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ObservationStatusEnum { - - /** - * Display: Registered
- * Code Value: registered - * - * The existence of the observation is registered, but there is no result yet available. - */ - REGISTERED("registered", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: preliminary - * - * This is an initial or interim observation: data may be incomplete or unverified. - */ - PRELIMINARY("preliminary", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: final - * - * The observation is complete and verified by an authorized person. - */ - FINAL("final", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: amended - * - * The observation has been modified subsequent to being Final, and is complete and verified by an authorized person. - */ - AMENDED("amended", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: cancelled - * - * The observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). - */ - CANCELLED("cancelled", "http://hl7.org/fhir/observation-status"), - - /** - * Code Value: entered in error - * - * The observation has been withdrawn following previous Final release. - */ - ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/observation-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/observation-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/observation-status"; - - /** - * Name for this Value Set: - * ObservationStatus - */ - public static final String VALUESET_NAME = "ObservationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ObservationStatusEnum next : ObservationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ObservationStatusEnum forCode(String theCode) { - ObservationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ObservationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ObservationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ObservationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ObservationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ObservationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OperationKindEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OperationKindEnum.java deleted file mode 100644 index a10d3855df7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OperationKindEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OperationKindEnum { - - /** - * Code Value: operation - * - * This operation is invoked as an operation. - */ - OPERATION("operation", "http://hl7.org/fhir/operation-kind"), - - /** - * Code Value: query - * - * This operation is a named query, invoked using the search mechanism. - */ - QUERY("query", "http://hl7.org/fhir/operation-kind"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/operation-kind - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/operation-kind"; - - /** - * Name for this Value Set: - * OperationKind - */ - public static final String VALUESET_NAME = "OperationKind"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OperationKindEnum next : OperationKindEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OperationKindEnum forCode(String theCode) { - OperationKindEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OperationKindEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OperationKindEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OperationKindEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OperationKindEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OperationKindEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OperationParameterUseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OperationParameterUseEnum.java deleted file mode 100644 index e06478f798b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OperationParameterUseEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OperationParameterUseEnum { - - /** - * Code Value: in - * - * This is an input parameter. - */ - IN("in", "http://hl7.org/fhir/operation-parameter-use"), - - /** - * Code Value: out - * - * This is an output parameter. - */ - OUT("out", "http://hl7.org/fhir/operation-parameter-use"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/operation-parameter-use - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/operation-parameter-use"; - - /** - * Name for this Value Set: - * OperationParameterUse - */ - public static final String VALUESET_NAME = "OperationParameterUse"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OperationParameterUseEnum next : OperationParameterUseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OperationParameterUseEnum forCode(String theCode) { - OperationParameterUseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OperationParameterUseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OperationParameterUseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OperationParameterUseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OperationParameterUseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OperationParameterUseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OrderOutcomeStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OrderOutcomeStatusEnum.java deleted file mode 100644 index 45d3e16d618..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OrderOutcomeStatusEnum.java +++ /dev/null @@ -1,158 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OrderOutcomeStatusEnum { - - /** - * Code Value: pending - * - * The order is known, but no processing has occurred at this time. - */ - PENDING("pending", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: review - * - * The order is undergoing initial processing to determine whether it will be accepted (usually this involves human review). - */ - REVIEW("review", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: rejected - * - * The order was rejected because of a workflow/business logic reason. - */ - REJECTED("rejected", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: error - * - * The order was unable to be processed because of a technical error (i.e. unexpected error). - */ - ERROR("error", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: accepted - * - * The order has been accepted, and work is in progress. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: cancelled - * - * Processing the order was halted at the initiators request. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: aborted - * - * Processing the order was stopped because of some workflow/business logic reason. - */ - ABORTED("aborted", "http://hl7.org/fhir/order-outcome-code"), - - /** - * Code Value: complete - * - * The order has been completed. - */ - COMPLETE("complete", "http://hl7.org/fhir/order-outcome-code"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/order-outcome-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/order-outcome-code"; - - /** - * Name for this Value Set: - * OrderOutcomeStatus - */ - public static final String VALUESET_NAME = "OrderOutcomeStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OrderOutcomeStatusEnum next : OrderOutcomeStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OrderOutcomeStatusEnum forCode(String theCode) { - OrderOutcomeStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OrderOutcomeStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OrderOutcomeStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OrderOutcomeStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OrderOutcomeStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OrderOutcomeStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OrganizationTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OrganizationTypeEnum.java deleted file mode 100644 index 067b7822a11..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/OrganizationTypeEnum.java +++ /dev/null @@ -1,156 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum OrganizationTypeEnum { - - /** - * Display: Healthcare Provider
- * Code Value: prov - */ - HEALTHCARE_PROVIDER("prov", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Hospital Department
- * Code Value: dept - */ - HOSPITAL_DEPARTMENT("dept", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Intensive Care Unit
- * Code Value: icu - */ - INTENSIVE_CARE_UNIT("icu", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Organizational team
- * Code Value: team - */ - ORGANIZATIONAL_TEAM("team", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Federal Government
- * Code Value: fed - */ - FEDERAL_GOVERNMENT("fed", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Insurance Company
- * Code Value: ins - */ - INSURANCE_COMPANY("ins", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Educational Institute
- * Code Value: edu - */ - EDUCATIONAL_INSTITUTE("edu", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Religious Institution
- * Code Value: reli - */ - RELIGIOUS_INSTITUTION("reli", "http://hl7.org/fhir/organization-type"), - - /** - * Display: Pharmacy
- * Code Value: pharm - */ - PHARMACY("pharm", "http://hl7.org/fhir/organization-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/organization-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/organization-type"; - - /** - * Name for this Value Set: - * OrganizationType - */ - public static final String VALUESET_NAME = "OrganizationType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (OrganizationTypeEnum next : OrganizationTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public OrganizationTypeEnum forCode(String theCode) { - OrganizationTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(OrganizationTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(OrganizationTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public OrganizationTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public OrganizationTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - OrganizationTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantRequiredEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantRequiredEnum.java deleted file mode 100644 index 306aad0256a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantRequiredEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipantRequiredEnum { - - /** - * Code Value: required - * - * The participant is required to attend the appointment. - */ - REQUIRED("required", "http://hl7.org/fhir/participantrequired"), - - /** - * Code Value: optional - * - * The participant may optionally attend the appointment. - */ - OPTIONAL("optional", "http://hl7.org/fhir/participantrequired"), - - /** - * Code Value: information-only - * - * The participant is not required to attend the appointment (appointment is about them, not for them). - */ - INFORMATION_ONLY("information-only", "http://hl7.org/fhir/participantrequired"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/participantrequired - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/participantrequired"; - - /** - * Name for this Value Set: - * ParticipantRequired - */ - public static final String VALUESET_NAME = "ParticipantRequired"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipantRequiredEnum next : ParticipantRequiredEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipantRequiredEnum forCode(String theCode) { - ParticipantRequiredEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipantRequiredEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipantRequiredEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipantRequiredEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipantRequiredEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipantRequiredEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantStatusEnum.java deleted file mode 100644 index 0da643dbab9..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipantStatusEnum { - - /** - * Code Value: accepted - * - * The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: declined - * - * The appointment participant has declined the appointment. - */ - DECLINED("declined", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: tentative - * - * The appointment participant has tentatively accepted the appointment. - */ - TENTATIVE("tentative", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: in-process - * - * The participant has in-process the appointment. - */ - IN_PROCESS("in-process", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: completed - * - * The participant has completed the appointment. - */ - COMPLETED("completed", "http://hl7.org/fhir/participantstatus"), - - /** - * Code Value: needs-action - * - * This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment. - */ - NEEDS_ACTION("needs-action", "http://hl7.org/fhir/participantstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/participantstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/participantstatus"; - - /** - * Name for this Value Set: - * ParticipantStatus - */ - public static final String VALUESET_NAME = "ParticipantStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipantStatusEnum next : ParticipantStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipantStatusEnum forCode(String theCode) { - ParticipantStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipantStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipantStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipantStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipantStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipantStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantTypeEnum.java deleted file mode 100644 index 90e89fd0cbd..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipantTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipantTypeEnum { - - /** - * Display: Translator
- * Code Value: translator - * - * A translator who is facilitating communication with the patient during the encounter - */ - TRANSLATOR("translator", "http://hl7.org/fhir/participant-type"), - - /** - * Display: Emergency
- * Code Value: emergency - * - * A person to be contacted in case of an emergency during the encounter - */ - EMERGENCY("emergency", "http://hl7.org/fhir/participant-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/encounter-participant-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-participant-type"; - - /** - * Name for this Value Set: - * ParticipantType - */ - public static final String VALUESET_NAME = "ParticipantType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipantTypeEnum next : ParticipantTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipantTypeEnum forCode(String theCode) { - ParticipantTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipantTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipantTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipantTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipantTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipantTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipationStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipationStatusEnum.java deleted file mode 100644 index b328c723e4f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ParticipationStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ParticipationStatusEnum { - - /** - * Code Value: accepted - * - * The participant has accepted the appointment. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: declined - * - * The participant has declined the appointment and will not participate in the appointment. - */ - DECLINED("declined", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: tentative - * - * The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur. - */ - TENTATIVE("tentative", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: in-process - * - * The participant has started the appointment. - */ - IN_PROCESS("in-process", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: completed - * - * The participant's involvement in the appointment has been completed. - */ - COMPLETED("completed", "http://hl7.org/fhir/participationstatus"), - - /** - * Code Value: needs-action - * - * The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses. - */ - NEEDS_ACTION("needs-action", "http://hl7.org/fhir/participationstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/participationstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/participationstatus"; - - /** - * Name for this Value Set: - * ParticipationStatus - */ - public static final String VALUESET_NAME = "ParticipationStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ParticipationStatusEnum next : ParticipationStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ParticipationStatusEnum forCode(String theCode) { - ParticipationStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ParticipationStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ParticipationStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ParticipationStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ParticipationStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ParticipationStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PatientRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PatientRelationshipTypeEnum.java deleted file mode 100644 index 66540dcd076..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PatientRelationshipTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PatientRelationshipTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/relatedperson-relationshiptype - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/relatedperson-relationshiptype"; - - /** - * Name for this Value Set: - * PatientRelationshipType - */ - public static final String VALUESET_NAME = "PatientRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PatientRelationshipTypeEnum next : PatientRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PatientRelationshipTypeEnum forCode(String theCode) { - PatientRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PatientRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PatientRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PatientRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PatientRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PatientRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PaymentTypeCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PaymentTypeCodesEnum.java deleted file mode 100644 index 773d00e6584..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PaymentTypeCodesEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PaymentTypeCodesEnum { - - /** - * Code Value: payment - */ - PAYMENT("payment", "http://www.hl7.org/fhir/contracttypecodes"), - - /** - * Code Value: adjustment - */ - ADJUSTMENT("adjustment", "http://www.hl7.org/fhir/contracttypecodes"), - - /** - * Code Value: advance - */ - ADVANCE("advance", "http://www.hl7.org/fhir/contracttypecodes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/payment-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/payment-type"; - - /** - * Name for this Value Set: - * Payment Type Codes - */ - public static final String VALUESET_NAME = "Payment Type Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PaymentTypeCodesEnum next : PaymentTypeCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PaymentTypeCodesEnum forCode(String theCode) { - PaymentTypeCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PaymentTypeCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PaymentTypeCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PaymentTypeCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PaymentTypeCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PaymentTypeCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PractitionerRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PractitionerRoleEnum.java deleted file mode 100644 index cae5253d28c..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PractitionerRoleEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PractitionerRoleEnum { - - /** - * Code Value: doctor - */ - DOCTOR("doctor", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: nurse - */ - NURSE("nurse", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: pharmacist - */ - PHARMACIST("pharmacist", "http://hl7.org/fhir/practitioner-role"), - - /** - * Code Value: researcher - */ - RESEARCHER("researcher", "http://hl7.org/fhir/practitioner-role"), - - /** - * Display: Teacher/educator
- * Code Value: teacher - */ - TEACHER_EDUCATOR("teacher", "http://hl7.org/fhir/practitioner-role"), - - /** - * Display: ICT professional
- * Code Value: ict - */ - ICT_PROFESSIONAL("ict", "http://hl7.org/fhir/practitioner-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/practitioner-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/practitioner-role"; - - /** - * Name for this Value Set: - * PractitionerRole - */ - public static final String VALUESET_NAME = "PractitionerRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PractitionerRoleEnum next : PractitionerRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PractitionerRoleEnum forCode(String theCode) { - PractitionerRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PractitionerRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PractitionerRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PractitionerRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PractitionerRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PractitionerRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PractitionerSpecialtyEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PractitionerSpecialtyEnum.java deleted file mode 100644 index 948d509ceb7..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PractitionerSpecialtyEnum.java +++ /dev/null @@ -1,132 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PractitionerSpecialtyEnum { - - /** - * Display: Cardiologist
- * Code Value: cardio - */ - CARDIOLOGIST("cardio", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Dentist
- * Code Value: dent - */ - DENTIST("dent", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Dietary consultant
- * Code Value: dietary - */ - DIETARY_CONSULTANT("dietary", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Midwife
- * Code Value: midw - */ - MIDWIFE("midw", "http://hl7.org/fhir/practitioner-specialty"), - - /** - * Display: Systems architect
- * Code Value: sysarch - */ - SYSTEMS_ARCHITECT("sysarch", "http://hl7.org/fhir/practitioner-specialty"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/practitioner-specialty - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/practitioner-specialty"; - - /** - * Name for this Value Set: - * PractitionerSpecialty - */ - public static final String VALUESET_NAME = "PractitionerSpecialty"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PractitionerSpecialtyEnum next : PractitionerSpecialtyEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PractitionerSpecialtyEnum forCode(String theCode) { - PractitionerSpecialtyEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PractitionerSpecialtyEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PractitionerSpecialtyEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PractitionerSpecialtyEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PractitionerSpecialtyEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PractitionerSpecialtyEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PriorityCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PriorityCodesEnum.java deleted file mode 100644 index 35839de3ce5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PriorityCodesEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PriorityCodesEnum { - - /** - * Code Value: stat - */ - STAT("stat", "http://hl7.org/fhir/processpriority"), - - /** - * Code Value: normal - */ - NORMAL("normal", "http://hl7.org/fhir/processpriority"), - - /** - * Code Value: deferred - */ - DEFERRED("deferred", "http://hl7.org/fhir/processpriority"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/process-priority - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/process-priority"; - - /** - * Name for this Value Set: - * Priority Codes - */ - public static final String VALUESET_NAME = "Priority Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PriorityCodesEnum next : PriorityCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PriorityCodesEnum forCode(String theCode) { - PriorityCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PriorityCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PriorityCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PriorityCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PriorityCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PriorityCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRelationshipTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRelationshipTypeEnum.java deleted file mode 100644 index a51ba8306ec..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRelationshipTypeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ProcedureRelationshipTypeEnum { - - /** - * Code Value: caused-by - * - * This procedure had to be performed because of the related one. - */ - CAUSED_BY("caused-by", "http://hl7.org/fhir/procedure-relationship-type"), - - /** - * Code Value: because-of - * - * This procedure caused the related one to be performed. - */ - BECAUSE_OF("because-of", "http://hl7.org/fhir/procedure-relationship-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/procedure-relationship-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/procedure-relationship-type"; - - /** - * Name for this Value Set: - * ProcedureRelationshipType - */ - public static final String VALUESET_NAME = "ProcedureRelationshipType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ProcedureRelationshipTypeEnum next : ProcedureRelationshipTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ProcedureRelationshipTypeEnum forCode(String theCode) { - ProcedureRelationshipTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ProcedureRelationshipTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ProcedureRelationshipTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ProcedureRelationshipTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ProcedureRelationshipTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ProcedureRelationshipTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRequestPriorityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRequestPriorityEnum.java deleted file mode 100644 index c35aa6f38c1..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRequestPriorityEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ProcedureRequestPriorityEnum { - - /** - * Code Value: routine - * - * The request has a normal priority. - */ - ROUTINE("routine", "http://hl7.org/fhir/procedure-request-priority"), - - /** - * Code Value: urgent - * - * The request should be done urgently. - */ - URGENT("urgent", "http://hl7.org/fhir/procedure-request-priority"), - - /** - * Code Value: stat - * - * The request is time-critical. - */ - STAT("stat", "http://hl7.org/fhir/procedure-request-priority"), - - /** - * Code Value: asap - * - * The request should be acted on as soon as possible. - */ - ASAP("asap", "http://hl7.org/fhir/procedure-request-priority"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/procedure-request-priority - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/procedure-request-priority"; - - /** - * Name for this Value Set: - * ProcedureRequestPriority - */ - public static final String VALUESET_NAME = "ProcedureRequestPriority"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ProcedureRequestPriorityEnum next : ProcedureRequestPriorityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ProcedureRequestPriorityEnum forCode(String theCode) { - ProcedureRequestPriorityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ProcedureRequestPriorityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ProcedureRequestPriorityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ProcedureRequestPriorityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ProcedureRequestPriorityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ProcedureRequestPriorityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRequestStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRequestStatusEnum.java deleted file mode 100644 index 6e3df77a328..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProcedureRequestStatusEnum.java +++ /dev/null @@ -1,172 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ProcedureRequestStatusEnum { - - /** - * Code Value: proposed - * - * The request has been proposed. - */ - PROPOSED("proposed", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: planned - * - * The request has been planned. - */ - PLANNED("planned", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: requested - * - * The request has been placed. - */ - REQUESTED("requested", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: received - * - * The receiving system has received the request but not yet decided whether it will be performed. - */ - RECEIVED("received", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: accepted - * - * The receiving system has accepted the request, but work has not yet commenced. - */ - ACCEPTED("accepted", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: in progress - * - * The work to fulfill the request is happening. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: completed - * - * The work has been complete, the report(s) released, and no further work is planned. - */ - COMPLETED("completed", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: suspended - * - * The request has been held by originating system/user request. - */ - SUSPENDED("suspended", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: rejected - * - * The receiving system has declined to fulfill the request. - */ - REJECTED("rejected", "http://hl7.org/fhir/procedure-request-status"), - - /** - * Code Value: aborted - * - * The request was attempted, but due to some procedural error, it could not be completed. - */ - ABORTED("aborted", "http://hl7.org/fhir/procedure-request-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/procedure-request-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/procedure-request-status"; - - /** - * Name for this Value Set: - * ProcedureRequestStatus - */ - public static final String VALUESET_NAME = "ProcedureRequestStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ProcedureRequestStatusEnum next : ProcedureRequestStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ProcedureRequestStatusEnum forCode(String theCode) { - ProcedureRequestStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ProcedureRequestStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ProcedureRequestStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ProcedureRequestStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ProcedureRequestStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ProcedureRequestStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PropertyRepresentationEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PropertyRepresentationEnum.java deleted file mode 100644 index 2d4a5f65204..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/PropertyRepresentationEnum.java +++ /dev/null @@ -1,109 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum PropertyRepresentationEnum { - - /** - * Code Value: xmlAttr - * - * In XML, this property is represented as an attribute not an element. - */ - XMLATTR("xmlAttr", "http://hl7.org/fhir/property-representation"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/property-representation - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/property-representation"; - - /** - * Name for this Value Set: - * PropertyRepresentation - */ - public static final String VALUESET_NAME = "PropertyRepresentation"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (PropertyRepresentationEnum next : PropertyRepresentationEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public PropertyRepresentationEnum forCode(String theCode) { - PropertyRepresentationEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(PropertyRepresentationEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(PropertyRepresentationEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public PropertyRepresentationEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public PropertyRepresentationEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - PropertyRepresentationEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProvenanceEntityRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProvenanceEntityRoleEnum.java deleted file mode 100644 index 4edad72b2de..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ProvenanceEntityRoleEnum.java +++ /dev/null @@ -1,109 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ProvenanceEntityRoleEnum { - - /** - * Code Value: derivation - * - * A transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a preexisting entity. - */ - DERIVATION("derivation", "http://hl7.org/fhir/provenance-entity-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/provenance-entity-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/provenance-entity-role"; - - /** - * Name for this Value Set: - * ProvenanceEntityRole - */ - public static final String VALUESET_NAME = "ProvenanceEntityRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ProvenanceEntityRoleEnum next : ProvenanceEntityRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ProvenanceEntityRoleEnum forCode(String theCode) { - ProvenanceEntityRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ProvenanceEntityRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ProvenanceEntityRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ProvenanceEntityRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ProvenanceEntityRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ProvenanceEntityRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuantityComparatorEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuantityComparatorEnum.java deleted file mode 100644 index 7a102425030..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuantityComparatorEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuantityComparatorEnum { - - /** - * Code Value: < - * - * The actual value is less than the given value. - */ - LESSTHAN("<", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: <= - * - * The actual value is less than or equal to the given value. - */ - LESSTHAN_OR_EQUALS("<=", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: >= - * - * The actual value is greater than or equal to the given value. - */ - GREATERTHAN_OR_EQUALS(">=", "http://hl7.org/fhir/quantity-comparator"), - - /** - * Code Value: > - * - * The actual value is greater than the given value. - */ - GREATERTHAN(">", "http://hl7.org/fhir/quantity-comparator"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/quantity-comparator - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/quantity-comparator"; - - /** - * Name for this Value Set: - * QuantityComparator - */ - public static final String VALUESET_NAME = "QuantityComparator"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuantityComparatorEnum next : QuantityComparatorEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuantityComparatorEnum forCode(String theCode) { - QuantityComparatorEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuantityComparatorEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuantityComparatorEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuantityComparatorEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuantityComparatorEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuantityComparatorEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuestionnaireAnswersStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuestionnaireAnswersStatusEnum.java deleted file mode 100644 index 6b09d38bc1a..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuestionnaireAnswersStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuestionnaireAnswersStatusEnum { - - /** - * Display: in progress
- * Code Value: in progress - * - * This QuestionnaireAnswers has been partially filled out with answers, but changes or additions are still expected to be made to it. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/questionnaire-answers-status"), - - /** - * Display: completed
- * Code Value: completed - * - * This QuestionnaireAnswers has been filled out with answers, and the current content is regarded as definitive. - */ - COMPLETED("completed", "http://hl7.org/fhir/questionnaire-answers-status"), - - /** - * Display: amended
- * Code Value: amended - * - * This QuestionnaireAnswers has been filled out with answers, then marked as complete, yet changes or additions have been made to it afterwards. - */ - AMENDED("amended", "http://hl7.org/fhir/questionnaire-answers-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/questionnaire-answers-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/questionnaire-answers-status"; - - /** - * Name for this Value Set: - * QuestionnaireAnswersStatus - */ - public static final String VALUESET_NAME = "QuestionnaireAnswersStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuestionnaireAnswersStatusEnum next : QuestionnaireAnswersStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuestionnaireAnswersStatusEnum forCode(String theCode) { - QuestionnaireAnswersStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuestionnaireAnswersStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuestionnaireAnswersStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuestionnaireAnswersStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuestionnaireAnswersStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuestionnaireAnswersStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuestionnaireStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuestionnaireStatusEnum.java deleted file mode 100644 index 16d9d9be580..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/QuestionnaireStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum QuestionnaireStatusEnum { - - /** - * Display: draft
- * Code Value: draft - * - * This Questionnaire is not ready for official use. - */ - DRAFT("draft", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: published
- * Code Value: published - * - * This Questionnaire is ready for use. - */ - PUBLISHED("published", "http://hl7.org/fhir/questionnaire-status"), - - /** - * Display: retired
- * Code Value: retired - * - * This Questionnaire should no longer be used to gather data. - */ - RETIRED("retired", "http://hl7.org/fhir/questionnaire-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/questionnaire-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/questionnaire-status"; - - /** - * Name for this Value Set: - * QuestionnaireStatus - */ - public static final String VALUESET_NAME = "QuestionnaireStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (QuestionnaireStatusEnum next : QuestionnaireStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public QuestionnaireStatusEnum forCode(String theCode) { - QuestionnaireStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(QuestionnaireStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(QuestionnaireStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public QuestionnaireStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public QuestionnaireStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - QuestionnaireStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ReferralStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ReferralStatusEnum.java deleted file mode 100644 index 0831603dfea..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ReferralStatusEnum.java +++ /dev/null @@ -1,144 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ReferralStatusEnum { - - /** - * Code Value: draft - * - * A draft referral that has yet to be send. - */ - DRAFT("draft", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: sent - * - * The referral has been transmitted, but not yet acknowledged by the recipient. - */ - SENT("sent", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: active - * - * The referral has been acknowledged by the recipient, and is in the process of being actioned. - */ - ACTIVE("active", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: cancelled - * - * The referral has been cancelled without being completed. For example it is no longer needed. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: refused - * - * The recipient has declined to accept the referral. - */ - REFUSED("refused", "http://hl7.org/fhir/referralstatus"), - - /** - * Code Value: completed - * - * The referral has been completely actioned. - */ - COMPLETED("completed", "http://hl7.org/fhir/referralstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/referralstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/referralstatus"; - - /** - * Name for this Value Set: - * ReferralStatus - */ - public static final String VALUESET_NAME = "ReferralStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ReferralStatusEnum next : ReferralStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ReferralStatusEnum forCode(String theCode) { - ReferralStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ReferralStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ReferralStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ReferralStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ReferralStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ReferralStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RemittanceOutcomeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RemittanceOutcomeEnum.java deleted file mode 100644 index 1b174d5d17d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RemittanceOutcomeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RemittanceOutcomeEnum { - - /** - * Code Value: complete - * - * The processing completed without errors. - */ - COMPLETE("complete", "http://hl7.org/fhir/RS-link"), - - /** - * Code Value: error - * - * The processing identified with errors. - */ - ERROR("error", "http://hl7.org/fhir/RS-link"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/RS-link - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/RS-link"; - - /** - * Name for this Value Set: - * RemittanceOutcome - */ - public static final String VALUESET_NAME = "RemittanceOutcome"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RemittanceOutcomeEnum next : RemittanceOutcomeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RemittanceOutcomeEnum forCode(String theCode) { - RemittanceOutcomeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RemittanceOutcomeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RemittanceOutcomeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RemittanceOutcomeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RemittanceOutcomeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RemittanceOutcomeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceDataElementStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceDataElementStatusEnum.java deleted file mode 100644 index 8548f4583d3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceDataElementStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceDataElementStatusEnum { - - /** - * Code Value: draft - * - * This data element is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/resource-observation-def-status"), - - /** - * Code Value: active - * - * This data element is ready for normal use. - */ - ACTIVE("active", "http://hl7.org/fhir/resource-observation-def-status"), - - /** - * Code Value: retired - * - * This data element has been deprecated, withdrawn or superseded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/resource-observation-def-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-observation-def-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-observation-def-status"; - - /** - * Name for this Value Set: - * ResourceDataElementStatus - */ - public static final String VALUESET_NAME = "ResourceDataElementStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceDataElementStatusEnum next : ResourceDataElementStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceDataElementStatusEnum forCode(String theCode) { - ResourceDataElementStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceDataElementStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceDataElementStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceDataElementStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceDataElementStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceDataElementStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceProfileStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceProfileStatusEnum.java deleted file mode 100644 index 37d69955149..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceProfileStatusEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceProfileStatusEnum { - - /** - * Code Value: draft - * - * This profile is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/resource-profile-status"), - - /** - * Code Value: active - * - * This profile is ready for normal use. - */ - ACTIVE("active", "http://hl7.org/fhir/resource-profile-status"), - - /** - * Code Value: retired - * - * This profile has been deprecated, withdrawn or superseded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/resource-profile-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-profile-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-profile-status"; - - /** - * Name for this Value Set: - * ResourceProfileStatus - */ - public static final String VALUESET_NAME = "ResourceProfileStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceProfileStatusEnum next : ResourceProfileStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceProfileStatusEnum forCode(String theCode) { - ResourceProfileStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceProfileStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceProfileStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceProfileStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceProfileStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceProfileStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceTypeEnum.java deleted file mode 100644 index cda900d2738..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceTypeEnum.java +++ /dev/null @@ -1,795 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceTypeEnum { - - /** - * Code Value: Alert - * - * Prospective warnings of potential issues when providing care to the patient. - */ - ALERT("Alert", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: AllergyIntolerance - * - * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance. - */ - ALLERGYINTOLERANCE("AllergyIntolerance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Appointment - * - * A scheduled healthcare event for a patient and/or practitioner(s) where a service may take place at a specific date/time. - */ - APPOINTMENT("Appointment", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: AppointmentResponse - * - * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. - */ - APPOINTMENTRESPONSE("AppointmentResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Basic - * - * Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification. - */ - BASIC("Basic", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Binary - * - * A binary resource can contain any content, whether text, image, pdf, zip archive, etc. - */ - BINARY("Binary", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Bundle - * - * A container for a group of resources. - */ - BUNDLE("Bundle", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: CarePlan - * - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - */ - CAREPLAN("CarePlan", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: CarePlan2 - * - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - */ - CAREPLAN2("CarePlan2", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ClaimResponse - * - * This resource provides the adjudication details from the processing of a Claim resource. - */ - CLAIMRESPONSE("ClaimResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ClinicalAssessment - * - * A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. - */ - CLINICALASSESSMENT("ClinicalAssessment", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Communication - * - * An occurrence of information being transmitted. E.g., an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition. - */ - COMMUNICATION("Communication", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: CommunicationRequest - * - * A request to convey information. E.g., the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. - */ - COMMUNICATIONREQUEST("CommunicationRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Composition - * - * A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. - */ - COMPOSITION("Composition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ConceptMap - * - * A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models. - */ - CONCEPTMAP("ConceptMap", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Condition - * - * Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary. - */ - CONDITION("Condition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Conformance - * - * A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation. - */ - CONFORMANCE("Conformance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Contract - * - * A formal agreement between parties regarding the conduct of business, exchange of information or other matters. - */ - CONTRACT("Contract", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Contraindication - * - * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient. E.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc. - */ - CONTRAINDICATION("Contraindication", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Coverage - * - * Financial instrument which may be used to pay for or reimburse for health care products and services. - */ - COVERAGE("Coverage", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DataElement - * - * The formal description of a single piece of information that can be gathered and reported. - */ - DATAELEMENT("DataElement", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Device - * - * This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. - */ - DEVICE("Device", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DeviceComponent - * - * Describes the characteristics, operational status and capabilities of a medical-related component of a medical device. - */ - DEVICECOMPONENT("DeviceComponent", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DeviceMetric - * - * Describes a measurement, calculation or setting capability of a medical device. - */ - DEVICEMETRIC("DeviceMetric", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DeviceUseRequest - * - * Represents a request for the use of a device. - */ - DEVICEUSEREQUEST("DeviceUseRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DeviceUseStatement - * - * A record of a device being used by a patient where the record is the result of a report from the patient or another clinician. - */ - DEVICEUSESTATEMENT("DeviceUseStatement", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DiagnosticOrder - * - * A request for a diagnostic investigation service to be performed. - */ - DIAGNOSTICORDER("DiagnosticOrder", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DiagnosticReport - * - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports. - */ - DIAGNOSTICREPORT("DiagnosticReport", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DocumentManifest - * - * A manifest that defines a set of documents. - */ - DOCUMENTMANIFEST("DocumentManifest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: DocumentReference - * - * A reference to a document. - */ - DOCUMENTREFERENCE("DocumentReference", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: EligibilityRequest - * - * This resource provides the insurance eligibility details from the insurer regarding a specified coverage and optionally some class of service. - */ - ELIGIBILITYREQUEST("EligibilityRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: EligibilityResponse - * - * This resource provides eligibility and plan details from the processing of an Eligibility resource. - */ - ELIGIBILITYRESPONSE("EligibilityResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Encounter - * - * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. - */ - ENCOUNTER("Encounter", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: EnrollmentRequest - * - * This resource provides the insurance Enrollment details to the insurer regarding a specified coverage. - */ - ENROLLMENTREQUEST("EnrollmentRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: EnrollmentResponse - * - * This resource provides Enrollment and plan details from the processing of an Enrollment resource. - */ - ENROLLMENTRESPONSE("EnrollmentResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: EpisodeOfCare - * - * An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time. - */ - EPISODEOFCARE("EpisodeOfCare", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ExplanationOfBenefit - * - * This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided. - */ - EXPLANATIONOFBENEFIT("ExplanationOfBenefit", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ExtensionDefinition - * - * Defines an extension that can be used in resources. - */ - EXTENSIONDEFINITION("ExtensionDefinition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: FamilyHistory - * - * Significant health events and conditions for people related to the subject relevant in the context of care for the subject. - */ - FAMILYHISTORY("FamilyHistory", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Goal - * - * Describes the intended objective(s) of the care. - */ - GOAL("Goal", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Group - * - * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization. - */ - GROUP("Group", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: HealthcareService - * - * The details of a Healthcare Service available at a location. - */ - HEALTHCARESERVICE("HealthcareService", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ImagingObjectSelection - * - * A set of DICOM SOP Instances of a patient, selected for some application purpose, e.g., quality assurance, teaching, conference, consulting, etc. Objects selected can be from different studies, but must be of the same patient. - */ - IMAGINGOBJECTSELECTION("ImagingObjectSelection", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ImagingStudy - * - * Representation of the content produced in a DICOM imaging study. A study comprises a set of Series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A Series is of only one modality (e.g., X-ray, CT, MR, ultrasound), but a Study may have multiple Series of different modalities. - */ - IMAGINGSTUDY("ImagingStudy", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Immunization - * - * Immunization event information. - */ - IMMUNIZATION("Immunization", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ImmunizationRecommendation - * - * A patient's point-of-time immunization status and recommendation with optional supporting justification. - */ - IMMUNIZATIONRECOMMENDATION("ImmunizationRecommendation", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: InstitutionalClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - INSTITUTIONALCLAIM("InstitutionalClaim", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: List - * - * A set of information summarized from a list of other resources. - */ - LIST("List", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Location - * - * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated. - */ - LOCATION("Location", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Media - * - * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference. - */ - MEDIA("Media", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Medication - * - * Primarily used for identification and definition of Medication, but also covers ingredients and packaging. - */ - MEDICATION("Medication", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationAdministration - * - * Describes the event of a patient being given a dose of a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. - */ - MEDICATIONADMINISTRATION("MedicationAdministration", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationDispense - * - * Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication. - */ - MEDICATIONDISPENSE("MedicationDispense", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationPrescription - * - * An order for both supply of the medication and the instructions for administration of the medicine to a patient. - */ - MEDICATIONPRESCRIPTION("MedicationPrescription", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MedicationStatement - * - * A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician. - */ - MEDICATIONSTATEMENT("MedicationStatement", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: MessageHeader - * - * The header for a message exchange that is either requesting or responding to an action. The Reference(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. - */ - MESSAGEHEADER("MessageHeader", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: NamingSystem - * - * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types. - */ - NAMINGSYSTEM("NamingSystem", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: NutritionOrder - * - * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. - */ - NUTRITIONORDER("NutritionOrder", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Observation - * - * Measurements and simple assertions made about a patient, device or other subject. - */ - OBSERVATION("Observation", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OperationDefinition - * - * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). - */ - OPERATIONDEFINITION("OperationDefinition", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OperationOutcome - * - * A collection of error, warning or information messages that result from a system action. - */ - OPERATIONOUTCOME("OperationOutcome", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OralHealthClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - ORALHEALTHCLAIM("OralHealthClaim", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Order - * - * A request to perform an action. - */ - ORDER("Order", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: OrderResponse - * - * A response to an order. - */ - ORDERRESPONSE("OrderResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Organization - * - * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc. - */ - ORGANIZATION("Organization", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Other - * - * Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest. - */ - OTHER("Other", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Patient - * - * Demographics and other administrative information about a person or animal receiving care or other health-related services. - */ - PATIENT("Patient", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: PaymentNotice - * - * This resource provides the status of the payment for goods and services rendered, and the request and response resource references. - */ - PAYMENTNOTICE("PaymentNotice", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: PaymentReconciliation - * - * This resource provides payment details and claim references supporting a bulk payment. - */ - PAYMENTRECONCILIATION("PaymentReconciliation", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: PendedRequest - * - * This resource provides the request and response details for the resource for which the status is to be checked. - */ - PENDEDREQUEST("PendedRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Person - * - * Demographics and administrative information about a person independent of a specific health-related context. - */ - PERSON("Person", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: PharmacyClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - PHARMACYCLAIM("PharmacyClaim", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Practitioner - * - * A person who is directly or indirectly involved in the provisioning of healthcare. - */ - PRACTITIONER("Practitioner", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Procedure - * - * An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy. - */ - PROCEDURE("Procedure", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ProcedureRequest - * - * A request for a procedure to be performed. May be a proposal or an order. - */ - PROCEDUREREQUEST("ProcedureRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ProfessionalClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - PROFESSIONALCLAIM("ProfessionalClaim", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Profile - * - * A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions. - */ - PROFILE("Profile", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Provenance - * - * Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance. - */ - PROVENANCE("Provenance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Questionnaire - * - * A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIRE("Questionnaire", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: QuestionnaireAnswers - * - * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions. - */ - QUESTIONNAIREANSWERS("QuestionnaireAnswers", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Readjudicate - * - * This resource provides the request and line items details for the claim which is to be re-adjudicated. - */ - READJUDICATE("Readjudicate", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ReferralRequest - * - * Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organisation. - */ - REFERRALREQUEST("ReferralRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: RelatedPerson - * - * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. - */ - RELATEDPERSON("RelatedPerson", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Reversal - * - * This resource provides the request and response details for the request for which all actions are to be reversed or terminated. - */ - REVERSAL("Reversal", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: RiskAssessment - * - * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. - */ - RISKASSESSMENT("RiskAssessment", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Schedule - * - * A container for slot(s) of time that may be available for booking appointments. - */ - SCHEDULE("Schedule", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: SearchParameter - * - * A Search Parameter that defines a named search item that can be used to search/filter on a resource. - */ - SEARCHPARAMETER("SearchParameter", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: SecurityEvent - * - * A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage. - */ - SECURITYEVENT("SecurityEvent", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Slot - * - * A slot of time on a schedule that may be available for booking appointments. - */ - SLOT("Slot", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Specimen - * - * Sample for analysis. - */ - SPECIMEN("Specimen", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: StatusRequest - * - * This resource provides the request and response details for the resource for which the processing status is to be checked. - */ - STATUSREQUEST("StatusRequest", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: StatusResponse - * - * This resource provides processing status, errors and notes from the processing of a resource. - */ - STATUSRESPONSE("StatusResponse", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Subscription - * - * Todo. - */ - SUBSCRIPTION("Subscription", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Substance - * - * A homogeneous material with a definite composition. - */ - SUBSTANCE("Substance", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: Supply - * - * A supply - a request for something, and provision of what is supplied. - */ - SUPPLY("Supply", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: SupportingDocumentation - * - * This resource provides the supporting information for a process, for example clinical or financial information related to a claim or pre-authorization. - */ - SUPPORTINGDOCUMENTATION("SupportingDocumentation", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: ValueSet - * - * A value set specifies a set of codes drawn from one or more code systems. - */ - VALUESET("ValueSet", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: VisionClaim - * - * A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery. - */ - VISIONCLAIM("VisionClaim", "http://hl7.org/fhir/resource-types"), - - /** - * Code Value: VisionPrescription - * - * An authorization for the supply of glasses and/or contact lenses to a patient. - */ - VISIONPRESCRIPTION("VisionPrescription", "http://hl7.org/fhir/resource-types"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-types - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-types"; - - /** - * Name for this Value Set: - * ResourceType - */ - public static final String VALUESET_NAME = "ResourceType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceTypeEnum next : ResourceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceTypeEnum forCode(String theCode) { - ResourceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceVersionPolicyEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceVersionPolicyEnum.java deleted file mode 100644 index 0ec64f4b854..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResourceVersionPolicyEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResourceVersionPolicyEnum { - - /** - * Display: No VersionId Support
- * Code Value: no-version - * - * VersionId meta-property is not suppoerted (server) or used (client). - */ - NO_VERSIONID_SUPPORT("no-version", "http://hl7.org/fhir/versioning-policy"), - - /** - * Display: Versioned
- * Code Value: versioned - * - * VersionId meta-property is suppoerted (server) or used (client). - */ - VERSIONED("versioned", "http://hl7.org/fhir/versioning-policy"), - - /** - * Display: VersionId tracked fully
- * Code Value: versioned-update - * - * VersionId is must be correct for updates (server) or will be specified (If-match header) for updates (client). - */ - VERSIONID_TRACKED_FULLY("versioned-update", "http://hl7.org/fhir/versioning-policy"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/versioning-policy - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/versioning-policy"; - - /** - * Name for this Value Set: - * ResourceVersionPolicy - */ - public static final String VALUESET_NAME = "ResourceVersionPolicy"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResourceVersionPolicyEnum next : ResourceVersionPolicyEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResourceVersionPolicyEnum forCode(String theCode) { - ResourceVersionPolicyEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResourceVersionPolicyEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResourceVersionPolicyEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResourceVersionPolicyEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResourceVersionPolicyEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResourceVersionPolicyEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResponseTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResponseTypeEnum.java deleted file mode 100644 index e5a8409bbba..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ResponseTypeEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ResponseTypeEnum { - - /** - * Code Value: ok - * - * The message was accepted and processed without error. - */ - OK("ok", "http://hl7.org/fhir/response-code"), - - /** - * Code Value: transient-error - * - * Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required. - */ - TRANSIENT_ERROR("transient-error", "http://hl7.org/fhir/response-code"), - - /** - * Code Value: fatal-error - * - * The message was rejected because of some content in it. There is no point in re-sending without change. The response narrative SHALL describe what the issue is. - */ - FATAL_ERROR("fatal-error", "http://hl7.org/fhir/response-code"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/response-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/response-code"; - - /** - * Name for this Value Set: - * ResponseType - */ - public static final String VALUESET_NAME = "ResponseType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ResponseTypeEnum next : ResponseTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ResponseTypeEnum forCode(String theCode) { - ResponseTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ResponseTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ResponseTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ResponseTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ResponseTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ResponseTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RestfulConformanceModeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RestfulConformanceModeEnum.java deleted file mode 100644 index 2f89114be87..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RestfulConformanceModeEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RestfulConformanceModeEnum { - - /** - * Code Value: client - * - * The application acts as a server for this resource. - */ - CLIENT("client", "http://hl7.org/fhir/restful-conformance-mode"), - - /** - * Code Value: server - * - * The application acts as a client for this resource. - */ - SERVER("server", "http://hl7.org/fhir/restful-conformance-mode"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/restful-conformance-mode - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/restful-conformance-mode"; - - /** - * Name for this Value Set: - * RestfulConformanceMode - */ - public static final String VALUESET_NAME = "RestfulConformanceMode"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RestfulConformanceModeEnum next : RestfulConformanceModeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RestfulConformanceModeEnum forCode(String theCode) { - RestfulConformanceModeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RestfulConformanceModeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RestfulConformanceModeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RestfulConformanceModeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RestfulConformanceModeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RestfulConformanceModeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RestfulSecurityServiceEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RestfulSecurityServiceEnum.java deleted file mode 100644 index 10b9ec3ca24..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RestfulSecurityServiceEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RestfulSecurityServiceEnum { - - /** - * Code Value: OAuth - * - * OAuth (see oauth.net). - */ - OAUTH("OAuth", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: OAuth2 - * - * OAuth version 2 (see oauth.net). - */ - OAUTH2("OAuth2", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: NTLM - * - * Microsoft NTLM Authentication. - */ - NTLM("NTLM", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: Basic - * - * Basic authentication defined in HTTP specification. - */ - BASIC("Basic", "http://hl7.org/fhir/restful-security-service"), - - /** - * Code Value: Kerberos - * - * see http://www.ietf.org/rfc/rfc4120.txt. - */ - KERBEROS("Kerberos", "http://hl7.org/fhir/restful-security-service"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/restful-security-service - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/restful-security-service"; - - /** - * Name for this Value Set: - * RestfulSecurityService - */ - public static final String VALUESET_NAME = "RestfulSecurityService"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RestfulSecurityServiceEnum next : RestfulSecurityServiceEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RestfulSecurityServiceEnum forCode(String theCode) { - RestfulSecurityServiceEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RestfulSecurityServiceEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RestfulSecurityServiceEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RestfulSecurityServiceEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RestfulSecurityServiceEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RestfulSecurityServiceEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RulesetCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RulesetCodesEnum.java deleted file mode 100644 index a0826af5562..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/RulesetCodesEnum.java +++ /dev/null @@ -1,132 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum RulesetCodesEnum { - - /** - * Code Value: x12-4010 - */ - X12_4010("x12-4010", "http://hl7.org/fhir/ruleset"), - - /** - * Code Value: x12-5010 - */ - X12_5010("x12-5010", "http://hl7.org/fhir/ruleset"), - - /** - * Code Value: x12-7010 - */ - X12_7010("x12-7010", "http://hl7.org/fhir/ruleset"), - - /** - * Code Value: cdanet-v2 - */ - CDANET_V2("cdanet-v2", "http://hl7.org/fhir/ruleset"), - - /** - * Code Value: cdanet-v4 - */ - CDANET_V4("cdanet-v4", "http://hl7.org/fhir/ruleset"), - - /** - * Code Value: cpha-3 - */ - CPHA_3("cpha-3", "http://hl7.org/fhir/ruleset"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/ruleset - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/ruleset"; - - /** - * Name for this Value Set: - * Ruleset Codes - */ - public static final String VALUESET_NAME = "Ruleset Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (RulesetCodesEnum next : RulesetCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public RulesetCodesEnum forCode(String theCode) { - RulesetCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(RulesetCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(RulesetCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public RulesetCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public RulesetCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - RulesetCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SearchParamTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SearchParamTypeEnum.java deleted file mode 100644 index 304522222ef..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SearchParamTypeEnum.java +++ /dev/null @@ -1,151 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SearchParamTypeEnum { - - /** - * Code Value: number - * - * Search parameter SHALL be a number (a whole number, or a decimal). - */ - NUMBER("number", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: date - * - * Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported. - */ - DATE("date", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: string - * - * Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces. - */ - STRING("string", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: token - * - * Search parameter on a coded element or identifier. May be used to search through the text, displayname, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a "|", depending on the modifier used. - */ - TOKEN("token", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: reference - * - * A reference to another resource. - */ - REFERENCE("reference", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: composite - * - * A composite search parameter that combines a search on two values together. - */ - COMPOSITE("composite", "http://hl7.org/fhir/search-param-type"), - - /** - * Code Value: quantity - * - * A search parameter that searches on a quantity. - */ - QUANTITY("quantity", "http://hl7.org/fhir/search-param-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/search-param-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/search-param-type"; - - /** - * Name for this Value Set: - * SearchParamType - */ - public static final String VALUESET_NAME = "SearchParamType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SearchParamTypeEnum next : SearchParamTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SearchParamTypeEnum forCode(String theCode) { - SearchParamTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SearchParamTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SearchParamTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SearchParamTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SearchParamTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SearchParamTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventActionEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventActionEnum.java deleted file mode 100644 index 380fbcd7ab4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventActionEnum.java +++ /dev/null @@ -1,142 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventActionEnum { - - /** - * Display: Create
- * Code Value: C - * - * Create a new database object, such as Placing an Order. - */ - CREATE("C", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Read/View/Print
- * Code Value: R - * - * Display or print data, such as a Doctor Census. - */ - READ_VIEW_PRINT("R", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Update
- * Code Value: U - * - * Update data, such as Revise Patient Information. - */ - UPDATE("U", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Delete
- * Code Value: D - * - * Delete items, such as a doctor master file record. - */ - DELETE("D", "http://hl7.org/fhir/security-event-action"), - - /** - * Display: Execute
- * Code Value: E - * - * Perform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation. - */ - EXECUTE("E", "http://hl7.org/fhir/security-event-action"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-action - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-action"; - - /** - * Name for this Value Set: - * SecurityEventAction - */ - public static final String VALUESET_NAME = "SecurityEventAction"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventActionEnum next : SecurityEventActionEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventActionEnum forCode(String theCode) { - SecurityEventActionEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventActionEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventActionEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventActionEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventActionEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventActionEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectLifecycleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectLifecycleEnum.java deleted file mode 100644 index c73596656de..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectLifecycleEnum.java +++ /dev/null @@ -1,207 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectLifecycleEnum { - - /** - * Code Value: 1 - * - * Origination / Creation. - */ - ORIGINATION_OR_CREATION("1", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 2 - * - * Import / Copy from original. - */ - IMPORT_OR_COPY_FROM_ORIGINAL("2", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 3 - * - * Amendment. - */ - AMENDMENT("3", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 4 - * - * Verification. - */ - VERIFICATION("4", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 5 - * - * Translation. - */ - TRANSLATION("5", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 6 - * - * Access / Use. - */ - ACCESS_OR_USE("6", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 7 - * - * De-identification. - */ - DE_IDENTIFICATION("7", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 8 - * - * Aggregation, summarization, derivation. - */ - AGGREGATION("8", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 9 - * - * Report. - */ - REPORT("9", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 10 - * - * Export / Copy to target. - */ - EXPORT_OR_COPY_TO_TARGET("10", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 11 - * - * Disclosure. - */ - DISCLOSURE("11", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 12 - * - * Receipt of disclosure. - */ - RECEIPT_OF_DISCLOSURE("12", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 13 - * - * Archiving. - */ - ARCHIVING("13", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 14 - * - * Logical deletion. - */ - LOGICAL_DELETION("14", "http://hl7.org/fhir/object-lifecycle"), - - /** - * Code Value: 15 - * - * Permanent erasure / Physical destruction. - */ - PERMANENT_ERASURE_OR_PHYSICAL_DESTRUCTION("15", "http://hl7.org/fhir/object-lifecycle"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-lifecycle - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-lifecycle"; - - /** - * Name for this Value Set: - * SecurityEventObjectLifecycle - */ - public static final String VALUESET_NAME = "SecurityEventObjectLifecycle"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectLifecycleEnum next : SecurityEventObjectLifecycleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectLifecycleEnum forCode(String theCode) { - SecurityEventObjectLifecycleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectLifecycleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectLifecycleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectLifecycleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectLifecycleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectLifecycleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectRoleEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectRoleEnum.java deleted file mode 100644 index 99eed7a7e06..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectRoleEnum.java +++ /dev/null @@ -1,294 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectRoleEnum { - - /** - * Display: Patient
- * Code Value: 1 - * - * This object is the patient that is the subject of care related to this event. It is identifiable by patient ID or equivalent. The patient may be either human or animal. - */ - PATIENT("1", "http://hl7.org/fhir/object-role"), - - /** - * Display: Location
- * Code Value: 2 - * - * This is a location identified as related to the event. This is usually the location where the event took place. Note that for shipping, the usual events are arrival at a location or departure from a location. - */ - LOCATION("2", "http://hl7.org/fhir/object-role"), - - /** - * Display: Report
- * Code Value: 3 - * - * This object is any kind of persistent document created as a result of the event. This could be a paper report, film, electronic report, DICOM Study, etc. Issues related to medical records life cycle management are conveyed elsewhere. - */ - REPORT("3", "http://hl7.org/fhir/object-role"), - - /** - * Display: DomainResource
- * Code Value: 4 - * - * A logical object related to the event. (Deprecated). - */ - DOMAINRESOURCE("4", "http://hl7.org/fhir/object-role"), - - /** - * Display: Master file
- * Code Value: 5 - * - * This is any configurable file used to control creation of documents. Examples include the objects maintained by the HL7 Master File transactions, Value Sets, etc. - */ - MASTER_FILE("5", "http://hl7.org/fhir/object-role"), - - /** - * Display: User
- * Code Value: 6 - * - * A human participant not otherwise identified by some other category. - */ - USER("6", "http://hl7.org/fhir/object-role"), - - /** - * Display: List
- * Code Value: 7 - * - * (deprecated). - */ - LIST("7", "http://hl7.org/fhir/object-role"), - - /** - * Display: Doctor
- * Code Value: 8 - * - * Typically a licensed person who is providing or performing care related to the event, generally a physician. The key distinction between doctor and practitioner is with regards to their role, not the licensing. The doctor is the human who actually performed the work. The practitioner is the human or organization that is responsible for the work. - */ - DOCTOR("8", "http://hl7.org/fhir/object-role"), - - /** - * Display: Subscriber
- * Code Value: 9 - * - * A person or system that is being notified as part of the event. This is relevant in situations where automated systems provide notifications to other parties when an event took place. - */ - SUBSCRIBER("9", "http://hl7.org/fhir/object-role"), - - /** - * Display: Guarantor
- * Code Value: 10 - * - * Insurance company, or any other organization who accepts responsibility for paying for the healthcare event. - */ - GUARANTOR("10", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security User Entity
- * Code Value: 11 - * - * A person or active system object involved in the event with a security role. - */ - SECURITY_USER_ENTITY("11", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security User Group
- * Code Value: 12 - * - * A person or system object involved in the event with the authority to modify security roles of other objects. - */ - SECURITY_USER_GROUP("12", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security Resource
- * Code Value: 13 - * - * A passive object, such as a role table, that is relevant to the event. - */ - SECURITY_RESOURCE("13", "http://hl7.org/fhir/object-role"), - - /** - * Display: Security Granularity Definition
- * Code Value: 14 - * - * (deprecated) Relevant to certain RBAC security methodologies. - */ - SECURITY_GRANULARITY_DEFINITION("14", "http://hl7.org/fhir/object-role"), - - /** - * Display: Practitioner
- * Code Value: 15 - * - * Any person or organization responsible for providing care. This encompasses all forms of care, licensed or otherwise, and all sorts of teams and care groups. Note, the distinction between practitioners and the doctor that actually provided the care to the patient. - */ - PRACTITIONER("15", "http://hl7.org/fhir/object-role"), - - /** - * Display: Data Destination
- * Code Value: 16 - * - * The source or destination for data transfer, when it does not match some other role. - */ - DATA_DESTINATION("16", "http://hl7.org/fhir/object-role"), - - /** - * Display: Data Repository
- * Code Value: 17 - * - * A source or destination for data transfer, that acts as an archive, database, or similar role. - */ - DATA_REPOSITORY("17", "http://hl7.org/fhir/object-role"), - - /** - * Display: Schedule
- * Code Value: 18 - * - * An object that holds schedule information. This could be an appointment book, availability information, etc. - */ - SCHEDULE("18", "http://hl7.org/fhir/object-role"), - - /** - * Display: Customer
- * Code Value: 19 - * - * An organization or person that is the recipient of services. This could be an organization that is buying services for a patient, or a person that is buying services for an animal. - */ - CUSTOMER("19", "http://hl7.org/fhir/object-role"), - - /** - * Display: Job
- * Code Value: 20 - * - * An order, task, work item, procedure step, or other description of work to be performed. E.g., a particular instance of an MPPS. - */ - JOB("20", "http://hl7.org/fhir/object-role"), - - /** - * Display: Job Stream
- * Code Value: 21 - * - * A list of jobs or a system that provides lists of jobs. E.g., an MWL SCP. - */ - JOB_STREAM("21", "http://hl7.org/fhir/object-role"), - - /** - * Display: Table
- * Code Value: 22 - * - * (Deprecated). - */ - TABLE("22", "http://hl7.org/fhir/object-role"), - - /** - * Display: Routing Criteria
- * Code Value: 23 - * - * An object that specifies or controls the routing or delivery of items. For example, a distribution list is the routing criteria for mail. The items delivered may be documents, jobs, or other objects. - */ - ROUTING_CRITERIA("23", "http://hl7.org/fhir/object-role"), - - /** - * Display: Query
- * Code Value: 24 - * - * The contents of a query. This is used to capture the contents of any kind of query. For security surveillance purposes knowing the queries being made is very important. - */ - QUERY("24", "http://hl7.org/fhir/object-role"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-role - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-role"; - - /** - * Name for this Value Set: - * SecurityEventObjectRole - */ - public static final String VALUESET_NAME = "SecurityEventObjectRole"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectRoleEnum next : SecurityEventObjectRoleEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectRoleEnum forCode(String theCode) { - SecurityEventObjectRoleEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectRoleEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectRoleEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectRoleEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectRoleEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectRoleEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectSensitivityEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectSensitivityEnum.java deleted file mode 100644 index 5227d984371..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectSensitivityEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectSensitivityEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-sensitivity - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-sensitivity"; - - /** - * Name for this Value Set: - * Security Event Object Sensitivity - */ - public static final String VALUESET_NAME = "Security Event Object Sensitivity"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectSensitivityEnum next : SecurityEventObjectSensitivityEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectSensitivityEnum forCode(String theCode) { - SecurityEventObjectSensitivityEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectSensitivityEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectSensitivityEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectSensitivityEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectSensitivityEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectSensitivityEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectTypeEnum.java deleted file mode 100644 index bcf6b2074f3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventObjectTypeEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventObjectTypeEnum { - - /** - * Code Value: 1 - * - * Person. - */ - PERSON("1", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 2 - * - * System Object. - */ - SYSTEM_OBJECT("2", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 3 - * - * Organization. - */ - ORGANIZATION("3", "http://hl7.org/fhir/object-type"), - - /** - * Code Value: 4 - * - * Other. - */ - OTHER("4", "http://hl7.org/fhir/object-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/object-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/object-type"; - - /** - * Name for this Value Set: - * SecurityEventObjectType - */ - public static final String VALUESET_NAME = "SecurityEventObjectType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventObjectTypeEnum next : SecurityEventObjectTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventObjectTypeEnum forCode(String theCode) { - SecurityEventObjectTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventObjectTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventObjectTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventObjectTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventObjectTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventObjectTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventOutcomeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventOutcomeEnum.java deleted file mode 100644 index 51d659e99a4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventOutcomeEnum.java +++ /dev/null @@ -1,134 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventOutcomeEnum { - - /** - * Display: Success
- * Code Value: 0 - * - * The operation completed successfully (whether with warnings or not). - */ - SUCCESS("0", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Minor failure
- * Code Value: 4 - * - * The action was not successful due to some kind of catered for error (often equivalent to an HTTP 400 response). - */ - MINOR_FAILURE("4", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Serious failure
- * Code Value: 8 - * - * The action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response). - */ - SERIOUS_FAILURE("8", "http://hl7.org/fhir/security-event-outcome"), - - /** - * Display: Major failure
- * Code Value: 12 - * - * An error of such magnitude occurred that the system is not longer available for use (i.e. the system died). - */ - MAJOR_FAILURE("12", "http://hl7.org/fhir/security-event-outcome"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-event-outcome - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-event-outcome"; - - /** - * Name for this Value Set: - * SecurityEventOutcome - */ - public static final String VALUESET_NAME = "SecurityEventOutcome"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventOutcomeEnum next : SecurityEventOutcomeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventOutcomeEnum forCode(String theCode) { - SecurityEventOutcomeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventOutcomeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventOutcomeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventOutcomeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventOutcomeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventOutcomeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventParticipantNetworkTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventParticipantNetworkTypeEnum.java deleted file mode 100644 index 0f5e9e613c4..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventParticipantNetworkTypeEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventParticipantNetworkTypeEnum { - - /** - * Code Value: 1 - * - * Machine Name, including DNS name. - */ - MACHINE_NAME("1", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 2 - * - * IP Address. - */ - IP_ADDRESS("2", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 3 - * - * Telephone Number. - */ - TELEPHONE_NUMBER("3", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 4 - * - * Email address. - */ - EMAIL_ADDRESS("4", "http://hl7.org/fhir/network-type"), - - /** - * Code Value: 5 - * - * URI (User directory, HTTP-PUT, ftp, etc.). - */ - URI("5", "http://hl7.org/fhir/network-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/network-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/network-type"; - - /** - * Name for this Value Set: - * SecurityEventParticipantNetworkType - */ - public static final String VALUESET_NAME = "SecurityEventParticipantNetworkType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventParticipantNetworkTypeEnum next : SecurityEventParticipantNetworkTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventParticipantNetworkTypeEnum forCode(String theCode) { - SecurityEventParticipantNetworkTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventParticipantNetworkTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventParticipantNetworkTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventParticipantNetworkTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventParticipantNetworkTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventParticipantNetworkTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventSourceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventSourceTypeEnum.java deleted file mode 100644 index 24785e2a05f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SecurityEventSourceTypeEnum.java +++ /dev/null @@ -1,174 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SecurityEventSourceTypeEnum { - - /** - * Display: User Device
- * Code Value: 1 - * - * End-user display device, diagnostic device - */ - USER_DEVICE("1", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Data Interface
- * Code Value: 2 - * - * Data acquisition device or instrument - */ - DATA_INTERFACE("2", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Web Server
- * Code Value: 3 - * - * Web Server process or thread - */ - WEB_SERVER("3", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Application Server
- * Code Value: 4 - * - * Application Server process or thread - */ - APPLICATION_SERVER("4", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Database Server
- * Code Value: 5 - * - * Database Server process or thread - */ - DATABASE_SERVER("5", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Security Server
- * Code Value: 6 - * - * Security server, e.g., a domain controller - */ - SECURITY_SERVER("6", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Network Device
- * Code Value: 7 - * - * ISO level 1-3 network component - */ - NETWORK_DEVICE("7", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Network Router
- * Code Value: 8 - * - * ISO level 4-6 operating software - */ - NETWORK_ROUTER("8", "http://hl7.org/fhir/security-source-type"), - - /** - * Display: Other
- * Code Value: 9 - * - * other kind of device (defined by DICOM, but some other code/system can be used) - */ - OTHER("9", "http://hl7.org/fhir/security-source-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/security-source-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/security-source-type"; - - /** - * Name for this Value Set: - * Security Event Source Type - */ - public static final String VALUESET_NAME = "Security Event Source Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SecurityEventSourceTypeEnum next : SecurityEventSourceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SecurityEventSourceTypeEnum forCode(String theCode) { - SecurityEventSourceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SecurityEventSourceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SecurityEventSourceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SecurityEventSourceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SecurityEventSourceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SecurityEventSourceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SlicingRulesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SlicingRulesEnum.java deleted file mode 100644 index 24c6012f6f5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SlicingRulesEnum.java +++ /dev/null @@ -1,123 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SlicingRulesEnum { - - /** - * Code Value: closed - * - * No additional content is allowed other than that described by the slices in this profile. - */ - CLOSED("closed", "http://hl7.org/fhir/resource-slicing-rules"), - - /** - * Code Value: open - * - * Additional content is allowed anywhere in the list. - */ - OPEN("open", "http://hl7.org/fhir/resource-slicing-rules"), - - /** - * Code Value: openAtEnd - * - * Additional content is allowed, but only at the end of the list. - */ - OPENATEND("openAtEnd", "http://hl7.org/fhir/resource-slicing-rules"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/resource-slicing-rules - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/resource-slicing-rules"; - - /** - * Name for this Value Set: - * SlicingRules - */ - public static final String VALUESET_NAME = "SlicingRules"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SlicingRulesEnum next : SlicingRulesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SlicingRulesEnum forCode(String theCode) { - SlicingRulesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SlicingRulesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SlicingRulesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SlicingRulesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SlicingRulesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SlicingRulesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SlotStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SlotStatusEnum.java deleted file mode 100644 index c46452f0164..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SlotStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SlotStatusEnum { - - /** - * Code Value: BUSY - * - * Indicates that the time interval is busy because one or more events have been scheduled for that interval. - */ - BUSY("BUSY", "http://hl7.org/fhir/slotstatus"), - - /** - * Code Value: FREE - * - * Indicates that the time interval is free for scheduling. - */ - FREE("FREE", "http://hl7.org/fhir/slotstatus"), - - /** - * Code Value: BUSY-UNAVAILABLE - * - * Indicates that the time interval is busy and that the interval can not be scheduled. - */ - BUSY_UNAVAILABLE("BUSY-UNAVAILABLE", "http://hl7.org/fhir/slotstatus"), - - /** - * Code Value: BUSY-TENTATIVE - * - * Indicates that the time interval is busy because one or more events have been tentatively scheduled for that interval. - */ - BUSY_TENTATIVE("BUSY-TENTATIVE", "http://hl7.org/fhir/slotstatus"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/slotstatus - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/slotstatus"; - - /** - * Name for this Value Set: - * SlotStatus - */ - public static final String VALUESET_NAME = "SlotStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SlotStatusEnum next : SlotStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SlotStatusEnum forCode(String theCode) { - SlotStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SlotStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SlotStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SlotStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SlotStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SlotStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SpecimenCollectionMethodEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SpecimenCollectionMethodEnum.java deleted file mode 100644 index cdfe2aa7c07..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SpecimenCollectionMethodEnum.java +++ /dev/null @@ -1,167 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SpecimenCollectionMethodEnum { - - /** - * Code Value: 119295008 - */ - _119295008("119295008", "http://snomed.info/sct"), - - /** - * Code Value: 413651001 - */ - _413651001("413651001", "http://snomed.info/sct"), - - /** - * Code Value: 360020006 - */ - _360020006("360020006", "http://snomed.info/sct"), - - /** - * Code Value: 430823004 - */ - _430823004("430823004", "http://snomed.info/sct"), - - /** - * Code Value: 16404004 - */ - _16404004("16404004", "http://snomed.info/sct"), - - /** - * Code Value: 67889009 - */ - _67889009("67889009", "http://snomed.info/sct"), - - /** - * Code Value: 29240004 - */ - _29240004("29240004", "http://snomed.info/sct"), - - /** - * Code Value: 45710003 - */ - _45710003("45710003", "http://snomed.info/sct"), - - /** - * Code Value: 7800008 - */ - _7800008("7800008", "http://snomed.info/sct"), - - /** - * Code Value: 258431006 - */ - _258431006("258431006", "http://snomed.info/sct"), - - /** - * Code Value: 20255002 - */ - _20255002("20255002", "http://snomed.info/sct"), - - /** - * Code Value: 386147002 - */ - _386147002("386147002", "http://snomed.info/sct"), - - /** - * Code Value: 278450005 - */ - _278450005("278450005", "http://snomed.info/sct"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/specimen-collection-method - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/specimen-collection-method"; - - /** - * Name for this Value Set: - * SpecimenCollectionMethod - */ - public static final String VALUESET_NAME = "SpecimenCollectionMethod"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SpecimenCollectionMethodEnum next : SpecimenCollectionMethodEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SpecimenCollectionMethodEnum forCode(String theCode) { - SpecimenCollectionMethodEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SpecimenCollectionMethodEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SpecimenCollectionMethodEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SpecimenCollectionMethodEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SpecimenCollectionMethodEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SpecimenCollectionMethodEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SpecimenTreatmentProcedureEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SpecimenTreatmentProcedureEnum.java deleted file mode 100644 index 1703b0148b2..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SpecimenTreatmentProcedureEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SpecimenTreatmentProcedureEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/specimen-treatment-procedure - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/specimen-treatment-procedure"; - - /** - * Name for this Value Set: - * SpecimenTreatmentProcedure - */ - public static final String VALUESET_NAME = "SpecimenTreatmentProcedure"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SpecimenTreatmentProcedureEnum next : SpecimenTreatmentProcedureEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SpecimenTreatmentProcedureEnum forCode(String theCode) { - SpecimenTreatmentProcedureEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SpecimenTreatmentProcedureEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SpecimenTreatmentProcedureEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SpecimenTreatmentProcedureEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SpecimenTreatmentProcedureEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SpecimenTreatmentProcedureEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubscriptionChannelTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubscriptionChannelTypeEnum.java deleted file mode 100644 index 0ec8ebc52da..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubscriptionChannelTypeEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SubscriptionChannelTypeEnum { - - /** - * Code Value: rest-hook - * - * The channel is executed by making a post to the URI. If a payload is included, the URL is interpreted as the service base, and an update (PUT) is made. - */ - REST_HOOK("rest-hook", "http://hl7.org/fhir/subscription-channel-type"), - - /** - * Code Value: websocket - * - * The channel is executed by sending a packet across a web socket connection maintained by the client. The URL identifies the websocket, and the client binds to this URL. - */ - WEBSOCKET("websocket", "http://hl7.org/fhir/subscription-channel-type"), - - /** - * Code Value: email - * - * The channel is executed by sending an email to the email addressed in the URI (which must be a mailto:). - */ - EMAIL("email", "http://hl7.org/fhir/subscription-channel-type"), - - /** - * Code Value: sms - * - * The channel is executed by sending an SMS message to the phone number identified in the URL (tel:). - */ - SMS("sms", "http://hl7.org/fhir/subscription-channel-type"), - - /** - * Code Value: message - * - * The channel Is executed by sending a message (e.g. a Bundle with a MessageHeader resource etc) to the application identified in the URI. - */ - MESSAGE("message", "http://hl7.org/fhir/subscription-channel-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/subscription-channel-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/subscription-channel-type"; - - /** - * Name for this Value Set: - * SubscriptionChannelType - */ - public static final String VALUESET_NAME = "SubscriptionChannelType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SubscriptionChannelTypeEnum next : SubscriptionChannelTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SubscriptionChannelTypeEnum forCode(String theCode) { - SubscriptionChannelTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SubscriptionChannelTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SubscriptionChannelTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SubscriptionChannelTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SubscriptionChannelTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SubscriptionChannelTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubscriptionStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubscriptionStatusEnum.java deleted file mode 100644 index eddfdc32230..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubscriptionStatusEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SubscriptionStatusEnum { - - /** - * Code Value: requested - * - * The client has requested the subscription, and the server has not yet set it up. - */ - REQUESTED("requested", "http://hl7.org/fhir/subscription-status"), - - /** - * Code Value: active - * - * The subscription is active. - */ - ACTIVE("active", "http://hl7.org/fhir/subscription-status"), - - /** - * Code Value: error - * - * The server has an error executing the notification. - */ - ERROR("error", "http://hl7.org/fhir/subscription-status"), - - /** - * Code Value: off - * - * Too many errors have occurred or the subscription has expired. - */ - OFF("off", "http://hl7.org/fhir/subscription-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/subscription-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/subscription-status"; - - /** - * Name for this Value Set: - * SubscriptionStatus - */ - public static final String VALUESET_NAME = "SubscriptionStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SubscriptionStatusEnum next : SubscriptionStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SubscriptionStatusEnum forCode(String theCode) { - SubscriptionStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SubscriptionStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SubscriptionStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SubscriptionStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SubscriptionStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SubscriptionStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubstanceTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubstanceTypeEnum.java deleted file mode 100644 index e94af91261d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SubstanceTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SubstanceTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/substance-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/substance-type"; - - /** - * Name for this Value Set: - * Substance Type - */ - public static final String VALUESET_NAME = "Substance Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SubstanceTypeEnum next : SubstanceTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SubstanceTypeEnum forCode(String theCode) { - SubstanceTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SubstanceTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SubstanceTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SubstanceTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SubstanceTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SubstanceTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplementTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplementTypeEnum.java deleted file mode 100644 index 5557af74bfd..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplementTypeEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplementTypeEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/supplement-type - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/supplement-type"; - - /** - * Name for this Value Set: - * SupplementType - */ - public static final String VALUESET_NAME = "SupplementType"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplementTypeEnum next : SupplementTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplementTypeEnum forCode(String theCode) { - SupplementTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplementTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplementTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplementTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplementTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplementTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyDispenseStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyDispenseStatusEnum.java deleted file mode 100644 index 5f2b5056221..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyDispenseStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyDispenseStatusEnum { - - /** - * Display: In Progress
- * Code Value: in progress - * - * Supply has been requested, but not dispensed. - */ - IN_PROGRESS("in progress", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - /** - * Display: Dispensed
- * Code Value: dispensed - * - * Supply is part of a pharmacy order and has been dispensed. - */ - DISPENSED("dispensed", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - /** - * Display: Abandoned
- * Code Value: abandoned - * - * Dispensing was not completed. - */ - ABANDONED("abandoned", "http://hl7.org/fhir/valueset-supply-dispense-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-supply-dispense-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-supply-dispense-status"; - - /** - * Name for this Value Set: - * SupplyDispenseStatus - */ - public static final String VALUESET_NAME = "SupplyDispenseStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyDispenseStatusEnum next : SupplyDispenseStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyDispenseStatusEnum forCode(String theCode) { - SupplyDispenseStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyDispenseStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyDispenseStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyDispenseStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyDispenseStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyDispenseStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyItemTypeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyItemTypeEnum.java deleted file mode 100644 index d108adf84f3..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyItemTypeEnum.java +++ /dev/null @@ -1,118 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyItemTypeEnum { - - /** - * Display: Medication
- * Code Value: medication - * - * Supply is a kind of medication. - */ - MEDICATION("medication", "http://hl7.org/fhir/supply-item-type"), - - /** - * Display: Device
- * Code Value: device - * - * What is supplied (or requested) is a device - */ - DEVICE("device", "http://hl7.org/fhir/supply-item-type"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/supply-item - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/supply-item"; - - /** - * Name for this Value Set: - * Supply Item Type - */ - public static final String VALUESET_NAME = "Supply Item Type"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyItemTypeEnum next : SupplyItemTypeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyItemTypeEnum forCode(String theCode) { - SupplyItemTypeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyItemTypeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyItemTypeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyItemTypeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyItemTypeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyItemTypeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyStatusEnum.java deleted file mode 100644 index 5d996fe8840..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SupplyStatusEnum.java +++ /dev/null @@ -1,142 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SupplyStatusEnum { - - /** - * Display: Requested
- * Code Value: requested - * - * Supply has been requested, but not dispensed. - */ - REQUESTED("requested", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Dispensed
- * Code Value: dispensed - * - * Supply is part of a pharmacy order and has been dispensed. - */ - DISPENSED("dispensed", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Received
- * Code Value: received - * - * Supply has been received by the requestor. - */ - RECEIVED("received", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Failed
- * Code Value: failed - * - * The supply will not be completed because the supplier was unable or unwilling to supply the item. - */ - FAILED("failed", "http://hl7.org/fhir/valueset-supply-status"), - - /** - * Display: Cancelled
- * Code Value: cancelled - * - * The orderer of the supply cancelled the request. - */ - CANCELLED("cancelled", "http://hl7.org/fhir/valueset-supply-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-supply-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-supply-status"; - - /** - * Name for this Value Set: - * SupplyStatus - */ - public static final String VALUESET_NAME = "SupplyStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SupplyStatusEnum next : SupplyStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SupplyStatusEnum forCode(String theCode) { - SupplyStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SupplyStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SupplyStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SupplyStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SupplyStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SupplyStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SurfaceCodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SurfaceCodesEnum.java deleted file mode 100644 index 260f3e4c94b..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SurfaceCodesEnum.java +++ /dev/null @@ -1,312 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SurfaceCodesEnum { - - /** - * Code Value: 0 - */ - _0("0", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 1 - */ - _1("1", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 2 - */ - _2("2", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 3 - */ - _3("3", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 4 - */ - _4("4", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 5 - */ - _5("5", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 10 - */ - _10("10", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 20 - */ - _20("20", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 30 - */ - _30("30", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 40 - */ - _40("40", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 11 - */ - _11("11", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 12 - */ - _12("12", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 13 - */ - _13("13", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 14 - */ - _14("14", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 15 - */ - _15("15", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 16 - */ - _16("16", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 17 - */ - _17("17", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 18 - */ - _18("18", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 21 - */ - _21("21", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 22 - */ - _22("22", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 23 - */ - _23("23", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 24 - */ - _24("24", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 25 - */ - _25("25", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 26 - */ - _26("26", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 27 - */ - _27("27", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 28 - */ - _28("28", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 31 - */ - _31("31", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 32 - */ - _32("32", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 33 - */ - _33("33", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 34 - */ - _34("34", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 35 - */ - _35("35", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 36 - */ - _36("36", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 37 - */ - _37("37", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 38 - */ - _38("38", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 41 - */ - _41("41", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 42 - */ - _42("42", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 43 - */ - _43("43", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 44 - */ - _44("44", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 45 - */ - _45("45", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 46 - */ - _46("46", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 47 - */ - _47("47", "http://hl7.org/fhir/ex-surface"), - - /** - * Code Value: 48 - */ - _48("48", "http://hl7.org/fhir/ex-surface"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/tooth - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/tooth"; - - /** - * Name for this Value Set: - * Surface Codes - */ - public static final String VALUESET_NAME = "Surface Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SurfaceCodesEnum next : SurfaceCodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SurfaceCodesEnum forCode(String theCode) { - SurfaceCodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SurfaceCodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SurfaceCodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SurfaceCodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SurfaceCodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SurfaceCodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SystemRestfulInteractionEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SystemRestfulInteractionEnum.java deleted file mode 100644 index 19f8b188d81..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/SystemRestfulInteractionEnum.java +++ /dev/null @@ -1,117 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum SystemRestfulInteractionEnum { - - /** - * Code Value: transaction - */ - TRANSACTION("transaction", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: search-system - */ - SEARCH_SYSTEM("search-system", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: history-system - */ - HISTORY_SYSTEM("history-system", "http://hl7.org/fhir/restful-interaction"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/system-restful-interaction - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/system-restful-interaction"; - - /** - * Name for this Value Set: - * SystemRestfulInteraction - */ - public static final String VALUESET_NAME = "SystemRestfulInteraction"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (SystemRestfulInteractionEnum next : SystemRestfulInteractionEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public SystemRestfulInteractionEnum forCode(String theCode) { - SystemRestfulInteractionEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(SystemRestfulInteractionEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(SystemRestfulInteractionEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public SystemRestfulInteractionEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public SystemRestfulInteractionEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - SystemRestfulInteractionEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/TextureModifierEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/TextureModifierEnum.java deleted file mode 100644 index 3d7954cc47f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/TextureModifierEnum.java +++ /dev/null @@ -1,102 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum TextureModifierEnum { - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/texture-code - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/texture-code"; - - /** - * Name for this Value Set: - * TextureModifier - */ - public static final String VALUESET_NAME = "TextureModifier"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (TextureModifierEnum next : TextureModifierEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public TextureModifierEnum forCode(String theCode) { - TextureModifierEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(TextureModifierEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(TextureModifierEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public TextureModifierEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public TextureModifierEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - TextureModifierEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/TypeRestfulInteractionEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/TypeRestfulInteractionEnum.java deleted file mode 100644 index 8522b16870d..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/TypeRestfulInteractionEnum.java +++ /dev/null @@ -1,147 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum TypeRestfulInteractionEnum { - - /** - * Code Value: read - */ - READ("read", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: vread - */ - VREAD("vread", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: update - */ - UPDATE("update", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: delete - */ - DELETE("delete", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: history-instance - */ - HISTORY_INSTANCE("history-instance", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: validate - */ - VALIDATE("validate", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: history-type - */ - HISTORY_TYPE("history-type", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: create - */ - CREATE("create", "http://hl7.org/fhir/restful-interaction"), - - /** - * Code Value: search-type - */ - SEARCH_TYPE("search-type", "http://hl7.org/fhir/restful-interaction"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/type-restful-interaction - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/type-restful-interaction"; - - /** - * Name for this Value Set: - * TypeRestfulInteraction - */ - public static final String VALUESET_NAME = "TypeRestfulInteraction"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (TypeRestfulInteractionEnum next : TypeRestfulInteractionEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public TypeRestfulInteractionEnum forCode(String theCode) { - TypeRestfulInteractionEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(TypeRestfulInteractionEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(TypeRestfulInteractionEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public TypeRestfulInteractionEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public TypeRestfulInteractionEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - TypeRestfulInteractionEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UDICodesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UDICodesEnum.java deleted file mode 100644 index 458b4036ef5..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UDICodesEnum.java +++ /dev/null @@ -1,107 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum UDICodesEnum { - - /** - * Code Value: {01}123456789 - */ - _01_123456789("{01}123456789", "http://hl7.org/fhir/ex-udi"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/udi - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/udi"; - - /** - * Name for this Value Set: - * UDI Codes - */ - public static final String VALUESET_NAME = "UDI Codes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (UDICodesEnum next : UDICodesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public UDICodesEnum forCode(String theCode) { - UDICodesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(UDICodesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(UDICodesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public UDICodesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public UDICodesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - UDICodesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UnitsOfTimeEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UnitsOfTimeEnum.java deleted file mode 100644 index ebaa62dbc84..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UnitsOfTimeEnum.java +++ /dev/null @@ -1,137 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum UnitsOfTimeEnum { - - /** - * Code Value: s - */ - S("s", "http://unitsofmeasure.org"), - - /** - * Code Value: min - */ - MIN("min", "http://unitsofmeasure.org"), - - /** - * Code Value: h - */ - H("h", "http://unitsofmeasure.org"), - - /** - * Code Value: d - */ - D("d", "http://unitsofmeasure.org"), - - /** - * Code Value: wk - */ - WK("wk", "http://unitsofmeasure.org"), - - /** - * Code Value: mo - */ - MO("mo", "http://unitsofmeasure.org"), - - /** - * Code Value: a - */ - A("a", "http://unitsofmeasure.org"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/units-of-time - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/units-of-time"; - - /** - * Name for this Value Set: - * UnitsOfTime - */ - public static final String VALUESET_NAME = "UnitsOfTime"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (UnitsOfTimeEnum next : UnitsOfTimeEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public UnitsOfTimeEnum forCode(String theCode) { - UnitsOfTimeEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(UnitsOfTimeEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(UnitsOfTimeEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public UnitsOfTimeEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public UnitsOfTimeEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - UnitsOfTimeEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UseEnum.java deleted file mode 100644 index 533eaf5367f..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/UseEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum UseEnum { - - /** - * Code Value: complete - * - * The treatment is complete and this represents a Claim for the services. - */ - COMPLETE("complete", "http://hl7.org/fhir/use-link"), - - /** - * Code Value: proposed - * - * The treatment is proposed and this represents a Pre-authorization for the services. - */ - PROPOSED("proposed", "http://hl7.org/fhir/use-link"), - - /** - * Code Value: exploratory - * - * The treatment is proposed and this represents a Pre-determination for the services. - */ - EXPLORATORY("exploratory", "http://hl7.org/fhir/use-link"), - - /** - * Code Value: other - * - * A locally defined or otherwise resolved status. - */ - OTHER("other", "http://hl7.org/fhir/use-link"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/use-link - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/use-link"; - - /** - * Name for this Value Set: - * Use - */ - public static final String VALUESET_NAME = "Use"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (UseEnum next : UseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public UseEnum forCode(String theCode) { - UseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(UseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(UseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public UseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public UseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - UseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ValueSetStatusEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ValueSetStatusEnum.java deleted file mode 100644 index b457f7b6bdc..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/ValueSetStatusEnum.java +++ /dev/null @@ -1,126 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum ValueSetStatusEnum { - - /** - * Display: Draft
- * Code Value: draft - * - * This valueset is still under development. - */ - DRAFT("draft", "http://hl7.org/fhir/valueset-status"), - - /** - * Display: Active
- * Code Value: active - * - * This valueset is ready for normal use. - */ - ACTIVE("active", "http://hl7.org/fhir/valueset-status"), - - /** - * Display: Retired
- * Code Value: retired - * - * This valueset has been withdrawn or superceded and should no longer be used. - */ - RETIRED("retired", "http://hl7.org/fhir/valueset-status"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/valueset-status - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/valueset-status"; - - /** - * Name for this Value Set: - * ValueSetStatus - */ - public static final String VALUESET_NAME = "ValueSetStatus"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (ValueSetStatusEnum next : ValueSetStatusEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public ValueSetStatusEnum forCode(String theCode) { - ValueSetStatusEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(ValueSetStatusEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(ValueSetStatusEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public ValueSetStatusEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public ValueSetStatusEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - ValueSetStatusEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/VisionBaseEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/VisionBaseEnum.java deleted file mode 100644 index ff65cfa6b65..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/VisionBaseEnum.java +++ /dev/null @@ -1,130 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum VisionBaseEnum { - - /** - * Code Value: up - * - * top. - */ - UP("up", "http://hl7.org/fhir/base-codes"), - - /** - * Code Value: down - * - * bottom. - */ - DOWN("down", "http://hl7.org/fhir/base-codes"), - - /** - * Code Value: in - * - * inner edge. - */ - IN("in", "http://hl7.org/fhir/base-codes"), - - /** - * Code Value: out - * - * outer edge. - */ - OUT("out", "http://hl7.org/fhir/base-codes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/base-codes - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/base-codes"; - - /** - * Name for this Value Set: - * VisionBase - */ - public static final String VALUESET_NAME = "VisionBase"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (VisionBaseEnum next : VisionBaseEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public VisionBaseEnum forCode(String theCode) { - VisionBaseEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(VisionBaseEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(VisionBaseEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public VisionBaseEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public VisionBaseEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - VisionBaseEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/VisionEyesEnum.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/VisionEyesEnum.java deleted file mode 100644 index 83c9efa19fb..00000000000 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/valueset/VisionEyesEnum.java +++ /dev/null @@ -1,116 +0,0 @@ - -package ca.uhn.fhir.model.dstu2.valueset; - -import ca.uhn.fhir.model.api.*; -import java.util.HashMap; -import java.util.Map; - -public enum VisionEyesEnum { - - /** - * Code Value: right - * - * right eye. - */ - RIGHT("right", "http://hl7.org/fhir/eye-codes"), - - /** - * Code Value: left - * - * left eye. - */ - LEFT("left", "http://hl7.org/fhir/eye-codes"), - - ; - - /** - * Identifier for this Value Set: - * http://hl7.org/fhir/vs/eye-codes - */ - public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/eye-codes"; - - /** - * Name for this Value Set: - * VisionEyes - */ - public static final String VALUESET_NAME = "VisionEyes"; - - private static Map CODE_TO_ENUM = new HashMap(); - private static Map> SYSTEM_TO_CODE_TO_ENUM = new HashMap>(); - - private final String myCode; - private final String mySystem; - - static { - for (VisionEyesEnum next : VisionEyesEnum.values()) { - CODE_TO_ENUM.put(next.getCode(), next); - - if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { - SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap()); - } - SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); - } - } - - /** - * Returns the code associated with this enumerated value - */ - public String getCode() { - return myCode; - } - - /** - * Returns the code system associated with this enumerated value - */ - public String getSystem() { - return mySystem; - } - - /** - * Returns the enumerated value associated with this code - */ - public VisionEyesEnum forCode(String theCode) { - VisionEyesEnum retVal = CODE_TO_ENUM.get(theCode); - return retVal; - } - - /** - * Converts codes to their respective enumerated values - */ - public static final IValueSetEnumBinder VALUESET_BINDER = new IValueSetEnumBinder() { - @Override - public String toCodeString(VisionEyesEnum theEnum) { - return theEnum.getCode(); - } - - @Override - public String toSystemString(VisionEyesEnum theEnum) { - return theEnum.getSystem(); - } - - @Override - public VisionEyesEnum fromCodeString(String theCodeString) { - return CODE_TO_ENUM.get(theCodeString); - } - - @Override - public VisionEyesEnum fromCodeString(String theCodeString, String theSystemString) { - Map map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); - if (map == null) { - return null; - } - return map.get(theCodeString); - } - - }; - - /** - * Constructor - */ - VisionEyesEnum(String theCode, String theSystem) { - myCode = theCode; - mySystem = theSystem; - } - - -} diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/TinderStructuresMojo.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/TinderStructuresMojo.java index 0b53d7e3eb0..8bea8eee1a5 100644 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/TinderStructuresMojo.java +++ b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/TinderStructuresMojo.java @@ -214,11 +214,11 @@ public class TinderStructuresMojo extends AbstractMojo { // ProfileParser pp = new ProfileParser(); // pp.parseSingleProfile(new File("../hapi-tinder-test/src/test/resources/profile/patient.xml"), "http://foo"); - ValueSetGenerator vsp = new ValueSetGenerator("dev"); + ValueSetGenerator vsp = new ValueSetGenerator("dstu2"); // vsp.setResourceValueSetFiles(theResourceValueSetFiles);Directory("src/main/resources/vs/"); vsp.parse(); - DatatypeGeneratorUsingSpreadsheet dtp = new DatatypeGeneratorUsingSpreadsheet("dev", "."); + DatatypeGeneratorUsingSpreadsheet dtp = new DatatypeGeneratorUsingSpreadsheet("dstu2", "."); dtp.parse(); dtp.markResourcesForImports(); dtp.bindValueSets(vsp); @@ -226,16 +226,23 @@ public class TinderStructuresMojo extends AbstractMojo { String dtOutputDir = "target/generated-sources/tinder/ca/uhn/fhir/model/dev/composite"; - ResourceGeneratorUsingSpreadsheet rp = new ResourceGeneratorUsingSpreadsheet("dstu", "."); - rp.setBaseResourceNames(Arrays.asList("securityevent" // , "contract", "valueset", "organization", "location" -// , "observation", "conformance", "referralrequest", "patient","practitioner","encounter", -// "organization","location","relatedperson","appointment","slot","order","availability","device", "valueset" + ResourceGeneratorUsingSpreadsheet rp = new ResourceGeneratorUsingSpreadsheet("dstu2", "."); + rp.setBaseResourceNames(Arrays.asList( "auditevent" + +// //, "contract" +// "valueset", "organization", "location" +// , "observation", "conformance" +// //, "referralrequest" +// , "patient","practitioner","encounter", +// "organization","location","relatedperson","appointment","slot","order" +// //,"availability" +// ,"device", "valueset" )); rp.parse(); rp.bindValueSets(vsp); rp.markResourcesForImports(); - // rp.bindValueSets(vsp); + rp.bindValueSets(vsp); String rpOutputDir = "target/generated-sources/tinder/ca/uhn/fhir/model/dev/resource"; String rpSOutputDir = "target/generated-resources/tinder/ca/uhn/fhir/model/dev"; diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/ValueSetGenerator.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/ValueSetGenerator.java index deede1415ef..1b25db4b539 100644 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/ValueSetGenerator.java +++ b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/ValueSetGenerator.java @@ -25,11 +25,12 @@ import org.apache.velocity.tools.generic.EscapeTool; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model.api.BundleEntry; -import ca.uhn.fhir.model.dev.resource.ValueSet.ComposeIncludeConcept; import ca.uhn.fhir.model.dstu.resource.ValueSet; import ca.uhn.fhir.model.dstu.resource.ValueSet.ComposeInclude; import ca.uhn.fhir.model.dstu.resource.ValueSet.Define; import ca.uhn.fhir.model.dstu.resource.ValueSet.DefineConcept; +import ca.uhn.fhir.model.dstu2.resource.Bundle.Entry; +import ca.uhn.fhir.model.dstu2.resource.ValueSet.ComposeIncludeConcept; import ca.uhn.fhir.model.primitive.CodeDt; import ca.uhn.fhir.parser.IParser; import ca.uhn.fhir.tinder.TinderStructuresMojo.ValueSetFileDefinition; @@ -66,7 +67,7 @@ public class ValueSetGenerator { } public void parse() throws FileNotFoundException, IOException { - FhirContext ctx = "dstu".equals(myVersion) ? FhirContext.forDstu1() : FhirContext.forDev(); + FhirContext ctx = "dstu".equals(myVersion) ? FhirContext.forDstu1() : FhirContext.forDstu2(); IParser newXmlParser = ctx.newXmlParser(); ourLog.info("Parsing built-in ValueSets"); @@ -74,15 +75,18 @@ public class ValueSetGenerator { if (version.equals("dev")) { version = "dstu2"; } - + String vs = IOUtils.toString(ValueSetGenerator.class.getResourceAsStream("/vs/" + version + "/all-valuesets-bundle.xml")); - Bundle bundle = newXmlParser.parseBundle(vs); - for (BundleEntry next : bundle.getEntries()) { - if ("dstu".equals(myVersion)) { + if ("dstu".equals(myVersion)) { + Bundle bundle = newXmlParser.parseBundle(vs); + for (BundleEntry next : bundle.getEntries()) { ValueSet nextVs = (ValueSet) next.getResource(); parseValueSet(nextVs); - } else { - ca.uhn.fhir.model.dev.resource.ValueSet nextVs = (ca.uhn.fhir.model.dev.resource.ValueSet) next.getResource(); + } + } else { + ca.uhn.fhir.model.dstu2.resource.Bundle bundle = newXmlParser.parseResource(ca.uhn.fhir.model.dstu2.resource.Bundle.class, vs); + for (Entry nextEntry : bundle.getEntry()) { + ca.uhn.fhir.model.dstu2.resource.ValueSet nextVs = (ca.uhn.fhir.model.dstu2.resource.ValueSet) nextEntry.getResource(); parseValueSet(nextVs); } } @@ -158,7 +162,7 @@ public class ValueSetGenerator { return vs; } - private ValueSetTm parseValueSet(ca.uhn.fhir.model.dev.resource.ValueSet nextVs) { + private ValueSetTm parseValueSet(ca.uhn.fhir.model.dstu2.resource.ValueSet nextVs) { myConceptCount += nextVs.getDefine().getConcept().size(); ourLog.info("Parsing ValueSetTm #{} - {} - {} concepts total", myValueSetCount++, nextVs.getName(), myConceptCount); // output.addConcept(next.getCode().getValue(), @@ -168,13 +172,13 @@ public class ValueSetGenerator { vs.setName(nextVs.getName()); vs.setDescription(nextVs.getDescription()); - vs.setId(nextVs.getIdentifierElement().getValueAsString()); + vs.setId(StringUtils.defaultString(nextVs.getIdentifier().getValue())); vs.setClassName(toClassName(nextVs.getName())); { - ca.uhn.fhir.model.dev.resource.ValueSet.Define define = nextVs.getDefine(); + ca.uhn.fhir.model.dstu2.resource.ValueSet.Define define = nextVs.getDefine(); String system = define.getSystemElement().getValueAsString(); - for (ca.uhn.fhir.model.dev.resource.ValueSet.DefineConcept nextConcept : define.getConcept()) { + for (ca.uhn.fhir.model.dstu2.resource.ValueSet.DefineConcept nextConcept : define.getConcept()) { String nextCodeValue = nextConcept.getCode(); String nextCodeDisplay = StringUtils.defaultString(nextConcept.getDisplay()); String nextCodeDefinition = StringUtils.defaultString(nextConcept.getDefinition()); @@ -182,7 +186,7 @@ public class ValueSetGenerator { } } - for (ca.uhn.fhir.model.dev.resource.ValueSet.ComposeInclude nextInclude : nextVs.getCompose().getInclude()) { + for (ca.uhn.fhir.model.dstu2.resource.ValueSet.ComposeInclude nextInclude : nextVs.getCompose().getInclude()) { String system = nextInclude.getSystemElement().getValueAsString(); for (ComposeIncludeConcept nextConcept : nextInclude.getConcept()) { String nextCodeValue = nextConcept.getCode(); diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/model/ValueSetTm.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/model/ValueSetTm.java index 39cbc4b7c18..5e9060d11b6 100644 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/model/ValueSetTm.java +++ b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/tinder/model/ValueSetTm.java @@ -6,6 +6,7 @@ import java.util.HashSet; import java.util.List; import java.util.Set; +import org.apache.commons.lang3.ObjectUtils; import org.codehaus.plexus.util.StringUtils; public class ValueSetTm { @@ -37,12 +38,12 @@ public class ValueSetTm { if (getClass() != obj.getClass()) return false; ValueSetTm other = (ValueSetTm) obj; - if (myId == null) { - if (other.myId != null) - return false; - } else if (!myId.equals(other.myId)) - return false; - return true; + + String id1 = myId != null && myId.isEmpty() == false ? myId : myName; + String id2 = other.myId != null && other.myId.isEmpty() == false ? other.myId : other.myName; + id1 = StringUtils.defaultString(id1); + id2 = StringUtils.defaultString(id2); + return id1.equals(id2); } public String getClassName() { @@ -93,7 +94,7 @@ public class ValueSetTm { myName = theName; } - public class Code { + public class Code { private String myCode; private String myDefinition; @@ -133,7 +134,7 @@ public class ValueSetTm { while (!Character.isLetterOrDigit(newValue.charAt(newValue.length() - 1))) { newValue = newValue.substring(0, newValue.length() - 1); } - ourLog.info("[{}] Replacing numeric code {} with description: {}", new Object[] {myName, retVal, newValue}); + ourLog.info("[{}] Replacing numeric code {} with description: {}", new Object[] { myName, retVal, newValue }); retVal = newValue; } } diff --git a/hapi-tinder-plugin/src/main/resources/vs/dstu2/all-valuesets-bundle.xml b/hapi-tinder-plugin/src/main/resources/vs/dstu2/all-valuesets-bundle.xml index 69924c9ec61..fae3d2fd2f8 100644 --- a/hapi-tinder-plugin/src/main/resources/vs/dstu2/all-valuesets-bundle.xml +++ b/hapi-tinder-plugin/src/main/resources/vs/dstu2/all-valuesets-bundle.xml @@ -3,7 +3,7 @@ - + @@ -12,7 +12,7 @@ - + @@ -45,16 +45,18 @@ - - - - - + + + + + + @@ -97,7 +99,7 @@ - + @@ -107,7 +109,11 @@

The meanings of codes defined in DICOM, either explicitly or by reference to another part of DICOM or an external reference document or standard

-

These codes are excerpted from Digital Imaging and Communications in Medicine (DICOM) Standard, Part 16: Content Mapping Resource, Copyright 2011 by the National Electrical Manufacturers Association"

+

These codes are excerpted from Digital Imaging and Communications in Medicine (DICOM) Standard, + + Part 16: Content Mapping Resource, + Copyright 1995-2015 by the National Electrical Manufacturers Association" +

@@ -20206,7 +20212,7 @@ - + @@ -28584,7 +28590,7 @@ - + @@ -28711,6 +28717,11 @@ + + + + + @@ -28783,17 +28794,17 @@ - + - + - + @@ -28803,17 +28814,17 @@ - + - + - + @@ -28843,17 +28854,17 @@ - + - + - + @@ -28893,7 +28904,7 @@ - + @@ -28910,14 +28921,16 @@ - + - - - - + + + + + + @@ -29012,6 +29025,10 @@ + + + + @@ -29070,15 +29087,15 @@ - + - + - + @@ -29086,15 +29103,15 @@ - + - + - + @@ -29118,15 +29135,15 @@ - + - + - + @@ -29158,7 +29175,7 @@ - + @@ -29178,7 +29195,7 @@ - + @@ -29333,7 +29350,7 @@
Hawaii Driver's License
urn:oid:2.16.840.1.113883.4.3.18 Indiana Driver's License
urn:oid:2.16.840.1.113883.4.3.19 Iowa Driver's License
urn:oid:2.16.840.1.113883.4.3.36 NewYork Driver's LicenseNew York Driver's License
urn:oid:2.16.840.1.113883.4.3.37 NorthCarolina Driver's LicenseNorth Carolina Driver's License
urn:oid:2.16.840.1.113883.4.3.38 NorthDakota Driver's LicenseNorth Dakota Driver's License
urn:oid:2.16.840.1.113883.4.3.33 NewHampshire Driver's LicenseNew Hampshire Driver's License
urn:oid:2.16.840.1.113883.4.3.34 NewJersey Driver's LicenseNew Jersey Driver's License
urn:oid:2.16.840.1.113883.4.3.35 NewMexico Driver's LicenseNew Mexico Driver's License
urn:oid:2.16.840.1.113883.4.3.44 RhodeIsland Driver's LicenseRhode Island Driver's License
urn:oid:2.16.840.1.113883.4.3.45 SouthCarolina Driver's LicenseSouth Carolina Driver's License
urn:oid:2.16.840.1.113883.4.3.46 SouthDakota Driver's LicenseSouth Dakota Driver's License
urn:oid:2.16.840.1.113883.4.3.54 WestVirginia Driver's LicenseWest Virginia Driver's License
- + @@ -29432,7 +29449,7 @@ - + @@ -36285,7 +36302,7 @@ - + @@ -41763,17 +41780,55 @@ - + - +
-

This value set contains 5 concepts

-

SecurityEventAction

-

Indicator for type of action performed during the event that generated the audit.

-

This value set defines its own terms in the system http://hl7.org/fhir/security-event-action

+

This value set does not contain a fixed number of concepts

+

All CPT codes

+

A value set that includes all CPT codes

+

+ Copyright Statement: CPT copyright 2014 American Medical Association. All rights reserved. +

+

This value set includes codes defined in other code systems, using the following rules:

+
    +
  • Include all codes defined in http://www.ama-assn.org/go/cpt
  • +
+
+
+ + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 7 concepts

+

DiagnosticReportStatus

+

The status of the diagnostic report as a whole

+

This value set defines its own terms in the system http://hl7.org/fhir/diagnostic-report-status

- - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -41786,324 +41841,131 @@ Definition
C - - CreateCreate a new database object, such as Placing an Order.
R - - Read/View/PrintDisplay or print data, such as a Doctor Census.
U - - UpdateUpdate data, such as Revise Patient Information.
D - - DeleteDelete items, such as a doctor master file record.
E - - ExecutePerform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - -
-

This value set contains 8 concepts

-

DiagnosticReportStatus

-

The status of the diagnostic report as a whole

-

This value set defines its own terms in the system http://hl7.org/fhir/diagnostic-report-status

- - - - - + + + + - - - - + + +
- Code - - Definition -
registered Registered The existence of the report is registered, but there is nothing yet available.
partial Partial This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified.
final Final The report is complete and verified by an authorized person.
corrected Corrected The report has been modified subsequent to being Final, and is complete and verified by an authorized person.
amended - - The report has been modified subsequent to being Final, and is complete and verified by an authorized person, and data has been changed.
appended Appended The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed.
cancelled Cancelled The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted").
entered-in-error Entered In Error The report has been withdrawn following previous Final release.
- + - + - - - - - - - - + + + + + + + + + + - + - + + + + + - - - - + + +
- - - - - - - - - -
-

This value set contains 3 concepts

-

NamingSystemStatus

-

Indicates whether the namingsystem should be used

-

This value set defines its own terms in the system http://hl7.org/fhir/namingsystem-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
proposed - - System has been submitted but not yet approved.
active - - System is valid for use.
retired - - System should no longer be used.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- + + @@ -42120,6 +41982,9 @@ Code + + Display + Definition @@ -42133,6 +41998,7 @@ in-progress + In Progress The dispense has started but has not yet completed. = @@ -42143,6 +42009,7 @@ on-hold + On Hold Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". = @@ -42153,6 +42020,7 @@ completed + Completed All actions that are implied by the dispense have occurred. = @@ -42163,6 +42031,7 @@ entered-in-error + Entered In Error The dispense was entered in error and therefore nullified. = @@ -42173,6 +42042,7 @@ stopped + Stopped Actions implied by the dispense have been permanently halted, before all of them occurred. = @@ -42182,51 +42052,58 @@ - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + @@ -42238,7 +42115,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -42283,27 +42161,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -42332,7 +42212,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -42346,6 +42227,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -42354,65 +42238,174 @@ Describes the lifecycle of the dispense."/> caused-by + Caused By This procedure had to be performed because of the related one. because-of + Because Of This procedure caused the related one to be performed. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + +
+

This value set contains 3 concepts

+

ConditionState

+

Enumeration indicating whether the condition is currently active, inactive, or has resolved +
+
active| inactive| resolved +

+

This value set defines its own terms in the system http://hl7.org/fhir/condition-state

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
active + + ActiveThe condition is active.
inactive + + InactiveThe condition inactive but not resolved.
resolved + + ResolvedThe condition is resolved.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- + +
-

This value set contains 6 concepts

+

This value set contains 4 concepts

ParticipationStatus

The Participation status of an appointment

This value set defines its own terms in the system http://hl7.org/fhir/participationstatus

@@ -42421,6 +42414,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -42429,88 +42425,78 @@ Describes the lifecycle of the dispense."/> accepted + Accepted The participant has accepted the appointment. declined + Declined The participant has declined the appointment and will not participate in the appointment. tentative + Tentative The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur. - - in-process - - - The participant has started the appointment. - - - completed - - - The participant's involvement in the appointment has been completed. - needs-action + Needs Action The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.
- + - + - - - - - - - - + + + + + + + + + + - + - + + + + - - - - - - - - + @@ -42522,7 +42508,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -42536,6 +42523,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -42544,68 +42534,78 @@ Describes the lifecycle of the dispense."/> usual + Usual the identifier recommended for display and use in real-world interactions. official + Official the identifier considered to be most trusted for the identification of this item. temp + Temp A temporary identifier. secondary + Secondary An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -42617,7 +42617,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -42631,6 +42632,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -42639,58 +42643,66 @@ Describes the lifecycle of the dispense."/> codesystem + Codesystem The namingsystem is used to define concepts and symbols to represent those concepts. E.g. UCUM, LOINC, NDC code, local lab codes, etc. identifier + Identifier The namingsystem is used to manage identifiers (e.g. license numbers, order numbers, etc.). root + Root The namingsystem is used as the root for other identifiers and namingsystems. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + @@ -42702,7 +42714,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -42716,6 +42729,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -42724,68 +42740,78 @@ Describes the lifecycle of the dispense."/> resource + Resource The context is all elements matching a particular resource element path. datatype + Datatype The context is all nodes matching a particular data type element path (root or repeating element) or all elements referencing a particular primitive data type (expressed as the datatype name). mapping + Mapping The context is all nodes whose mapping to a specified reference model corresponds to a particular mapping structure. The context identifies the mapping target. The mapping should clearly identify where such an extension could be used. extension + Extension The context is a particular extension from a particular profile. Expressed as uri#name, where uri identifies the profile and #name identifies the extension code. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -42797,7 +42823,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -42811,6 +42838,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -42819,68 +42849,78 @@ Describes the lifecycle of the dispense."/> oid + Oid An ISO object identifier. E.g. 1.2.3.4.5. uuid + Uuid A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11. uri + Uri A uniform resource identifier (ideally a URL - uniform resource locator). E.g. http://unitsofmeasure.org. other + Other Some other type of unique identifier. E.g HL7-assigned reserved string such as LN for LOINC. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -42892,7 +42932,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -42906,12 +42947,15 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition - v3 Map (NullFlavor) + v3 Map (NullFlavor) @@ -42919,66 +42963,73 @@ Describes the lifecycle of the dispense."/> unknown + Unknown The value is not known = - UNK + UNK asked + Asked The source human does not know the value = - ASKU + ASKU temp + Temp There is reason to expect (from the workflow) that the value may become known = - NAV + NAV notasked + Notasked The workflow didn't lead to this value being known = - NASK + NASK masked + Masked The information is not available due to security, privacy or related reasons = - MSK + MSK unsupported + Unsupported The source system wasn't capable of supporting this element > - NA + NA astext + Astext The content of the data is represented in the resource narrative @@ -42986,70 +43037,81 @@ Describes the lifecycle of the dispense."/> error + Error Some system or workflow process error means that the information is not available > - NA + NA - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + @@ -43061,7 +43123,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -43106,27 +43169,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -43155,7 +43220,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -43169,6 +43235,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -43177,88 +43246,102 @@ Describes the lifecycle of the dispense."/> person + Person Group contains "person" Patient resources. animal + Animal Group contains "animal" Patient resources. practitioner + Practitioner Group contains healthcare practitioner resources. device + Device Group contains Device resources. medication + Medication Group contains Medication resources. substance + Substance Group contains Substance resources. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + @@ -43270,7 +43353,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -43284,6 +43368,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -43292,68 +43379,78 @@ Describes the lifecycle of the dispense."/> not-calibrated + Not Calibrated The metric has not been calibrated. calibration-required + Calibration Required The metric needs to be calibrated. calibrated + Calibrated The metric has been calibrated. unspecified + Unspecified The state of calibration of this metric is unspecified. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -43365,7 +43462,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -43379,6 +43477,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -43387,77 +43488,195 @@ Describes the lifecycle of the dispense."/> working + Working This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes. snapshot + Snapshot This list was prepared as a snapshot. It should not be assumed to be current. changes + Changes The list is prepared as a statement of changes that have been made or recommended. - + - + - - - - - - - - + + + + + + + + + + - + - + + + +
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

ActionList

+

List of allowable action which this resource can request

+

This value set defines its own terms in the system http://hl7.org/fhir/actionlist

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
poll + + PollCheck for previously un-read/ not-retrieved resources.
reprocess + + Re-ProcessRe-process the target resource.
reverse + + Reverse or NullifyReverse or nullify the target resource.
status + + Status CheckRetrieve the processing status of the target resource.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- + +
-

This value set contains 5 concepts

+

This value set contains 8 concepts

NutritionOrderStatus

-

TODO

+

Codes specifying the state of the request. Describes the lifecycle of the nutrition order.

This value set defines its own terms in the system http://hl7.org/fhir/nutrition-order-status

@@ -43471,93 +43690,131 @@ Describes the lifecycle of the dispense."/> Definition + + + + + + + + + + + + + + + - + - + - - - + + - - - + + - +
proposed + + ProposedThe request has been proposed.
draft + + DraftThe request is in preliminary form prior to being sent.
planned + + PlannedThe request has been planned.
requested RequestedTODO.The request has been placed.
active ActiveTODO.The request is 'actionable', but not all actions that are implied by it have occurred yet.
inactive - + on-hold + InactiveTODO.On-HoldActions implied by the request have been temporarily halted, but are expected to continue later. May also be called "suspended".
held - + completed + HeldTODO.CompletedAll actions that are implied by the prescription have occurred (this will rarely be made explicit).
cancelled CancelledTODO.The request has been withdrawn and is no longer actionable.
- + - + - - - - - - - - - + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + - + - + - - - + + + - - - + + + - +
@@ -43568,7 +43825,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -43582,17 +43840,20 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition - v2 Map (0001) + v3 Map (AdministrativeGender) - v3 Map (AdministrativeGender) + v2 Map (0001) @@ -43601,13 +43862,14 @@ Describes the lifecycle of the dispense."/> Male + Male = - M + M = - M + M @@ -43615,13 +43877,14 @@ Describes the lifecycle of the dispense."/> Female + Female = - F + F = - F + F @@ -43629,6 +43892,11 @@ Describes the lifecycle of the dispense."/> Other + Other + + > + UN + > A @@ -43636,67 +43904,70 @@ Describes the lifecycle of the dispense."/> > O - - > - UN - unknown Unknown + Unknown = - U + UNK = - UNK + U - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -43708,7 +43979,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -43753,27 +44025,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -43802,8 +44076,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -43817,6 +44091,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -43825,128 +44102,150 @@ Describes the lifecycle of the dispense."/> proposed + Proposed The request has been proposed. planned + Planned The request has been planned. requested + Requested The request has been placed. received + Received The receiving system has received the request but not yet decided whether it will be performed. accepted + Accepted The receiving system has accepted the order, but work has not yet commenced. in-progress + In Progress The work to fulfill the order is happening. completed + Completed The work has been complete, the report(s) released, and no further work is planned. suspended + Suspended The request has been held by originating system/user request. rejected + Rejected The receiving system has declined to fulfill the request. failed + Failed The communication was attempted, but due to some procedural error, it could not be completed. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + @@ -43958,7 +44257,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -44024,27 +44324,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -44083,169 +44385,13 @@ Describes the lifecycle of the dispense."/>
- - - - - - - - - -
-

This value set contains 9 concepts

-

OrderOutcomeStatus

-

The status of the response to an order

-

This value set defines its own terms in the system http://hl7.org/fhir/order-outcome-code

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Lvl - - Code - - Definition -
1pending - - The order is known, but no processing has occurred at this time.
1review - - The order is undergoing initial processing to determine whether it will be accepted (usually this involves human review).
1rejected - - The order was rejected because of a workflow/business logic reason.
1error - - The order was unable to be processed because of a technical error (i.e. unexpected error).
1accepted - - The order has been accepted, and work is in progress.
1cancelled - - Processing the order was halted at the initiators request.
2  replaced - - The order has been cancelled and replaced by another.
1aborted - - Processing the order was stopped because of some workflow/business logic reason.
1complete - - The order has been completed.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- + + @@ -44297,27 +44443,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -44351,7 +44499,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -44365,6 +44514,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -44378,6 +44530,7 @@ Describes the lifecycle of the dispense."/> phone + Phone The value is a telephone number used for voice calls. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required. ~ @@ -44388,6 +44541,7 @@ Describes the lifecycle of the dispense."/> fax + Fax The value is a fax machine. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required. ~ @@ -44398,6 +44552,7 @@ Describes the lifecycle of the dispense."/> email + Email The value is an email address. < @@ -44409,6 +44564,7 @@ Describes the lifecycle of the dispense."/> url + Url The value is a url. This is intended for various personal contacts including blogs, Twitter, Facebook, etc. Do not use for email addresses. < @@ -44419,45 +44575,51 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -44469,7 +44631,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -44483,6 +44646,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -44496,6 +44662,7 @@ Describes the lifecycle of the dispense."/> in-progress + In Progress The administration has started but has not yet completed. = @@ -44506,6 +44673,7 @@ Describes the lifecycle of the dispense."/> on-hold + On Hold Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". = @@ -44516,6 +44684,7 @@ Describes the lifecycle of the dispense."/> completed + Completed All actions that are implied by the administration have occurred. = @@ -44526,6 +44695,7 @@ Describes the lifecycle of the dispense."/> entered-in-error + Entered In Error The administration was entered in error and therefore nullified. = @@ -44536,6 +44706,7 @@ Describes the lifecycle of the dispense."/> stopped + Stopped Actions implied by the administration have been permanently halted, before all of them occurred. = @@ -44545,49 +44716,56 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + @@ -44599,12 +44777,13 @@ Describes the lifecycle of the dispense."/> - + +
-

This value set contains 5 concepts

+

This value set contains 4 concepts

StructureDefinitionType

Defines the type of structure that a definition is describing

This value set defines its own terms in the system http://hl7.org/fhir/structure-definition-type

@@ -44620,13 +44799,6 @@ Describes the lifecycle of the dispense."/> Definition - - abstract - - - Abstract type - An abstract Type. Structure Definitions for abstract types are provided for structural completeness, and to support functions such as code generation. - type @@ -44658,36 +44830,33 @@ Describes the lifecycle of the dispense."/>
- + - + - - - - - - - - + + + + + + + + + + - + - + - - - - - @@ -44712,97 +44881,13 @@ Describes the lifecycle of the dispense."/>
- - - - - - - - - -
-

This value set contains 3 concepts

-

StructureDefinitionStatus

-

The lifecycle status of a StructureDefinition

-

This value set defines its own terms in the system http://hl7.org/fhir/structure-definition-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
draft - - This profile is still under development.
active - - This profile is ready for normal use.
retired - - This profile has been deprecated, withdrawn or superseded and should no longer be used.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- + + @@ -44840,26 +44925,28 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + @@ -44881,7 +44968,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -44890,131 +44978,6 @@ Describes the lifecycle of the dispense."/>

ObservationReliability

Codes that provide an estimate of the degree to which quality issues have impacted on the value of an observation

This value set defines its own terms in the system http://hl7.org/fhir/observation-reliability

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
ok - - The result has no reliability concerns.
ongoing - - An early estimate of value; measurement is still occurring.
early - - An early estimate of value; processing is still occurring.
questionable - - The observation value should be treated with care.
calibrating - - The result has been generated while calibration is occurring.
error - - The observation could not be completed because of an error.
unknown - - No observation reliability value was available.
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - -
-

This value set contains 2 concepts

-

HierarchicalRelationshipType

-

Type indicating if this is a parent or child relationship

-

This value set defines its own terms in the system http://hl7.org/fhir/hierarchical-relationship-type

- - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -45028,56 +44991,118 @@ Describes the lifecycle of the dispense."/>
parent - + ok + ParentThe target resource is the parent of the focal specimen resource.OkThe result has no reliability concerns.
child - + ongoing + ChildThe target resource is the child of the focal specimen resource.OngoingAn early estimate of value; measurement is still occurring.
early + + EarlyAn early estimate of value; processing is still occurring.
questionable + + QuestionableThe observation value should be treated with care.
calibrating + + CalibratingThe result has been generated while calibration is occurring.
error + + ErrorThe observation could not be completed because of an error.
unknown + + UnknownNo observation reliability value was available.
- - + + - + - + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -45088,7 +45113,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -45102,6 +45128,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -45112,7 +45141,7 @@ Describes the lifecycle of the dispense."/> - v3 Map (EntityNameUseR2) + v3 Map (EntityNameUseR2) @@ -45120,6 +45149,7 @@ Describes the lifecycle of the dispense."/> usual + Usual Known as/conventional/the one you normally use. ~ @@ -45127,13 +45157,14 @@ Describes the lifecycle of the dispense."/> = - C + C official + Official The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called "legal name". ~ @@ -45141,13 +45172,14 @@ Describes the lifecycle of the dispense."/> = - OR + OR temp + Temp A temporary name. Name.period can provide more detailed information. This may also be used for temporary names assigned at birth or in emergency situations. ~ @@ -45155,13 +45187,14 @@ Describes the lifecycle of the dispense."/> = - T + T nickname + Nickname A name that is used to address the person in an informal manner, but is not part of their formal or usual name. ~ @@ -45169,13 +45202,14 @@ Describes the lifecycle of the dispense."/> ~ - P + P anonymous + Anonymous Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons). ~ @@ -45183,13 +45217,14 @@ Describes the lifecycle of the dispense."/> ~ - ANON + ANON old + Old This name is no longer in use (or was never correct, but retained for records). > @@ -45200,13 +45235,14 @@ Describes the lifecycle of the dispense."/> ~ - OLD + OLD maiden + Maiden A name used prior to marriage. Marriage naming customs vary greatly around the world. This name use is for use by applications that collect and store "maiden" names. Though the concept of maiden name is often gender specific, the use of this term is not gender specific. The use of this term does not imply any particular history for a person's name, nor should the maiden name be determined algorithmically. ~ @@ -45214,63 +45250,72 @@ Describes the lifecycle of the dispense."/> = - M + M - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + @@ -45282,7 +45327,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -45296,6 +45342,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -45304,98 +45353,114 @@ Describes the lifecycle of the dispense."/> diet + Diet Plan for the patient to consume food of a specified nature. drug + Drug Plan for the patient to consume/receive a drug, vaccine or other product. encounter + Encounter Plan to meet or communicate with the patient (in-patient, out-patient, phone call, etc.). observation + Observation Plan to capture information about a patient (vitals, labs, diagnostic images, etc.). procedure + Procedure Plan to modify the patient in some way (surgery, physiotherapy, education, counseling, etc.). supply + Supply Plan to provide something to the patient (medication, medical supply, etc.). other + Other Some other form of action. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + @@ -45407,7 +45472,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -45452,27 +45518,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -45501,12 +45569,13 @@ Describes the lifecycle of the dispense."/> - + +
-

This value set contains 9 concepts

+

This value set contains 13 concepts

DiagnosticOrderStatus

The status of a diagnostic order

This value set defines its own terms in the system http://hl7.org/fhir/diagnostic-order-status

@@ -45515,126 +45584,197 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition + + proposed + + + Proposed + The request has been proposed. + + + draft + + + Draft + the request is in preliminary form prior to being sent. + + + planned + + + Planned + The request has been planned. + requested + Requested The request has been placed. received + Received The receiving system has received the order, but not yet decided whether it will be performed. accepted + Accepted The receiving system has accepted the order, but work has not yet commenced. in-progress + In-Progress The work to fulfill the order is happening. review + Review The work is complete, and the outcomes are being reviewed for approval. completed + Completed The work has been complete, the report(s) released, and no further work is planned. + + cancelled + + + Cancelled + the request has been withdrawn. + suspended + Suspended The request has been held by originating system/user request. rejected + Rejected The receiving system has declined to fulfill the request. failed + Failed The diagnostic investigation was attempted, but due to some procedural error, it could not be completed.
- + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -45646,7 +45786,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -45689,17 +45830,17 @@ Describes the lifecycle of the dispense."/> create - create + Create Create a new resource with a server assigned id update - update + Update Update an existing resource by its id (or create it if it is new) delete - delete + Delete Delete a resource @@ -45707,27 +45848,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -45743,199 +45886,33 @@ Describes the lifecycle of the dispense."/> + + +
- - - - - - - - - -
-

This value set contains 3 concepts

-

ResourceProfileStatus

-

The lifecycle status of a Resource Profile

-

This value set defines its own terms in the system http://hl7.org/fhir/resource-profile-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
draft - - This profile is still under development.
active - - This profile is ready for normal use.
retired - - This profile has been deprecated, withdrawn or superseded and should no longer be used.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - -
-

This value set contains 3 concepts

-

MediaType

-

Whether the Media is a photo, video, or audio

-

This value set defines its own terms in the system http://hl7.org/fhir/media-type

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
photo - - The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents.
video - - The media consists of a series of frames that capture a moving image.
audio - - The media consists of a sound recording.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- + +
-

This value set contains 39 concepts

+

This value set contains 40 concepts

DataType

The type of an element - one of the FHIR data types

This value set defines its own terms in the system http://hl7.org/fhir/data-types

@@ -46092,11 +46069,17 @@ Describes the lifecycle of the dispense."/> A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. + + Signature + + + An XML digital signature along with supporting context. + Timing - Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur. + Specifies an event that may occur multiple times. Timing schedules are used to record when things are expected or requested to occur. base64Binary @@ -46126,7 +46109,7 @@ Describes the lifecycle of the dispense."/> dateTime - A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds may be provided but may also be ignored. Dates SHALL be valid dates. + A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. decimal @@ -46185,27 +46168,29 @@ Describes the lifecycle of the dispense."/>
- + - + - - - - - - - - + + + + + + + + + + - + - + @@ -46306,9 +46291,13 @@ Describes the lifecycle of the dispense."/>
+ + + + - + @@ -46328,7 +46317,7 @@ Describes the lifecycle of the dispense."/> - + @@ -46370,12 +46359,254 @@ Describes the lifecycle of the dispense."/> + + + + + + + + + + +
+

This value set contains 15 concepts

+

AuditEventObjectLifecycle

+

Identifier for the data life-cycle stage for the participant object

+

This value set defines its own terms in the system http://hl7.org/fhir/object-lifecycle

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
1 + + Origination / Creation.
2 + + Import / Copy from original.
3 + + Amendment.
4 + + Verification.
5 + + Translation.
6 + + Access / Use.
7 + + De-identification.
8 + + Aggregation, summarization, derivation.
9 + + Report.
10 + + Export / Copy to target.
11 + + Disclosure.
12 + + Receipt of disclosure.
13 + + Archiving.
14 + + Logical deletion.
15 + + Permanent erasure / Physical destruction.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- + + @@ -46420,27 +46651,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -46469,7 +46702,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -46521,27 +46755,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -46575,7 +46811,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -46641,27 +46878,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -46705,7 +46944,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -46730,182 +46970,182 @@ Describes the lifecycle of the dispense."/> AR - Autorefraction + A R Autorefraction device BMD - Bone Mineral Densitometry + B M D Bone Mineral Densitometry by X-Ray (modality), including dual-energy X-Ray absorptiometry (DXA) and morphometric X-Ray absorptiometry (MXA) BDUS - Ultrasound Bone Densitometry + B D U S Ultrasound Bone Densitometry (modality) EPS - Cardiac Electrophysiology + E P S Cardiac Electrophysiology device CR - Computed Radiography + C R Computed Radiography device CT - Computed Tomography + C T Computed Tomography device DX - Digital Radiography + D X Digital Radiography device ECG - Electrocardiography + E C G Electrocardiography device ES - Endoscopy + E S Endoscopy device XC - External-camera Photography + X C External-camera Photography device GM - General Microscopy + G M General Microscopy device HD - Hemodynamic Waveform + H D Hemodynamic Waveform acquisition device IO - Intra-oral Radiography + I O Intra-oral Radiography device IVOCT - Intravascular Optical Coherence Tomography + I V O C T Intravascular Optical Coherence Tomography device IVUS - Intravascular Ultrasound + I V U S Intravascular Ultrasound device KER - Keratometry + K E R Keratometry device LEN - Lensometry + L E N Lensometry device MR - Magnetic Resonance + M R Magnetic Resonance device MG - Mammography + M G Mammography device NM - Nuclear Medicine + N M Nuclear Medicine device OAM - Ophthalmic Axial Measurements + O A M Measurements of the axial length of the eye which are done by various devices OCT - Optical Coherence Tomography + O C T Modality device that uses an interferometric, non-invasive optical tomographic technique to image 2D slices and 3D volumes of tissue using visible and near visible frequencies. OPM - Ophthalmic Mapping + O P M Modality device that measures corneal topography, corneal or retinal thickness, and other similar parameters that are typically displayed as maps. OP - Ophthalmic photography + O P Ophthalmic photography modality OPR - Ophthalmic Refraction + O P R Modality device that measures the refractive characteristics of the eye. OPT - Ophthalmic Tomography + O P T Tomography of the eye acquired by a modality that is based on light and optical principles. Tomography based on other principles, such as ultrasound, is excluded. OPV - Ophthalmic Visual Field + O P V Modality device that measures visual fields and perform visual perimetry. PX - Panoramic X-Ray + P X Panoramic X-Ray device PT - Positron emission tomography + P T Positron emission tomography (PET) device RF - Radiofluoroscopy + R F Radiofluoroscopy device RG - Radiographic imaging + R G Radiographic imaging (conventional film/screen) SM - Slide Microscopy + S M Slide Microscopy SRF - Subjective Refraction + S R F Subjective Refraction device US - Ultrasound + U S Ultrasound device VA - Visual Acuity + V A Visual Acuity device XA - X-Ray Angiography + X A X-Ray Angiography device @@ -46913,136 +47153,174 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -47054,7 +47332,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -47076,47 +47355,47 @@ Describes the lifecycle of the dispense."/> read - read + Read Read the current state of the resource vread - vread + Vread Read the state of a specific version of the resource update - update + Update Update an existing resource by its id (or create it if it is new) delete - delete + Delete Delete a resource history-instance - history-instance + History Instance Retrieve the update history for a particular resource validate - validate + Validate Check that the content would be acceptable as an update history-type - history-type + History Type Retrieve the update history for a all resources of a particular type create - create + Create Create a new resource with a server assigned id search-type - search-type + Search Type Search all resources of the specified type based on some filter criteria @@ -47124,54 +47403,65 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + + + + + + + + + + @@ -47183,12 +47473,13 @@ Describes the lifecycle of the dispense."/> - + +
-

This value set contains 14 concepts

+

This value set contains 15 concepts

AnswerFormat

The expected format of an answer

This value set defines its own terms in the system http://hl7.org/fhir/answer-format

@@ -47197,6 +47488,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -47205,168 +47499,210 @@ Describes the lifecycle of the dispense."/> boolean + Boolean Answer is a yes/no answer. decimal + Decimal Answer is a floating point number. integer + Integer Answer is an integer. date + Date Answer is a date. dateTime + Date Time Answer is a date and time. instant + Instant Answer is a system timestamp. time + Time Answer is a time independent of date. string + String Answer is a short (few words to short sentence) free-text entry. text + Text Answer is a long (potentially multi-paragram) free-text entry. + + url + + + Url + Answer is a url (website, FTP site, etc.). + choice + Choice Answer is a choice from a list of options. open-choice + Open Choice Answer is a choice from a list of options or a free-text entry. attachment + Attachment Answer is binary content such as a image, PDF, etc. reference + Reference Answer is a reference to another resource (practitioner, organization, etc.). quantity + Quantity Answer is a combination of a numeric value and unit.
- + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + @@ -47378,7 +47714,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -47423,27 +47760,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -47472,7 +47811,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -47546,86 +47886,88 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + @@ -47641,7 +47983,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -47655,12 +47998,15 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition - v3 Map (ActRrelationshipType) + v3 Map (ActRrelationshipType) @@ -47668,126 +48014,142 @@ Describes the lifecycle of the dispense."/> has-component + Has Component The target observation is a component of this observation (e.g. Systolic and Diastolic Blood Pressure). = - COMP + COMP has-member + Has Member This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group. = - MBR + MBR derived-from + Derived From The target observation is part of the information from which this observation value is derived (e.g. calculated anion gap, Apgar score). = - DRIV + DRIV sequel-to + Sequel To This observation follows the target observation (e.g. timed tests such as Glucose Tolerance Test). = - SEQL + SEQL replaces + Replaces This observation replaces a previous observation (i.e. a revised value). The target observation is now obsolete. = - RPLC + RPLC qualified-by + Qualified By The value of the target observation qualifies (refines) the semantics of the source observation (e.g. a lipaemia measure target from a plasma measure). = - QUALF + QUALF interfered-by + Interfered By The value of the target observation interferes (degardes quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure which has no value). = - INTF + INTF - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + @@ -47799,7 +48161,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -47827,37 +48190,37 @@ Describes the lifecycle of the dispense."/> s - + S second. min - + Min minute. h - + H hour. d - + D day. wk - + Wk week. mo - + Mo month. a - + A year. @@ -47865,70 +48228,79 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + + - + + - + + - + + - + + - + + - + + @@ -47940,7 +48312,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -47954,6 +48327,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -47962,58 +48338,66 @@ Describes the lifecycle of the dispense."/> ok + Ok The message was accepted and processed without error. transient-error + Transient Error Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required. fatal-error + Fatal Error The message was rejected because of some content in it. There is no point in re-sending without change. The response narrative SHALL describe what the issue is. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + @@ -48025,7 +48409,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -48039,6 +48424,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -48047,68 +48435,78 @@ Describes the lifecycle of the dispense."/> measurement + Measurement DeviceObservations generated for this DeviceMetric are measured. setting + Setting DeviceObservations generated for this DeviceMetric is a setting that will influence the behavior of the Device. calculation + Calculation DeviceObservations generated for this DeviceMetric are calculated. unspecified + Unspecified The category of this DeviceMetric is unspecified. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -48120,7 +48518,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -48134,6 +48533,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -48142,48 +48544,54 @@ Describes the lifecycle of the dispense."/> product + Product The medication is a product. package + Package The medication is a package - a contained group of one of more products. - + - + - - - - - - - - + + + + + + + + + + - + - + + + @@ -48195,7 +48603,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -48212,6 +48621,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -48221,6 +48633,7 @@ Describes the lifecycle of the dispense."/> contained + Contained The reference is a local reference to a contained resource. @@ -48228,6 +48641,7 @@ Describes the lifecycle of the dispense."/> referenced + Referenced The reference to a resource that has to be resolved externally to the resource that includes the reference. @@ -48235,45 +48649,51 @@ Describes the lifecycle of the dispense."/>   bundled + Bundled The resource the reference points to will be found in the same bundle as the resource that includes the reference. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + @@ -48286,7 +48706,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -48300,6 +48721,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -48308,194 +48732,79 @@ Describes the lifecycle of the dispense."/> http + Http The application sends or receives messages using HTTP POST (may be over http or https). ftp + Ftp The application sends or receives messages using File Transfer Protocol. mllp + Mllp The application sends or receivers messages using HL7's Minimal Lower Level Protocol. - + - + - - - - - - - - + + + + + + + + + + - + - + + + +
- - - - - - - - - -
-

This value set contains 6 concepts

-

DataElementGranularity

-

Indicates the degree of precision of the data element definition

-

This value set defines its own terms in the system http://hl7.org/fhir/dataelement-granularity

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Lvl - - Code - - Definition -
1comparable - - The data element is sufficiently well-constrained that multiple pieces of data captured according to the constraints of the data element will be comparable (though in some cases, a degree of automated conversion/normalization may be required).
2  fully-specified - - The data element is fully specified down to a single value set, single unit of measure, single data type, etc. Multiple pieces of data associated with this data element are fully compareable.
2  equivalent - - The data element allows multiple units of measure having equivalent meaning. E.g. "cc" (cubic centimeter) and "mL".
2  convertable - - The data element allows multiple units of measure that are convertable between each other (e.g. Inches and centimeters) and/or allows data to be captured in multiple value sets for which a known mapping exists allowing conversion of meaning.
3    scaleable - - A convertable data element where unit conversions are different only by a power of 10. E.g. g, mg, kg.
2  flexible - - The data element is unconstrained in units, choice of data types and/or choice of vocabulary such that automated comparison of data captured using the data element is not possible.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- + + @@ -48509,6 +48818,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -48517,68 +48829,78 @@ Describes the lifecycle of the dispense."/> in-progress + In Progress The goal is being sought but has not yet been reached. (Also applies if goal was reached in the past but there has been regression and goal is being sought again). achieved + Achieved The goal has been met and no further action is needed. sustaining + Sustaining The goal has been met, but ongoing activity is needed to sustain the goal objective. cancelled + Cancelled The goal is no longer being sought. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -48590,7 +48912,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -48642,27 +48965,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -48696,7 +49021,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -48705,91 +49031,6 @@ Describes the lifecycle of the dispense."/>

MedicationStatementStatus

A set of codes indicating the current status of a MedicationStatement

This value set defines its own terms in the system http://hl7.org/fhir/medication-statement-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
in-progress - - The medication is still being taken.
completed - - All actions that are implied by the statement have occurred.
entered-in-error - - The statement was entered in error and therefore nullified.
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - -
-

This value set contains 4 concepts

-

SecurityEventOutcome

-

Indicates whether the event succeeded or failed

-

This value set defines its own terms in the system http://hl7.org/fhir/security-event-outcome

- - - + + - - - + + - - - - - - - - + +
@@ -48803,80 +49044,70 @@ Describes the lifecycle of the dispense."/>
0 - + in-progress + SuccessThe operation completed successfully (whether with warnings or not).In ProgressThe medication is still being taken.
4 - + completed + Minor failureThe action was not successful due to some kind of catered for error (often equivalent to an HTTP 400 response).CompletedAll actions that are implied by the statement have occurred.
8 - + entered-in-error + Serious failureThe action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response).
12 - - Major failureAn error of such magnitude occurred that the system is not longer available for use (i.e. the system died).Entered In ErrorThe statement was entered in error and therefore nullified.
- - + + - + - + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - - + + + - - - + + + - - - - - - - - + + +
@@ -48887,8 +49118,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -48902,6 +49133,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -48910,450 +49144,163 @@ Describes the lifecycle of the dispense."/> proposed + Proposed The request has been proposed. - planned - + draft + - The request has been planned. + Draft + The request is in preliminary form, prior to being requested. requested + Requested The request has been placed. received + Received The receiving system has received the request but not yet decided whether it will be performed. accepted + Accepted The receiving system has accepted the request, but work has not yet commenced. in-progress + In Progress The work to fulfill the request is happening. completed + Completed The work has been complete, the report(s) released, and no further work is planned. suspended + Suspended The request has been held by originating system/user request. rejected + Rejected The receiving system has declined to fulfill the request. aborted + Aborted The request was attempted, but due to some procedural error, it could not be completed. - + - + - - - - - - - - + + + + + + + + + + - + - + + - - + + + + + + + + + + +
- - - - - - - - - -
-

This value set contains 5 concepts

-

SecurityEventParticipantNetworkType

-

The type of network access point that originated the audit event

-

This value set defines its own terms in the system http://hl7.org/fhir/network-type

- - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
1 - - Machine Name, including DNS name.
2 - - IP Address.
3 - - Telephone Number.
4 - - Email address.
5 - - URI (User directory, HTTP-PUT, ftp, etc.).
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - -
-

This value set contains 15 concepts

-

SecurityEventObjectLifecycle

-

Identifier for the data life-cycle stage for the participant object

-

This value set defines its own terms in the system http://hl7.org/fhir/object-lifecycle

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
1 - - Origination / Creation.
2 - - Import / Copy from original.
3 - - Amendment.
4 - - Verification.
5 - - Translation.
6 - - Access / Use.
7 - - De-identification.
8 - - Aggregation, summarization, derivation.
9 - - Report.
10 - - Export / Copy to target.
11 - - Disclosure.
12 - - Receipt of disclosure.
13 - - Archiving.
14 - - Logical deletion.
15 - - Permanent erasure / Physical destruction.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- + + @@ -49367,6 +49314,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -49375,48 +49325,54 @@ Describes the lifecycle of the dispense."/> right + Right right eye. left + Left left eye. - + - + - - - - - - - - + + + + + + + + + + - + - + + + @@ -49428,7 +49384,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -49442,6 +49399,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -49450,59 +49410,67 @@ Describes the lifecycle of the dispense."/> closed + Closed No additional content is allowed other than that described by the slices in this profile. open + Open Additional content is allowed anywhere in the list. openAtEnd - Additional content is allowed, but only at the end of the list. + Open At End + Additional content is allowed, but only at the end of the list. Note that using this requires that the slices be ordered, which makes it hard to share uses. This should only be done where absolutely required. - + - + - - - - - - - - + + + + + + + + + + - + - + + + - + + @@ -49513,7 +49481,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -49527,6 +49496,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -49535,68 +49507,78 @@ Describes the lifecycle of the dispense."/> routine + Routine The request has a normal priority. urgent + Urgent The request should be done urgently. stat + Stat The request is time-critical. asap + Asap The request should be acted on as soon as possible. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -49608,7 +49590,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -49631,12 +49614,12 @@ Describes the lifecycle of the dispense."/> official - + Official The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called "legal name". anonymous - + Anonymous Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons). @@ -49644,33 +49627,37 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + + + @@ -49680,14 +49667,172 @@ Describes the lifecycle of the dispense."/> - + - + +
-

This value set contains 12 concepts

+

This value set contains 8 concepts

+

DeviceMetricColor

+

Describes the typical color of representation

+

This value set defines its own terms in the system http://hl7.org/fhir/metric-color

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
black + + col-blackColor for representation - black.
red + + col-redColor for representation - red.
green + + col-greenColor for representation - green.
yellow + + col-yellowColor for representation - yellow.
blue + + col-blueColor for representation - blue.
magenta + + col-magentaColor for representation - magenta.
cyan + + col-cyanColor for representation - cyan.
white + + col-whiteColor for representation - white.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 10 concepts

MessageEvent

One of the message events defined as part of FHIR

This value set defines its own terms in the system http://hl7.org/fhir/message-events

@@ -49730,12 +49875,6 @@ Describes the lifecycle of the dispense."/> Notification of a change to an administrative resource (either create or update). Note that there is no delete, though some administrative resources have status or period elements for this use. - - conceptmap-translate - - - Translate a code from one value set to another, based on the existing value set and concept maps resources, and/or other additional knowledge available to the server. The coded value is carried as an extension in the message header. The outcome is an operationOutcome with hints, warnings, or errors, or the translated code in an extension. - diagnosticreport-provide @@ -49766,36 +49905,32 @@ Describes the lifecycle of the dispense."/> The definition of a value set is used to create a simple collection of codes suitable for use for data entry or validation. An expanded value set will be returned, or an error message. - - valueset-validate - - - Validate that a coded value is in the set of codes allowed by a value set. The coded value is carried as an extension in the message header. The outcome is an OperationOutcome with hints, warnings, or errors. -
- + - + - - - - - - - - + + + + + + + + + + - + - + @@ -49820,10 +49955,6 @@ Describes the lifecycle of the dispense."/>
- - - - @@ -49844,20 +49975,201 @@ Describes the lifecycle of the dispense."/> - - - - + + + + + + + + + + +
+

This value set contains 10 concepts

+

EventTiming

+

Real world event that the schedule relates to

+

This value set includes codes defined in other code systems, using the following rules:

+
    +
  • Include these codes as defined in + http://hl7.org/fhir/v3/TimingEvent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Code + + Display + + Definition +
    HSH Sevent occurs [duration] before the hour of sleep (or trying to).
    WAKEW A K Eevent occurs [duration] after waking.
    ACA Cevent occurs [duration] before a meal (from the Latin ante cibus).
    ACMA C Mevent occurs [duration] before breakfast (from the Latin ante cibus matutinus).
    ACDA C Devent occurs [duration] before lunch (from the Latin ante cibus diurnus).
    ACVA C Vevent occurs [duration] before dinner (from the Latin ante cibus vespertinus).
    PCP Cevent occurs [duration] after a meal (from the Latin post cibus).
    PCMP C Mevent occurs [duration] after breakfast (from the Latin post cibus matutinus).
    PCDP C Devent occurs [duration] after lunch (from the Latin post cibus diurnus).
    PCVP C Vevent occurs [duration] after dinner (from the Latin post cibus vespertinus).
    +
  • +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- + + @@ -49933,27 +50245,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -50001,183 +50315,13 @@ Describes the lifecycle of the dispense."/> - - - - - - - - - -
-

This value set contains 10 concepts

-

EventTiming

-

Real world event that the schedule relates to

-

This value set includes codes defined in other code systems, using the following rules:

-
    -
  • Include these codes as defined in - http://hl7.org/fhir/v3/TimingEvent - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display - - Definition -
    HSHSevent occurs [duration] before the hour of sleep (or trying to).
    WAKEWAKEevent occurs [duration] after waking.
    ACACevent occurs [duration] before a meal (from the Latin ante cibus).
    ACMACMevent occurs [duration] before breakfast (from the Latin ante cibus matutinus).
    ACDACDevent occurs [duration] before lunch (from the Latin ante cibus diurnus).
    ACVACVevent occurs [duration] before dinner (from the Latin ante cibus vespertinus).
    PCPCevent occurs [duration] after a meal (from the Latin post cibus).
    PCMPCMevent occurs [duration] after breakfast (from the Latin post cibus matutinus).
    PCDPCDevent occurs [duration] after lunch (from the Latin post cibus diurnus).
    PCVPCVevent occurs [duration] after dinner (from the Latin post cibus vespertinus).
    -
  • -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- + + @@ -50194,6 +50338,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -50203,6 +50350,7 @@ Describes the lifecycle of the dispense."/> derivation + Derivation A transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a preexisting entity. @@ -50210,6 +50358,7 @@ Describes the lifecycle of the dispense."/>   revision + Revision A derivation for which the resulting entity is a revised version of some original. @@ -50217,6 +50366,7 @@ Describes the lifecycle of the dispense."/>   quotation + Quotation The repeat of (some or all of) an entity, such as text or image, by someone who may or may not be its original author. @@ -50224,49 +50374,56 @@ Describes the lifecycle of the dispense."/>   source + Source A primary source for a topic refers to something produced by some agent with direct experience and knowledge about the topic, at the time of the topic's study, without benefit from hindsight. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -50279,7 +50436,8 @@ Describes the lifecycle of the dispense."/> - + + @@ -50293,6 +50451,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -50301,38 +50462,42 @@ Describes the lifecycle of the dispense."/> xmlAttr + Xml Attr In XML, this property is represented as an attribute not an element. - + - + - - - - - - - - + + + + + + + + + + - + - + + @@ -50342,17 +50507,200 @@ Describes the lifecycle of the dispense."/> - + - + + + + + +
+

This value set contains 4 concepts

+

AuditEventObjectType

+

Code for the participant object type being audited

+

This value set defines its own terms in the system http://hl7.org/fhir/object-type

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
1 + + Person.
2 + + System Object.
3 + + Organization.
4 + + Other.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 1 concepts

+

MaxOccurs

+

Flags an element as having unlimited repetitions

+

This value set defines its own terms in the system http://hl7.org/fhir/max-occurs

+ + + + + + + + + + + +
+ Code + + Display + + Definition +
* + + Element can repeat an unlimited number of times.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + +

This value set contains 3 concepts

-

ValueSetStatus

+

ConformanceResourceStatus

The lifecycle status of a Value Set or Concept Map

-

This value set defines its own terms in the system http://hl7.org/fhir/valueset-status

+

This value set defines its own terms in the system http://hl7.org/fhir/conformance-resource-status

- + - + - +
@@ -50370,21 +50718,21 @@ Describes the lifecycle of the dispense."/> DraftThis valueset is still under development.This resource is still under development
active ActiveThis valueset is ready for normal use.This resource is ready for normal use
retired RetiredThis valueset has been withdrawn or superceded and should no longer be used.This resource has been withdrawn or superceded and should no longer be used

@@ -50420,35 +50768,37 @@ Describes the lifecycle of the dispense."/>

- - + + - + - + - - - - - - - - + + + + + + + + + + - + - - + + - + - + @@ -50461,7 +50811,7 @@ Describes the lifecycle of the dispense."/> - + @@ -50474,7 +50824,7 @@ Describes the lifecycle of the dispense."/> - + @@ -50488,77 +50838,13 @@ Describes the lifecycle of the dispense."/>
- - - - - - - - - -
-

This value set contains 1 concepts

-

MaxOccurs

-

Flags an element as having unlimited repetitions

-

This value set defines its own terms in the system http://hl7.org/fhir/max-occurs

- - - - - - - - - -
- Code - - Definition -
* - - Element can repeat an unlimited number of times.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- + + @@ -50572,6 +50858,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -50580,48 +50869,54 @@ Describes the lifecycle of the dispense."/> error + Error If the constraint is violated, the resource is not conformant. warning + Warning If the constraint is violated, the resource is conformant, but it is not necessarily following best practice. - + - + - - - - - - - - + + + + + + + + + + - + - + + + @@ -50633,8 +50928,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -50686,27 +50981,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -50740,8 +51037,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -50786,27 +51083,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -50835,8 +51134,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -50850,6 +51149,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -50858,88 +51160,102 @@ Describes the lifecycle of the dispense."/> = + The specified property of the code equals the provided value. is-a + Is A The specified property of the code has an is-a relationship with the provided value. is-not-a + Is Not A The specified property of the code does not have an is-a relationship with the provided value. regex + Regex The specified property of the code matches the regex specified in the provided value. in + In The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list). not-in + Not In The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list). - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + @@ -50951,8 +51267,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -50966,6 +51282,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -50974,59 +51293,67 @@ Describes the lifecycle of the dispense."/> required + Required The participant is required to attend the appointment. optional + Optional The participant may optionally attend the appointment. information-only - The participant is not required to attend the appointment (appointment is about them, not for them). + Information Only + The participant is not required to attend the appointment (appointment is about them, not for them - such as 2 doctors discussing results about a patient's test). - + - + - - - - - - - - + + + + + + + + + + - + - + + + - + + @@ -51037,8 +51364,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -51052,6 +51379,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -51060,48 +51390,54 @@ Describes the lifecycle of the dispense."/> sender + Sender The application sends requests and receives responses. receiver + Receiver The application receives requests and sends responses. - + - + - - - - - - - - + + + + + + + + + + - + - + + + @@ -51113,8 +51449,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -51128,6 +51464,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -51138,7 +51477,7 @@ Describes the lifecycle of the dispense."/> - v3 Map (AddressUse) + v3 Map (AddressUse) @@ -51146,6 +51485,7 @@ Describes the lifecycle of the dispense."/> home + Home A communication contact point at a home; attempted contacts for business purposes might intrude privacy and chances are one will contact family or other household members instead of the person one wishes to call. Typically used with urgent cases, or if no other contacts are available. > @@ -51159,13 +51499,14 @@ Describes the lifecycle of the dispense."/> = - H + H work + Work An office contact point. First choice for business related contacts during business hours. ~ @@ -51173,33 +51514,35 @@ Describes the lifecycle of the dispense."/> = - WP + WP temp + Temp A temporary contact point. The period can provide more detailed information. = - TMP + TMP old + Old This contact point is no longer in use (or was never correct, but retained for records). < - OLD + OLD (Old and Bad)
< - BAD + BAD (Old and Bad) @@ -51207,6 +51550,7 @@ Describes the lifecycle of the dispense."/> mobile + Mobile A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business. ~ @@ -51214,55 +51558,62 @@ Describes the lifecycle of the dispense."/> = - MC + MC
- + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + @@ -51274,8 +51625,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -51336,66 +51687,68 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + - + - + - + - + - + @@ -51411,8 +51764,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -51457,27 +51810,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -51506,8 +51861,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -51532,267 +51887,267 @@ Describes the lifecycle of the dispense."/> AR - Autorefraction + A R Autorefraction device AU - Audio + A U Audio object BDUS - Ultrasound Bone Densitometry + B D U S Ultrasound Bone Densitometry (modality) BI - Biomagnetic imaging + B I Biomagnetic imaging device BMD - Bone Mineral Densitometry + B M D Bone Mineral Densitometry by X-Ray (modality), including dual-energy X-Ray absorptiometry (DXA) and morphometric X-Ray absorptiometry (MXA) CR - Computed Radiography + C R Computed Radiography device CT - Computed Tomography + C T Computed Tomography device DG - Diaphanography + D G Diaphanography device DX - Digital Radiography + D X Digital Radiography device ECG - Electrocardiography + E C G Electrocardiography device EPS - Cardiac Electrophysiology + E P S Cardiac Electrophysiology device ES - Endoscopy + E S Endoscopy device GM - General Microscopy + G M General Microscopy device HC - Hard Copy + H C Hard Copy HD - Hemodynamic Waveform + H D Hemodynamic Waveform acquisition device IO - Intra-oral Radiography + I O Intra-oral Radiography device IVOCT - Intravascular Optical Coherence Tomography + I V O C T Intravascular Optical Coherence Tomography device IVUS - Intravascular Ultrasound + I V U S Intravascular Ultrasound device KER - Keratometry + K E R Keratometry device KO - Key Object Selection + K O Key Object Selection object LEN - Lensometry + L E N Lensometry device LS - Laser surface scan + L S Laser surface scan device MG - Mammography + M G Mammography device MR - Magnetic Resonance + M R Magnetic Resonance device NM - Nuclear Medicine + N M Nuclear Medicine device OAM - Ophthalmic Axial Measurements + O A M Measurements of the axial length of the eye which are done by various devices OCT - Optical Coherence Tomography + O C T Modality device that uses an interferometric, non-invasive optical tomographic technique to image 2D slices and 3D volumes of tissue using visible and near visible frequencies. OP - Ophthalmic photography + O P Ophthalmic photography modality OPM - Ophthalmic Mapping + O P M Modality device that measures corneal topography, corneal or retinal thickness, and other similar parameters that are typically displayed as maps. OPT - Ophthalmic Tomography + O P T Tomography of the eye acquired by a modality that is based on light and optical principles. Tomography based on other principles, such as ultrasound, is excluded. OPV - Ophthalmic Visual Field + O P V Modality device that measures visual fields and perform visual perimetry. OT - Other Modality + O T Other Modality device PR - Presentation State + P R Presentation State object PT - Positron emission tomography + P T Positron emission tomography (PET) device PX - Panoramic X-Ray + P X Panoramic X-Ray device REG - Registration + R E G Registration RF - Radiofluoroscopy + R F Radiofluoroscopy device RG - Radiographic imaging + R G Radiographic imaging (conventional film/screen) RTDOSE - Radiotherapy Dose + R T D O S E Radiotherapy Dose RTIMAGE - Radiotherapy Image + R T I M A G E Radiotherapy Imaging device; includes portal imaging RTPLAN - Radiotherapy Plan + R T P L A N Radiotherapy Plan RTRECORD - Radiotherapy Treatment Record + R T R E C O R D Radiotherapy Treatment Record RTSTRUCT - Radiotherapy Structure Set + R T S T R U C T Radiotherapy Structure Set SEG - Segmentation + S E G Segmentation SM - Slide Microscopy + S M Slide Microscopy SMR - Stereometric Relationship + S M R Stereometric image pairing modality SR - Structured Report Document + S R Structured Report Document SRF - Subjective Refraction + S R F Subjective Refraction device TG - Thermography + T G Thermography device US - Ultrasound + U S Ultrasound device VA - Visual Acuity + V A Visual Acuity device XA - X-Ray Angiography + X A X-Ray Angiography device XC - External-camera Photography + X C External-camera Photography device @@ -51800,187 +52155,242 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -51992,8 +52402,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -52059,27 +52469,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -52123,8 +52535,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -52147,17 +52559,17 @@ Describes the lifecycle of the dispense."/> official - + Official The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called "legal name". anonymous - + Anonymous Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons). maiden - + Maiden A name used prior to marriage. Marriage naming customs vary greatly around the world. This name use is for use by applications that collect and store "maiden" names. Though the concept of maiden name is often gender specific, the use of this term is not gender specific. The use of this term does not imply any particular history for a person's name, nor should the maiden name be determined algorithmically. @@ -52165,36 +52577,41 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + + + + @@ -52206,8 +52623,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -52221,12 +52638,15 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition - v3 Map (ActStatus) + v3 Map (ActStatus) @@ -52234,70 +52654,78 @@ Describes the lifecycle of the dispense."/> current + Current This is the current reference for this document. ~ - active + active superceded + Superceded This reference has been superseded by another reference. ~ - obsolete + obsolete entered-in-error + Entered In Error This reference was created in error. ~ - nullified + nullified - + - + - - - - - - - - + + + + + + + + + + - + - + + + + @@ -52309,13 +52737,13 @@ Describes the lifecycle of the dispense."/> - - + +
-

This value set contains 26 concepts

+

This value set contains 27 concepts

IssueType

A coded expression of the type of issue

This value set defines its own terms in the system http://hl7.org/fhir/issue-type

@@ -52327,6 +52755,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -52336,6 +52767,7 @@ Describes the lifecycle of the dispense."/> invalid + Invalid Content invalid against Specification or Profile. @@ -52343,6 +52775,7 @@ Describes the lifecycle of the dispense."/>   structure + Structure content structural issue. @@ -52350,6 +52783,7 @@ Describes the lifecycle of the dispense."/>   required + Required required element missing. @@ -52357,6 +52791,7 @@ Describes the lifecycle of the dispense."/>   value + Value element value invalid. @@ -52364,6 +52799,7 @@ Describes the lifecycle of the dispense."/>   invariant + Invariant schematron rule. @@ -52371,6 +52807,7 @@ Describes the lifecycle of the dispense."/> security + Security authorization/permissions issue. @@ -52378,6 +52815,7 @@ Describes the lifecycle of the dispense."/>   login + Login the client needs to initiate the authentication process (). @@ -52385,6 +52823,7 @@ Describes the lifecycle of the dispense."/>   unknown + Unknown user/system not able to be authenticated. @@ -52392,6 +52831,7 @@ Describes the lifecycle of the dispense."/>   expired + Expired user session expired. @@ -52399,13 +52839,23 @@ Describes the lifecycle of the dispense."/>   forbidden + Forbidden user rights failure. + + 2 +   suppressed + + + Suppressed + One or more records in the query response have been suppressed due to consent or privacy restrictions. + 1 processing + Processing processing issues. @@ -52413,6 +52863,7 @@ Describes the lifecycle of the dispense."/>   not-supported + Not Supported resource not supported. @@ -52420,6 +52871,7 @@ Describes the lifecycle of the dispense."/>   duplicate + Duplicate duplicate resource. @@ -52427,6 +52879,7 @@ Describes the lifecycle of the dispense."/>   not-found + Not Found reference not found. @@ -52434,6 +52887,7 @@ Describes the lifecycle of the dispense."/>   too-long + Too Long existing content too long. @@ -52441,6 +52895,7 @@ Describes the lifecycle of the dispense."/>   code-unknown + Code Unknown code could not be understood. @@ -52448,6 +52903,7 @@ Describes the lifecycle of the dispense."/>   extension + Extension extension not recognized. @@ -52455,6 +52911,7 @@ Describes the lifecycle of the dispense."/>   too-costly + Too Costly operation denied to protect server resources. @@ -52462,6 +52919,7 @@ Describes the lifecycle of the dispense."/>   business-rule + Business Rule content failed to pass some business rule. @@ -52469,6 +52927,7 @@ Describes the lifecycle of the dispense."/>   conflict + Conflict content could not be accepted because of an edit conflict (i.e. version aware updates). @@ -52476,6 +52935,7 @@ Describes the lifecycle of the dispense."/> transient + Transient transient processing issues. @@ -52483,6 +52943,7 @@ Describes the lifecycle of the dispense."/>   lock-error + Lock Error resource/record locking failure. @@ -52490,6 +52951,7 @@ Describes the lifecycle of the dispense."/>   no-store + No Store persistent store unavailable. @@ -52497,6 +52959,7 @@ Describes the lifecycle of the dispense."/>   exception + Exception unexpected internal error. @@ -52504,6 +52967,7 @@ Describes the lifecycle of the dispense."/>   timeout + Timeout internal timeout. @@ -52511,137 +52975,171 @@ Describes the lifecycle of the dispense."/>   throttled + Throttled The system is not prepared to handle this request due to load management.
- + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -52654,8 +53152,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -52756,27 +53254,29 @@ Describes the lifecycle of the dispense."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -52840,13 +53340,110 @@ Describes the lifecycle of the dispense."/>
+ + + + + + + + + + +
+

This value set contains 3 concepts

+

DigitalMediaType

+

Whether the Media is a photo, video, or audio

+

This value set defines its own terms in the system http://hl7.org/fhir/digital-media-type

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
photo + + PhotoThe media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents.
video + + VideoThe media consists of a series of frames that capture a moving image.
audio + + AudioThe media consists of a sound recording.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- - + + @@ -52860,6 +53457,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -52868,128 +53468,150 @@ Describes the lifecycle of the dispense."/> proposed + Proposed The request has been proposed. planned + Planned The request has been planned. requested + Requested The request has been placed. received + Received The receiving system has received the request but not yet decided whether it will be performed. accepted + Accepted The receiving system has accepted the request but work has not yet commenced. in-progress + In Progress The work to fulfill the order is happening. completed + Completed The work has been complete, the report(s) released, and no further work is planned. suspended + Suspended The request has been held by originating system/user request. rejected + Rejected The receiving system has declined to fulfill the request. aborted + Aborted The request was attempted, but due to some procedural error, it could not be completed. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + @@ -53001,8 +53623,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -53016,6 +53638,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -53024,48 +53649,54 @@ Describes the lifecycle of the dispense."/> complete + Complete The processing completed without errors. error + Error The processing identified with errors. - + - + - - - - - - - - + + + + + + + + + + - + - + + + @@ -53077,8 +53708,8 @@ Describes the lifecycle of the dispense."/> - - + + @@ -53092,6 +53723,9 @@ Describes the lifecycle of the dispense."/> Code + + Display + Definition @@ -53100,4177 +53734,55 @@ Describes the lifecycle of the dispense."/> client - The application acts as a server for this resource. + Client + The application acts as a client for this resource. server - The application acts as a client for this resource. + Server + The application acts as a server for this resource. - + - + - - - - - - - - + + + + + + + + + + - + - + - + + - - - - - - - - - - - - - - - - -
-

This value set contains 6 concepts

-

AppointmentStatus

-

The free/busy status of an appointment

-

This value set defines its own terms in the system http://hl7.org/fhir/appointmentstatus

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Display - - Definition -
pending - - PendingSome or all of the participant(s) have not finalized their acceptance of the appointment request.
booked - - BookedAll participant(s) have been considered and the appointment is condirmed to go ahead at the date/times specified.
arrived - - ArrivedSome of the patients have arrived.
fulfilled - - FulfilledThis appointment has completed and may have resulted in an encounter.
cancelled - - CancelledThe appointment has been cancelled.
noshow - - No ShowSome or all of the participant(s) have not/did not appear for the appointment (usually the patient).
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 4 concepts

-

NarrativeStatus

-

The status of a resource narrative

-

This value set defines its own terms in the system http://hl7.org/fhir/narrative-status

- - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
generated - - The contents of the narrative are entirely generated from the structured data in the resource.
extensions - - The contents of the narrative are entirely generated from the structured data in the resource and some of the content is generated from extensions.
additional - - The contents of the narrative contain additional information not found in the structured data.
empty - - the contents of the narrative are some equivalent of "No human-readable text provided for this resource".
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

CarePlan2Status

-

Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.

-

This value set defines its own terms in the system http://hl7.org/fhir/care-plan2-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
planned - - The plan is in development or awaiting use but is not yet intended to be acted upon.
active - - The plan is intended to be followed and used as part of patient care.
completed - - The plan is no longer in use and is not expected to be followed or used in patient care.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 5 concepts

-

SupplyStatus

-

Status of the supply

-

This value set defines its own terms in the system http://hl7.org/fhir/valueset-supply-status

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Display - - Definition -
requested - - RequestedSupply has been requested, but not dispensed.
dispensed - - DispensedSupply is part of a pharmacy order and has been dispensed.
received - - ReceivedSupply has been received by the requestor.
failed - - FailedThe supply will not be completed because the supplier was unable or unwilling to supply the item.
cancelled - - CancelledThe orderer of the supply cancelled the request.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 6 concepts

-

ObservationStatus

-

Codes providing the status of an observation

-

This value set defines its own terms in the system http://hl7.org/fhir/observation-status

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Display - - Definition -
registered - - RegisteredThe existence of the observation is registered, but there is no result yet available.
preliminary - - - This is an initial or interim observation: data may be incomplete or unverified.
final - - - The observation is complete and verified by an authorized person.
amended - - - The observation has been modified subsequent to being Final, and is complete and verified by an authorized person.
cancelled - - - The observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted").
entered-in-error - - - The observation has been withdrawn following previous Final release.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

NoteType

-

The presentation types of notes

-

This value set defines its own terms in the system http://hl7.org/fhir/NT-link

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
display - - Display the note.
print - - Print the note on the form.
printoper - - Print the note for the operator.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

LocationStatus

-

Indicates whether the location is still in use

-

This value set defines its own terms in the system http://hl7.org/fhir/location-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
active - - The location is operational.
suspended - - The location is temporarily closed.
inactive - - The location is no longer used.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 4 concepts

-

InstanceAvailability

-

Availability of the resource

-

- Copyright Statement: These codes are excerpted from Digital Imaging and Communications in Medicine (DICOM) Standard, Part 16: Content Mapping Resource, Copyright 2011 by the National Electrical Manufacturers Association -

-

This value set includes codes defined in other code systems, using the following rules:

-
    -
  • Include these codes as defined in http://nema.org/dicom/dicm - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display - - Definition -
    ONLINEOnlineResources are immediately available,.
    OFFLINEOfflineResources need to be retrieved by manual intervention.
    NEARLINENearlineResources need to be retrieved from relatively slow media.
    UNAVAILABLEUnavailableResources cannot be retrieved.
    -
  • -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 4 concepts

-

QuantityComparator

-

How the Quantity should be understood and represented

-

This value set defines its own terms in the system http://hl7.org/fhir/quantity-comparator

- - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
< - - The actual value is less than the given value.
<= - - The actual value is less than or equal to the given value.
>= - - The actual value is greater than or equal to the given value.
> - - The actual value is greater than the given value.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

TransactionProcessingMode

-

Defines how a match URL should be used when processing a transaction

-

This value set defines its own terms in the system http://hl7.org/fhir/transaction-processing-mode

- - - - - - - - - - - - - - - - - - - - - -
- Code - - Display - - Definition -
ignore - - ignoreIf a matching resource is found, then ignore the resource and do not process it as part of the transaction (and return the matching resource information in the transaction response).
update - - updateIf a matching resource is found, then update it with this resource, otherwise create a new one.
delete - - deleteIf a resource matching the information provided is found, delete it. If no matching resource is found, the transaction fails.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 7 concepts

-

SearchParamType

-

Data types allowed to be used for search parameters

-

This value set defines its own terms in the system http://hl7.org/fhir/search-param-type

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
number - - Search parameter SHALL be a number (a whole number, or a decimal).
date - - Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported.
string - - Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces.
token - - Search parameter on a coded element or identifier. May be used to search through the text, displayname, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a "|", depending on the modifier used.
reference - - A reference to another resource.
composite - - A composite search parameter that combines a search on two values together.
quantity - - A search parameter that searches on a quantity.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

DeviceMetricOperationalState

-

Describes the operational status of the DeviceMetric

-

This value set defines its own terms in the system http://hl7.org/fhir/metric-operational-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
on - - The DeviceMetric is operating and will generate DeviceObservations.
off - - The DeviceMetric is not operating.
standby - - The DeviceMetric is operating, but will not generate any DeviceObservations.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 5 concepts

-

XDSRelationshipType

-

The kind of relationship between two XDS documents

-

This value set defines its own terms in the system http://hl7.org/fhir/xds-relationship-type

- - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
APND - - A separate XDS Document that references a prior document, and may extend or -alter the observations in the prior document.
RPLC - - A new version of an existing document.
XFRM - - A transformed document is derived by a machine translation from some other format.
XFRM_RPLC - - Both a XFRM and a RPLC relationship.
signs - - This document signs the target document.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 140 concepts

-

FHIRDefinedType

-

Either a resource or a data type

-

This value set defines its own terms in the system http://hl7.org/fhir/defined-types

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
Address - - There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world.
Age - - A duration (length of time) with a UCUM code
Attachment - - For referring to data content defined in other formats.
BackboneElement - - Base definition for all elements that are defined inside a resource - but not those in a data type.
CodeableConcept - - A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
Coding - - A reference to a code defined by a terminology system.
ContactPoint - - Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc.
Count - - A count of a discrete element (no unit)
Distance - - A measure of distance
Duration - - A length of time
Element - - Base definition for all elements in a resource.
ElementDefinition - - Captures constraints on each element within the resource, profile, or extension.
Extension - - Optional Extensions Element - found in all resources.
HumanName - - A human's name with the ability to identify parts and usage.
Identifier - - A technical identifier - identifies some entity uniquely and unambiguously.
Meta - - The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.
Money - - An amount of money. With regard to precision, see [[X]]
Narrative - - A human-readable formatted text, including images.
Period - - A time period defined by a start and end date and optionally time.
Quantity - - A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
Range - - A set of ordered Quantities defined by a low and high limit.
Ratio - - A relationship of two Quantity values - expressed as a numerator and a denominator.
Reference - - A reference from one resource to another.
SampledData - - A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data.
Timing - - Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur.
base64Binary - - A stream of bytes
boolean - - Value of "true" or "false"
code - - A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents
date - - A date, or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates.
dateTime - - A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds may be provided but may also be ignored. Dates SHALL be valid dates.
decimal - - A rational number with implicit precision
id - - Any combination of lowercase letters, numerals, "-" and ".", with a length limit of 36 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Systems SHALL send ids as lower-case but SHOULD interpret them case-insensitively.
instant - - An instant in time - known at least to the second
integer - - A whole number
oid - - An oid represented as a URI
string - - A sequence of Unicode characters
time - - A time during the day, with no date specified
uri - - String of characters used to identify a name or a resource
uuid - - A UUID, represented as a URI
Alert - - Prospective warnings of potential issues when providing care to the patient.
AllergyIntolerance - - Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.
Appointment - - A scheduled healthcare event for a patient and/or practitioner(s) where a service may take place at a specific date/time.
AppointmentResponse - - A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.
Basic - - Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
Binary - - A binary resource can contain any content, whether text, image, pdf, zip archive, etc.
BodySite - - Record details about the anatomical location of a specimen or body part, including precise localisation information. This resource may be used when a coded concept does not provide the necessary detail needed for the use case.
Bundle - - A container for a group of resources.
CarePlan - - Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions.
CarePlan2 - - Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions.
ClaimResponse - - This resource provides the adjudication details from the processing of a Claim resource.
ClinicalAssessment - - A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow.
Communication - - An occurrence of information being transmitted. E.g., an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition.
CommunicationRequest - - A request to convey information. E.g., the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition.
Composition - - A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement.
ConceptMap - - A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models.
Condition - - Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary.
Conformance - - A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation.
Contract - - A formal agreement between parties regarding the conduct of business, exchange of information or other matters.
Contraindication - - Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient. E.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.
Coverage - - Financial instrument which may be used to pay for or reimburse for health care products and services.
DataElement - - The formal description of a single piece of information that can be gathered and reported.
Device - - This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health.
DeviceComponent - - Describes the characteristics, operational status and capabilities of a medical-related component of a medical device.
DeviceMetric - - Describes a measurement, calculation or setting capability of a medical device.
DeviceUseRequest - - Represents a request for the use of a device.
DeviceUseStatement - - A record of a device being used by a patient where the record is the result of a report from the patient or another clinician.
DiagnosticOrder - - A request for a diagnostic investigation service to be performed.
DiagnosticReport - - The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports.
DocumentManifest - - A manifest that defines a set of documents.
DocumentReference - - A reference to a document.
EligibilityRequest - - This resource provides the insurance eligibility details from the insurer regarding a specified coverage and optionally some class of service.
EligibilityResponse - - This resource provides eligibility and plan details from the processing of an Eligibility resource.
Encounter - - An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.
EnrollmentRequest - - This resource provides the insurance Enrollment details to the insurer regarding a specified coverage.
EnrollmentResponse - - This resource provides Enrollment and plan details from the processing of an Enrollment resource.
EpisodeOfCare - - An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.
ExplanationOfBenefit - - This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided.
ExtensionDefinition - - Defines an extension that can be used in resources.
FamilyHistory - - Significant health events and conditions for people related to the subject relevant in the context of care for the subject.
Goal - - Describes the intended objective(s) of the care.
Group - - Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization.
HealthcareService - - The details of a Healthcare Service available at a location.
ImagingObjectSelection - - A set of DICOM SOP Instances of a patient, selected for some application purpose, e.g., quality assurance, teaching, conference, consulting, etc. Objects selected can be from different studies, but must be of the same patient.
ImagingStudy - - Representation of the content produced in a DICOM imaging study. A study comprises a set of Series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A Series is of only one modality (e.g., X-ray, CT, MR, ultrasound), but a Study may have multiple Series of different modalities.
Immunization - - Immunization event information.
ImmunizationRecommendation - - A patient's point-of-time immunization status and recommendation with optional supporting justification.
InstitutionalClaim - - A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
List - - A set of information summarized from a list of other resources.
Location - - Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated.
Media - - A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.
Medication - - Primarily used for identification and definition of Medication, but also covers ingredients and packaging.
MedicationAdministration - - Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.
MedicationDispense - - Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication.
MedicationPrescription - - An order for both supply of the medication and the instructions for administration of the medicine to a patient.
MedicationStatement - - A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician.
MessageHeader - - The header for a message exchange that is either requesting or responding to an action. The Reference(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle.
NamingSystem - - A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types.
NutritionOrder - - A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident.
Observation - - Measurements and simple assertions made about a patient, device or other subject.
OperationDefinition - - A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction).
OperationOutcome - - A collection of error, warning or information messages that result from a system action.
OralHealthClaim - - A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
Order - - A request to perform an action.
OrderResponse - - A response to an order.
Organization - - A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc.
Other - - Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest.
Patient - - Demographics and other administrative information about a person or animal receiving care or other health-related services.
PaymentNotice - - This resource provides the status of the payment for goods and services rendered, and the request and response resource references.
PaymentReconciliation - - This resource provides payment details and claim references supporting a bulk payment.
PendedRequest - - This resource provides the request and response details for the resource for which the status is to be checked.
Person - - Demographics and administrative information about a person independent of a specific health-related context.
PharmacyClaim - - A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
Practitioner - - A person who is directly or indirectly involved in the provisioning of healthcare.
Procedure - - An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy.
ProcedureRequest - - A request for a procedure to be performed. May be a proposal or an order.
ProfessionalClaim - - A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
Profile - - A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions.
Provenance - - Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance.
Questionnaire - - A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
QuestionnaireAnswers - - A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
Readjudicate - - This resource provides the request and line items details for the claim which is to be re-adjudicated.
ReferralRequest - - Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organisation.
RelatedPerson - - Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process.
Reversal - - This resource provides the request and response details for the request for which all actions are to be reversed or terminated.
RiskAssessment - - An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.
Schedule - - A container for slot(s) of time that may be available for booking appointments.
SearchParameter - - A Search Parameter that defines a named search item that can be used to search/filter on a resource.
SecurityEvent - - A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.
Slot - - A slot of time on a schedule that may be available for booking appointments.
Specimen - - Sample for analysis.
StatusRequest - - This resource provides the request and response details for the resource for which the processing status is to be checked.
StatusResponse - - This resource provides processing status, errors and notes from the processing of a resource.
StructureDefinition - - A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions.
Subscription - - Todo.
Substance - - A homogeneous material with a definite composition.
Supply - - A supply - a request for something, and provision of what is supplied.
SupportingDocumentation - - This resource provides the supporting information for a process, for example clinical or financial information related to a claim or pre-authorization.
ValueSet - - A value set specifies a set of codes drawn from one or more code systems.
VisionClaim - - A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
VisionPrescription - - An authorization for the supply of glasses and/or contact lenses to a patient.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

ListStatusCodes

-

Codes providing the status of a list

-

This value set defines its own terms in the system http://hl7.org/fhir/list-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
preliminary - - This is an initial or interim observation: data may be incomplete or unverified.
final - - The observation is complete and verified by an authorized person.
amended - - The observation has been modified subsequent to being Final, and is complete and verified by an authorized person.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

BindingConformance

-

Binding conformance for applications

-

This value set defines its own terms in the system http://hl7.org/fhir/binding-conformance

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
required - - Only codes in the specified set are allowed. If the binding is extensible, other codes may be used for concepts not covered by the bound set of codes.
preferred - - For greater interoperability, implementers are strongly encouraged to use the bound set of codes, however alternate codes may be used in derived profiles and implementations if necessary without being considered non-conformant.
example - - The codes in the set are an example to illustrate the meaning of the field. There is no particular preference for its use nor any assertion that the provided values are sufficient to meet implementation needs.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 9 concepts

-

EncounterClass

-

Classification of the encounter

-

This value set defines its own terms in the system http://hl7.org/fhir/encounter-class

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
inpatient - - An encounter during which the patient is hospitalized and stays overnight.
outpatient - - An encounter during which the patient is not hospitalized overnight.
ambulatory - - An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit.
emergency - - An encounter where the patient needs urgent care.
home - - An encounter where the practitioner visits the patient at his/her home.
field - - An encounter taking place outside the regular environment for giving care.
daytime - - An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight.
virtual - - An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact.
other - - Any other encounter type that is not described by one of the other values. Where this is used it is expected that an implementer will include an extension value to define what the actual other type is.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 4 concepts

-

SecurityEventObjectType

-

Code for the participant object type being audited

-

This value set defines its own terms in the system http://hl7.org/fhir/object-type

- - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
1 - - Person.
2 - - System Object.
3 - - Organization.
4 - - Other.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

SystemRestfulInteraction

-

Operations supported by REST at the system level

-

This value set includes codes defined in other code systems, using the following rules:

-
    -
  • Include these codes as defined in http://hl7.org/fhir/restful-interaction - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display -
    transactiontransactionUpdate, create or delete a set of resources as a single transaction
    search-systemsearch-systemSearch all resources based on some filter criteria
    history-systemhistory-systemRetrieve the update history for all resources on a system
    -
  • -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 4 concepts

-

SubscriptionStatus

-

The status of a subscription

-

This value set defines its own terms in the system http://hl7.org/fhir/subscription-status

- - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
requested - - The client has requested the subscription, and the server has not yet set it up.
active - - The subscription is active.
error - - The server has an error executing the notification.
off - - Too many errors have occurred or the subscription has expired.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 2 concepts

-

OperationKind

-

Whether an operation is a normal operation or a query

-

This value set defines its own terms in the system http://hl7.org/fhir/operation-kind

- - - - - - - - - - - - - -
- Code - - Definition -
operation - - This operation is invoked as an operation.
query - - This operation is a named query, invoked using the search mechanism.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 4 concepts

-

DeviceMetricCalibrationType

-

Describes the type of a metric calibration

-

This value set defines its own terms in the system http://hl7.org/fhir/metric-calibration-type

- - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
unspecified - - TODO.
offset - - TODO.
gain - - TODO.
two-point - - TODO.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 6 concepts

-

ParticipantStatus

-

The Participation status of an appointment

-

This value set defines its own terms in the system http://hl7.org/fhir/participantstatus

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
accepted - - The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse.
declined - - The appointment participant has declined the appointment.
tentative - - The appointment participant has tentatively accepted the appointment.
in-process - - The participant has in-process the appointment.
completed - - The participant has completed the appointment.
needs-action - - This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 6 concepts

-

ReferralStatus

-

The status of the referral

-

This value set defines its own terms in the system http://hl7.org/fhir/referralstatus

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
draft - - A draft referral that has yet to be send.
sent - - The referral has been transmitted, but not yet acknowledged by the recipient.
active - - The referral has been acknowledged by the recipient, and is in the process of being actioned.
cancelled - - The referral has been cancelled without being completed. For example it is no longer needed.
refused - - The recipient has declined to accept the referral.
completed - - The referral has been completely actioned.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 4 concepts

-

AddressUse

-

The use of an address

-

This value set defines its own terms in the system http://hl7.org/fhir/address-use

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition - - - v2 Map (0190) - - - - v3 Map (AddressUse) - -
home - - A communication address at a home. - ~ - H - - = - H -
work - - An office address. First choice for business related contacts during business hours. - ~ - O - - = - WP -
temp - - A temporary address. The period can provide more detailed information. - ~ - C - - = - TMP -
old - - This address is no longer in use (or was never correct, but retained for records). - > - BA - (unclear about old addresses) - - < - OLD - (Bad or Old) -
- < - BAD - (Bad or Old) -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 3 concepts

-

ResourceDataElementStatus

-

The lifecycle status of a Resource data element

-

This value set defines its own terms in the system http://hl7.org/fhir/resource-observation-def-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
draft - - This data element is still under development.
active - - This data element is ready for normal use.
retired - - This data element has been deprecated, withdrawn or superseded and should no longer be used.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - - - - - - - - - -
-

This value set contains 4 concepts

-

CompositionAttestationMode

-

The way in which a person authenticated a composition

-

This value set defines its own terms in the system http://hl7.org/fhir/composition-attestation-mode

- - - - - - - - - - - - - - - - - - - - - -
- Code - - Definition -
personal - - The person authenticated the content in their personal capacity.
professional - - The person authenticated the content in their professional capacity.
legal - - The person authenticated the content and accepted legal responsibility for its content.
official - - The organization authenticated the content as consistent with their policies and procedures.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
@@ -57281,14 +53793,14 @@ alter the observations in the prior document."/> - - + +

This value set contains 24 concepts

-

SecurityEventObjectRole

+

AuditEventObjectRole

Code representing the functional application role of Participant Object being audited

This value set defines its own terms in the system http://hl7.org/fhir/object-role

@@ -57474,28 +53986,30 @@ alter the observations in the prior document."/>
- - + + - + - + - - - - - - - - + + + + + + + + + + - + - - + + @@ -57626,23 +54140,268 @@ alter the observations in the prior document."/> - + - - + + + + + +
+

This value set contains 6 concepts

+

AppointmentStatus

+

The free/busy status of an appointment

+

This value set defines its own terms in the system http://hl7.org/fhir/appointmentstatus

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
pending + + PendingSome or all of the participant(s) have not finalized their acceptance of the appointment request.
booked + + BookedAll participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified.
arrived + + ArrivedSome of the patients have arrived.
fulfilled + + FulfilledThis appointment has completed and may have resulted in an encounter.
cancelled + + CancelledThe appointment has been cancelled.
noshow + + No ShowSome or all of the participant(s) have not/did not appear for the appointment (usually the patient).
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

NarrativeStatus

+

The status of a resource narrative

+

This value set defines its own terms in the system http://hl7.org/fhir/narrative-status

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
generated + + GeneratedThe contents of the narrative are entirely generated from the structured data in the resource.
extensions + + ExtensionsThe contents of the narrative are entirely generated from the structured data in the resource and some of the content is generated from extensions.
additional + + AdditionalThe contents of the narrative contain additional information not found in the structured data.
empty + + Emptythe contents of the narrative are some equivalent of "No human-readable text provided for this resource".
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + +

This value set contains 3 concepts

-

CarePlanStatus

+

CarePlan2Status

Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.

-

This value set defines its own terms in the system http://hl7.org/fhir/care-plan-status

+

This value set defines its own terms in the system http://hl7.org/fhir/care-plan2-status

+ @@ -57651,58 +54410,66 @@ alter the observations in the prior document."/> + + +
Code + Display + Definition planned Planned The plan is in development or awaiting use but is not yet intended to be acted upon.
active Active The plan is intended to be followed and used as part of patient care.
completed Completed The plan is no longer in use and is not expected to be followed or used in patient care.
- - + + - + - + - - - - - - - - + + + + + + + + + + - + - - + + - + + + + @@ -57712,114 +54479,119 @@ alter the observations in the prior document."/> - + - - + +
-

This value set contains 6 concepts

-

CarePlanActivityStatus

-

Indicates where the activity is at in its overall life cycle

-

This value set defines its own terms in the system http://hl7.org/fhir/care-plan-activity-status

+

This value set contains 5 concepts

+

SupplyStatus

+

Status of the supply

+

This value set defines its own terms in the system http://hl7.org/fhir/valueset-supply-status

+ - - + + - - + + - - + + - - - - - - + + - + +
Code + Display + Definition
not-started - + requested + Activity is planned but no action has yet been taken.RequestedSupply has been requested, but not dispensed.
scheduled - + dispensed + Appointment or other booking has occurred but activity has not yet begun.DispensedSupply is part of a pharmacy order and has been dispensed.
in-progress - + received + Activity has been started but is not yet complete.ReceivedSupply has been received by the requestor.
on-hold - + failed + Activity was started but has temporarily ceased with an expectation of resumption at a future time.
completed - - The activities have been completed (more or less) as planned.FailedThe supply will not be completed because the supplier was unable or unwilling to supply the item.
cancelled The activities have been ended prior to completion (perhaps even before they were started).CancelledThe orderer of the supply cancelled the request.
- - + + - + - + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - + + + - - + + + - - + + + - - - - - - + + + - + +
@@ -57828,94 +54600,143 @@ alter the observations in the prior document."/> - + - - + +
-

This value set contains 4 concepts

-

Use

-

Complete, proposed, exploratory, other

-

This value set defines its own terms in the system http://hl7.org/fhir/use-link

+

This value set contains 7 concepts

+

ObservationStatus

+

Codes providing the status of an observation

+

This value set defines its own terms in the system http://hl7.org/fhir/observation-status

+ - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + +
Code + Display + Definition
complete - + registered + The treatment is complete and this represents a Claim for the services.RegisteredThe existence of the observation is registered, but there is no result yet available.
proposed - + preliminary + The treatment is proposed and this represents a Pre-authorization for the services.PreliminaryThis is an initial or interim observation: data may be incomplete or unverified.
exploratory - + final + The treatment is proposed and this represents a Pre-determination for the services.FinalThe observation is complete and verified by an authorized person.
other - + amended + A locally defined or otherwise resolved status.AmendedThe observation has been modified subsequent to being Final, and is complete and verified by an authorized person.
cancelled + + CancelledThe observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted").
entered-in-error + + Entered In ErrorThe observation has been withdrawn following previous Final release.
unknown + + UnknownThe observation status is unknown. Note that "unknown" is a value of last resort and every attempt should be made to provide a meaningful value other than "unknown".
- - + + - + - + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - + + + - - + + + - - + + + - - + + + + + + + + + + + + + + + + + +
@@ -57924,20 +54745,217 @@ alter the observations in the prior document."/> - + - - + +
-

This value set contains 6 concepts

-

USLabCountry

-

ISO 3 letter codes

+

This value set contains 3 concepts

+

NoteType

+

The presentation types of notes

+

This value set defines its own terms in the system http://hl7.org/fhir/NT-link

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
display + + DisplayDisplay the note.
print + + PrintPrint the note on the form.
printoper + + PrintoperPrint the note for the operator.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 3 concepts

+

LocationStatus

+

Indicates whether the location is still in use

+

This value set defines its own terms in the system http://hl7.org/fhir/location-status

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
active + + ActiveThe location is operational.
suspended + + SuspendedThe location is temporarily closed.
inactive + + InactiveThe location is no longer used.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

InstanceAvailability

+

Availability of the resource

+

+ Copyright Statement: These codes are excerpted from Digital Imaging and Communications in Medicine (DICOM) Standard, Part 16: Content Mapping Resource, Copyright 2011 by the National Electrical Manufacturers Association +

This value set includes codes defined in other code systems, using the following rules:

    -
  • Include these codes as defined in http://www.iso.org/iso/country_codes.htm +
  • Include these codes as defined in http://nema.org/dicom/dicm + - - - + + - - - + + - - - + + - - - - - - - - - - - + +
    @@ -57946,87 +54964,87 @@ alter the observations in the prior document."/> Display + Definition +
    USAUnited States + ONLINEO N L I N EResources are immediately available,.
    MEXMexico + OFFLINEO F F L I N EResources need to be retrieved by manual intervention.
    CANCanada + NEARLINEN E A R L I N EResources need to be retrieved from relatively slow media.
    BMUBermuda -
    PRIPuerto Rico -
    GUMGuam + UNAVAILABLEU N A V A I L A B L EResources cannot be retrieved.
- - + + - + - + - - - - - - - - - + + + + + + + + + + + + - + - + - - + + + + + - - + + + + + - - + + + + + - - - - - - - - - - + + + + + @@ -58036,104 +55054,107 @@ alter the observations in the prior document."/> - + - - + +
-

This value set contains 5 concepts

-

CommunicationStatus

-

The status of the communication

-

This value set defines its own terms in the system http://hl7.org/fhir/communication-status

+

This value set contains 4 concepts

+

QuantityComparator

+

How the Quantity should be understood and represented

+

This value set defines its own terms in the system http://hl7.org/fhir/quantity-comparator

+ - - + + - - + + - - + + - - - - - - + +
Code + Display + Definition
in-progress - + < + The communication transmission is ongoing. The actual value is less than the given value.
completed - + <= + The message transmission is complete, i.e., delivered to the recipient's destination. The actual value is less than or equal to the given value.
suspended - + >= + The communication transmission has been held by originating system/user request. The actual value is greater than or equal to the given value.
rejected - + > + The receiving system has declined to accept the message.
failed - - There was a failure in transmitting the message out. The actual value is greater than the given value.
- - + + - + - + - - - - - - - - - + + + + + + + + + + + - + - - + + - + - - + + + - - + + + - - + + + - - - - - - + + +
@@ -58142,18 +55163,395 @@ alter the observations in the prior document."/> - + - - + +
-

This value set contains 101 concepts

-

ResourceType

-

One of the resource types defined as part of FHIR

-

This value set defines its own terms in the system http://hl7.org/fhir/resource-types

+

This value set contains 3 concepts

+

TransactionProcessingMode

+

Defines how a match URL should be used when processing a transaction

+

This value set defines its own terms in the system http://hl7.org/fhir/transaction-processing-mode

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
ignore + + ignoreIf a matching resource is found, then ignore the resource and do not process it as part of the transaction (and return the matching resource information in the transaction response).
update + + updateIf a matching resource is found, then update it with this resource, otherwise create a new one.
delete + + deleteIf a resource matching the information provided is found, delete it. If no matching resource is found, the transaction fails.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 8 concepts

+

SearchParamType

+

Data types allowed to be used for search parameters

+

This value set defines its own terms in the system http://hl7.org/fhir/search-param-type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
number + + NumberSearch parameter SHALL be a number (a whole number, or a decimal).
date + + Date/DateTimeSearch parameter is on a date/time. The date format is the standard XML format, though other formats may be supported.
string + + StringSearch parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces.
token + + TokenSearch parameter on a coded element or identifier. May be used to search through the text, displayname, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a "|", depending on the modifier used.
reference + + ReferenceA reference to another resource.
composite + + CompositeA composite search parameter that combines a search on two values together.
quantity + + QuantityA search parameter that searches on a quantity.
uri + + URIA search parameter that searches on a URI (RFC 3986).
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 5 concepts

+

XDSRelationshipType

+

The kind of relationship between two XDS documents

+

This value set defines its own terms in the system http://hl7.org/fhir/xds-relationship-type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
APND + + A P N DA separate XDS Document that references a prior document, and may extend or +alter the observations in the prior document.
RPLC + + R P L CA new version of an existing document.
XFRM + + X F R MA transformed document is derived by a machine translation from some other format.
XFRM_RPLC + + X F R M R P L CBoth a XFRM and a RPLC relationship.
signs + + SignsThis document signs the target document.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 136 concepts

+

FHIRDefinedType

+

Either a resource or a data type

+

This value set defines its own terms in the system http://hl7.org/fhir/defined-types

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - + - + - - - - - - - - + + + + + + + + - - - - - + - - - - - - - - - - - - - - - - - - - - - + - +
@@ -58163,6 +55561,246 @@ alter the observations in the prior document."/> Definition
Address + + There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world.
Age + + A duration (length of time) with a UCUM code
Attachment + + For referring to data content defined in other formats.
BackboneElement + + Base definition for all elements that are defined inside a resource - but not those in a data type.
CodeableConcept + + A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
Coding + + A reference to a code defined by a terminology system.
ContactPoint + + Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc.
Count + + A count of a discrete element (no unit)
Distance + + A measure of distance
Duration + + A length of time
Element + + Base definition for all elements in a resource.
ElementDefinition + + Captures constraints on each element within the resource, profile, or extension.
Extension + + Optional Extensions Element - found in all resources.
HumanName + + A human's name with the ability to identify parts and usage.
Identifier + + A technical identifier - identifies some entity uniquely and unambiguously.
Meta + + The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.
Money + + An amount of money. With regard to precision, see [[X]]
Narrative + + A human-readable formatted text, including images.
Period + + A time period defined by a start and end date and optionally time.
Quantity + + A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
Range + + A set of ordered Quantities defined by a low and high limit.
Ratio + + A relationship of two Quantity values - expressed as a numerator and a denominator.
Reference + + A reference from one resource to another.
SampledData + + A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data.
Signature + + An XML digital signature along with supporting context.
Timing + + Specifies an event that may occur multiple times. Timing schedules are used to record when things are expected or requested to occur.
base64Binary + + A stream of bytes
boolean + + Value of "true" or "false"
code + + A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents
date + + A date, or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates.
dateTime + + A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates.
decimal + + A rational number with implicit precision
id + + Any combination of lowercase letters, numerals, "-" and ".", with a length limit of 36 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Systems SHALL send ids as lower-case but SHOULD interpret them case-insensitively.
instant + + An instant in time - known at least to the second
integer + + A whole number
oid + + An oid represented as a URI
string + + A sequence of Unicode characters
time + + A time during the day, with no date specified
uri + + String of characters used to identify a name or a resource
uuid + + A UUID, represented as a URI
Alert @@ -58179,7 +55817,7 @@ alter the observations in the prior document."/> Appointment A scheduled healthcare event for a patient and/or practitioner(s) where a service may take place at a specific date/time.A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).
AppointmentResponse @@ -58187,6 +55825,12 @@ alter the observations in the prior document."/> A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.
AuditEvent + + A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.
Basic @@ -58209,7 +55853,7 @@ alter the observations in the prior document."/> Bundle A container for a group of resources.A container for a collection of resources.
CarePlan @@ -58329,7 +55973,7 @@ alter the observations in the prior document."/> DiagnosticOrder A request for a diagnostic investigation service to be performed.A record of a request for a diagnostic investigation service to be performed.
DiagnosticReport @@ -58391,12 +56035,6 @@ alter the observations in the prior document."/> This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided.
ExtensionDefinition - - Defines an extension that can be used in resources.
FamilyHistory @@ -58583,12 +56221,6 @@ alter the observations in the prior document."/> This resource provides payment details and claim references supporting a bulk payment.
PendedRequest - - This resource provides the request and response details for the resource for which the status is to be checked.
Person @@ -58619,23 +56251,29 @@ alter the observations in the prior document."/> A request for a procedure to be performed. May be a proposal or an order.
ProcessRequest + + This resource provides the target, request and response, and action details for an action to be performed by the target on or about existing resources.
ProcessResponse + + This resource provides processing status, errors and notes from the processing of a resource.
ProfessionalClaim A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
Profile - - A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions.
Provenance Provenance information that describes the activity that led to the creation of a set of resources. This information can be used to help determine their reliability or trace where the information in them came from. The focus of the provenance resource is record keeping, audit and traceability, and not explicit statements of clinical significance.Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g., Document Completion - has the artifact been legally authenticated), all of which may impact Security, Privacy, and Trust policies.
Questionnaire @@ -58649,12 +56287,6 @@ alter the observations in the prior document."/> A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
Readjudicate - - This resource provides the request and line items details for the claim which is to be re-adjudicated.
ReferralRequest @@ -58667,12 +56299,6 @@ alter the observations in the prior document."/> Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process.
Reversal - - This resource provides the request and response details for the request for which all actions are to be reversed or terminated.
RiskAssessment @@ -58691,12 +56317,6 @@ alter the observations in the prior document."/> A Search Parameter that defines a named search item that can be used to search/filter on a resource.
SecurityEvent - - A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.
Slot @@ -58709,29 +56329,17 @@ alter the observations in the prior document."/> Sample for analysis.
StatusRequest - - This resource provides the request and response details for the resource for which the processing status is to be checked.
StatusResponse - - This resource provides processing status, errors and notes from the processing of a resource.
StructureDefinition A Resource Profile - a statement of use of one or more FHIR Resources. It may include constraints on Resources and Data Types, Terminology Binding Statements and Extension Definitions.A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions, and constraints on resources and data types.
Subscription Todo.The subscription resource is used to define a push based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined "channel" so that another system is able to take an appropriate action.
Substance @@ -58772,31 +56380,193 @@ alter the observations in the prior document."/>
- - + + - + - + - - - - - - - - - + + + + + + + + + + + - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -58807,12 +56577,16 @@ alter the observations in the prior document."/> - + + + + + @@ -58827,7 +56601,7 @@ alter the observations in the prior document."/> - + @@ -58907,7 +56681,7 @@ alter the observations in the prior document."/> - + @@ -58949,10 +56723,6 @@ alter the observations in the prior document."/> - - - - @@ -59078,8 +56848,2997 @@ alter the observations in the prior document."/> - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 3 concepts

+

ListStatusCodes

+

Codes providing the status of a list

+

This value set defines its own terms in the system http://hl7.org/fhir/list-status

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
preliminary + + PreliminaryThis is an initial or interim observation: data may be incomplete or unverified.
final + + FinalThe observation is complete and verified by an authorized person.
amended + + AmendedThe observation has been modified subsequent to being Final, and is complete and verified by an authorized person.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 5 concepts

+

AuditEventParticipantNetworkType

+

The type of network access point that originated the audit event

+

This value set defines its own terms in the system http://hl7.org/fhir/network-type

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
1 + + Machine Name, including DNS name.
2 + + IP Address.
3 + + Telephone Number.
4 + + Email address.
5 + + URI (User directory, HTTP-PUT, ftp, etc.).
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 3 concepts

+

BindingConformance

+

Binding conformance for applications

+

This value set defines its own terms in the system http://hl7.org/fhir/binding-conformance

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
required + + RequiredOnly codes in the specified set are allowed. If the binding is extensible, other codes may be used for concepts not covered by the bound set of codes.
preferred + + PreferredFor greater interoperability, implementers are strongly encouraged to use the bound set of codes, however alternate codes may be used in derived profiles and implementations if necessary without being considered non-conformant.
example + + ExampleThe codes in the set are an example to illustrate the meaning of the field. There is no particular preference for its use nor any assertion that the provided values are sufficient to meet implementation needs.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 9 concepts

+

EncounterClass

+

Classification of the encounter

+

This value set defines its own terms in the system http://hl7.org/fhir/encounter-class

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
inpatient + + InpatientAn encounter during which the patient is hospitalized and stays overnight.
outpatient + + OutpatientAn encounter during which the patient is not hospitalized overnight.
ambulatory + + AmbulatoryAn encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit.
emergency + + EmergencyAn encounter where the patient needs urgent care.
home + + HomeAn encounter where the practitioner visits the patient at his/her home.
field + + FieldAn encounter taking place outside the regular environment for giving care.
daytime + + DaytimeAn encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight.
virtual + + VirtualAn encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact.
other + + OtherAny other encounter type that is not described by one of the other values. Where this is used it is expected that an implementer will include an extension value to define what the actual other type is.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

AuditEventOutcome

+

Indicates whether the event succeeded or failed

+

This value set defines its own terms in the system http://hl7.org/fhir/audit-event-outcome

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
0 + + SuccessThe operation completed successfully (whether with warnings or not).
4 + + Minor failureThe action was not successful due to some kind of catered for error (often equivalent to an HTTP 400 response).
8 + + Serious failureThe action was not successful due to some kind of unexpected error (often equivalent to an HTTP 500 response).
12 + + Major failureAn error of such magnitude occurred that the system is not longer available for use (i.e. the system died).
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 3 concepts

+

SystemRestfulInteraction

+

Operations supported by REST at the system level

+

This value set includes codes defined in other code systems, using the following rules:

+
    +
  • Include these codes as defined in http://hl7.org/fhir/restful-interaction + + + + + + + + + + + + + + + + + + + + +
    + Code + + Display +
    transactionTransactionUpdate, create or delete a set of resources as a single transaction
    search-systemSearch SystemSearch all resources based on some filter criteria
    history-systemHistory SystemRetrieve the update history for all resources on a system
    +
  • +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

SubscriptionStatus

+

The status of a subscription

+

This value set defines its own terms in the system http://hl7.org/fhir/subscription-status

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
requested + + RequestedThe client has requested the subscription, and the server has not yet set it up.
active + + ActiveThe subscription is active.
error + + ErrorThe server has an error executing the notification.
off + + OffToo many errors have occurred or the subscription has expired.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 2 concepts

+

OperationKind

+

Whether an operation is a normal operation or a query

+

This value set defines its own terms in the system http://hl7.org/fhir/operation-kind

+ + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
operation + + OperationThis operation is invoked as an operation.
query + + QueryThis operation is a named query, invoked using the search mechanism.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

DeviceMetricCalibrationType

+

Describes the type of a metric calibration

+

This value set defines its own terms in the system http://hl7.org/fhir/metric-calibration-type

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
unspecified + + UnspecifiedTODO.
offset + + OffsetTODO.
gain + + GainTODO.
two-point + + Two PointTODO.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 6 concepts

+

ParticipantStatus

+

The Participation status of an appointment

+

This value set defines its own terms in the system http://hl7.org/fhir/participantstatus

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
accepted + + AcceptedThe appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse.
declined + + DeclinedThe appointment participant has declined the appointment.
tentative + + TentativeThe appointment participant has tentatively accepted the appointment.
in-process + + In ProcessThe participant has in-process the appointment.
completed + + CompletedThe participant has completed the appointment.
needs-action + + Needs ActionThis is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 6 concepts

+

ReferralStatus

+

The status of the referral

+

This value set defines its own terms in the system http://hl7.org/fhir/referralstatus

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
draft + + DraftA draft referral that has yet to be send.
sent + + SentThe referral has been transmitted, but not yet acknowledged by the recipient.
active + + ActiveThe referral has been acknowledged by the recipient, and is in the process of being actioned.
cancelled + + CancelledThe referral has been cancelled without being completed. For example it is no longer needed.
rejected + + RejectedThe recipient has declined to accept the referral.
completed + + CompletedThe referral has been completely actioned.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

AddressUse

+

The use of an address

+

This value set defines its own terms in the system http://hl7.org/fhir/address-use

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition + + + v3 Map (AddressUse) + + + + v2 Map (0190) + +
home + + HomeA communication address at a home. + = + H + + ~ + H +
work + + WorkAn office address. First choice for business related contacts during business hours. + = + WP + + ~ + O +
temp + + TempA temporary address. The period can provide more detailed information. + = + TMP + + ~ + C +
old + + OldThis address is no longer in use (or was never correct, but retained for records). + < + OLD + (Bad or Old) +
+ < + BAD + (Bad or Old) +
+ > + BA + (unclear about old addresses) +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

CompositionAttestationMode

+

The way in which a person authenticated a composition

+

This value set defines its own terms in the system http://hl7.org/fhir/composition-attestation-mode

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
personal + + PersonalThe person authenticated the content in their personal capacity.
professional + + ProfessionalThe person authenticated the content in their professional capacity.
legal + + LegalThe person authenticated the content and accepted legal responsibility for its content.
official + + OfficialThe organization authenticated the content as consistent with their policies and procedures.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 3 concepts

+

CarePlanStatus

+

Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.

+

This value set defines its own terms in the system http://hl7.org/fhir/care-plan-status

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
planned + + PlannedThe plan is in development or awaiting use but is not yet intended to be acted upon.
active + + ActiveThe plan is intended to be followed and used as part of patient care.
completed + + CompletedThe plan is no longer in use and is not expected to be followed or used in patient care.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 6 concepts

+

CarePlanActivityStatus

+

Indicates where the activity is at in its overall life cycle

+

This value set defines its own terms in the system http://hl7.org/fhir/care-plan-activity-status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
not-started + + Not StartedActivity is planned but no action has yet been taken.
scheduled + + ScheduledAppointment or other booking has occurred but activity has not yet begun.
in-progress + + In ProgressActivity has been started but is not yet complete.
on-hold + + On HoldActivity was started but has temporarily ceased with an expectation of resumption at a future time.
completed + + CompletedThe activities have been completed (more or less) as planned.
cancelled + + CancelledThe activities have been ended prior to completion (perhaps even before they were started).
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 4 concepts

+

Use

+

Complete, proposed, exploratory, other

+

This value set defines its own terms in the system http://hl7.org/fhir/use-link

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
complete + + CompleteThe treatment is complete and this represents a Claim for the services.
proposed + + ProposedThe treatment is proposed and this represents a Pre-authorization for the services.
exploratory + + ExploratoryThe treatment is proposed and this represents a Pre-determination for the services.
other + + OtherA locally defined or otherwise resolved status.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 5 concepts

+

CommunicationStatus

+

The status of the communication

+

This value set defines its own terms in the system http://hl7.org/fhir/communication-status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
in-progress + + In ProgressThe communication transmission is ongoing.
completed + + CompletedThe message transmission is complete, i.e., delivered to the recipient's destination.
suspended + + SuspendedThe communication transmission has been held by originating system/user request.
rejected + + RejectedThe receiving system has declined to accept the message.
failed + + FailedThere was a failure in transmitting the message out.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 96 concepts

+

ResourceType

+

One of the resource types defined as part of FHIR

+

This value set defines its own terms in the system http://hl7.org/fhir/resource-types

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Definition +
Alert + + Prospective warnings of potential issues when providing care to the patient.
AllergyIntolerance + + Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.
Appointment + + A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).
AppointmentResponse + + A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.
AuditEvent + + A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.
Basic + + Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
Binary + + A binary resource can contain any content, whether text, image, pdf, zip archive, etc.
BodySite + + Record details about the anatomical location of a specimen or body part, including precise localisation information. This resource may be used when a coded concept does not provide the necessary detail needed for the use case.
Bundle + + A container for a collection of resources.
CarePlan + + Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions.
CarePlan2 + + Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions.
ClaimResponse + + This resource provides the adjudication details from the processing of a Claim resource.
ClinicalAssessment + + A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow.
Communication + + An occurrence of information being transmitted. E.g., an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition.
CommunicationRequest + + A request to convey information. E.g., the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition.
Composition + + A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement.
ConceptMap + + A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models.
Condition + + Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary.
Conformance + + A conformance statement is a set of requirements for a desired implementation or a description of how a target application fulfills those requirements in a particular implementation.
Contract + + A formal agreement between parties regarding the conduct of business, exchange of information or other matters.
Contraindication + + Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient. E.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.
Coverage + + Financial instrument which may be used to pay for or reimburse for health care products and services.
DataElement + + The formal description of a single piece of information that can be gathered and reported.
Device + + This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health.
DeviceComponent + + Describes the characteristics, operational status and capabilities of a medical-related component of a medical device.
DeviceMetric + + Describes a measurement, calculation or setting capability of a medical device.
DeviceUseRequest + + Represents a request for the use of a device.
DeviceUseStatement + + A record of a device being used by a patient where the record is the result of a report from the patient or another clinician.
DiagnosticOrder + + A record of a request for a diagnostic investigation service to be performed.
DiagnosticReport + + The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretation, and formatted representation of diagnostic reports.
DocumentManifest + + A manifest that defines a set of documents.
DocumentReference + + A reference to a document.
EligibilityRequest + + This resource provides the insurance eligibility details from the insurer regarding a specified coverage and optionally some class of service.
EligibilityResponse + + This resource provides eligibility and plan details from the processing of an Eligibility resource.
Encounter + + An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.
EnrollmentRequest + + This resource provides the insurance Enrollment details to the insurer regarding a specified coverage.
EnrollmentResponse + + This resource provides Enrollment and plan details from the processing of an Enrollment resource.
EpisodeOfCare + + An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.
ExplanationOfBenefit + + This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided.
FamilyHistory + + Significant health events and conditions for people related to the subject relevant in the context of care for the subject.
Goal + + Describes the intended objective(s) of the care.
Group + + Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized. I.e. A collection of entities that isn't an Organization.
HealthcareService + + The details of a Healthcare Service available at a location.
ImagingObjectSelection + + A set of DICOM SOP Instances of a patient, selected for some application purpose, e.g., quality assurance, teaching, conference, consulting, etc. Objects selected can be from different studies, but must be of the same patient.
ImagingStudy + + Representation of the content produced in a DICOM imaging study. A study comprises a set of Series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A Series is of only one modality (e.g., X-ray, CT, MR, ultrasound), but a Study may have multiple Series of different modalities.
Immunization + + Immunization event information.
ImmunizationRecommendation + + A patient's point-of-time immunization status and recommendation with optional supporting justification.
InstitutionalClaim + + A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
List + + A set of information summarized from a list of other resources.
Location + + Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated.
Media + + A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.
Medication + + Primarily used for identification and definition of Medication, but also covers ingredients and packaging.
MedicationAdministration + + Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.
MedicationDispense + + Dispensing a medication to a named patient. This includes a description of the supply provided and the instructions for administering the medication.
MedicationPrescription + + An order for both supply of the medication and the instructions for administration of the medicine to a patient.
MedicationStatement + + A record of medication being taken by a patient, or that the medication has been given to a patient where the record is the result of a report from the patient or another clinician.
MessageHeader + + The header for a message exchange that is either requesting or responding to an action. The Reference(s) that are the subject of the action as well as other Information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle.
NamingSystem + + A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types.
NutritionOrder + + A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident.
Observation + + Measurements and simple assertions made about a patient, device or other subject.
OperationDefinition + + A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction).
OperationOutcome + + A collection of error, warning or information messages that result from a system action.
OralHealthClaim + + A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
Order + + A request to perform an action.
OrderResponse + + A response to an order.
Organization + + A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc.
Other + + Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest.
Patient + + Demographics and other administrative information about a person or animal receiving care or other health-related services.
PaymentNotice + + This resource provides the status of the payment for goods and services rendered, and the request and response resource references.
PaymentReconciliation + + This resource provides payment details and claim references supporting a bulk payment.
Person + + Demographics and administrative information about a person independent of a specific health-related context.
PharmacyClaim + + A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
Practitioner + + A person who is directly or indirectly involved in the provisioning of healthcare.
Procedure + + An action that is performed on a patient. This can be a physical 'thing' like an operation, or less invasive like counseling or hypnotherapy.
ProcedureRequest + + A request for a procedure to be performed. May be a proposal or an order.
ProcessRequest + + This resource provides the target, request and response, and action details for an action to be performed by the target on or about existing resources.
ProcessResponse + + This resource provides processing status, errors and notes from the processing of a resource.
ProfessionalClaim + + A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
Provenance + + Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g., Document Completion - has the artifact been legally authenticated), all of which may impact Security, Privacy, and Trust policies.
Questionnaire + + A structured set of questions intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
QuestionnaireAnswers + + A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.
ReferralRequest + + Used to record and send details about a request for referral service or transfer of a patient to the care of another provider or provider organisation.
RelatedPerson + + Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process.
RiskAssessment + + An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome.
Schedule + + A container for slot(s) of time that may be available for booking appointments.
SearchParameter + + A Search Parameter that defines a named search item that can be used to search/filter on a resource.
Slot + + A slot of time on a schedule that may be available for booking appointments.
Specimen + + Sample for analysis.
StructureDefinition + + A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions, and constraints on resources and data types.
Subscription + + The subscription resource is used to define a push based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined "channel" so that another system is able to take an appropriate action.
Substance + + A homogeneous material with a definite composition.
Supply + + A supply - a request for something, and provision of what is supplied.
SupportingDocumentation + + This resource provides the supporting information for a process, for example clinical or financial information related to a claim or pre-authorization.
ValueSet + + A value set specifies a set of codes drawn from one or more code systems.
VisionClaim + + A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
VisionPrescription + + An authorization for the supply of glasses and/or contact lenses to a patient.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -59101,17 +59860,21 @@ alter the observations in the prior document."/> + + + + + + + + - - - - - + @@ -59121,10 +59884,6 @@ alter the observations in the prior document."/> - - - - @@ -59133,10 +59892,6 @@ alter the observations in the prior document."/> - - - - @@ -59149,10 +59904,6 @@ alter the observations in the prior document."/> - - - - @@ -59161,21 +59912,13 @@ alter the observations in the prior document."/> - - - - - - - - - + - + @@ -59210,8 +59953,8 @@ alter the observations in the prior document."/> - - + + @@ -59225,6 +59968,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -59233,58 +59979,66 @@ alter the observations in the prior document."/> Consequence + Consequence The message represents/requests a change that should not be processed more than once. E.g. Making a booking for an appointment. Currency + Currency The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful. Notification + Notification The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + @@ -59296,8 +60050,8 @@ alter the observations in the prior document."/> - - + + @@ -59314,6 +60068,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -59323,6 +60080,7 @@ alter the observations in the prior document."/> equivalent + Equivalent The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical). @@ -59330,6 +60088,7 @@ alter the observations in the prior document."/>   equal + Equal The definitions of the concepts are exactly the same (i.e. only grammatical differences) and structural implications of meaning are identifical or irrelevant (i.e. intensionally identical). @@ -59337,6 +60096,7 @@ alter the observations in the prior document."/> wider + Wider The target mapping is wider in meaning than the source concept. @@ -59344,6 +60104,7 @@ alter the observations in the prior document."/>   subsumes + Subsumes The target mapping subsumes the meaning of the source concept (e.g. the source is-a target). @@ -59351,6 +60112,7 @@ alter the observations in the prior document."/> narrower + Narrower The target mapping is narrower in meaning that the source concept. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally. @@ -59358,6 +60120,7 @@ alter the observations in the prior document."/>   specialises + Specialises The target mapping specialises the meaning of the source concept (e.g. the target is-a source). @@ -59365,6 +60128,7 @@ alter the observations in the prior document."/> inexact + Inexact The target mapping overlaps with the source concept, but both source and target cover additional meaning, or the definitions are imprecise and it is uncertain whether they have the same boundaries to their meaning. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally. @@ -59372,6 +60136,7 @@ alter the observations in the prior document."/> unmatched + Unmatched There is no match for this concept in the destination concept system. @@ -59379,69 +60144,81 @@ alter the observations in the prior document."/>   disjoint + Disjoint This is an explicit assertion that there is no mapping between the source and target concept. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + @@ -59449,89 +60226,13 @@ alter the observations in the prior document."/>
- - - - - - - - - - -
-

This value set contains 2 concepts

-

QuestionnaireGroupSpecialType

-

If specified, indicates that the group should be rendered as a repeating header or footer on each "page" of the questionnaire.

-

This value set defines its own terms in the system http://hl7.org/fhir/special-type

- - - - - - - - - - - - - -
- Code - - Definition -
header - - The group should repeat at the top of each "page" or rendered portion of the questionnaire.
footer - - The group should repeat at the bottom of each "page" or rendered portion of the questionnaire.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - + + @@ -59545,6 +60246,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -59553,94 +60257,245 @@ alter the observations in the prior document."/> SHALL + S H A L L Support for the specified capability is required to be considered conformant. SHOULD + S H O U L D Support for the specified capability is strongly encouraged and failure to support it should only occur after careful consideration. MAY + M A Y Support for the specified capability is not necessary to be considered conformant and the requirement should be considered strictly optional. SHOULD-NOT + S H O U L D N O T Support for the specified capability is strongly discouraged and should occur only after careful consideration. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + + + +
+

This value set contains 6 concepts

+

ProcedureStatus

+

The status of the procedure +
+
Codes representing the possible status for a procedure +

+

This value set defines its own terms in the system http://hl7.org/fhir/procedure-status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
planned + + PlannedThe procedure has been planned.
arrived + + ArrivedThe patient is at the facility but the procedure has not yet been performed.
in-progress + + In ProgressThe procedure is in progress.
stopped + + StoppedThe procedure was stopped before completion.
completed + + CompletedThe procedure has been performed.
cancelled + + CancelledThe procedure has been cancelled.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- - + +

This value set contains 4 concepts

SlotStatus

-

The free/busy status of an appointment

+

The free/busy status of a slot

This value set defines its own terms in the system http://hl7.org/fhir/slotstatus

+ @@ -59649,68 +60504,78 @@ alter the observations in the prior document."/> + + + +
Code + Display + Definition BUSY B U S Y Indicates that the time interval is busy because one or more events have been scheduled for that interval.
FREE F R E E Indicates that the time interval is free for scheduling.
BUSY-UNAVAILABLE B U S Y U N A V A I L A B L E Indicates that the time interval is busy and that the interval can not be scheduled.
BUSY-TENTATIVE B U S Y T E N T A T I V E Indicates that the time interval is busy because one or more events have been tentatively scheduled for that interval.
- + - + - - - - - - - - - + + + + + + + + + + + - + - + + + + + @@ -59722,8 +60587,8 @@ alter the observations in the prior document."/> - - + + @@ -59751,127 +60616,127 @@ alter the observations in the prior document."/> 113000 - Of Interest + Of Interest. 113001 - Rejected for Quality Reasons + Rejected for Quality Reasons. 113002 - For Referring Provider + For Referring Provider. 113003 - For Surgery + For Surgery. 113004 - For Teaching + For Teaching. 113005 - For Conference + For Conference. 113006 - For Therapy + For Therapy. 113007 - For Patient + For Patient. 113008 - For Peer Review + For Peer Review. 113009 - For Research + For Research. 113010 - Quality Issue + Quality Issue. 113013 - Best In Set + Best In Set. 113018 - For Printing + For Printing. 113020 - For Report Attachment + For Report Attachment. 113021 - + For Litigation. 113030 - Manifest + Manifest. 113031 - Signed Manifest + Signed Manifest. 113032 - Complete Study Content + Complete Study Content. 113033 - Signed Complete Study Content + Signed Complete Study Content. 113034 - Complete Acquisition Content + Complete Acquisition Content. 113035 - Signed Complete Acquisition Content + Signed Complete Acquisition Content. 113036 - Group of Frames for Display + Group of Frames for Display. 113037 - Rejected for Patient Safety Reasons + Rejected for Patient Safety Reasons. 113038 - + Incorrect Modality Worklist Entry. 113039 - + Data Retention Policy Expired. @@ -59879,178 +60744,205 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + @@ -60062,8 +60954,8 @@ alter the observations in the prior document."/> - - + + @@ -60077,6 +60969,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -60085,91 +60980,284 @@ alter the observations in the prior document."/> OAuth + O Auth OAuth (see oauth.net). OAuth2 + O Auth OAuth version 2 (see oauth.net). NTLM + N T L M Microsoft NTLM Authentication. Basic + Basic Basic authentication defined in HTTP specification. Kerberos + Kerberos see http://www.ietf.org/rfc/rfc4120.txt. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + +
+ + + + + + + + + + +
+

This value set contains 9 concepts

+

OrderStatus

+

The status of the response to an order

+

This value set defines its own terms in the system http://hl7.org/fhir/order-status

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Lvl + + Code + + Display + + Definition +
1pending + + PendingThe order is known, but no processing has occurred at this time.
1review + + ReviewThe order is undergoing initial processing to determine whether it will be accepted (usually this involves human review).
1rejected + + RejectedThe order was rejected because of a workflow/business logic reason.
1error + + ErrorThe order was unable to be processed because of a technical error (i.e. unexpected error).
1accepted + + AcceptedThe order has been accepted, and work is in progress.
1cancelled + + CancelledProcessing the order was halted at the initiators request.
2  replaced + + ReplacedThe order has been cancelled and replaced by another.
1aborted + + AbortedProcessing the order was stopped because of some workflow/business logic reason.
1completed + + CompletedThe order has been completed.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- - + + @@ -60237,79 +61325,81 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + - + - + - + - + - + - + - + @@ -60325,8 +61415,8 @@ alter the observations in the prior document."/> - - + + @@ -60340,6 +61430,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -60348,121 +61441,260 @@ alter the observations in the prior document."/> proposed + Proposed A goal is proposed for this patient. planned + Planned A goal is planned for this patient. in-progress + In Progress The goal is being sought but has not yet been reached. (Also applies if goal was reached in the past but there has been regression and goal is being sought again). achieved + Achieved The goal has been met and no further action is needed. sustaining + Sustaining The goal has been met, but ongoing activity is needed to sustain the goal objective. cancelled + Cancelled The goal is no longer being sought. accepted + Accepted A proposed goal was accepted. rejected + Rejected A proposed goal was rejected. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + +
+

This value set contains 5 concepts

+

AuditEventAction

+

Indicator for type of action performed during the event that generated the audit.

+

This value set defines its own terms in the system http://hl7.org/fhir/audit-event-action

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
C + + CreateCreate a new database object, such as Placing an Order.
R + + Read/View/PrintDisplay or print data, such as a Doctor Census.
U + + UpdateUpdate data, such as Revise Patient Information.
D + + DeleteDelete items, such as a doctor master file record.
E + + ExecutePerform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- - + + @@ -60546,100 +61778,102 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + @@ -60655,8 +61889,8 @@ alter the observations in the prior document."/> - - + + @@ -60670,6 +61904,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -60678,48 +61915,54 @@ alter the observations in the prior document."/> instance + Instance The Location resource represents a specific instance of a Location. kind + Kind The Location represents a class of Locations. - + - + - - - - - - - - + + + + + + + + + + - + - + + + @@ -60731,8 +61974,8 @@ alter the observations in the prior document."/> - - + + @@ -60746,6 +61989,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -60754,81 +62000,188 @@ alter the observations in the prior document."/> routine + Routine The request has a normal priority. urgent + Urgent The request should be done urgently. stat + Stat The request is time-critical. asap + Asap The request should be acted on as soon as possible. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + + + +
+

This value set contains 3 concepts

+

DeviceMetricOperationalStatus

+

Describes the operational status of the DeviceMetric

+

This value set defines its own terms in the system http://hl7.org/fhir/metric-operational-status

+ + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
on + + OnThe DeviceMetric is operating and will generate DeviceObservations.
off + + OffThe DeviceMetric is not operating.
standby + + StandbyThe DeviceMetric is operating, but will not generate any DeviceObservations.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- - + + @@ -60866,27 +62219,29 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -60910,8 +62265,8 @@ alter the observations in the prior document."/> - - + + @@ -60925,12 +62280,15 @@ alter the observations in the prior document."/> Code + + Display + Definition - v3 Map (ActStatus) + v3 Map (ActStatus) @@ -60938,98 +62296,110 @@ alter the observations in the prior document."/> preliminary + Preliminary This is a preliminary composition or document (also known as initial or interim). The content may be incomplete or unverified. ~ - active + active final + Final The composition or document is complete and verified by an appropriate person, and no further work is planned. > - completed + completed appended + Appended The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. The modifications added new information to the composition or document, but did not revise existing content. > - completed + completed amended + Amended The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. > - completed + completed entered-in-error + Entered In Error The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid. ~ - nullified + nullified - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + @@ -61041,8 +62411,8 @@ alter the observations in the prior document."/> - - + + @@ -61056,6 +62426,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -61064,68 +62437,78 @@ alter the observations in the prior document."/> up + Up top. down + Down bottom. in + In inner edge. out + Out outer edge. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -61137,8 +62520,8 @@ alter the observations in the prior document."/> - - + + @@ -61183,27 +62566,29 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -61232,8 +62617,8 @@ alter the observations in the prior document."/> - - + + @@ -61339,27 +62724,29 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -61408,8 +62795,8 @@ alter the observations in the prior document."/> - - + + @@ -61423,6 +62810,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -61431,68 +62821,78 @@ alter the observations in the prior document."/> replaces + Replaces This document logically replaces or supercedes the target document. transforms + Transforms This document was generated by transforming the target document (e.g. format or language conversion). signs + Signs This document is a signature of the target document. appends + Appends This document adds additional information to the target document. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -61504,8 +62904,8 @@ alter the observations in the prior document."/> - - + + @@ -61519,6 +62919,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -61527,58 +62930,66 @@ alter the observations in the prior document."/> active + Active A current alert that should be displayed to a user. A system may use the category to determine which roles should view the alert. inactive + Inactive The alert does not need to be displayed any more. entered-in-error + Entered In Error The alert was added in error, and should no longer be displayed. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + @@ -61590,8 +63001,8 @@ alter the observations in the prior document."/> - - + + @@ -61636,27 +63047,29 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -61685,8 +63098,8 @@ alter the observations in the prior document."/> - - + + @@ -61700,6 +63113,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -61708,48 +63124,54 @@ alter the observations in the prior document."/> producer + Producer The application produces documents of the specified type. consumer + Consumer The application consumes documents of the specified type. - + - + - - - - - - - - + + + + + + + + + + - + - + + + @@ -61761,8 +63183,8 @@ alter the observations in the prior document."/> - - + + @@ -61776,6 +63198,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -61784,68 +63209,78 @@ alter the observations in the prior document."/> provisional + Provisional This is a tentative diagnosis - still a candidate that is under consideration. working + Working The patient is being treated on the basis that this is the condition, but it is still not confirmed. confirmed + Confirmed There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition. refuted + Refuted This condition has been ruled out by diagnostic and clinical evidence. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + @@ -61857,8 +63292,8 @@ alter the observations in the prior document."/> - - + + @@ -61872,6 +63307,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -61880,78 +63318,90 @@ alter the observations in the prior document."/> rest-hook + Rest Hook The channel is executed by making a post to the URI. If a payload is included, the URL is interpreted as the service base, and an update (PUT) is made. websocket + Websocket The channel is executed by sending a packet across a web socket connection maintained by the client. The URL identifies the websocket, and the client binds to this URL. email + Email The channel is executed by sending an email to the email addressed in the URI (which must be a mailto:). sms + Sms The channel is executed by sending an SMS message to the phone number identified in the URL (tel:). message + Message The channel Is executed by sending a message (e.g. a Bundle with a MessageHeader resource etc) to the application identified in the URI. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + @@ -61963,8 +63413,8 @@ alter the observations in the prior document."/> - - + + @@ -62037,27 +63487,29 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -62101,99 +63553,13 @@ alter the observations in the prior document."/> - - - - - - - - - - -
-

This value set contains 3 concepts

-

ConformanceStatementStatus

-

The status of this conformance statement

-

This value set defines its own terms in the system http://hl7.org/fhir/conformance-statement-status

- - - - - - - - - - - - - - - - - -
- Code - - Definition -
draft - - This conformance statement is still under development.
active - - This conformance statement is ready for use in production systems.
retired - - This conformance statement has been withdrawn or superceded and should no longer be used.
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- - + + @@ -62231,27 +63597,29 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + @@ -62275,8 +63643,8 @@ alter the observations in the prior document."/> - - + + @@ -62290,6 +63658,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -62298,61 +63669,209 @@ alter the observations in the prior document."/> in + In This is an input parameter. out + Out This is an output parameter. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + +
+

This value set contains 6 concepts

+

DataElementSpecificity

+

Indicates the degree of precision of the data element definition

+

This value set defines its own terms in the system http://hl7.org/fhir/dataelement-specificity

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Lvl + + Code + + Display + + Definition +
1comparable + + ComparableThe data element is sufficiently well-constrained that multiple pieces of data captured according to the constraints of the data element will be comparable (though in some cases, a degree of automated conversion/normalization may be required).
2  fully-specified + + Fully SpecifiedThe data element is fully specified down to a single value set, single unit of measure, single data type, etc. Multiple pieces of data associated with this data element are fully compareable.
2  equivalent + + EquivalentThe data element allows multiple units of measure having equivalent meaning. E.g. "cc" (cubic centimeter) and "mL".
2  convertable + + ConvertableThe data element allows multiple units of measure that are convertable between each other (e.g. Inches and centimeters) and/or allows data to be captured in multiple value sets for which a known mapping exists allowing conversion of meaning.
3    scaleable + + ScaleableA convertable data element where unit conversions are different only by a power of 10. E.g. g, mg, kg.
1flexible + + FlexibleThe data element is unconstrained in units, choice of data types and/or choice of vocabulary such that automated comparison of data captured using the data element is not possible.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- - + + @@ -62366,6 +63885,9 @@ alter the observations in the prior document."/> Code + + Display + Definition @@ -62374,81 +63896,200 @@ alter the observations in the prior document."/> fatal + Fatal The issue caused the action to fail, and no further checking could be performed. error + Error The issue is sufficiently important to cause the action to fail. warning + Warning The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired. information + Information The issue has no relation to the degree of success of the action. - + - + - - - - - - - - + + + + + + + + + + - + - + + + + + + + + + + + + + + + +
+

This value set contains 4 concepts

+

BindingStrength

+

Indication of the degree of conformance expectations associated with a binding

+

This value set defines its own terms in the system http://hl7.org/fhir/binding-strength

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
required + + RequiredTo be conformant, instances of this element SHALL include a code from the specified value set.
extensible + + ExtensibleTo be conformant, instances of this element SHALL include a code from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the valueset does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.
preferred + + PreferredInstances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.
example + + ExampleInstances are not expected or even encouraged to draw from the specified value set. The value set merely provides examples of the types of concepts intended to be included.
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
- - + + @@ -62517,79 +64158,81 @@ alter the observations in the prior document."/> - + - + - - - - - - - - + + + + + + + + + + - + - + - + - + - + - + - + - + - + @@ -62605,8 +64248,8 @@ alter the observations in the prior document."/> - - + + @@ -62645,23 +64288,25 @@ alter the observations in the prior document."/> - + - + - - - - + + + + + + - + @@ -62679,150 +64324,37 @@ alter the observations in the prior document."/> - + - - + + - -
-

This value set contains 9 concepts

-

Importance

-

Importance Value Set for Patient

-

This value set includes codes defined in other code systems, using the following rules:

-
    -
  • Include these codes as defined in http://cimi.org/vs/patient/importance - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display -
    19266Board Member -
    19268Financial Donor -
    19274Foreign Dignitary -
    19270Government Dignitary -
    19269Physician Family Member -
    19271Staff Family Member -
    19272Staff Member -
    19267Staff Physician -
    19273Very Important Person -
    -
  • -
-
+ +
SNOMED CT code system values descending from the following:'body position finding' 9851009
- - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + +
@@ -62831,21 +64363,350 @@ alter the observations in the prior document."/> - + - - + +
-

This value set contains 6 concepts

-

Problem Severity

-

This is a description of the level of the severity of the problem

+

This value set contains 48 concepts

+

XDS Connect-a-thon practiceSettingCodes

+

Example Connectathon Codes from http://ihexds.nist.gov:12080/xdsref/codes/codes.xml

- Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement

-

This value set includes codes defined in other code systems, using the following rules:

+

This value set defines its own terms in the system urn:uuid:cccf5598-8b07-4b77-a05e-ae952c785ead

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Code + + Display + + Definition +
Anesthesia + + Anesthesia +
Cardiology + + Cardiology +
Case Manager + + Case Manager +
Chaplain + + Chaplain +
Chemotherapy + + Chemotherapy +
Chiropractic + + Chiropractic +
Critical Care + + Critical Care +
Dentistry + + Dentistry +
Diabetology + + Diabetology +
Dialysis + + Dialysis +
Emergency + + Emergency +
Endocrinology + + Endocrinology +
Gastroenterology + + Gastroenterology +
General Medicine + + General Medicine +
General Surgery + + General Surgery +
Gynecology + + Gynecology +
Labor and Delivery + + Labor and Delivery +
Laboratory + + Laboratory +
Multidisciplinary + + Multidisciplinary +
Neonatal Intensive Care + + Neonatal Intensive Care +
Neurosurgery + + Neurosurgery +
Nursery + + Nursery +
Nursing + + Nursing +
Obstetrics + + Obstetrics +
Occupational Therapy + + Occupational Therapy +
Ophthalmology + + Ophthalmology +
Optometry + + Optometry +
Orthopedics + + Orthopedics +
Otorhinolaryngology + + Otorhinolaryngology +
Pathology + + Pathology +
Perioperative + + Perioperative +
Pharmacacy + + Pharmacacy +
Physical Medicine + + Physical Medicine +
Plastic Surgery + + Plastic Surgery +
Podiatry + + Podiatry +
Psychiatry + + Psychiatry +
Pulmonary + + Pulmonary +
Radiology + + Radiology +
Social Services + + Social Services +
Speech Therapy + + Speech Therapy +
Thyroidology + + Thyroidology +
Tumor Board + + Tumor Board +
Urology + + Urology +
Home + + Home +
Veterinary Medicine + + Veterinary Medicine +
+

In addition, this value set includes codes defined in other code systems, using the following rules:

  • Include these codes as defined in http://snomed.info/sct @@ -62858,33 +64719,18 @@ alter the observations in the prior document."/> - - + + - - + + - - - - - - - - - - - - - - + +
    399166001fatal394802001General Medicine
    255604002mild408478003Critical Care Medicine
    371923003mild to moderate -
    6736007moderate -
    371924009moderate to severe -
    24484000severe410001006Military Medicine
    @@ -62892,50 +64738,300 @@ alter the observations in the prior document."/>
- - + + - - - - + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + + + + +
+
+
+ + + + + + + + + + +
+

This value set contains 2 concepts

+

Observation Verification Method

+

Code for method by which the observation result was validated, e.g., human review, sliding average.

+

This value set includes codes defined in other code systems, using the following rules:

+
    +
  • Include these codes as defined in http://need.a.uri.org/observation/verification-method + + + + + + + + + + + + + +
    + Code + + Display +
    1Human review +
    2Sliding average +
    +
  • +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + @@ -62947,8 +65043,8 @@ alter the observations in the prior document."/> - - + + @@ -63041,23 +65137,25 @@ alter the observations in the prior document."/> - + - + - - - - + + + + + + - + @@ -63104,8 +65202,8 @@ alter the observations in the prior document."/> - - + + @@ -63150,23 +65248,25 @@ alter the observations in the prior document."/> - + - + - - - - + + + + + + - + @@ -63189,8 +65289,8 @@ alter the observations in the prior document."/> - - + + @@ -63241,23 +65341,25 @@ alter the observations in the prior document."/> - + - + - - - - + + + + + + - + @@ -63283,8 +65385,8 @@ alter the observations in the prior document."/> - - + + @@ -63306,17 +65408,19 @@ alter the observations in the prior document."/> - + - + - - - - + + + + + + @@ -63344,86 +65448,35 @@ alter the observations in the prior document."/> - + - - + + - -
-

This value set contains 3 concepts

-

HSPC Verification

-

Verification Method Value Set

-

This value set includes codes defined in other code systems, using the following rules:

-
    -
  • Include these codes as defined in http://cimi.org/vs/patient/verification - - - - - - - - - - - - - - - - - -
    - Code - - Display -
    1Background Check -
    2Family Member -
    3CIMI placeholder -
    -
  • -
-
+ +
TBD
- - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - + @@ -63435,8 +65488,8 @@ alter the observations in the prior document."/> - - + + @@ -63509,28 +65562,30 @@ alter the observations in the prior document."/> - + - + - - - - + + + + + + - + - + @@ -63547,7 +65602,7 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + @@ -63573,8 +65628,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -63625,23 +65680,25 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -63665,180 +65722,35 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - - + + - -
-

This value set contains 13 concepts

-

Audit Event ID

-

Event Types for Security Events - defined by DICOM with some FHIR specific additions

-

- Copyright Statement: These codes are excerpted from Digital Imaging and Communications in Medicine (DICOM) Standard, Part 16: Content Mapping Resource, Copyright 2011 by the National Electrical Manufacturers Association -

-

This value set defines its own terms in the system http://hl7.org/fhir/security-event-type

- - - - - - - - - - - -
- Code - - Display - - Definition -
rest - - RESTful OperationSecurity Event: Execution of a RESTful operation as defined by FHIR
-

In addition, this value set includes codes defined in other code systems, using the following rules:

-
    -
  • Include these codes as defined in http://nema.org/dicom/dicm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display -
    110100Application ActivityAudit event: Application Activity has taken place
    110101Audit Log UsedAudit event: Audit Log has been used
    110102Begin Transferring DICOM InstancesAudit event: Storage of DICOM Instances has begun
    110103DICOM Instances AccessedAudit event: DICOM Instances have been created, read, updated, or deleted -audit event
    110104DICOM Instances TransferredAudit event: Storage of DICOM Instances has been completed
    110105DICOM Study DeletedAudit event: Entire Study has been deleted
    110106ExportAudit event: Data has been exported out of the system
    110107ImportAudit event: Data has been imported into the system
    110108Network EntryAudit event: System has joined or left network
    110112QueryAudit event: Query has been made
    110113Security AlertAudit event: Security Alert has been raised
    110114User AuthenticationAudit event: User Authentication has been attempted
    -
  • -
-
+ +
TBD
- - + + - - - - - - - + + + + + + + + - - - - - - - - - - - - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -63850,8 +65762,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -64001,22 +65913,24 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -64120,8 +66034,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -64160,23 +66074,25 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -64196,8 +66112,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -64248,23 +66164,25 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -64290,8 +66208,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -64371,22 +66289,24 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -64432,13 +66352,13 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + +
-

This value set contains 2 concepts

+

This value set contains 4 concepts

Ethnicity group

Whether the patient is hispanic or not

This value set includes codes defined in other code systems, using the following rules:

@@ -64457,7 +66377,7 @@ SNOMED CT includes many codes for this general concept, but no single generalisa 2135-2 Hispanic or Latino - + Hispanic or Latino 2186-5 @@ -64466,27 +66386,62 @@ SNOMED CT includes many codes for this general concept, but no single generalisa +
  • Include these codes as defined in + http://hl7.org/fhir/v3/NullFlavor + + + + + + + + + + + + + + + +
    + Code + + Display +
    UNKUnknownDescription:A proper value is applicable, but not known. +
    + + Usage Notes: This means the actual value is not known. If the only thing that is unknown is how to properly express the value in the necessary constraints (value set, datatype, etc.), then the OTH or UNC flavor should be used. No properties should be included for a datatype with this property unless: +
    + + Those properties themselves directly translate to a semantic of "unknown". (E.g. a local code sent as a translation that conveys 'unknown') + Those properties further qualify the nature of what is unknown. (E.g. specifying a use code of "H" and a URL prefix of "tel:" to convey that it is the home phone number that is unknown.) +
    ASKUAsked but no answerInformation was sought but not found (e.g., patient was asked but didn't know)
    +
  • - + - + - + - - - - - - - - + + + + + + + + + + + + @@ -64502,6 +66457,73 @@ SNOMED CT includes many codes for this general concept, but no single generalisa
    + + + + + + + + + + + +
    +
    +
    +
    + + + + + + + + + + +
    + This value set includes all the "Clinical finding" SNOMED CT codes (i.e. codes with an is-a relationship with 404684003: Clinical finding) + +
    +

    This value set does not contain a fixed number of concepts

    +

    SNOMED CT Clinical Findings

    +

    This value set includes all the "Clinical finding" SNOMED CT codes (i.e. codes with an is-a relationship with 404684003: Clinical finding)

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://snomed.info/sct where concept is-a 404684003
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    @@ -64511,8 +66533,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -64571,22 +66593,24 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -64620,13 +66644,69 @@ SNOMED CT includes many codes for this general concept, but no single generalisa
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    DataElement SDC Object Class

    +

    The allowed codes for identifying the ISO 11179 ObjectClass Property for a particular data element if intended for registration/use within the U.S. Structured Data Capture (SDC) project.

    +

    + Copyright Statement: This value set includes content from LOINC®, which is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use. This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include all codes defined in http://loinc.org
    • +
    • Include all codes defined in http://www.nlm.nih.gov/research/umls/rxnorm
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -64665,23 +66745,25 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -64701,8 +66783,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -64763,10 +66845,10 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + @@ -64801,13 +66883,6132 @@ SNOMED CT includes many codes for this general concept, but no single generalisa + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    US Laboratory Observation Profile Coded Result Codes

    +

    SNOMED CT for coded results This value set includes all concepts from SNOMED CT

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include all codes defined in http://snomed.info/sct
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + A value set of SNOMED-CT codes limited to terms descending from the Clinical Findings (404684003) or Situation with Explicit Context (243796009) hierarchies. + +
    +

    This value set does not contain a fixed number of concepts

    +

    C-CDA Problems Value Set

    +

    This value set includes all SNOMED CT Clinical Findings or Situation with Explicit Context hierarchies.

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://snomed.info/sct where concept is-a 404684003Include codes from http://snomed.info/sct where concept is-a 243796009
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set contains 661 concepts

    +

    HSPC Quantitative Labs

    +

    Quantitative LOINC codes used in HSPC

    +

    + Copyright Statement: This content LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in http://loinc.org + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      7155-5Boxelder IgE Ab [Units/volume] in Serum +
      3298-7Acetaminophen [Mass/volume] in Serum or Plasma +
      5568-1Acetone [Mass/volume] in Serum or Plasma +
      11034-6Acetylcholine receptor binding Ab [Moles/volume] in Serum +
      30192-9Acetylcholine receptor modulation Ab/Acetylcholine Ab.total in Serum +
      20420-6Prostatic acid phosphatase [Mass/volume] in Serum +
      34661-9Actin IgG Ab [Units/volume] in Serum or Plasma +
      1742-6Alanine aminotransferase [Enzymatic activity/volume] in Serum or Plasma +
      20636-7Alanine [Moles/volume] in Serum or Plasma +
      1747-5Albumin [Mass/volume] in Body fluid +
      1746-7Albumin [Mass/volume] in Cerebral spinal fluid +
      2862-1Albumin [Mass/volume] in Serum or Plasma by Electrophoresis +
      1751-7Albumin [Mass/volume] in Serum or Plasma +
      14956-7Microalbumin [Mass/time] in 24 hour Urine +
      13992-3Albumin/Protein.total in Urine by Electrophoresis +
      1761-6Aldolase [Enzymatic activity/volume] in Serum or Plasma +
      1763-2Aldosterone [Mass/volume] in Serum or Plasma +
      1777-2Alkaline phosphatase.bone [Enzymatic activity/volume] in Serum or Plasma +
      6768-6Alkaline phosphatase [Enzymatic activity/volume] in Serum or Plasma +
      1779-8Alkaline phosphatase.liver [Enzymatic activity/volume] in Serum or Plasma +
      1825-9Alpha 1 antitrypsin [Mass/volume] in Serum or Plasma +
      2865-4Alpha 1 globulin [Mass/volume] in Serum or Plasma by Electrophoresis +
      13990-7Alpha 1 globulin/Protein.total in Urine by Electrophoresis +
      2868-8Alpha 2 globulin [Mass/volume] in Serum or Plasma by Electrophoresis +
      13993-1Alpha 2 globulin/Protein.total in Urine by Electrophoresis +
      1834-1Alpha-1-Fetoprotein [Mass/volume] in Serum or Plasma +
      20450-3Alpha-1-Fetoprotein [Multiple of the median] in Serum or Plasma +
      6020-2Alternaria alternata IgE Ab [Units/volume] in Serum +
      6085-5Common Ragweed IgE Ab [Units/volume] in Serum +
      16362-6Ammonia [Moles/volume] in Plasma +
      1795-4Amylase [Enzymatic activity/volume] in Body fluid +
      1798-8Amylase [Enzymatic activity/volume] in Serum or Plasma +
      33915-0Anabasine [Mass/volume] in Urine +
      6718-1Cashew Nut IgE Ab [Units/volume] in Serum +
      1848-1Androstanolone [Mass/volume] in Serum or Plasma +
      1854-9Androstenedione [Mass/volume] in Serum or Plasma +
      2742-5Angiotensin converting enzyme [Enzymatic activity/volume] in Serum or Plasma +
      10466-1Anion gap 3 in Serum or Plasma +
      27811-9Antithrombin actual/normal in Platelet poor plasma by Chromogenic method +
      1869-7Apolipoprotein A-I [Mass/volume] in Serum or Plasma +
      1871-3Apolipoprotein B-100 [Mass/volume] in Serum or Plasma +
      6206-7Peanut IgE Ab [Units/volume] in Serum +
      20637-5Arginine [Moles/volume] in Serum or Plasma +
      5583-0Arsenic [Mass/volume] in Blood +
      6286-9Wormwood IgE Ab [Units/volume] in Serum +
      6183-8Mugwort IgE Ab [Units/volume] in Serum +
      1903-4Ascorbate [Mass/volume] in Serum or Plasma +
      1920-8Aspartate aminotransferase [Enzymatic activity/volume] in Serum or Plasma +
      6025-1Aspergillus fumigatus IgE Ab [Units/volume] in Serum +
      5053-4Aspergillus sp Ab [Titer] in Serum by Complement fixation +
      6239-8Lenscale IgE Ab [Units/volume] in Serum +
      6029-3Aureobasidium pullulans IgE Ab [Units/volume] in Serum +
      6190-3Oat IgE Ab [Units/volume] in Serum +
      9426-8Barbiturates [Mass/volume] in Urine +
      28637-7Base deficit in Venous cord blood +
      30318-0Base deficit in Blood +
      1925-7Base excess in Arterial blood by calculation +
      1926-5Base excess in Capillary blood by calculation +
      11555-0Base excess in Blood by calculation +
      1927-3Base excess in Venous blood by calculation +
      706-2Basophils/100 leukocytes in Blood by Automated count +
      707-0Basophils/100 leukocytes in Blood by Manual count +
      12179-8Basophils/100 leukocytes in Body fluid by Manual count +
      13519-4Basophils/100 leukocytes in Cerebral spinal fluid by Manual count +
      704-7Basophils [#/volume] in Blood by Automated count +
      6039-2Beef IgE Ab [Units/volume] in Serum +
      9428-4Benzodiazepines [Mass/volume] in Urine +
      6050-9Brazil Nut IgE Ab [Units/volume] in Serum +
      44447-1Beta 2 glycoprotein 1 IgA Ab [Units/volume] in Serum or Plasma by Immunoassay +
      44448-9Beta 2 glycoprotein 1 IgG Ab [Units/volume] in Serum or Plasma by Immunoassay +
      44449-7Beta 2 glycoprotein 1 IgM Ab [Units/volume] in Serum or Plasma by Immunoassay +
      2871-2Beta globulin [Mass/volume] in Serum or Plasma by Electrophoresis +
      13994-9Beta globulin/Protein.total in Urine by Electrophoresis +
      6873-4Beta hydroxybutyrate [Moles/volume] in Serum or Plasma +
      1952-1Beta-2-Microglobulin [Mass/volume] in Serum +
      15283-5Silver Birch IgE Ab [Units/volume] in Serum +
      1960-4Bicarbonate [Moles/volume] in Arterial blood +
      28640-1Bicarbonate [Moles/volume] in Arterial cord blood +
      28641-9Bicarbonate [Moles/volume] in Venous cord blood +
      1961-2Bicarbonate [Moles/volume] in Capillary blood +
      1959-6Bicarbonate [Moles/volume] in Blood +
      14627-4Bicarbonate [Moles/volume] in Venous blood +
      1975-2Bilirubin.total [Mass/volume] in Serum or Plasma +
      1971-1Bilirubin.indirect [Mass/volume] in Serum or Plasma +
      5057-5Blastomyces dermatitidis Ab [Titer] in Serum by Complement fixation +
      709-6Blasts/100 leukocytes in Blood by Manual count +
      6078-0Cockroach IgE Ab [Units/volume] in Serum +
      19839-0Breath rate spontaneous --on ventilator +
      3422-3Caffeine [Mass/volume] in Serum or Plasma +
      49543-2Calcidiol+Calciferol [Mass/volume] in Serum or Plasma +
      1989-3Calcidiol [Mass/volume] in Serum or Plasma +
      2236-8Calciferol (Vit D2) [Mass/volume] in Serum or Plasma +
      1992-7Calcitonin [Mass/volume] in Serum or Plasma +
      1649-3Calcitriol [Mass/volume] in Serum or Plasma +
      1994-3Calcium.ionized [Moles/volume] in Blood +
      1995-0Calcium.ionized [Moles/volume] in Serum or Plasma +
      17861-6Calcium [Mass/volume] in Serum or Plasma +
      17862-4Calcium [Mass/volume] in Urine +
      6874-2Calcium [Mass/time] in 24 hour Urine +
      10334-1Cancer Ag 125 [Units/volume] in Serum or Plasma +
      6875-9Cancer Ag 15-3 [Units/volume] in Serum or Plasma +
      24108-3Cancer Ag 19-9 [Units/volume] in Serum or Plasma +
      17842-6Cancer Ag 27-29 [Units/volume] in Serum or Plasma +
      6092-1Crab IgE Ab [Units/volume] in Serum +
      6059-0Candida albicans IgE Ab [Units/volume] in Serum +
      3432-2Carbamazepine [Mass/volume] in Serum or Plasma +
      2019-8Carbon dioxide [Partial pressure] in Arterial blood +
      28644-3Carbon dioxide [Partial pressure] in Arterial cord blood +
      28645-0Carbon dioxide [Partial pressure] in Venous cord blood +
      33022-5Carbon dioxide [Partial pressure] in Capillary blood by Transcutaneous CO2 monitor +
      2021-4Carbon dioxide [Partial pressure] in Venous blood +
      20565-8Carbon dioxide, total [Moles/volume] in Blood +
      2028-9Carbon dioxide, total [Moles/volume] in Serum or Plasma +
      2030-5Carboxyhemoglobin/Hemoglobin.total in Arterial blood +
      20563-3Carboxyhemoglobin/Hemoglobin.total in Blood +
      2032-1Carboxyhemoglobin/Hemoglobin.total in Venous blood +
      2039-6Carcinoembryonic Ag [Mass/volume] in Serum or Plasma +
      3181-5Cardiolipin IgG Ab [Units/volume] in Serum by Immunoassay +
      3182-3Cardiolipin IgM Ab [Units/volume] in Serum by Immunoassay +
      14288-5Carnitine [Moles/volume] in Serum or Plasma +
      19074-4Carnitine esters [Moles/volume] in Serum or Plasma +
      14286-9Carnitine free (C0) [Moles/volume] in Serum or Plasma +
      6208-3Pecan or Hickory Nut IgE Ab [Units/volume] in Serum +
      6209-1Pecan or Hickory Tree IgE Ab [Units/volume] in Serum +
      6062-4Casein IgE Ab [Units/volume] in Serum +
      6833-8Cat dander IgE Ab [Units/volume] in Serum +
      8117-4CD19 cells/100 cells in Blood +
      20593-0CD19 cells/100 cells in Unspecified specimen +
      8116-6CD19 cells [#/volume] in Blood +
      8118-2CD2 cells/100 cells in Blood +
      9557-0CD2 cells [#/volume] in Blood +
      8124-0CD3 cells/100 cells in Blood +
      14135-8CD3+CD8+ (T8 suppressor cells) cells [#/volume] in Blood +
      8112-5CD3-CD16+CD56+ (Natural killer) cells/100 cells in Blood +
      8122-4CD3 cells [#/volume] in Blood +
      8130-7CD45 (Lymphs) cells/100 cells in Blood +
      11282-1Cells Counted Total [#] in Blood +
      38256-4Cells Counted Total [#] in Body fluid +
      19075-1Cells Counted Total [#] in Cerebral spinal fluid +
      2064-4Ceruloplasmin [Mass/volume] in Serum or Plasma +
      6156-4Goosefoot IgE Ab [Units/volume] in Serum +
      2075-0Chloride [Moles/volume] in Serum or Plasma +
      2077-6Chloride [Moles/volume] in Sweat +
      2078-4Chloride [Moles/volume] in Urine +
      6073-1Chocolate IgE Ab [Units/volume] in Serum +
      2085-9Cholesterol in HDL [Mass/volume] in Serum or Plasma +
      13457-7Cholesterol in LDL [Mass/volume] in Serum or Plasma by calculation +
      18262-6Cholesterol in LDL [Mass/volume] in Serum or Plasma by Direct assay +
      2089-1Cholesterol in LDL [Mass/volume] in Serum or Plasma +
      13458-5Cholesterol in VLDL [Mass/volume] in Serum or Plasma by calculation +
      2093-3Cholesterol [Mass/volume] in Serum or Plasma +
      43396-1Cholesterol non HDL [Mass/volume] in Serum or Plasma +
      9830-1Cholesterol.total/Cholesterol in HDL [Mass Ratio] in Serum or Plasma +
      19080-1Choriogonadotropin [Units/volume] in Serum or Plasma +
      21198-7Choriogonadotropin.beta subunit [Units/volume] in Serum or Plasma +
      20465-1Choriogonadotropin [Multiple of the median] in Serum or Plasma +
      9811-1Chromogranin A [Mass/volume] in Serum or Plasma +
      6687-8Citrate [Mass/time] in 24 hour Urine +
      20640-9Citrulline [Moles/volume] in Serum or Plasma +
      6194-5Orange IgE Ab [Units/volume] in Serum +
      7415-3Cladosporium sphaerospermum IgE Ab [Units/volume] in Serum +
      22203-4Clostridium tetani IgG Ab [Units/volume] in Serum +
      3184-9Activated clotting time in Blood by Coagulation assay +
      15359-3Dilute Russell viper venom time (dRVVT) actual/normal in Platelet poor plasma by Coagulation assay +
      43397-9Dilute Russell viper venom time (dRVVT) factor substitution in Platelet poor plasma by Coagulation assay --immediately after addition of normal plasma +
      6303-2Dilute Russell viper venom time (dRVVT) in Platelet poor plasma by Coagulation assay +
      3187-2Coagulation factor IX activity actual/normal in Platelet poor plasma by Coagulation assay +
      3193-0Coagulation factor V activity actual/normal in Platelet poor plasma by Coagulation assay +
      3198-9Coagulation factor VII activity actual/normal in Platelet poor plasma by Coagulation assay +
      3209-4Coagulation factor VIII activity actual/normal in Platelet poor plasma by Coagulation assay +
      3218-5Coagulation factor X activity actual/normal in Platelet poor plasma by Coagulation assay +
      5946-9Activated partial thromboplastin time (aPTT).factor substitution in Platelet poor plasma by Coagulation assay --immediately after addition of normal plasma +
      14979-9Activated partial thromboplastin time (aPTT) in Platelet poor plasma by Coagulation assay +
      3243-3Thrombin time in Platelet poor plasma by Coagulation assay +
      5959-2Prothrombin time (PT) factor substitution in Platelet poor plasma by Coagulation assay --immediately after addition of normal plasma +
      29893-5HIV 1 Ab [Presence] in Serum by Immunoassay +
      5902-2Prothrombin time (PT) in Platelet poor plasma by Coagulation assay +
      2132-9Cobalamin (Vitamin B12) [Mass/volume] in Serum or Plasma +
      6081-4Coconut IgE Ab [Units/volume] in Serum +
      14115-0Collagen crosslinked N-telopeptide/Creatinine [Molar ratio] in Urine +
      13362-9Collection duration of Urine +
      19087-6Collection of urine specimen end time +
      19089-2Collection of urine specimen start time +
      13358-7Collection time of Semen +
      49049-0Collection time of Unspecified specimen +
      4477-6Complement C1 esterase inhibitor [Mass/volume] in Serum or Plasma +
      4485-9Complement C3 [Mass/volume] in Serum or Plasma +
      4498-2Complement C4 [Mass/volume] in Serum or Plasma +
      4532-8Complement total hemolytic CH50 [Units/volume] in Serum or Plasma +
      5631-7Copper [Mass/volume] in Serum or Plasma +
      2141-0Corticotropin [Mass/volume] in Plasma +
      9812-9Cortisol [Mass/volume] in Serum or Plasma --PM trough specimen +
      2147-7Cortisol Free [Mass/time] in 24 hour Urine +
      2142-8Cortisol [Mass/volume] in Saliva (oral fluid) +
      2143-6Cortisol [Mass/volume] in Serum or Plasma +
      9813-7Cortisol [Mass/volume] in Serum or Plasma --AM peak specimen +
      6136-6Hazelnut IgE Ab [Units/volume] in Serum +
      13227-4Corynebacterium diphtheriae IgG Ab [Units/volume] in Serum +
      10366-3Cotinine [Mass/volume] in Urine +
      7774-3Cow whey IgE Ab [Units/volume] in Serum +
      1986-9C peptide [Mass/volume] in Serum or Plasma +
      30522-7C reactive protein [Mass/volume] in Serum or Plasma by High sensitivity method +
      1988-5C reactive protein [Mass/volume] in Serum or Plasma +
      15048-2Creatine kinase.BB/Creatine kinase.total in Serum or Plasma by Electrophoresis +
      2157-6Creatine kinase [Enzymatic activity/volume] in Serum or Plasma +
      26019-0Creatine Kinase.macromolecular type 1/Creatine kinase.total in Serum or Plasma +
      26020-8Creatine Kinase.macromolecular type 2/Creatine kinase.total in Serum or Plasma +
      32673-6Creatine kinase.MB [Enzymatic activity/volume] in Serum or Plasma +
      12187-1Creatine kinase.MB/Creatine kinase.total in Serum or Plasma by Electrophoresis +
      20569-0Creatine kinase.MB/Creatine kinase.total in Serum or Plasma +
      15049-0Creatine kinase.MM/Creatine kinase.total in Serum or Plasma by Electrophoresis +
      12190-5Creatinine [Mass/volume] in Body fluid +
      2160-0Creatinine [Mass/volume] in Serum or Plasma +
      2161-8Creatinine [Mass/volume] in Urine +
      2162-6Creatinine [Mass/time] in 24 hour Urine +
      33935-8Cyclic citrullinated peptide IgG Ab [Units/volume] in Serum +
      3520-4Cyclosporine [Mass/volume] in Blood +
      6041-8Bermuda grass IgE Ab [Units/volume] in Serum +
      5124-3Cytomegalovirus IgG Ab [Units/volume] in Serum by Immunoassay +
      5126-8Cytomegalovirus IgM Ab [Units/volume] in Serum by Immunoassay +
      33006-8Cytomegalovirus DNA [#/volume] (viral load) in Unspecified specimen by Probe and target amplification method +
      6195-2Cocksfoot IgE Ab [Units/volume] in Serum +
      35789-7Daptomycin [Susceptibility] +
      6061-6Carrot IgE Ab [Units/volume] in Serum +
      2193-1Dehydroepiandrosterone (DHEA) [Mass/volume] in Serum or Plasma +
      2191-5Dehydroepiandrosterone sulfate (DHEA-S) [Mass/volume] in Serum or Plasma +
      11778-8Delivery date Estimated +
      6095-4American house dust mite IgE Ab [Units/volume] in Serum +
      6096-2European house dust mite IgE Ab [Units/volume] in Serum +
      10535-3Digoxin [Mass/volume] in Serum or Plasma +
      14207-5Streptococcal DNAse B [Titer] in Serum +
      6098-8Dog dander IgE Ab [Units/volume] in Serum +
      6099-6Dog epithelium IgE Ab [Units/volume] in Serum +
      2216-0Dopamine [Mass/volume] in Serum or Plasma +
      2218-6Dopamine [Mass/time] in 24 hour Urine +
      6106-9Egg white IgE Ab [Units/volume] in Serum +
      6107-7Egg yolk IgE Ab [Units/volume] in Serum +
      9784-0Ehrlichia chaffeensis IgM Ab [Titer] in Serum +
      10863-9Endomysium IgA Ab [Titer] in Serum +
      713-8Eosinophils/100 leukocytes in Blood by Automated count +
      714-6Eosinophils/100 leukocytes in Blood by Manual count +
      12209-3Eosinophils/100 leukocytes in Body fluid by Manual count +
      12208-5Eosinophils/100 leukocytes in Cerebral spinal fluid by Manual count +
      711-2Eosinophils [#/volume] in Blood by Automated count +
      2232-7Epinephrine [Mass/time] in 24 hour Urine +
      5787-7Epithelial cells [#/area] in Urine sediment by Microscopy high power field +
      5157-3Epstein Barr virus capsid IgG Ab [Units/volume] in Serum by Immunoassay +
      7885-7Epstein Barr virus capsid IgG Ab [Units/volume] in Serum +
      5159-9Epstein Barr virus capsid IgM Ab [Units/volume] in Serum by Immunoassay +
      32585-2Epstein Barr virus DNA [#/volume] (viral load) in Unspecified specimen by Probe and target amplification method +
      30083-0Epstein Barr virus nuclear IgG Ab [Units/volume] in Serum by Immunoassay +
      31374-2Epstein Barr virus nuclear IgG Ab [Units/volume] in Serum +
      788-0Erythrocyte distribution width [Ratio] by Automated count +
      786-4Erythrocyte mean corpuscular hemoglobin concentration [Mass/volume] by Automated count +
      785-6Erythrocyte mean corpuscular hemoglobin [Entitic mass] by Automated count +
      30341-2Erythrocyte sedimentation rate +
      4537-7Erythrocyte sedimentation rate by Westergren method +
      13945-1Erythrocytes [#/area] in Urine sediment by Microscopy high power field +
      789-8Erythrocytes [#/volume] in Blood by Automated count +
      6741-3Erythrocytes [#/volume] in Body fluid by Manual count +
      26454-9Erythrocytes [#/volume] in Cerebral spinal fluid +
      20409-9Erythrocytes [#/volume] in Urine by Test strip +
      58413-6Nucleated erythrocytes/100 leukocytes [Ratio] in Blood by Automated count +
      18309-5Nucleated erythrocytes/100 leukocytes [Ratio] in Blood by Manual count +
      15061-5Erythropoietin (EPO) [Units/volume] in Serum or Plasma +
      27353-2Glucose mean value [Mass/volume] in Blood Estimated from glycated hemoglobin +
      2243-4Estradiol (E2) [Mass/volume] in Serum or Plasma +
      2251-7Estriol (E3) [Mass/volume] in Serum or Plasma +
      2250-9Estriol (E3).unconjugated [Mass/volume] in Serum or Plasma +
      20466-9Estriol (E3).unconjugated [Multiple of the median] in Serum or Plasma +
      2254-1Estrogen [Mass/volume] in Serum or Plasma +
      5643-2Ethanol [Mass/volume] in Serum or Plasma +
      5646-5Ethylene glycol [Mass/volume] in Serum or Plasma +
      6113-5Gum-Tree IgE Ab [Units/volume] in Serum +
      2276-4Ferritin [Mass/volume] in Serum or Plasma +
      11878-6Number of fetuses by US +
      48065-7Fibrin D-dimer FEU [Mass/volume] in Platelet poor plasma +
      3255-7Fibrinogen [Mass/volume] in Platelet poor plasma by Coagulation assay +
      2283-0Folate [Mass/volume] in Red Blood Cells +
      2284-8Folate [Mass/volume] in Serum or Plasma +
      15067-2Follitropin [Units/volume] in Serum or Plasma +
      6257-0Strawberry IgE Ab [Units/volume] in Serum +
      6278-6White Ash IgE Ab [Units/volume] in Serum +
      15069-8Fructosamine [Moles/volume] in Serum or Plasma +
      6121-8Fusarium moniliforme IgE Ab [Units/volume] in Serum +
      6082-2Codfish IgE Ab [Units/volume] in Serum +
      44357-2Galactomannan Ag [Units/volume] in Serum or Plasma by Immunoassay +
      2873-8Gamma globulin [Mass/volume] in Cerebral spinal fluid by Electrophoresis +
      2874-6Gamma globulin [Mass/volume] in Serum or Plasma by Electrophoresis +
      13995-6Gamma globulin/Protein.total in Urine by Electrophoresis +
      2324-2Gamma glutamyl transferase [Enzymatic activity/volume] in Serum or Plasma +
      19941-4Oxygen gas flow Oxygen delivery system +
      2333-3Gastrin [Mass/volume] in Serum or Plasma +
      35668-3Gentamicin [Mass/volume] in Serum or Plasma +
      3663-2Gentamicin [Mass/volume] in Serum or Plasma --peak +
      3665-7Gentamicin [Mass/volume] in Serum or Plasma --trough +
      18185-9Gestational age +
      33914-3Glomerular filtration rate/1.73 sq M.predicted by Creatinine-based formula (MDRD) +
      1501-6Glucose [Mass/volume] in Serum or Plasma --1 hour post 100 g glucose PO +
      1504-0Glucose [Mass/volume] in Serum or Plasma --1 hour post 50 g glucose PO +
      1514-9Glucose [Mass/volume] in Serum or Plasma --2 hours post 100 g glucose PO +
      1530-5Glucose [Mass/volume] in Serum or Plasma --3 hours post 100 g glucose PO +
      2344-0Glucose [Mass/volume] in Body fluid +
      2342-4Glucose [Mass/volume] in Cerebral spinal fluid +
      2350-7Glucose [Mass/volume] in Urine +
      5792-7Glucose [Mass/volume] in Urine by Test strip +
      32546-4Glucose-6-Phosphate dehydrogenase [Enzymatic activity/mass] in Red Blood Cells +
      1558-6Fasting glucose [Mass/volume] in Serum or Plasma +
      20642-5Glutamate [Moles/volume] in Serum or Plasma +
      20643-3Glutamine [Moles/volume] in Serum or Plasma +
      6125-9Gluten IgE Ab [Units/volume] in Serum +
      6248-9Soybean IgE Ab [Units/volume] in Serum +
      20644-1Glycine [Moles/volume] in Serum or Plasma +
      6420-4Helicobacter pylori IgA Ab [Units/volume] in Serum by Immunoassay +
      5176-3Helicobacter pylori IgG Ab [Units/volume] in Serum by Immunoassay +
      5177-1Helicobacter pylori IgM Ab [Units/volume] in Serum by Immunoassay +
      31100-1Hematocrit [Volume Fraction] of Blood by Impedance +
      20570-8Hematocrit [Volume Fraction] of Blood +
      4545-0Hematocrit [Volume Fraction] of Blood by Centrifugation +
      11153-4Hematocrit [Volume Fraction] of Body fluid +
      17856-6Hemoglobin A1c/Hemoglobin.total in Blood by HPLC +
      4548-4Hemoglobin A1c/Hemoglobin.total in Blood +
      4547-6Hemoglobin A1/Hemoglobin.total in Blood +
      4551-8Hemoglobin A2/Hemoglobin.total in Blood +
      4563-3Hemoglobin C/Hemoglobin.total in Blood +
      4575-7Hemoglobin E/Hemoglobin.total in Blood +
      42810-2Hemoglobin [Entitic mass] in Reticulocytes +
      4633-4Hemoglobin F/Hemoglobin.total in Blood by Kleihauer-Betke method +
      4576-5Hemoglobin F/Hemoglobin.total in Blood +
      721-1Free Hemoglobin [Mass/volume] in Plasma +
      4635-9Free Hemoglobin [Mass/volume] in Serum +
      30313-1Hemoglobin [Mass/volume] in Arterial blood +
      718-7Hemoglobin [Mass/volume] in Blood +
      30350-3Hemoglobin [Mass/volume] in Venous blood +
      4625-0Hemoglobin S/Hemoglobin.total in Blood +
      29615-2Hepatitis B virus DNA [#/volume] (viral load) in Serum or Plasma by Probe and target amplification method +
      5193-8Hepatitis B virus surface Ab [Units/volume] in Serum by Immunoassay +
      38180-6Hepatitis C virus RNA [log units/volume] (viral load) in Serum or Plasma by Probe and target amplification method +
      27948-9Herpes simplex virus 1+2 IgG Ab [Units/volume] in Serum by Immunoassay +
      20645-8Histidine [Moles/volume] in Serum or Plasma +
      20573-2Histoplasma capsulatum mycelial phase Ab [Titer] in Serum by Complement fixation +
      20574-0Histoplasma capsulatum yeast phase Ab [Titer] in Serum by Complement fixation +
      29539-4HIV 1 RNA [Log #/volume] (viral load) in Plasma by Probe and signal amplification method +
      20447-9HIV 1 RNA [#/volume] (viral load) in Serum or Plasma by Probe and target amplification method +
      6165-5Lobster IgE Ab [Units/volume] in Serum +
      13965-9Homocysteine [Moles/volume] in Serum or Plasma +
      6037-6Barley IgE Ab [Units/volume] in Serum +
      5796-8Hyaline casts [#/area] in Urine sediment by Microscopy low power field +
      2458-8IgA [Mass/volume] in Serum or Plasma +
      19113-0IgE [Units/volume] in Serum or Plasma +
      14117-6IgG index in Serum and CSF +
      2464-6IgG [Mass/volume] in Cerebral spinal fluid +
      2465-3IgG [Mass/volume] in Serum or Plasma +
      2466-1IgG subclass 1 [Mass/volume] in Serum +
      2467-9IgG subclass 2 [Mass/volume] in Serum +
      2468-7IgG subclass 3 [Mass/volume] in Serum +
      2469-5IgG subclass 4 [Mass/volume] in Serum +
      14116-8IgG synthesis rate [Mass/time] in Serum and CSF by calculation +
      2472-9IgM [Mass/volume] in Serum or Plasma +
      36916-5Immunoglobulin light chains.kappa.free [Mass/volume] in Serum +
      15189-4Immunoglobulin light chains.kappa/Immunoglobulin light chains.lambda [Mass Ratio] in Serum +
      11050-2Immunoglobulin light chains.kappa [Mass/volume] in Serum +
      33944-0Immunoglobulin light chains.lambda.free [Mass/volume] in Serum or Plasma +
      11051-0Immunoglobulin light chains.lambda [Mass/volume] in Serum +
      23883-2Inhibin A [Mass/volume] in Serum or Plasma +
      20448-7Insulin [Units/volume] in Serum or Plasma +
      6901-3Insulin Free [Units/volume] in Serum or Plasma +
      2483-6Insulin-like growth factor binding protein 3 [Mass/volume] in Serum or Plasma +
      2484-4Insulin-like growth factor-I [Mass/volume] in Serum or Plasma +
      2500-7Iron binding capacity [Mass/volume] in Serum or Plasma +
      2498-4Iron [Mass/volume] in Serum or Plasma +
      2502-3Iron saturation [Mass Fraction] in Serum or Plasma +
      31209-0Islet cell 512 Ab [Units/volume] in Serum +
      20648-2Isoleucine [Moles/volume] in Serum or Plasma +
      5669-7Isopropanol [Mass/volume] in Serum or Plasma +
      6273-7Walnut IgE Ab [Units/volume] in Serum +
      6178-8Mountain Juniper IgE Ab [Units/volume] in Serum +
      5797-6Ketones [Mass/volume] in Urine by Test strip +
      2529-6Lactate dehydrogenase [Enzymatic activity/volume] in Body fluid +
      2518-9Lactate [Moles/volume] in Arterial blood +
      32133-1Lactate [Moles/volume] in Plasma venous +
      2524-7Lactate [Moles/volume] in Serum or Plasma +
      6948-4Lamotrigine [Mass/volume] in Serum or Plasma +
      6158-0Latex IgE Ab [Units/volume] in Serum +
      5671-3Lead [Mass/volume] in Blood +
      14976-5Lecithin/Sphingomyelin [Ratio] in Amniotic fluid +
      20649-0Leucine [Moles/volume] in Serum or Plasma +
      5821-4Leukocytes [#/area] in Urine sediment by Microscopy high power field +
      6690-2Leukocytes [#/volume] in Blood by Automated count +
      30471-7Levetiracetam [Mass/volume] in Serum or Plasma +
      3714-3Lidocaine [Mass/volume] in Serum or Plasma +
      7632-3Privet IgE Ab [Units/volume] in Serum +
      10835-7Lipoprotein a [Mass/volume] in Serum or Plasma +
      3719-2Lithium [Mass/volume] in Serum or Plasma +
      7369-2Perennial rye grass IgE Ab [Units/volume] in Serum +
      3284-7Lupus anticoagulant neutralization platelet [Time] in Platelet poor plasma by Coagulation assay +
      10501-5Lutropin [Units/volume] in Serum or Plasma +
      6266-1Tomato IgE Ab [Units/volume] in Serum +
      736-9Lymphocytes/100 leukocytes in Blood by Automated count +
      737-7Lymphocytes/100 leukocytes in Blood by Manual count +
      11031-2Lymphocytes/100 leukocytes in Body fluid +
      10328-3Lymphocytes/100 leukocytes in Cerebral spinal fluid by Manual count +
      731-0Lymphocytes [#/volume] in Blood by Automated count +
      20650-8Lysine [Moles/volume] in Serum or Plasma +
      12230-9Macrophages/100 leukocytes in Body fluid by Manual count +
      12229-1Macrophages/100 leukocytes in Cerebral spinal fluid by Manual count +
      19123-9Magnesium [Mass/volume] in Serum or Plasma +
      2597-3Magnesium [Moles/volume] in Red Blood Cells +
      6021-0Apple IgE Ab [Units/volume] in Serum +
      787-2Erythrocyte mean corpuscular volume [Entitic volume] by Automated count +
      5244-9Measles virus IgG Ab [Units/volume] in Serum by Immunoassay +
      5685-3Mercury [Mass/volume] in Blood +
      12234-1Mesothelial cells/100 leukocytes in Body fluid by Manual count +
      740-1Metamyelocytes/100 leukocytes in Blood by Manual count +
      739-3Metamyelocytes [#/volume] in Blood by Manual count +
      19049-6Metanephrine [Mass/time] in 24 hour Urine +
      25473-0Metanephrine [Moles/volume] in Serum or Plasma +
      5693-7Methanol [Mass/volume] in Serum or Plasma +
      2615-3Methemoglobin/Hemoglobin.total in Arterial blood +
      2614-6Methemoglobin/Hemoglobin.total in Blood +
      20651-6Methionine [Moles/volume] in Serum or Plasma +
      14836-1Methotrexate [Moles/volume] in Serum or Plasma +
      13964-2Methylmalonate [Moles/volume] in Serum or Plasma +
      6174-7Milk IgE Ab [Units/volume] in Serum +
      14251-3Mitochondria M2 IgG Ab [Units/volume] in Serum +
      5905-5Monocytes/100 leukocytes in Blood by Automated count +
      744-3Monocytes/100 leukocytes in Blood by Manual count +
      10329-1Monocytes/100 leukocytes in Cerebral spinal fluid by Manual count +
      742-7Monocytes [#/volume] in Blood by Automated count +
      743-5Monocytes [#/volume] in Blood by Manual count +
      6281-0White mulberry IgE Ab [Units/volume] in Serum +
      6182-0Mucor racemosus IgE Ab [Units/volume] in Serum +
      38476-8Mullerian inhibiting substance [Mass/volume] in Serum or Plasma +
      25418-5Mumps virus IgG Ab [Units/volume] in Serum by Immunoassay +
      7966-5Mumps virus IgG Ab [Units/volume] in Serum +
      6035-0Banana IgE Ab [Units/volume] in Serum +
      23905-3Mycophenolate [Mass/volume] in Serum or Plasma +
      5255-5Mycoplasma pneumoniae IgG Ab [Units/volume] in Serum by Immunoassay +
      5256-3Mycoplasma pneumoniae IgM Ab [Units/volume] in Serum by Immunoassay +
      2638-5Myelin basic protein [Mass/volume] in Cerebral spinal fluid +
      749-2Myelocytes/100 leukocytes in Blood by Manual count +
      748-4Myelocytes [#/volume] in Blood by Manual count +
      6969-0Myeloperoxidase Ab [Units/volume] in Serum +
      2639-3Myoglobin [Mass/volume] in Serum or Plasma +
      30934-4Natriuretic peptide B [Mass/volume] in Serum or Plasma +
      29967-7Neutrophil cytoplasmic IgG Ab [Titer] in Serum by Immunofluorescence +
      14278-6Neutrophil cytoplasmic Ab.perinuclear [Titer] in Serum by Immunofluorescence +
      770-8Neutrophils/100 leukocytes in Blood by Automated count +
      12238-2Neutrophils/100 leukocytes in Body fluid by Manual count +
      13516-0Neutrophils/100 leukocytes in Cerebral spinal fluid by Manual count +
      764-1Neutrophils.band form/100 leukocytes in Blood by Manual count +
      26510-8Neutrophils.band form/100 leukocytes in Body fluid +
      12278-8Neutrophils.band form/100 leukocytes in Cerebral spinal fluid by Manual count +
      751-8Neutrophils [#/volume] in Blood by Automated count +
      769-0Neutrophils.segmented/100 leukocytes in Blood by Manual count +
      3854-7Nicotine [Mass/volume] in Urine +
      2668-2Norepinephrine [Mass/time] in 24 hour Urine +
      2671-6Normetanephrine [Mass/time] in 24 hour Urine +
      25489-6Normetanephrine [Moles/volume] in Serum or Plasma +
      33917-6Nornicotine [Mass/volume] in Urine +
      29953-7Nuclear Ab [Titer] in Serum +
      31019-310-Hydroxycarbazepine [Mass/volume] in Serum or Plasma +
      1668-317-Hydroxyprogesterone [Mass/volume] in Serum or Plasma +
      1695-65-Hydroxyindoleacetate [Mass/time] in 24 hour Urine +
      42176-81,3 beta glucan [Mass/volume] in Serum +
      8220-6Opiates [Mass/volume] in Urine +
      20652-4Ornithine [Moles/volume] in Serum or Plasma +
      6230-7Rice IgE Ab [Units/volume] in Serum +
      2692-2Osmolality of Serum or Plasma +
      2695-5Osmolality of Urine +
      5788-5Oval fat bodies (globules) [#/area] in Urine sediment by Microscopy high power field +
      2701-1Oxalate [Mass/time] in 24 hour Urine +
      2703-7Oxygen [Partial pressure] in Arterial blood +
      28648-4Oxygen [Partial pressure] in Arterial cord blood +
      28649-2Oxygen [Partial pressure] in Venous cord blood +
      2705-2Oxygen [Partial pressure] in Venous blood +
      2708-6Oxygen saturation in Arterial blood +
      2711-0Oxygen saturation in Venous blood +
      2714-4Fractional oxyhemoglobin in Arterial blood +
      2716-9Fractional oxyhemoglobin in Venous blood +
      6246-3Shrimp IgE Ab [Units/volume] in Serum +
      2731-8Parathyrin.intact [Mass/volume] in Serum or Plasma +
      7983-0Parvovirus B19 IgG Ab [Units/volume] in Serum +
      7984-8Parvovirus B19 IgM Ab [Units/volume] in Serum +
      6034-3Bahia grass IgE Ab [Units/volume] in Serum +
      7691-9Scallop IgE Ab [Units/volume] in Serum +
      6212-5Penicillium notatum IgE Ab [Units/volume] in Serum +
      33254-4pH of Arterial blood adjusted to patients actual temperature +
      3948-7Phenobarbital [Mass/volume] in Serum or Plasma +
      14875-9Phenylalanine [Moles/volume] in Serum or Plasma +
      3969-3Phenytoin Free [Mass/volume] in Serum or Plasma +
      3968-5Phenytoin [Mass/volume] in Serum or Plasma +
      6265-3Timothy IgE Ab [Units/volume] in Serum +
      2744-1pH of Arterial blood +
      28646-8pH of Arterial cord blood +
      28647-6pH of Venous cord blood +
      2745-8pH of Capillary blood +
      11558-4pH of Blood +
      2746-6pH of Venous blood +
      2748-2pH of Body fluid +
      2749-0pH of Gastric fluid +
      2753-2pH of Serum or Plasma +
      2756-5pH of Urine +
      5803-2pH of Urine by Test strip +
      2777-1Phosphate [Mass/volume] in Serum or Plasma +
      2778-9Phosphate [Mass/volume] in Urine +
      2779-7Phosphate [Mass/time] in 24 hour Urine +
      14246-3Phosphatidylserine IgM Ab [Units/volume] in Serum +
      7613-3Pistachio IgE Ab [Units/volume] in Serum +
      6110-1English Plantain IgE Ab [Units/volume] in Serum +
      13047-6Plasma cells/100 leukocytes in Blood +
      6263-8American Sycamore IgE Ab [Units/volume] in Serum +
      32623-1Platelet mean volume [Entitic volume] in Blood by Automated count +
      777-3Platelets [#/volume] in Blood by Automated count +
      6153-1Kentucky blue grass IgE Ab [Units/volume] in Serum +
      6090-5Cottonwood IgE Ab [Units/volume] in Serum +
      6219-0Pork IgE Ab [Units/volume] in Serum +
      2823-3Potassium [Moles/volume] in Serum or Plasma +
      2828-2Potassium [Moles/volume] in Urine +
      14338-8Prealbumin [Mass/volume] in Serum or Plasma +
      32046-5Pregnancy associated plasma protein A [Units/volume] in Serum or Plasma +
      2837-3Pregnenolone [Mass/volume] in Serum or Plasma +
      2839-9Progesterone [Mass/volume] in Serum or Plasma +
      2842-3Prolactin [Mass/volume] in Serum or Plasma +
      20655-7Proline [Moles/volume] in Serum or Plasma +
      783-1Promyelocytes/100 leukocytes in Blood by Manual count +
      26523-1Promyelocytes [#/volume] in Blood +
      3545-1Propoxyphene [Mass/volume] in Urine +
      10886-0Prostate Specific Ag Free [Mass/volume] in Serum or Plasma +
      12841-3Prostate Specific Ag Free/Prostate specific Ag.total in Serum or Plasma +
      2857-1Prostate specific Ag [Mass/volume] in Serum or Plasma +
      6968-2Proteinase 3 Ab [Units/volume] in Serum +
      27819-2Protein C actual/normal in Platelet poor plasma by Coagulation assay +
      27820-0Protein C Ag actual/normal in Platelet poor plasma by Immunologic method +
      2890-2Protein/Creatinine [Mass Ratio] in Urine +
      2881-1Protein [Mass/volume] in Body fluid +
      2880-3Protein [Mass/volume] in Cerebral spinal fluid +
      2885-2Protein [Mass/volume] in Serum or Plasma +
      2888-6Protein [Mass/volume] in Urine +
      2889-4Protein [Mass/time] in 24 hour Urine +
      27822-6Protein S actual/normal in Platelet poor plasma by Coagulation assay +
      27823-4Protein S Ag actual/normal in Platelet poor plasma by Immunologic method +
      2892-8Protoporphyrin Free [Mass/volume] in Blood +
      2895-1Protoporphyrin.zinc [Mass/volume] in Red Blood Cells +
      6019-4Almond IgE Ab [Units/volume] in Serum +
      2900-9Pyridoxine [Mass/volume] in Serum or Plasma +
      14121-8Pyruvate [Moles/volume] in Blood +
      6189-5White Oak IgE Ab [Units/volume] in Serum +
      6164-8Virginia Live Oak IgE Ab [Units/volume] in Serum +
      31147-2Reagin Ab [Titer] in Serum by RPR +
      2915-7Renin [Enzymatic activity/volume] in Plasma +
      31112-6Reticulocytes/100 erythrocytes in Blood by Manual +
      14196-0Reticulocytes [#/volume] in Blood +
      2923-1Retinol [Mass/volume] in Serum or Plasma +
      38496-6Retinyl palmitate [Mass/volume] in Serum or Plasma +
      11572-5Rheumatoid factor [Units/volume] in Serum or Plasma +
      8014-3Rubella virus IgG Ab [Units/volume] in Serum +
      5335-5Rubella virus IgM Ab [Units/volume] in Serum by Immunoassay +
      6076-4Clam IgE Ab [Units/volume] in Serum +
      31032-6Baker's yeast IgA Ab [Units/volume] in Serum +
      35538-8Baker's yeast IgG Ab [Mass/volume] in Serum +
      4024-6Salicylates [Mass/volume] in Serum or Plasma +
      6237-2Salmon IgE Ab [Units/volume] in Serum +
      6234-9Saltwort IgE Ab [Units/volume] in Serum +
      27416-7SCL-70 extractable nuclear Ab [Units/volume] in Serum +
      5724-0Selenium [Mass/volume] in Serum or Plasma +
      20656-5Serine [Moles/volume] in Serum or Plasma +
      6242-2Sesame Seed IgE Ab [Units/volume] in Serum +
      13967-5Sex hormone binding globulin [Moles/volume] in Serum or Plasma +
      10587-4Sexual abstinence duration +
      29247-4Sirolimus [Mass/volume] in Blood +
      17791-5Sjogrens syndrome-B extractable nuclear Ab [Units/volume] in Serum +
      5358-7Smooth muscle Ab [Titer] in Serum by Immunofluorescence +
      2951-2Sodium [Moles/volume] in Serum or Plasma +
      2955-3Sodium [Moles/volume] in Urine +
      2956-1Sodium [Moles/time] in 24 hour Urine +
      6220-8Potato IgE Ab [Units/volume] in Serum +
      2963-7Somatotropin [Mass/volume] in Serum or Plasma +
      6152-3Johnson grass IgE Ab [Units/volume] in Serum +
      2965-2Specific gravity of Urine +
      3167-4Volume of 24 hour Urine +
      3160-9Volume of Semen +
      28009-9Volume of Urine +
      19153-6Volume of unspecified time Urine +
      33247-8Weight of Sweat +
      6800-7Spermatozoa Motile/100 spermatozoa in Semen +
      9780-8Spermatozoa [#/volume] in Semen +
      10622-9Spermatozoa Normal/100 spermatozoa in Semen +
      27374-8Streptococcus pneumoniae 12 IgG Ab [Mass/volume] in Serum +
      27387-0Streptococcus pneumoniae 14 IgG Ab [Mass/volume] in Serum +
      27390-4Streptococcus pneumoniae 19 IgG Ab [Mass/volume] in Serum +
      27092-6Streptococcus pneumoniae 1 IgG Ab [Mass/volume] in Serum +
      27389-6Streptococcus pneumoniae 23 IgG Ab [Mass/volume] in Serum +
      27118-9Streptococcus pneumoniae 26 IgG Ab [Mass/volume] in Serum +
      27096-7Streptococcus pneumoniae 3 IgG Ab [Mass/volume] in Serum +
      27094-2Streptococcus pneumoniae 4 IgG Ab [Mass/volume] in Serum +
      25296-5Streptococcus pneumoniae 51 IgG Ab [Mass/volume] in Serum +
      30153-1Streptococcus pneumoniae 68 IgG Ab [Mass/volume] in Serum +
      27113-0Streptococcus pneumoniae 8 IgG Ab [Mass/volume] in Serum +
      27392-0Streptococcus pneumoniae 9 IgG Ab [Mass/volume] in Serum +
      22568-0Streptolysin O Ab [Titer] in Serum +
      11253-2Tacrolimus [Mass/volume] in Blood +
      20657-3Taurine [Moles/volume] in Serum or Plasma +
      2991-8Testosterone Free [Mass/volume] in Serum or Plasma +
      15432-8Testosterone Free/Testosterone.total in Serum or Plasma +
      49041-7Testosterone [Mass/volume] in Serum or Plasma by Detection limit <= 1.0 ng/dL +
      2986-8Testosterone [Mass/volume] in Serum or Plasma +
      4049-3Theophylline [Mass/volume] in Serum or Plasma +
      2998-3Thiamine [Mass/volume] in Blood +
      2999-1Thiamine [Mass/volume] in Serum or Plasma +
      20658-1Threonine [Moles/volume] in Serum or Plasma +
      6270-3Tuna IgE Ab [Units/volume] in Serum +
      8098-6Thyroglobulin Ab [Units/volume] in Serum or Plasma +
      3013-0Thyroglobulin [Mass/volume] in Serum or Plasma +
      38505-4Thyroglobulin recovery in Serum or Plasma +
      8099-4Thyroperoxidase Ab [Units/volume] in Serum or Plasma +
      3016-3Thyrotropin [Units/volume] in Serum or Plasma +
      3024-7Thyroxine (T4) free [Mass/volume] in Serum or Plasma +
      31144-9Thyroxine (T4) [Mass/volume] in Dried blood spot +
      3026-2Thyroxine (T4) [Mass/volume] in Serum or Plasma +
      31017-7Tissue transglutaminase IgA Ab [Units/volume] in Serum +
      32998-7Tissue transglutaminase IgG Ab [Units/volume] in Serum +
      35670-9Tobramycin [Mass/volume] in Serum or Plasma +
      4057-6Tobramycin [Mass/volume] in Serum or Plasma --peak +
      4059-2Tobramycin [Mass/volume] in Serum or Plasma --trough +
      17713-9Topiramate [Mass/volume] in Serum or Plasma +
      3034-6Transferrin [Mass/volume] in Serum or Plasma +
      15212-4Lipase [Enzymatic activity/volume] in Body fluid +
      3040-3Lipase [Enzymatic activity/volume] in Serum or Plasma +
      2571-8Triglyceride [Mass/volume] in Serum or Plasma +
      3051-0Triiodothyronine (T3) Free [Mass/volume] in Serum or Plasma +
      3053-6Triiodothyronine (T3) [Mass/volume] in Serum or Plasma +
      3050-2Triiodothyronine resin uptake (T3RU) in Serum or Plasma +
      3052-8Triiodothyronine (T3).reverse [Mass/volume] in Serum or Plasma +
      6276-0Wheat IgE Ab [Units/volume] in Serum +
      10839-9Troponin I.cardiac [Mass/volume] in Serum or Plasma +
      21582-2Tryptase [Mass/volume] in Serum or Plasma +
      20660-7Tyrosine [Moles/volume] in Serum or Plasma +
      6109-3White Elm IgE Ab [Units/volume] in Serum +
      3084-1Urate [Mass/volume] in Serum or Plasma +
      3086-6Urate [Mass/volume] in Urine +
      3087-4Urate [Mass/time] in 24 hour Urine +
      3094-0Urea nitrogen [Mass/volume] in Serum or Plasma +
      3095-7Urea nitrogen [Mass/volume] in Urine +
      3096-5Urea nitrogen [Mass/time] in 24 hour Urine +
      3107-0Urobilinogen [Mass/volume] in Urine +
      6186-1Nettle IgE Ab [Units/volume] in Serum +
      20661-5Valine [Moles/volume] in Serum or Plasma +
      4086-5Valproate [Mass/volume] in Serum or Plasma +
      20578-1Vancomycin [Mass/volume] in Serum or Plasma +
      4090-7Vancomycin [Mass/volume] in Serum or Plasma --peak +
      4092-3Vancomycin [Mass/volume] in Serum or Plasma --trough +
      9624-8Vanillylmandelate [Mass/volume] in Urine +
      3122-9Vanillylmandelate [Mass/time] in 24 hour Urine +
      5403-1Varicella zoster virus IgG Ab [Units/volume] in Serum by Immunoassay +
      5404-9Varicella zoster virus IgM Ab [Units/volume] in Serum by Immunoassay +
      6012-9von Willebrand factor (vWf) Ag [Units/volume] in Platelet poor plasma by Immunologic method +
      6014-5von Willebrand factor (vWf) ristocetin cofactor actual/normal in Platelet poor plasma by Aggregation +
      9804-6Weight of Stone +
      6087-1Corn IgE Ab [Units/volume] in Serum +
      5763-8Zinc [Mass/volume] in Serum or Plasma +
      +
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -64888,22 +73089,24 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -64944,13 +73147,119 @@ SNOMED CT includes many codes for this general concept, but no single generalisa + + + + + + + + + + +
    + +

    Around the world, various different coding systems are used for immunizations:

    + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    US Laboratory Observation Profile Observation Name Codes

    +

    LOINC codes. This value set includes all LOINCs

    +

    + Copyright Statement: The LOINC table, LOINC codes, and LOINC panels and forms file are copyright © 1995-2014, Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and available at no cost under the license at http://loinc.org/terms-of-use. +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include all codes defined in http://loinc.org
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -64969,17 +73278,19 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + - + - - - - + + + + + + @@ -65003,42 +73314,232 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + +

    This value set does not contain a fixed number of concepts

    -

    FoodType

    -

    FoodType : all SNOMED CT codes for now. This is a placeholder until code set defined

    +

    Food Type Codes

    +

    FoodType : This value set represents SNOMED CT codes for types of foods. This value set includes all the children of SNOMED CT Concepts from SCTID 255620007 Foods (substance) and is provided as a suggestive example

    Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement

    This value set includes codes defined in other code systems, using the following rules:

      -
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include codes from http://snomed.info/sct where concept is-a 255620007
    - + - + - + - - - - - + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set contains 13 concepts

    +

    Audit Event ID

    +

    Event Types for Audit Events - defined by DICOM with some FHIR specific additions

    +

    + Copyright Statement: These codes are excerpted from Digital Imaging and Communications in Medicine (DICOM) Standard, Part 16: Content Mapping Resource, Copyright 2011 by the National Electrical Manufacturers Association +

    +

    This value set defines its own terms in the system http://hl7.org/fhir/audit-event-type

    + + + + + + + + + + + +
    + Code + + Display + + Definition +
    rest + + RESTful OperationAudit Event: Execution of a RESTful operation as defined by FHIR
    +

    In addition, this value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in http://nema.org/dicom/dicm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      110100Application ActivityAudit event: Application Activity has taken place
      110101Audit Log UsedAudit event: Audit Log has been used
      110102Begin Transferring DICOM InstancesAudit event: Storage of DICOM Instances has begun
      110103DICOM Instances AccessedAudit event: DICOM Instances have been created, read, updated, or deleted -audit event
      110104DICOM Instances TransferredAudit event: Storage of DICOM Instances has been completed
      110105DICOM Study DeletedAudit event: Entire Study has been deleted
      110106ExportAudit event: Data has been exported out of the system
      110107ImportAudit event: Data has been imported into the system
      110108Network EntryAudit event: System has joined or left network
      110112QueryAudit event: Query has been made
      110113Security AlertAudit event: Security Alert has been raised
      110114User AuthenticationAudit event: User Authentication has been attempted
      +
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    @@ -65049,8 +73550,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -65070,17 +73571,19 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + @@ -65101,48 +73604,10 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - - - - - -
    TBD
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - + + @@ -65796,17 +74261,19 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + @@ -65815,7 +74282,7 @@ SNOMED CT includes many codes for this general concept, but no single generalisa * the coding system 2.16.840.1.113883.5.11 is actually 2.16.840.1.113883.5.111 --> - + @@ -66201,8 +74668,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -66247,23 +74714,25 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + - + @@ -66286,8 +74755,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -66297,17 +74766,19 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + @@ -66330,8 +74801,8 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - + + @@ -66348,17 +74819,19 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - + - + - - - - + + + + + + @@ -66375,65 +74848,13 @@ SNOMED CT includes many codes for this general concept, but no single generalisa - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    AssessmentSupportingObservationCodes

    -

    AssessmentSupportingObservationCodes : All SNOMED CT and LOINC codes for now. This is a placeholder until code set defined

    -

    - Copyright Statement: This value set includes content from LOINC®, which is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use. This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include all codes defined in http://snomed.info/sct
    • -
    • Include all codes defined in http://loinc.org
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -66454,17 +74875,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -66486,36 +74909,52 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + + - -
    TBD
    + +
    +

    This value set does not contain a fixed number of concepts

    +

    AssessmentSupportingObservationCodes

    +

    AssessmentSupportingObservationCodes : All SNOMED CT and LOINC codes for now. This is a placeholder until code set defined

    +

    + Copyright Statement: This value set includes content from LOINC®, which is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use. This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include all codes defined in http://loinc.org
    • +
    +
    - - + + - - - - - - - + + + + + + + + + + + + - - - - - - - + + + +
    @@ -66526,8 +74965,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -66590,17 +75029,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -66646,8 +75087,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -66686,23 +75127,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -66722,8 +75165,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -66742,17 +75185,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -66774,127 +75219,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - -
    - -

    This value set contains 3 concepts

    - -

    ObservationReliability

    - -

    Codes that provide an estimate of the degree to which quality issues have impacted on the value of a CQF observation

    - -

    This value set defines its own terms in the system http://hl7.org/fhir/observation-reliability

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Code - - - - Definition - -
    ok - - - - The result has no reliability concerns.
    ongoing - - - - An early estimate of value; measurement is still occurring.
    early - - - - An early estimate of value; processing is still occurring.
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -66933,23 +75264,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -66969,8 +75302,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -67013,17 +75346,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -67053,42 +75388,49 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + +

    This value set does not contain a fixed number of concepts

    -

    FluidConsistencyType

    -

    FluidConsistencyType : all SNOMED CT codes for now. This is a placeholder until code set defined

    +

    Fluid Consistency Type Codes

    +

    FluidConsistencyType : Codes used to represent the consistency of fluids and liquids provided to the patient. This value set includes all the children of SNOMED CT Concepts from SCTID(US Extension): 435681000124103 Dietary liquid consistency diet (regime/therapy) and is provided as a suggestive example

    Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement

    This value set includes codes defined in other code systems, using the following rules:

      -
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include codes from http://snomed.info/sct where concept is-a 435681000124103
    - + - + - + - - - - - + + + + + + + + + + + +
    @@ -67099,8 +75441,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -67120,17 +75462,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -67152,11 +75496,11 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + @@ -67168,8 +75512,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -67207,22 +75551,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -67241,161 +75587,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - -
    - -

    This value set contains 3 concepts

    - -

    CQFMedicationAdministrationStatus

    - -

    A set of codes indicating the current status of a CQF MedicationAdministration

    - -

    This value set defines its own terms in the system http://hl7.org/fhir/medication-admin-status

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Code - - - - Definition - - - - - - v3 Map (ctStatus) - - - -
    on-hold - - - - Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended". - - - - suspended - -
    entered-in-error - - - - The administration was entered in error and therefore nullified. - - - - nullified - -
    stopped - - - - Actions implied by the administration have been permanently halted, before all of them occurred. - - - - aborted - -
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -67562,23 +75760,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -67672,8 +75872,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -67767,54 +75967,58 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - - - - - + + + + + + + + + + + + - + - + - + - + - + @@ -67825,14 +76029,14 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + @@ -67859,8 +76063,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -77169,23 +85373,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -82503,8 +90709,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -82528,17 +90734,17 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 EXT extended courtesy - + extended courtesy NRM normal courtesy - + normal courtesy PRF professional courtesy - + professional courtesy STF @@ -82548,7 +90754,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 VIP very important person - + very important person @@ -82581,17 +90787,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -82624,13 +90832,64 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 + + + + + + + + + + +
    + This value set includes all UCUM codes + +
    +

    This value set does not contain a fixed number of concepts

    +

    UCUM Codes

    +

    UCUM Codes for units of measure. This value set includes all UCUM codes

    +

    + Copyright Statement: The UCUM codes, UCUM table (regardless of format), and UCUM Specification are copyright © 1999-2009, Regenstrief Institute, Inc. and the Unified Codes for Units of Measures (UCUM) Organization. All rights reserved. +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include all codes defined in http://unitsofmeasure.org
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -82669,23 +90928,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -82705,8 +90966,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -82772,22 +91033,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -82816,63 +91079,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    DataElement SDC Concept

    -

    Includes any data element granularity that supports comparison of the data elements - possibly after automated normalization.

    -

    This value set includes codes defined in other code systems, using the following rules:

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -82912,26 +91125,30 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - + - - - - - - - - + + + + + + + + + + + + @@ -82960,8 +91177,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -82972,22 +91189,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -83011,92 +91230,18 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    -

    This value set contains 2 concepts

    -

    Observation Verification Method

    -

    Code for method by which the observation result was validated, e.g., human review, sliding average.

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include these codes as defined in http://need.a.uri.org/observation/verification-method - - - - - - - - - - - - - -
      - Code - - Display -
      1Human review -
      2Sliding average -
      -
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + +
    -

    This value set contains 5 concepts

    +

    This value set contains 7 concepts

    MU Race Value Set

    Meaningful use race code. The 5 base codes (see http://forum.sitenv.org/viewtopic.php?f=16&t=23&sid=8fb101254557843fa05ac94d8d83a095) from PHIN VADS https://phinvads.cdc.gov/vads/ViewValueSet.action?id=94E75E17-176B-DE11-9B52-0015173D1785 (oid: 2.16.840.1.113883.1.11.14914)

    This value set includes codes defined in other code systems, using the following rules:

    @@ -83115,48 +91260,83 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 1002-5 American Indian or Alaska Native - + American Indian or Alaska Native 2028-9 Asian - + Asian 2054-5 Black or African American - + Black or African American 2076-8 Native Hawaiian or Other Pacific Islander - + Native Hawaiian or Other Pacific Islander 2106-3 White - + White + + + +
  • Include these codes as defined in + http://hl7.org/fhir/v3/NullFlavor + + + + + + + + + + + + + +
    + Code + + Display +
    UNKUnknownDescription:A proper value is applicable, but not known. +
    + + Usage Notes: This means the actual value is not known. If the only thing that is unknown is how to properly express the value in the necessary constraints (value set, datatype, etc.), then the OTH or UNC flavor should be used. No properties should be included for a datatype with this property unless: +
    + + Those properties themselves directly translate to a semantic of "unknown". (E.g. a local code sent as a translation that conveys 'unknown') + Those properties further qualify the nature of what is unknown. (E.g. specifying a use code of "H" and a URL prefix of "tel:" to convey that it is the home phone number that is unknown.) +
    ASKUAsked but no answerInformation was sought but not found (e.g., patient was asked but didn't know)
  • - + - + - - - - - - - - + + + + + + + + + + + + @@ -83184,140 +91364,292 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - - - - - -
    -

    This value set contains 7 concepts

    -

    Problem Type Value Set

    -

    The SNOMED CT® has been limited by HITSP to the value set reproduced below in Table 2-60 Problem Type Value Set Definition. This indicates the level of medical judgment used to determine the existence of a problem

    -

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include these codes as defined in http://snomed.info/sct - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      - Code - - Display -
      404684003Finding -
      409586006Complaint -
      282291009Diagnosis -
      64572001Condition -
      248536006Functional limitation -
      418799008Symptom -
      55607006Problem -
      -
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - + - - + + - - - - - - - - - - - - - - - - - - - - - - + +
    + + + + + + + + + + +
    +

    This value set contains 17 concepts

    +

    Signature Type Codes

    +

    The Digital Signature Purposes, an indication of the reason an entity signs a document. This is included in the signed information and can be used when determining accountability for various actions concerning the document. Examples include: author, transcriptionist/recorder, and witness.

    +

    + Copyright Statement: These codes are excerpted from ASTM Standard, E1762-95(2013) - Standard Guide for Electronic Authenticaiton of Health Care Information, Copyright by ASTM International, 100 Barr Harbor Drive, West Conshohocken, PA 19428. Copies of this standard are available through the ASTM Web Site at www.astm.org. +

    +

    This value set defines its own terms in the system http://hl7.org/fhir/valueset-signature-type

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Code + + Display + + Definition +
    1.2.840.10065.1.12.1.1 + + AuthorIDthe signature of the primary or sole author of a health information document. There can be only one primary author of a health information document.
    1.2.840.10065.1.12.1.2 + + Co-AuthorIDthe signature of a health information document coauthor. There can be multiple coauthors of a health information document.
    1.2.840.10065.1.12.1.3 + + Co-Participatedthe signature of an individual who is a participant in the health information document but is not an author or coauthor. (Example a surgeon who is required by institutional, regulatory, or legal rules to sign an operative report, but who was not involved in the authorship of that report.)
    1.2.840.10065.1.12.1.4 + + Transcriptionistthe signature of an individual who has transcribed a dictated document or recorded written text into a digital machine readable format.
    1.2.840.10065.1.12.1.5 + + Verificationa signature verifying the information contained in a document. (Example a physician is required to countersign a verbal order that has previously been recorded in the medical record by a registered nurse who has carried out the verbal order.)
    1.2.840.10065.1.12.1.6 + + Validationa signature validating a health information document for inclusion in the patient record. (Example a medical student or resident is credentialed to perform history or physical examinations and to write progress notes. The attending physician signs the history and physical examination to validate the entry for inclusion in the patient's medical record.)
    1.2.840.10065.1.12.1.7 + + Consentthe signature of an individual consenting to what is described in a health information document.
    1.2.840.10065.1.12.1.8 + + Witnessthe signature of a witness to any other signature.
    1.2.840.10065.1.12.1.9 + + Event-Witnessthe signature of a witness to an event. (Example the witness has observed a procedure and is attesting to this fact.)
    1.2.840.10065.1.12.1.10 + + Identity-Witnessthe signature of an individual who has witnessed another individual who is known to them signing a document. (Example the identity witness is a notary public.)
    1.2.840.10065.1.12.1.11 + + Consent-Witnessthe signature of an individual who has witnessed the health care provider counselling a patient.
    1.2.840.10065.1.12.1.12 + + Interpreterthe signature of an individual who has translated health care information during an event or the obtaining of consent to a treatment.
    1.2.840.10065.1.12.1.13 + + Reviewthe signature of a person, device, or algorithm that has reviewed or filtered data for inclusion into the patient record. ( Examples: (1) a medical records clerk who scans a document for inclusion in the medical record, enters header information, or catalogues and classifies the data, or a combination thereof; (2) a gateway that receives data from another computer system and interprets that data or changes its format, or both, before entering it into the patient record.)
    1.2.840.10065.1.12.1.14 + + Sourcethe signature of an automated data source. (Examples: (1) the signature for an image that is generated by a device for inclusion in the patient record; (2) the signature for an ECG derived by an ECG system for inclusion in the patient record; (3) the data from a biomedical monitoring device or system that is for inclusion in the patient record.)
    1.2.840.10065.1.12.1.15 + + Addendumthe signature on a new amended document of an individual who has corrected, edited, or amended an original health information document. An addendum signature can either be a signature type or a signature sub-type (see 8.1). Any document with an addendum signature shall have a companion document that is the original document with its original, unaltered content, and original signatures. The original document shall be referenced via an attribute in the new document, which contains, for example, the digest of the old document. Whether the original, unaltered, document is always displayed with the addended document is a local matter, but the original, unaltered, document must remain as part of the patient record and be retrievable on demand.
    1.2.840.10065.1.12.1.16 + + Administrativethe signature on an original document of an individual who has generated a new amended document. This (original) document shall reference the new document via an additional signature purpose. This is the inverse of an addendum signature and provides a pointer from the original to the amended document.
    1.2.840.10065.1.12.1.17 + + Timestampthe signature of an individual who is certifying that the document is invalidated by an error(s), or is placed in the wrong chart. An administrative (error/edit) signature must include an addendum to the document and therefore shall have an addendum signature sub-type (see 8.1). This signature is reserved for the highest health information system administrative classification, since it is a statement that the entire document is invalidated by the error and that the document should no longer be used for patient care, although for legal reasons the document must remain part of the permanent patient record.
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -83360,24 +91692,28 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - + - - - - - - - - + + + + + + + + + + + + @@ -83406,61 +91742,49 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + +
    - -

    This value set includes all SNOMED CT codes relating to the qualifier "Known" (concepts with an is-a relationship with 36692007) - that are present, possible or suspected. -

    - +

    This value set does not contain a fixed number of concepts

    +

    AbnormalInterpretation

    +

    HL7 V3:ObservationInterpretation OID: 2.16.840.1.113883.5.83

    +

    + Copyright Statement: IHC +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
    - - + + - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - +
    @@ -83471,8 +91795,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -83541,23 +91865,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -83592,8 +91918,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -83632,23 +91958,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -83668,8 +91996,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -83691,17 +92019,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -83724,8 +92054,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -83763,22 +92093,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -83797,192 +92129,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - -
    - -

    This value set contains 4 concepts

    - -

    CQFDiagnosticReportStatus

    - -

    The status of the diagnostic report as a whole

    - -

    This value set defines its own terms in the system http://hl7.org/fhir/diagnostic-report-status

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Code - - - - Definition - -
    final - - - - The report is complete and verified by an authorized person.
    corrected - - - - The report has been modified subsequent to being Final, and is complete and verified by an authorized person.
    amended - - - - The report has been modified subsequent to being Final, and is complete and verified by an authorized person, and data has been changed.
    appended - - - - The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed.
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    #ListPurposeCodes

    -

    ListPurposeCodes: Should be selected from ICF (codeSystem 2.16.840.1.113883.6.254) or SNOMED CT (codeSystem 2.16.840.1.113883.6.96)

    -

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include all codes defined in http://snomed.info/sct
    • -
    • Include all codes defined in http://www.who.int/classifications/icf/en/
    • -
    • Include all codes defined in http://hl7.org/fhir/null-flavor
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -84069,22 +92222,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -84129,13 +92284,69 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    #ListPurposeCodes

    +

    ListPurposeCodes: Should be selected from ICF (codeSystem 2.16.840.1.113883.6.254) or SNOMED CT (codeSystem 2.16.840.1.113883.6.96)

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include all codes defined in http://www.who.int/classifications/icf/en/
    • +
    • Include all codes defined in http://hl7.org/fhir/null-flavor
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -84207,17 +92418,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -84265,13 +92478,51 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 + + + + + + + + + + +
    TBD
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -84364,20 +92615,22 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - + - - - - @@ -84435,8 +92688,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -84537,22 +92790,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -84617,8 +92872,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -84677,22 +92932,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -84731,8 +92988,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -84860,10 +93117,10 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + @@ -84917,8 +93174,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -85005,22 +93262,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -85070,8 +93329,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -85104,23 +93363,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -85137,8 +93398,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -85272,12 +93533,12 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 281PC2000N Hospitals; Chronic Disease Hospital; Children - + Hospitals; Chronic Disease Hospital; Children 282NC2000N Hospitals; General Acute Care Hospital; Children - + Hospitals; General Acute Care Hospital; Children 281NR1301N @@ -85287,27 +93548,27 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 282NW0100N Hospitals; General Acute Care Hospital; Women - + Hospitals; General Acute Care Hospital; Women 283XC2000N Hospitals; Rehabilitation Hospital; Children - + Hospitals; Rehabilitation Hospital; Children 2865C1500N Hospitals; Military Hospital; Community Health - + Hospitals; Military Hospital; Community Health 2865M2000N Hospitals; Military Hospital; Medical Center - + Hospitals; Military Hospital; Medical Center 2865X1600N Hospitals; Military Hospital; Operational Component Facility - + Hospitals; Military Hospital; Operational Component Facility @@ -85330,7 +93591,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 ALL Allergy clinic - + Allergy clinic AMB @@ -85340,47 +93601,47 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 AMPUT Amputee clinic - + Amputee clinic BMTC Bone marrow transplant clinic - + Bone marrow transplant clinic BMTU Bone marrow transplant unit - + Bone marrow transplant unit BREAST Breast clinic - + Breast clinic CANC Child and adolescent neurology clinic - + Child and adolescent neurology clinic CAPC Child and adolescent psychiatry clinic - + Child and adolescent psychiatry clinic CARD Ambulatory Health Care Facilities; Clinic/Center; Rehabilitation: Cardiac Facilities - + Ambulatory Health Care Facilities; Clinic/Center; Rehabilitation: Cardiac Facilities CATH Cardiac catheterization lab - + Cardiac catheterization lab CCU Coronary care unit - + Coronary care unit CHEST @@ -85395,7 +93656,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 COAG Coagulation clinic - + Coagulation clinic COMM @@ -85405,7 +93666,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 CRS Colon and rectal surgery clinic - + Colon and rectal surgery clinic CVDX @@ -85420,7 +93681,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 DERM Dermatology clinic - + Dermatology clinic DX @@ -85430,12 +93691,12 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 ECHO Echocardiography lab - + Echocardiography lab ENDO Endocrinology clinic - + Endocrinology clinic ENDOS @@ -85445,12 +93706,12 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 ENT Otorhinolaryngology clinic - + Otorhinolaryngology clinic EPIL Epilepsy unit - + Epilepsy unit ER @@ -85460,12 +93721,12 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 ETU Emergency trauma unit - + Emergency trauma unit FMC Family medicine clinic - + Family medicine clinic GACH @@ -85475,7 +93736,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 GI Gastroenterology clinic - + Gastroenterology clinic GIDX @@ -85485,27 +93746,27 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 GIM General internal medicine clinic - + General internal medicine clinic GYN Gynecology clinic - + Gynecology clinic HAND Hand clinic - + Hand clinic HD Hemodialysis unit - + Hemodialysis unit HEM Hematology clinic - + Hematology clinic HOSP @@ -85515,17 +93776,17 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 HTN Hypertension clinic - + Hypertension clinic HU Hospital unit - + Hospital unit ICU Intensive care unit - + Intensive care unit IEC @@ -85535,22 +93796,22 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 INFD Infectious disease clinic - + Infectious disease clinic INV Infertility clinic - + Infertility clinic LYMPH Lympedema clinic - + Lympedema clinic MGEN Medical genetics clinic - + Medical genetics clinic MHSP @@ -85565,57 +93826,57 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 NCCF Nursing or custodial care facility - + Nursing or custodial care facility NCCS Neurology critical care and stroke unit - + Neurology critical care and stroke unit NEPH Nephrology clinic - + Nephrology clinic NEUR Neurology clinic - + Neurology clinic NS Neurosurgery unit - + Neurosurgery unit OB Obstetrics clinic - + Obstetrics clinic OF Outpatient facility - + Outpatient facility OMS Oral and maxillofacial surgery clinic - + Oral and maxillofacial surgery clinic ONCL Medical oncology clinic - + Medical oncology clinic OPH Opthalmology clinic - + Opthalmology clinic ORTHO Orthopedics clinic - + Orthopedics clinic PAINCL @@ -85630,62 +93891,62 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 PEDC Pediatrics clinic - + Pediatrics clinic PEDCARD Pediatric cardiology clinic - + Pediatric cardiology clinic PEDE Pediatric endocrinology clinic - + Pediatric endocrinology clinic PEDGI Pediatric gastroenterology clinic - + Pediatric gastroenterology clinic PEDHEM Pediatric hematology clinic - + Pediatric hematology clinic PEDHO Pediatric oncology clinic - + Pediatric oncology clinic PEDICU Pediatric intensive care unit - + Pediatric intensive care unit PEDID Pediatric infectious disease clinic - + Pediatric infectious disease clinic PEDNEPH Pediatric nephrology clinic - + Pediatric nephrology clinic PEDNICU Pediatric neonatal intensive care unit - + Pediatric neonatal intensive care unit PEDRHEUM Pediatric rheumatology clinic - + Pediatric rheumatology clinic PEDU Pediatric unit - + Pediatric unit PHARM @@ -85700,7 +93961,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 PLS Plastic surgery clinic - + Plastic surgery clinic POD @@ -85710,17 +93971,17 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 PRC Pain rehabilitation center - + Pain rehabilitation center PREV Preventive medicine clinic - + Preventive medicine clinic PROCTO Proctology clinic - + Proctology clinic PROFF @@ -85730,17 +93991,17 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 PROS Prosthodontics clinic - + Prosthodontics clinic PSI Psychology clinic - + Psychology clinic PSY Psychiatry clinic - + Psychiatry clinic PSYCHF @@ -85770,22 +94031,22 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 RHEUM Rheumatology clinic - + Rheumatology clinic RHU Rehabilitation hospital unit - + Rehabilitation hospital unit RNEU Neuroradiology unit - + Neuroradiology unit RTF Residential treatment facility - + Residential treatment facility SCHOOL @@ -85805,12 +94066,12 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 SPMED Sports medicine clinic - + Sports medicine clinic SU Surgery clinic - + Surgery clinic SURF @@ -85820,39 +94081,41 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 TR Transplant clinic - + Transplant clinic TRAVEL Travel and geographic medicine clinic - + Travel and geographic medicine clinic URO Urology clinic - + Urology clinic WND Wound clinic - + Wound clinic - + - + - - - - + + + + + + - + @@ -86265,67 +94528,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    DataElement SDC Concept

    -

    The allowed codes for identifying the ISO 11179 data element concept if intended for registration/use within the U.S. Structured Data Capture (SDC) project.

    -

    - Copyright Statement: This value set includes content from LOINC®, which is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use. This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include all codes defined in http://snomed.info/sct
    • -
    • Include all codes defined in http://loinc.org
    • -
    • Include all codes defined in http://www.nlm.nih.gov/research/umls/rxnorm
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -86370,23 +94579,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -86409,8 +94620,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -86434,29 +94645,31 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 LA left arm - + left arm RA right arm - + right arm - + - + - - - - + + + + + + @@ -86474,67 +94687,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    SNOMED CT code system values descending from: Anatomical Structure (91723000). - This indicates the anatomical site. In UMLS, SNOMED CT concepts with semantic types (SY) of: Acquired Abnormality - (TUI=T020), Anatomical Abnormality (TUI=T190), Anatomical Structure (TUI=T017), Body Location or Region (TUI=T029), - Body Part, Organ, or Organ Component (TUI=T023), Body Space or Junction(TUI=T030), and Body System(TUI=T022). -
    -

    This value set does not contain a fixed number of concepts

    -

    HSPC Delta Flag Value Set Definition

    -

    SELECT SNOMED CT code system values representing precoordinated body sites.

    -

    - Copyright Statement: TBD -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include codes from http://snomed.info/sct where concept is-a 91723000
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -86579,22 +94738,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -86623,8 +94784,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -86843,23 +95004,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -86964,54 +95127,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    Security Event Object Sensitivity

    -

    The sensitivity of an object in a secuity event resource. May also encompass confidentiality and rudimentary access control

    -

    This value set includes codes defined in other code systems, using the following rules:

    - -
    -
    - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -87028,17 +95150,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -87061,8 +95185,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -87114,22 +95238,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -87163,8 +95289,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -87221,23 +95347,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -87266,8 +95394,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -87300,23 +95428,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -87333,8 +95463,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -87356,10 +95486,10 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + @@ -87381,8 +95511,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -87469,22 +95599,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -87543,8 +95675,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -87595,23 +95727,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -87637,8 +95771,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -87676,22 +95810,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -87715,8 +95851,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -87857,23 +95993,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -87939,113 +96077,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    - This value set includes all UCUM codes - -
    -

    This value set does not contain a fixed number of concepts

    -

    UCUM Codes

    -

    This value set includes all UCUM codes

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include all codes defined in http://unitsofmeasure.org
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - -

    - This value set includes all terms in - SNOMED CT, IDC-10-AM, and CPT-4. - -

    - -

    - - Open Issue: Due to CPT license conditions, the correct use of CPT-4 in FHIR cannot be described. - -

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -88095,17 +96133,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -88143,42 +96183,461 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + +
    -

    This value set does not contain a fixed number of concepts

    -

    SupplementType

    -

    SupplementType : all SNOMED CT codes for now. This is a placeholder until code set defined

    +

    This value set contains 45 concepts

    +

    Supplement Type Codes

    +

    SupplementType : Codes for nutritional supplements to be provided to the patient. This value set is is composed of SNOMED CT (US Extension) Concepts from SCTID 470581016 Enteral+supplement feeds heirarchy and is provided as a suggestive example

    Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement

    This value set includes codes defined in other code systems, using the following rules:

      -
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include these codes as defined in http://snomed.info/sct + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      442901000124106Adult clear liquid supplement +
      4430310000124106Adult critical care formula +
      443051000124104Adult diabetes specialty formula +
      442911000124109Adult elemental formula +
      443021000124108Adult hepatic specialty formula +
      442971000124100Adult high energy formula +
      442981000124102Adult hydrolyzed protein formula +
      442991000124104Adult high protein formula +
      443011000124100Adult high protein high fiber formula +
      442961000124107Adult low carbohydrate formula +
      442951000124105Adult pulmonary specialty formula +
      442941000124108Adult renal specialty formula +
      442921000124101Adult standard formula +
      442931000124103Adult soy protein isolate formula +
      444331000124106Diabetic meal replacement bar +
      443361000124100Pediatric Formula +
      443391000124108Pediatric clear liquid supplement +
      443401000124105Pediatric elemental formula +
      443491000124103Pediatric high energy formula +
      443501000124106Pediatric high energy formula with increased fiber +
      443421000124100Pediatric hydrolyzed protein formula +
      443471000124104Pediatric increased fiber formula +
      444431000124104Pediatric reduced energy formula +
      443451000124109Pediatric standard formula +
      444321000124108Standard pudding oral supplement +
      441561000124106 Standard enteral formula with fiber +
      443461000124106Standard Formula +
      441531000124102Standard Enteral Formula +
      443561000124107Soy based formula +
      443481000124101Renal Formula +
      441571000124104High energy enteral formula with fiber +
      441591000124103Diabetic enteral formula with fiber +
      441601000124106Diabetic high calorie high protein enteral formula with fiber +
      443351000124102Increased fiber formula +
      443771000124106Hydrolyzed protein formula +
      441671000124100Hydrolyzed peptide-based high protein enteral formula +
      443111000124101High protein formula +
      443431000124102High Energy Formula +
      443411000124108Elemental Formula +
      444361000124102Electrolyte replacement supplement +
      444401000124107Frozen electrolyte replacement supplement +
      444381000124107Liquid electrolyte replacement supplement +
      444371000124109Powdered electrolyte replacement supplement +
      443441000124107Clear liquid supplement +
      442651000124102Adult formula +
      +
    - + - + - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    @@ -88189,8 +96648,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -88249,22 +96708,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -88298,8 +96759,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -88365,22 +96826,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -88414,13 +96877,98 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    + + + + + + + + + + +
    +

    This value set contains 3 concepts

    +

    Observation Precondition

    +

    The condition, state, or problem that the patient is in or has prior to a therapy or procedure. This captures temporal (temporary circumstances) that have bearing on the data that it qualifies but will not necessarily modify its meaning. Things like 'after activity', 'at rest', or 'post-op'.

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in http://need.a.uri.org/observation/precondition + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      1After activity +
      2At rest +
      3Post-op +
      +
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -88430,17 +96978,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -88461,8 +97011,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -88478,17 +97028,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -88500,276 +97052,177 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    - -

    This value set contains 5 concepts

    - -

    CQFDiagnosticOrderStatus

    - -

    The status of a diagnostic order

    - -

    This value set defines its own terms in the system http://hl7.org/fhir/diagnostic-order-status

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Code - - - - Definition - -
    accepted - - - - The receiving system has accepted the order, but work has not yet commenced.
    in-progress - - - - The work to fulfill the order is happening.
    completed - - - - The work has been complete, the report(s) released, and no further work is planned.
    suspended - - - - The request has been held by originating system/user request.
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - -

    This value set contains 2 concepts

    - -

    CQFObservationStatus

    - -

    Codes providing the status of an observation

    - -

    This value set defines its own terms in the system http://hl7.org/fhir/observation-status

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Code - - - - Display - - - - Definition - -
    final - - - - - - The observation is complete and verified by an authorized person.
    amended - - - - - - The observation has been modified subsequent to being Final, and is complete and verified by an authorized person.
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + +
    - This value set is from - ASTM E1762-05 - +

    This value set contains 17 concepts

    +

    Signature Type Codes

    +

    The Digital Signature Purposes, an indication of the reason an entity signs a document. This is included in the signed information and can be used when determining accountability for various actions concerning the document. Examples include: author, transcriptionist/recorder, and witness.

    +

    + Copyright Statement: These codes are excerpted from ASTM Standard, E1762-95(2013) - Standard Guide for Electronic Authenticaiton of Health Care Information, Copyright by ASTM International, 100 Barr Harbor Drive, West Conshohocken, PA 19428. Copies of this standard are available through the ASTM Web Site at www.astm.org. +

    +

    This value set defines its own terms in the system http://hl7.org/fhir/contractsignertypecodes

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Code + + Display + + Definition +
    1.2.840.10065.1.12.1.1 + + AuthorIDthe signature of the primary or sole author of a health information document. There can be only one primary author of a health information document.
    1.2.840.10065.1.12.1.2 + + Co-AuthorIDthe signature of a health information document coauthor. There can be multiple coauthors of a health information document.
    1.2.840.10065.1.12.1.3 + + Co-Participatedthe signature of an individual who is a participant in the health information document but is not an author or coauthor. (Example a surgeon who is required by institutional, regulatory, or legal rules to sign an operative report, but who was not involved in the authorship of that report.)
    1.2.840.10065.1.12.1.4 + + Transcriptionistthe signature of an individual who has transcribed a dictated document or recorded written text into a digital machine readable format.
    1.2.840.10065.1.12.1.5 + + Verificationa signature verifying the information contained in a document. (Example a physician is required to countersign a verbal order that has previously been recorded in the medical record by a registered nurse who has carried out the verbal order.)
    1.2.840.10065.1.12.1.6 + + Validationa signature validating a health information document for inclusion in the patient record. (Example a medical student or resident is credentialed to perform history or physical examinations and to write progress notes. The attending physician signs the history and physical examination to validate the entry for inclusion in the patient's medical record.)
    1.2.840.10065.1.12.1.7 + + Consentthe signature of an individual consenting to what is described in a health information document.
    1.2.840.10065.1.12.1.8 + + Witnessthe signature of a witness to any other signature.
    1.2.840.10065.1.12.1.9 + + Event-Witnessthe signature of a witness to an event. (Example the witness has observed a procedure and is attesting to this fact.)
    1.2.840.10065.1.12.1.10 + + Identity-Witnessthe signature of an individual who has witnessed another individual who is known to them signing a document. (Example the identity witness is a notary public.)
    1.2.840.10065.1.12.1.11 + + Consent-Witnessthe signature of an individual who has witnessed the health care provider counselling a patient.
    1.2.840.10065.1.12.1.12 + + Interpreterthe signature of an individual who has translated health care information during an event or the obtaining of consent to a treatment.
    1.2.840.10065.1.12.1.13 + + Reviewthe signature of a person, device, or algorithm that has reviewed or filtered data for inclusion into the patient record. ( Examples: (1) a medical records clerk who scans a document for inclusion in the medical record, enters header information, or catalogues and classifies the data, or a combination thereof; (2) a gateway that receives data from another computer system and interprets that data or changes its format, or both, before entering it into the patient record.)
    1.2.840.10065.1.12.1.14 + + Sourcethe signature of an automated data source. (Examples: (1) the signature for an image that is generated by a device for inclusion in the patient record; (2) the signature for an ECG derived by an ECG system for inclusion in the patient record; (3) the data from a biomedical monitoring device or system that is for inclusion in the patient record.)
    1.2.840.10065.1.12.1.15 + + Addendumthe signature on a new amended document of an individual who has corrected, edited, or amended an original health information document. An addendum signature can either be a signature type or a signature sub-type (see 8.1). Any document with an addendum signature shall have a companion document that is the original document with its original, unaltered content, and original signatures. The original document shall be referenced via an attribute in the new document, which contains, for example, the digest of the old document. Whether the original, unaltered, document is always displayed with the addended document is a local matter, but the original, unaltered, document must remain as part of the patient record and be retrievable on demand.
    1.2.840.10065.1.12.1.16 + + Administrativethe signature on an original document of an individual who has generated a new amended document. This (original) document shall reference the new document via an additional signature purpose. This is the inverse of an addendum signature and provides a pointer from the original to the amended document.
    1.2.840.10065.1.12.1.17 + + Timestampthe signature of an individual who is certifying that the document is invalidated by an error(s), or is placed in the wrong chart. An administrative (error/edit) signature must include an addendum to the document and therefore shall have an addendum signature sub-type (see 8.1). This signature is reserved for the highest health information system administrative classification, since it is a statement that the entire document is invalidated by the error and that the document should no longer be used for patient care, although for legal reasons the document must remain part of the permanent patient record.
    - + - + - + - - - - - - + + + + + + + + - + @@ -88777,87 +97230,87 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
    @@ -88868,8 +97321,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -89148,23 +97601,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -89304,8 +97759,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -89315,17 +97770,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -89348,8 +97805,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -89367,20 +97824,22 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - + - - - - + + + + + + @@ -89411,8 +97870,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -89478,22 +97937,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -89537,8 +97998,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -89597,22 +98058,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -89641,18 +98104,57 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    + + + + + + + + + + +
    SELECT SNOMED CT code system values descending from 'change values' (288533004).
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + +
    - This value set includes all LOINC codes (TODO: can we exclude panels without excluding too much?) + This value set includes all LOINC codes

    This value set does not contain a fixed number of concepts

    @@ -89667,17 +98169,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - + - + - - - - + + + + + + @@ -89695,8 +98199,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -89790,22 +98294,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -89859,8 +98365,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -89899,23 +98405,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -89930,51 +98438,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - -
    TBD
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -90037,23 +98507,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -90080,96 +98552,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    -

    This value set contains 3 concepts

    -

    Observation Precondition

    -

    The condition, state, or problem that the patient is in or has prior to a therapy or procedure. This captures temporal (temporary circumstances) that have bearing on the data that it qualifies but will not necessarily modify its meaning. Things like 'after activity', 'at rest', or 'post-op'.

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include these codes as defined in http://need.a.uri.org/observation/precondition - - - - - - - - - - - - - - - - - -
      - Code - - Display -
      1After activity -
      2At rest -
      3Post-op -
      -
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -90180,22 +98569,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -90227,17 +98618,17 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + +

    This value set does not contain a fixed number of concepts

    -

    NutrientModifier

    -

    NutrientModifier : all SNOMED CT codes for now. This is a placeholder until code set defined

    +

    GoalCategory

    +

    goal category - a specific code indicating the type of goal. This value set includes all concepts from SNOMED CT

    Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement

    @@ -90247,18 +98638,20 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - + + - + - - - - - - - + + + + + + + + + @@ -90270,13 +98663,104 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    Nutrient Modifier Codes

    +

    NutrientModifier : Codes for types of nutrient that is being modified such as carbohydrate or sodium. This value set includes all the children of SNOMED CT Concepts from SCTID 226355009 Nutrients (substance), Sodium, Potassium and Fluid and is provided as a suggestive example

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in http://snomed.info/sct + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      33463005Fluid +
      39972003Sodium +
      88480006Potassium +
      Include codes from http://snomed.info/sct where concept is-a 226355009 +
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -90296,17 +98780,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -90319,13 +98805,67 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    DeltaFlag

    +

    SNOMED CT* SELECT SNOMED CT code system values descending from 'change values' (288533004).

    +

    + Copyright Statement: IHC +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://snomed.info/sct where concept is-a 288533004
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -90475,22 +99015,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -90594,8 +99136,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -90605,17 +99147,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -90645,8 +99189,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -90663,17 +99207,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -90691,8 +99237,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -90731,23 +99277,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -90767,8 +99315,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -90787,17 +99335,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -90812,101 +99362,108 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + + + + + +
    SNOMED CT code system values descending from: Anatomical Structure (91723000). + This indicates the anatomical site. In UMLS, SNOMED CT concepts with semantic types (SY) of: Acquired Abnormality + (TUI=T020), Anatomical Abnormality (TUI=T190), Anatomical Structure (TUI=T017), Body Location or Region (TUI=T029), + Body Part, Organ, or Organ Component (TUI=T023), Body Space or Junction(TUI=T030), and Body System(TUI=T022). +
    +

    This value set does not contain a fixed number of concepts

    +

    HSPC Delta Flag Value Set Definition

    +

    SELECT SNOMED CT code system values representing precoordinated body sites.

    +

    + Copyright Statement: TBD +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://snomed.info/sct where concept is-a 91723000
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + +
    -

    This value set contains 5 concepts

    -

    MU Race Value Set

    -

    Meaningful use race code. The 5 base codes (see http://forum.sitenv.org/viewtopic.php?f=16&t=23&sid=8fb101254557843fa05ac94d8d83a095) from PHIN VADS https://phinvads.cdc.gov/vads/ViewValueSet.action?id=94E75E17-176B-DE11-9B52-0015173D1785 (oid: 2.16.840.1.113883.1.11.14914)

    +

    This value set does not contain a fixed number of concepts

    +

    DataElement SDC Object Class

    +

    The allowed codes for identifying the ISO 11179 ObjectClass for a particular data element if intended for registration/use within the U.S. Structured Data Capture (SDC) project.

    +

    + Copyright Statement: This value set includes content from LOINC®, which is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use. This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    This value set includes codes defined in other code systems, using the following rules:

      -
    • Include these codes as defined in - http://hl7.org/fhir/v3/Race - - - - - - - - - - - - - - - - - - - - - - - - - -
      - Code - - Display -
      1002-5American Indian or Alaska Native -
      2028-9Asian -
      2054-5Black or African American -
      2076-8Native Hawaiian or Other Pacific Islander -
      2106-3White -
      -
    • +
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include all codes defined in http://loinc.org
    • +
    • Include all codes defined in http://www.nlm.nih.gov/research/umls/rxnorm
    - - + + - + - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + +
    @@ -90917,8 +99474,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -90963,22 +99520,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -91007,8 +99566,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -91060,22 +99619,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -91105,8 +99666,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -91149,17 +99710,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -91181,111 +99744,20 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - -
    -

    ConditionStatusPresent

    -

    The clinical status of the Condition or diagnosis

    -

    This value set defines its own terms in the system http://hl7.org/fhir/condition-status

    - - - - - - - - - - - - - - - - - - - -
    - Code - - Display - - Definition -
    provisional - - - This is a tentative diagnosis - still a candidate that is under consideration.
    working - - - The patient is being treated on the basis that this is the condition, but it is still not confirmed.
    confirmed - - - There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + +

    This value set does not contain a fixed number of concepts

    ParticipantType

    -

    This value set defines a set of codes that can be used to indicate how an individual parcitipates in an encounter

    +

    This value set defines a set of codes that can be used to indicate how an individual participates in an encounter

    This value set defines its own terms in the system http://hl7.org/fhir/participant-type

    @@ -91323,22 +99795,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - - + + + + + + + - + @@ -91372,8 +99846,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -91418,23 +99892,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - + - + - - - - + + + + + + - + @@ -91457,8 +99933,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -91498,26 +99974,30 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - + - - - - - - - - + + + + + + + + + + + + @@ -91544,46 +100024,78 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + +
    -

    This value set does not contain a fixed number of concepts

    -

    ExcludeFoodModifier

    -

    ExcludeFoodModifier : all SNOMED CT codes for now. This is a placeholder until code set defined

    + This value set includes sample Contract Action Reason codes. + +
    +

    This value set contains 2 concepts

    +

    Contract Type Codes

    +

    This value set includes sample Contract Action Reason codes.

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement + Copyright Statement: This is an example set

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include all codes defined in http://snomed.info/sct
    • -
    +

    This value set defines its own terms in the system http://www.hl7.org/fhir/contractactionreason

    + + + + + + + + + + + +
    + Code + + Definition +
    reason-1 + + +
    reason-2 + + +
    - - + + - + - - - - - - - - + + + + + + + + + + - - - - - + + + + + + + + + + + + +
    @@ -91592,8 +100104,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -91631,22 +100143,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -91663,13 +100177,64 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    ReportingPriority

    +

    HL7 V3: ActPriority* HL7 V3: ActPriority (2.16.840.1.113883.5.7) code system values, and CKS ECIDS.

    +

    + Copyright Statement: IHC +

    +

    This value set includes codes defined in other code systems, using the following rules:

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -91689,17 +100254,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -91722,8 +100289,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -91782,22 +100349,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -91831,8 +100400,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -91928,17 +100497,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -92011,8 +100582,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -92028,17 +100599,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -92050,13 +100623,295 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 + + + + + + + + + + +
    +

    This value set contains 3 concepts

    +

    HSPC Verification

    +

    Verification Method Value Set

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in http://cimi.org/vs/patient/verification + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      1Background Check +
      2Family Member +
      3CIMI placeholder +
      +
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    TBD
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set contains 8 concepts

    +

    Observation Value Absent Reason

    +

    This value set defines the set of code for identifying the reason why the expected result in Observation.value[x] is missing.

    +

    This value set defines its own terms in the system http://hl7.org/fhir/data-absent-reason

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Code + + Display + + Definition +
    unknown + + UnknownThe value is not known
    asked + + AskedThe source human does not know the value
    temp + + TempThere is reason to expect (from the workflow) that the value may become known
    notasked + + NotaskedThe workflow didn't lead to this value being known
    masked + + MaskedThe information is not available due to security, privacy or related reasons
    unsupported + + UnsupportedThe source system wasn't capable of supporting this element
    astext + + + The content of the data is represented in the resource narrative
    error + + ErrorSome system or workflow process error means that the information is not available
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -92076,17 +100931,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -92110,8 +100967,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -92125,20 +100982,22 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - + - - - - + + + + + + @@ -92155,8 +101014,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -92197,17 +101056,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -92231,15 +101092,171 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + +
    -

    This value set does not contain a fixed number of concepts

    +

    This value set contains 9 concepts

    +

    Importance

    +

    Importance Value Set for Patient

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in http://cimi.org/vs/patient/importance + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      19266Board Member +
      19268Financial Donor +
      19274Foreign Dignitary +
      19270Government Dignitary +
      19269Physician Family Member +
      19271Staff Family Member +
      19272Staff Member +
      19267Staff Physician +
      19273Very Important Person +
      +
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set contains 7 concepts

    ProvenanceParticipantType

    The type of a provenance participant. Use either a defined FHIR resource type, or, if the reference is not to a resource, one of the defined codes, or some other code if none of the defined codes are appropriate

    This value set defines its own terms in the system http://hl7.org/fhir/provenance-participant-type

    @@ -92262,7 +101279,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 practitioner - The participant is a practitioner + The participant is a practitioner, a person (provider) who is directly or indirectly involved in the provisioning of healthcare. organization @@ -92274,50 +101291,54 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 software - The participant is a software application + The participant is a software application including services, algorithms, etc. - record - + patient + - The participant is a logical record. The record itself participated in the activity + The participant is the patient, a person or animal receiving care or other health-related services. - document - + device + - The participant is a document + The participant is a device, an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. + + + relatedPerson + + + The participant is a related person, a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. -

    In addition, this value set includes codes defined in other code systems, using the following rules:

    -
    - + - + - - - - - - - - + + + + + + + + + + + + - + @@ -92328,7 +101349,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - + @@ -92336,22 +101357,21 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + + - - + + + + + + - - - - - @@ -92360,42 +101380,49 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + +

    This value set does not contain a fixed number of concepts

    -

    DietCode

    -

    DietCode : all SNOMED CT codes for now. This is a placeholder until code set defined

    +

    Diet Codes

    +

    DietCode : Codes that can be used to indicate the type of food being ordered for a patient. This value set includes all children of SNOMED CT Concepts (US Extension and Core) from SCTID 182922004 Dietary regime (Therapeutic or Preventive Procedure) and is provided as a suggestive example

    Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement

    This value set includes codes defined in other code systems, using the following rules:

      -
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include codes from http://snomed.info/sct where concept is-a 182922004
    - + - + - + - - - - - + + + + + + + + + + + +
    @@ -92406,8 +101433,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -92459,22 +101486,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -92506,350 +101535,21 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + +
    -

    This value set contains 48 concepts

    -

    XDS Connect-a-thon practiceSettingCodes

    -

    Example Connectathon Codes from http://ihexds.nist.gov:12080/xdsref/codes/codes.xml

    +

    This value set contains 1 concepts

    +

    Texture Modified Food Type Codes

    +

    TextureModifiedFoodType: Codes for types of foods that are texture modified. This value set is composed SNOMED CT Concepts from SCTID 255620007 Foods (substance) and is provided as a suggestive example

    Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement

    -

    This value set defines its own terms in the system urn:uuid:cccf5598-8b07-4b77-a05e-ae952c785ead

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display - - Definition -
    Anesthesia - - Anesthesia -
    Cardiology - - Cardiology -
    Case Manager - - Case Manager -
    Chaplain - - Chaplain -
    Chemotherapy - - Chemotherapy -
    Chiropractic - - Chiropractic -
    Critical Care - - Critical Care -
    Dentistry - - Dentistry -
    Diabetology - - Diabetology -
    Dialysis - - Dialysis -
    Emergency - - Emergency -
    Endocrinology - - Endocrinology -
    Gastroenterology - - Gastroenterology -
    General Medicine - - General Medicine -
    General Surgery - - General Surgery -
    Gynecology - - Gynecology -
    Labor and Delivery - - Labor and Delivery -
    Laboratory - - Laboratory -
    Multidisciplinary - - Multidisciplinary -
    Neonatal Intensive Care - - Neonatal Intensive Care -
    Neurosurgery - - Neurosurgery -
    Nursery - - Nursery -
    Nursing - - Nursing -
    Obstetrics - - Obstetrics -
    Occupational Therapy - - Occupational Therapy -
    Ophthalmology - - Ophthalmology -
    Optometry - - Optometry -
    Orthopedics - - Orthopedics -
    Otorhinolaryngology - - Otorhinolaryngology -
    Pathology - - Pathology -
    Perioperative - - Perioperative -
    Pharmacacy - - Pharmacacy -
    Physical Medicine - - Physical Medicine -
    Plastic Surgery - - Plastic Surgery -
    Podiatry - - Podiatry -
    Psychiatry - - Psychiatry -
    Pulmonary - - Pulmonary -
    Radiology - - Radiology -
    Social Services - - Social Services -
    Speech Therapy - - Speech Therapy -
    Thyroidology - - Thyroidology -
    Tumor Board - - Tumor Board -
    Urology - - Urology -
    Home - - Home -
    Veterinary Medicine - - Veterinary Medicine -
    -

    In addition, this value set includes codes defined in other code systems, using the following rules:

    +

    This value set includes codes defined in other code systems, using the following rules:

    • Include these codes as defined in http://snomed.info/sct @@ -92862,18 +101562,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - + +
      394802001General Medicine -
      408478003Critical Care Medicine -
      410001006Military Medicine28647000Meat
      @@ -92881,235 +101571,120 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - + + - + - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    Ordinal Assessment or Interpretation

    +

    HL7 V3:ObservationInterpretation OID: 2.16.840.1.113883.5.83 + SNOMED CT SNOMED CT concepts from the Degree findings (qualifier value)272520006, Presence findings (qualifier value)260411009, Absence findings (qualifier value)272519000

    +

    + Copyright Statement: IHC +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include all codes defined in + http://hl7.org/fhir/v3/ObservationInterpretation +
    • +
    • Include codes from http://snomed.info/sct where concept is-a 272520006
    • +
    • Include codes from http://snomed.info/sct where concept is-a 260411009
    • +
    • Include codes from http://snomed.info/sct where concept is-a 272519000
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    - - + + @@ -93196,22 +101771,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -93261,8 +101838,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -93325,24 +101902,26 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -93374,8 +101953,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -93392,17 +101971,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -93420,88 +102001,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    -

    This value set contains 1 concepts

    -

    Questionnaire Question Text Type

    -

    Codes that define types of additional text that may be associated with a Questionnaire group or question.

    -

    This value set defines its own terms in the system http://hl7.org/fhir/questionnaire-question-text-type

    - - - - - - - - - - - -
    - Code - - Display - - Definition -
    units - - unitsIdentifies the units in which the question's answer should be captured
    -

    In addition, this value set includes codes defined in other code systems, using the following rules:

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -93540,23 +102046,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -93576,8 +102084,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -93609,17 +102117,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -93637,145 +102147,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - - - - - - - - - -
    - -

    This value set excludes cancelled status code

    - -

    NutritionOrderStatus

    - -

    TODO

    - -

    This value set constrains the terms in the system http://hl7.org/fhir/nutrition-order-status - excluding the cancelled code.

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Code - - - - Display - - - - Definition - -
    requested - - - - RequestedTODO.
    active - - - - ActiveTODO.
    inactive - - - - InactiveTODO.
    held - - - - HeldTODO.
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -93797,17 +102175,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -93830,8 +102210,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -93870,23 +102250,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -93906,8 +102288,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -93924,17 +102306,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -93950,1862 +102334,10 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - - - - -
    - -

    The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains method of administration concepts.

    - -

    Possible sources include:

    - -
      - -
    • SNOMED CT - Children of SCTID: 107733003 "introduction (procedure)" (note: not all concepts in this subset may be suitable)
    • - -
    • ISO 11239 - Administration methods
    • - -
    - -

    SNOMED CT is being used here as the example terminology.

    - -

    Note: to avoid confusion with other attributes in this resource concepts that are pre-coordinated with site and/or route - of administration (e.g. "intravenous infusion" where "intravenous" is the route or "rub into left hand" where "left hand" - is the site) should not be used in this value set -

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    TBD
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    FHIR Document Codes

    -

    FHIR Document Codes - all LOINC codes where scale_type = 'DOC'

    -

    - Copyright Statement: This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include codes from http://loinc.org where SCALE_TYP = DOC
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - This value set includes all LOINC codes in the "Clinical" or "Lab" class types (TODO: narrow this further - diagnostic codes, panels only) - -
    -

    This value set does not contain a fixed number of concepts

    -

    LOINC Diagnostic Order Codes

    -

    This value set includes all the LOINC Order codes

    -

    - Copyright Statement: This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include codes from http://loinc.org where ORDER_OBS = Order
    • -
    • Include codes from http://loinc.org where ORDER_OBS = Both
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - This value set includes sample ActIncidentCode codes. - -
    -

    This value set contains 3 concepts

    -

    ActIncidentCode Codes

    -

    This value set includes sample ActIncidentCode codes.

    -

    - Copyright Statement: This is an example set -

    -

    This value set defines its own terms in the system http://hl7.org/fhir/actincidentcode

    - - - - - - - - - - - - - - -
    - Code - - Definition -
    code1 - - -
    code2 - - -
    code3 - - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    TBD
    -
    - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    AllergyIntoleranceStatus

    -

    Assertion about certainty associated with a propensity, or potential risk, of a reaction to the identified Substance

    -

    This value set defines its own terms in the system http://hl7.org/fhir/allergy-intolerance-status

    - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display - - Definition -
    unconfirmed - - UnconfirmedA low level of certainty about the propensity for a reaction to the identified Substance.
    confirmed - - ConfirmedA high level of certainty about the propensity for a reaction to the identified Substance, which may include clinical evidence by testing or rechallenge.
    resolved - - ResolvedA reaction to the identified Substance has been clinically reassessed by testing or rechallenge and considered to be resolved.
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    USLabSpecimenType

    -

    USLab Specimen Collection Source Site: all SNOMED CT descendents of Specimen Heirarchy (123038009)

    -

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include codes from http://snomed.info/sct where concept is-a 123038009
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    PatientRelationshipType

    -

    A set of codes that can be used to indicate the relationship between a Patient and a RelatedPerson.

    -

    This value set includes codes defined in other code systems, using the following rules:

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - -

    The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains route of administration concepts.

    - -

    Possible sources include:

    - -
      - -
    • SNOMED CT - Children of SCTID: 284009009 "route of administration value"
    • - -
    • ISO 11239 - Routes of administration
    • - -
    • NCIt - Children of NCIt concept C66729 "route of administration" (note: this covers SDTM and FDA route of administration concepts)
    • - -
    • EDQM - Route of administration
    • - -
    - -

    SNOMED CT is being used here as the example terminology.

    - -

    Note: to avoid confusion with other attributes in this resource concepts that are pre-coordinated with method and/or site of administration - (e.g. "intravenous infusion" where "infusion" is the method or "IV into left subclavian vein" where "left subclavian vein" is the site) - should not be used in this value set. -

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    EnteralFormulaAdditiveType

    -

    EnteralFormulaAdditiveType : all SNOMED CT codes for now. This is a placeholder until code set defined

    -

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include all codes defined in http://snomed.info/sct
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    Media Collection View/Projection

    -

    Codes defined in SNOMED CT that can be used to record Media Recording views

    -

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include codes from http://snomed.info/sct where concept is-a 260419006
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - This value set includes sample Financial Contract Term SubType codes. - -
    -

    This value set contains 3 concepts

    -

    Contract Term Type Codes

    -

    This value set includes sample Contract Term SubType codes.

    -

    - Copyright Statement: This is an example set -

    -

    This value set defines its own terms in the system http://hl7.org/fhir/contracttermsubtypecodes

    - - - - - - - - - - - - - - -
    - Code - - Definition -
    OralHealth-Basic - - -
    OralHealth-Major - - -
    OralHealth-Orthodontic - - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    Media SubType

    -

    Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it

    -

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set defines its own terms in the system http://hl7.org/fhir/media-subtype

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display - - Definition -
    diagram - - DiagramA diagram. Often used in diagnostic reports
    fax - - FaxA digital record of a fax document
    scan - - Scanned DocumentA digital scan of a document. This is reserved for when there is not enough metadata to create a document reference
    retina - - Retina scanA retinal image used for identification purposes
    fingerprint - - fingerprintA finger print scan used for identification purposes
    iris - - irisAn iris scan used for identification purposes
    palm - - palmA palm scan used for identification purposes
    face - - faceA face scan used for identification purposes
    -

    In addition, this value set includes codes defined in other code systems, using the following rules:

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - This value set includes sample ruleset codes. - -
    -

    This value set contains 6 concepts

    -

    Ruleset Codes

    -

    This value set includes sample ruleset codes.

    -

    - Copyright Statement: This is an example set -

    -

    This value set defines its own terms in the system http://hl7.org/fhir/ruleset

    - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Definition -
    x12-4010 - - -
    x12-5010 - - -
    x12-7010 - - -
    cdanet-v2 - - -
    cdanet-v4 - - -
    cpha-3 - - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    US Laboratory Observation Profile Interpretation Codes

    -

    This value set defines the set of Codes identifying interpretations of observations

    -

    This value set includes codes defined in other code systems, using the following rules:

    - -
    -
    - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - -

    This value set contains 2 concepts

    - -

    CQFMedicationAdministrationStatus

    - -

    A set of codes indicating the current status of a CQF MedicationAdministration

    - -

    This value set defines its own terms in the system http://hl7.org/fhir/medication-admin-status

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Code - - - - Definition - - - - - - v3 Map (ctStatus) - - - -
    in-progress - - - - The administration has started but has not yet completed. - - - - active - -
    completed - - - - All actions that are implied by the administration have occurred. - - - - completed - -
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - -

    The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains medictation concepts.

    - -

    Possible sources include:

    - -
      - -
    • SNOMED CT - Children of SCTID: xxxxxxxx "xxxxxxxxxxxxxx"
    • - -
    • ISO 11615 - Identification of Medicinal Products
    • - -
    - -

    SNOMED CT is being used here as the example terminology.

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    Encounter Reason Codes

    -

    This examples value set defines the set of codes that can be used to indicate reasons for an encounter

    -

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include codes from http://snomed.info/sct where concept is-a 404684003
    • -
    • Include codes from http://snomed.info/sct where concept is-a 71388002
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set contains 9 concepts

    -

    enteral-route

    -

    The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains concepts to support administration of formula feeding via oral or enteral feeding tubes. This value set is provided as a suggestive example

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include these codes as defined in - http://hl7.org/fhir/v3/RouteOfAdministration - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      - Code - - Display -
      POSwallow, oralSwallow, oral
      EFTInstillation, enteral feeding tubeInstillation, enteral feeding tube
      ENTINSTLInstillation, enteralInstillation, enteral
      GTInstillation, gastrostomy tubeInstillation, gastrostomy tube
      NGTInstillation, nasogastric tubeInstillation, nasogastric tube
      OGTInstillation, orogastric tubeInstillation, orogastric tube
      GJTInstillation, gastro-jejunostomy tubeInstillation, gastro-jejunostomy tube
      JJTINSTLInstillation, jejunostomy tubeInstillation, jejunostomy tube
      OJJInstillation, orojejunum tubeInstillation, orojejunum tube
      -
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - This value set includes sample Process Outcome codes. - -
    -

    This value set contains 3 concepts

    -

    Process Outcome Codes

    -

    This value set includes sample Process Outcome codes.

    -

    - Copyright Statement: This is an example set -

    -

    This value set defines its own terms in the system http://hl7.org/fhir/processoutcomecodes

    - - - - - - - - - - - - - - -
    - Code - - Definition -
    complete - - -
    pended - - -
    error - - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    -

    This value set does not contain a fixed number of concepts

    -

    EnteralFormulaType

    -

    EnteralFormulaType : all SNOMED CT codes for now. This is a placeholder until code set defined

    -

    - Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement -

    -

    This value set includes codes defined in other code systems, using the following rules:

    -
      -
    • Include all codes defined in http://snomed.info/sct
    • -
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - -

    This value set includes all SNOMED CT codes relating to the qualifier "Known" (concepts with an is-a relationship with 36692007)

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - - -
    -

    This value set contains 9 concepts

    -

    Security Event Source Type

    -

    The type of process where the security event originated from

    -

    This value set defines its own terms in the system http://hl7.org/fhir/security-source-type

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display - - Definition -
    1 - - User DeviceEnd-user display device, diagnostic device
    2 - - Data InterfaceData acquisition device or instrument
    3 - - Web ServerWeb Server process or thread
    4 - - Application ServerApplication Server process or thread
    5 - - Database ServerDatabase Server process or thread
    6 - - Security ServerSecurity server, e.g., a domain controller
    7 - - Network DeviceISO level 1-3 network component
    8 - - Network RouterISO level 4-6 operating software
    9 - - Otherother kind of device (defined by DICOM, but some other code/system can be used)
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    SNOMED CT code system values descending from the following:'body position finding' 9851009
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - - - - - - + + @@ -95814,8 +102346,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883

    This value set contains 35 concepts

    -

    Security Event Sub-Type

    -

    More detailed code concerning the type of the security event - defined by DICOM with some FHIR specific additions

    +

    Audit Event Sub-Type

    +

    More detailed code concerning the type of the audit event - defined by DICOM with some FHIR specific additions

    Copyright Statement: These codes are excerpted from Digital Imaging and Communications in Medicine (DICOM) Standard, Part 16: Content Mapping Resource, Copyright 2011 by the National Electrical Manufacturers Association

    @@ -96023,14 +102555,14 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - + + - + - + - + @@ -96154,21 +102686,566 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + +
    -

    This value set contains 2 concepts

    -

    Ethnicity group

    -

    Whether the patient is hispanic or not

    + +

    The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains method of administration concepts.

    + +

    Possible sources include:

    + +
      + +
    • SNOMED CT - Children of SCTID: 107733003 "introduction (procedure)" (note: not all concepts in this subset may be suitable)
    • + +
    • ISO 11239 - Administration methods
    • + +
    + +

    SNOMED CT is being used here as the example terminology.

    + +

    Note: to avoid confusion with other attributes in this resource concepts that are pre-coordinated with site and/or route + of administration (e.g. "intravenous infusion" where "intravenous" is the route or "rub into left hand" where "left hand" + is the site) should not be used in this value set +

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    FHIR Document Type Codes

    +

    FHIR Document Codes - all LOINC codes where scale_type = 'DOC'

    +

    + Copyright Statement: This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use +

    This value set includes codes defined in other code systems, using the following rules:

    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    USLab Specimen Body Site

    +

    USLab Specimen Body Site: Codes to describe the specimen collection body site. This value set includes all SNOMED CT concepts that are descendents of Anatomical Structure (91723000)

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://snomed.info/sct where concept is-a 91723000
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + This value set includes all LOINC codes in the "Clinical" or "Lab" class types (TODO: narrow this further - diagnostic codes, panels only) + +
    +

    This value set does not contain a fixed number of concepts

    +

    LOINC Diagnostic Order Codes

    +

    This value set includes all the LOINC Order codes

    +

    + Copyright Statement: This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://loinc.org where ORDER_OBS = Order
    • +
    • Include codes from http://loinc.org where ORDER_OBS = Both
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + This value set includes sample ActIncidentCode codes. + +
    +

    This value set contains 3 concepts

    +

    ActIncidentCode Codes

    +

    This value set includes sample ActIncidentCode codes.

    +

    + Copyright Statement: This is an example set +

    +

    This value set defines its own terms in the system http://hl7.org/fhir/actincidentcode

    + + + + + + + + + + + + + + +
    + Code + + Definition +
    code1 + + +
    code2 + + +
    code3 + + +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    USLab Specimen Type

    +

    USLab Specimen Type: Codes to describe the Specimen. This value set includes all SNOMED CT concepts that are descendents of the Specimen Heirarchy (123038009)

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://snomed.info/sct where concept is-a 123038009
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    PatientRelationshipType

    +

    A set of codes that can be used to indicate the relationship between a Patient and a RelatedPerson.

    +

    This value set includes codes defined in other code systems, using the following rules:

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    Audit Event Object Sensitivity

    +

    The sensitivity of an object in a secuity event resource. May also encompass confidentiality and rudimentary access control

    +

    This value set includes codes defined in other code systems, using the following rules:

    + +
    +
    + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + +

    The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains route of administration concepts.

    + +

    Possible sources include:

    + +
      + +
    • SNOMED CT - Children of SCTID: 284009009 "route of administration value"
    • + +
    • ISO 11239 - Routes of administration
    • + +
    • NCIt - Children of NCIt concept C66729 "route of administration" (note: this covers SDTM and FDA route of administration concepts)
    • + +
    • EDQM - Route of administration
    • + +
    + +

    SNOMED CT is being used here as the example terminology.

    + +

    Note: to avoid confusion with other attributes in this resource concepts that are pre-coordinated with method and/or site of administration + (e.g. "intravenous infusion" where "infusion" is the method or "IV into left subclavian vein" where "left subclavian vein" is the site) + should not be used in this value set. +

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set contains 5 concepts

    +

    Enteral Formula Additive Type Code

    +

    EnteralFormulaAdditiveType : Codes for the type of modular component such as protein, carbohydrate or fiber to be provided in addition to or mixed with the base formula. This value set is provided as a suggestive example

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in http://hl7.org/fhir/vs/entformula-additive - - + + - - - + + + + + + + + + + + + + + +
      @@ -96179,51 +103256,1706 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
      2135-2Hispanic or LatinolipidModular lipid enteral formula componen
      2186-5Not Hispanic or LatinoNote that this term remains in the table for completeness, even though within HL7, the notion of "not otherwise coded" term is deprecated.proteinModular protein enteral formula component +
      carbohydrateModular carbohydrate enteral formula component +
      fiberModular fiber enteral formula component +
      waterAdded water
    - - + + - - - - + - - - - - - - - - - - - + + + + + + + + + + - + - - + + - - + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + + +
    +

    This value set contains 9 concepts

    +

    Audit Event Source Type

    +

    The type of process where the audit event originated from

    +

    This value set defines its own terms in the system http://hl7.org/fhir/security-source-type

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Code + + Display + + Definition +
    1 + + User DeviceEnd-user display device, diagnostic device
    2 + + Data InterfaceData acquisition device or instrument
    3 + + Web ServerWeb Server process or thread
    4 + + Application ServerApplication Server process or thread
    5 + + Database ServerDatabase Server process or thread
    6 + + Security ServerSecurity server, e.g., a domain controller
    7 + + Network DeviceISO level 1-3 network component
    8 + + Network RouterISO level 4-6 operating software
    9 + + Otherother kind of device (defined by DICOM, but some other code/system can be used)
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    Media SubType

    +

    Detailed information about the type of the image - its kind, purpose, or the kind of equipment used to generate it

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set defines its own terms in the system http://hl7.org/fhir/media-subtype

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Code + + Display + + Definition +
    diagram + + DiagramA diagram. Often used in diagnostic reports
    fax + + FaxA digital record of a fax document
    scan + + Scanned DocumentA digital scan of a document. This is reserved for when there is not enough metadata to create a document reference
    retina + + Retina scanA retinal image used for identification purposes
    fingerprint + + fingerprintA finger print scan used for identification purposes
    iris + + irisAn iris scan used for identification purposes
    palm + + palmA palm scan used for identification purposes
    face + + faceA face scan used for identification purposes
    +

    In addition, this value set includes codes defined in other code systems, using the following rules:

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    Media Collection View/Projection

    +

    Codes defined in SNOMED CT that can be used to record Media Recording views

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://snomed.info/sct where concept is-a 260419006
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + This value set includes sample Financial Contract Term SubType codes. + +
    +

    This value set contains 3 concepts

    +

    Contract Term Type Codes

    +

    This value set includes sample Contract Term SubType codes.

    +

    + Copyright Statement: This is an example set +

    +

    This value set defines its own terms in the system http://hl7.org/fhir/contracttermsubtypecodes

    + + + + + + + + + + + + + + +
    + Code + + Definition +
    OralHealth-Basic + + +
    OralHealth-Major + + +
    OralHealth-Orthodontic + + +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + This value set includes sample ruleset codes. + +
    +

    This value set contains 6 concepts

    +

    Ruleset Codes

    +

    This value set includes sample ruleset codes.

    +

    + Copyright Statement: This is an example set +

    +

    This value set defines its own terms in the system http://hl7.org/fhir/ruleset

    + + + + + + + + + + + + + + + + + + + + + + + +
    + Code + + Definition +
    x12-4010 + + +
    x12-5010 + + +
    x12-7010 + + +
    cdanet-v2 + + +
    cdanet-v4 + + +
    cpha-3 + + +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    Context of Use ValueSet

    +

    This value set defines a base set of codes that can be used to indicate that the content in a resource was developed with a focus and intent of supporting use within particular contexts

    +

    This value set includes codes defined in other code systems, using the following rules:

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    US Laboratory Observation Profile Interpretation Codes

    +

    This value set defines the set of Codes identifying interpretations of observations

    +

    This value set includes codes defined in other code systems, using the following rules:

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + +

    The value set to instantiate this attribute should be drawn from a terminologically robust code system that consists of or contains medictation concepts.

    + +

    Possible sources include:

    + +
      + +
    • SNOMED CT - Children of SCTID: xxxxxxxx "xxxxxxxxxxxxxx"
    • + +
    • ISO 11615 - Identification of Medicinal Products
    • + +
    + +

    SNOMED CT is being used here as the example terminology.

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set does not contain a fixed number of concepts

    +

    Encounter Reason Codes

    +

    This examples value set defines the set of codes that can be used to indicate reasons for an encounter

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include codes from http://snomed.info/sct where concept is-a 404684003
    • +
    • Include codes from http://snomed.info/sct where concept is-a 71388002
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set contains 9 concepts

    +

    Enteral Route Codes

    +

    EnteralRouteOfAdministration: Codes specifying the route of administration of enteral formula. This value set is composed of HL7 V3 codes and is provided as a suggestive example

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in + http://hl7.org/fhir/v3/RouteOfAdministration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      POSwallow, oralSwallow, oral
      EFTInstillation, enteral feeding tubeInstillation, enteral feeding tube
      ENTINSTLInstillation, enteralInstillation, enteral
      GTInstillation, gastrostomy tubeInstillation, gastrostomy tube
      NGTInstillation, nasogastric tubeInstillation, nasogastric tube
      OGTInstillation, orogastric tubeInstillation, orogastric tube
      GJTInstillation, gastro-jejunostomy tubeInstillation, gastro-jejunostomy tube
      JJTINSTLInstillation, jejunostomy tubeInstillation, jejunostomy tube
      OJJInstillation, orojejunum tubeInstillation, orojejunum tube
      +
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + This value set includes sample Process Outcome codes. + +
    +

    This value set contains 3 concepts

    +

    Process Outcome Codes

    +

    This value set includes sample Process Outcome codes.

    +

    + Copyright Statement: This is an example set +

    +

    This value set defines its own terms in the system http://hl7.org/fhir/processoutcomecodes

    + + + + + + + + + + + + + + +
    + Code + + Definition +
    complete + + +
    pended + + +
    error + + +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    +

    This value set contains 36 concepts

    +

    Enteral Formula Type Codes

    +

    EnteralFormulaType : Codes for type of enteral formula to be administered to patient. This value set is is composed of SNOMED CT (US Extension) Concepts from SCTID 470581016 Enteral+supplement feeds heirarchy and is provided as a suggestive example

    +

    + Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement +

    +

    This value set includes codes defined in other code systems, using the following rules:

    +
      +
    • Include these codes as defined in http://snomed.info/sct + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      4430310000124106Adult critical care formula +
      443051000124104Adult diabetes specialty formula +
      442911000124109Adult elemental formula +
      443021000124108Adult hepatic specialty formula +
      442971000124100Adult high energy formula +
      442981000124102Adult hydrolyzed protein formula +
      442991000124104Adult high protein formula +
      443011000124100Adult high protein high fiber formula +
      442961000124107Adult low carbohydrate formula +
      442951000124105Adult pulmonary specialty formula +
      442941000124108Adult renal specialty formula +
      442921000124101Adult standard formula +
      442931000124103Adult soy protein isolate formula +
      443361000124100Pediatric Formula +
      443401000124105Pediatric elemental formula +
      443491000124103Pediatric high energy formula +
      443501000124106Pediatric high energy formula with increased fiber +
      443421000124100Pediatric hydrolyzed protein formula +
      443471000124104Pediatric increased fiber formula +
      444431000124104Pediatric reduced energy formula +
      443451000124109Pediatric standard formula +
      441561000124106 Standard enteral formula with fiber +
      443461000124106Standard Formula +
      441531000124102Standard Enteral Formula +
      443561000124107Soy based formula +
      443481000124101Renal Formula +
      441571000124104High energy enteral formula with fiber +
      441591000124103Diabetic enteral formula with fiber +
      441601000124106Diabetic high calorie high protein enteral formula with fiber +
      443351000124102Increased fiber formula +
      443771000124106Hydrolyzed protein formula +
      441671000124100Hydrolyzed peptide-based high protein enteral formula +
      443111000124101High protein formula +
      443431000124102High Energy Formula +
      443411000124108Elemental Formula +
      442651000124102Adult formula +
      +
    • +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + +

    + This value set includes all terms in + SNOMED CT, IDC-10-AM, and CPT-4. + +

    + +

    + + Open Issue: Due to CPT license conditions, the correct use of CPT-4 in FHIR cannot be described. + +

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + +

    This value set includes all SNOMED CT codes relating to the qualifier "Known" (concepts with an is-a relationship with 36692007)

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    + This value set includes sample Contract Action codes. + +
    +

    This value set contains 2 concepts

    +

    Contract Action Codes

    +

    This value set includes sample Contract Action codes.

    +

    + Copyright Statement: This is an example set +

    +

    This value set defines its own terms in the system http://www.hl7.org/fhir/contractaction

    + + + + + + + + + + + +
    + Code + + Definition +
    action-a + + +
    action-b + + +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + + + + + + + + + + +
    TBD
    +
    + + + + + + + + + + + + + + + + + + + + @@ -96235,8 +104967,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -96293,23 +105025,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -96333,127 +105067,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - -
    -

    This value set contains 5 concepts

    -

    Questionnaire Text Type

    -

    Codes that define types of additional text that may be associated with a Questionnaire group or question.

    -

    This value set defines its own terms in the system http://hl7.org/fhir/questionnaire-text-type

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - Code - - Display - - Definition -
    instruction - - instructionThe text provides instructions intended to be rendered with the element explaining how the content of the element is to be completed. This should be rendered in-line before the question or group.
    security - - security and privacy textThe text describes specific security and/or privacy considerations associated with the element. E.g. retention rules, data access control expectations, etc.
    help - - help textThe content is intended for display if a user selects an icon or performs some other action seeking help about the element
    tooltip - - tool tipThe content is intended for use in a fly-over or similar display mechanism - primarily intended for online form entry
    trailing - - trailing textThe text should be displayed after all of the other the content of the group or question
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -96461,6 +105081,9 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883

    This value set contains 60 concepts

    USPS Two Letter Alphabetic Codes

    This value set defines two letter USPS alphabetic codes.

    +

    + Copyright Statement: On July 1, 1963, the Post Office Department implemented the five-digit ZIP Code, which was placed after the state name in the last line of an address. To provide room for the ZIP Code, the Department issued two-letter abbreviations for all states and territories. Publication 59, Abbreviations for Use with ZIP Code, issued by the Department in October 1963. Currently there is no copyright restrictions on this value set +

    This value set includes codes defined in other code systems, using the following rules:

    • Include these codes as defined in https://www.usps.com/ @@ -96778,18 +105401,21 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - + - + - - - - + + + + + + + @@ -97040,52 +105666,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - -
    SELECT SNOMED CT code system values descending from 'change values' (288533004).
    -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -97101,17 +105688,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -97128,8 +105717,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -97167,17 +105756,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -97201,8 +105792,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -97261,22 +105852,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -97308,8 +105901,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -97327,17 +105920,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -97368,8 +105963,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -97408,23 +106003,25 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -97442,172 +106039,78 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - - + +
    - -

    This value set contains 4 concepts

    - -

    MedicationPrescriptionStatus

    - -

    A code specifying the state of the prescribing event. Describes the lifecycle of the prescription.

    - -

    This value set defines its own terms in the system http://hl7.org/fhir/medication-prescription-status - and omits the "entered-in-error" and "superceded" codes.

    - + This value set includes sample Contract Actor role codes. + +
    +

    This value set contains 2 concepts

    +

    Contract Actor Role Codes

    +

    This value set includes sample Contract Actor Role codes.

    +

    + Copyright Statement: This is an example set +

    +

    This value set defines its own terms in the system http://www.hl7.org/fhir/contractactorrole

    - - - - - - - - - - - - - - + - - - - - - - - + - - - - - - - - - - - - - - - - - - - - -
    - Code - - Definition - - - - - v3 Map (ctStatus) - - - -
    active - - - + practitioner + The prescription is 'actionable', but not all actions that are implied by it have occurred yet. - - - - active - -
    on-hold - - - + patient + Actions implied by the prescription have been temporarily halted, but are expected to continue later. May also be called "suspended". - - - - suspended - -
    completed - - - - All actions that are implied by the prescription have occurred (this will rarely be made explicit). - - - - completed - -
    stopped - - - - Actions implied by the prescription have been permanently halted, before all of them occurred. - - - - aborted - -
    -
    - - + + - + - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + +
    @@ -97616,8 +106119,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -97670,17 +106173,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -97718,8 +106223,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -97736,10 +106241,10 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + @@ -97760,139 +106265,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883
    - - - - - - - - - - -
    - -

    This value set contains 3 concepts

    - -

    CQF EncounterState

    - -

    Current state of the CQF encounter

    - -

    This value set defines its own terms in the system http://hl7.org/fhir/encounter-state

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - Code - - - - Display - - - - Definition - -
    in-progress - - - - in-progressThe Encounter has begun and the patient is present / the practitioner and the patient are meeting.
    onleave - - - - On LeaveThe Encounter has begun, but the patient is temporarily on leave.
    finished - - - - FinishedThe Encounter has ended.
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -
    - - + + @@ -114392,17 +122771,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -127599,8 +135980,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -127620,17 +136001,19 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + @@ -127653,8 +136036,8 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + + @@ -127717,22 +136100,24 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - + - + - - - - + + + + + + - + @@ -127774,42 +136159,182 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + +
    -

    This value set does not contain a fixed number of concepts

    -

    TextureModifier

    -

    TextureModifier : all SNOMED CT codes for now. This is a placeholder until code set defined

    +

    This value set contains 14 concepts

    +

    Texture Modifier Codes

    +

    TextureModifier: Codes for food consistency types or texture modifications to apply to foods. This value set is composed of SNOMED CT (US Extension and Core) Concepts from SCTID 229961002 Food consistency types (substance) heirarchy and is provided as a suggestive example

    Copyright Statement: This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement

    This value set includes codes defined in other code systems, using the following rules:

      -
    • Include all codes defined in http://snomed.info/sct
    • +
    • Include these codes as defined in http://snomed.info/sct + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      228053002Cut-up food +
      439091000124107Easy to chew food +
      228049004Chopped food +
      441881000124103Ground food +
      441761000124103Minced food +
      441751000124100Mashed food +
      228059003Soft food +
      441791000124106Strained food +
      228055009Liquidized food +
      228056005Lumpy food +
      441771000124105Moist food +
      228057001Semi-solid food +
      228058006Single texture food +
      228060008Solid food +
      +
    - + - + - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    @@ -127820,13 +136345,13 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 - - + +
    -

    This value set contains 6 concepts

    +

    This value set contains 8 concepts

    Smoking Status

    This value set indicates the current smoking status of a patient. The vocabulary selected for this value set is the best approximation of the statuses in Meaningful Use (MU) Stage 1. The smoking status value set includes a special code to communicate if the smoking status is unknown

    @@ -127851,7 +136376,7 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 428041000124106 - + Occasional tobacco smoker (finding) @@ -127874,22 +136399,34 @@ i. Such that observation/code SHALL be from LOINC (CodeSystem: 2.16.840.1.113883 Tobacco smoking consumption unknown (finding) + + 428071000124103 + Heavy tobacco smoker (finding) + + + + 428061000124105 + Light tobacco smoker (finding) + +

    - + - + - - - - @@ -127917,6 +136454,12 @@ Code System(s) SNOMED CT 2.16.840.1.113883.6.96 Note the base resource does no + + + + + +
    @@ -127925,10 +136468,10 @@ Code System(s) SNOMED CT 2.16.840.1.113883.6.96 Note the base resource does no - + - - + + @@ -127988,7 +136531,7 @@ Code System(s) SNOMED CT 2.16.840.1.113883.6.96 Note the base resource does no L Legally Separated - + Legally Separated M @@ -128046,22 +136589,24 @@ Code System(s) SNOMED CT 2.16.840.1.113883.6.96 Note the base resource does no - + - + - - - - + + + + + + - + @@ -128116,112 +136661,123 @@ Code System(s) SNOMED CT 2.16.840.1.113883.6.96 Note the base resource does no - + - - + +
    -

    This value set does not contain a fixed number of concepts

    -

    DataElement SDC Object Class

    -

    The allowed codes for identifying the ISO 11179 ObjectClass for a particular data element if intended for registration/use within the U.S. Structured Data Capture (SDC) project.

    +

    This value set contains 7 concepts

    +

    SpecimenCollectionPriority

    +

    This example value set defines a set of codes that can be used to indicate the priority of collection of a specimen.

    - Copyright Statement: This value set includes content from LOINC®, which is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use. This value set includes content from SNOMED CT, which is copyright © 2002+ International Health Terminology Standards Development Organisation (IHTSDO), and distributed by agreement between IHTSDO and HL7. Implementer use of SNOMED CT is not covered by this agreement + Copyright Statement: TBD

    This value set includes codes defined in other code systems, using the following rules:

      -
    • Include all codes defined in http://snomed.info/sct
    • -
    • Include all codes defined in http://loinc.org
    • -
    • Include all codes defined in http://www.nlm.nih.gov/research/umls/rxnorm
    • +
    • Include these codes as defined in http://www.example.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + Code + + Display +
      1STAT +
      2ASAP +
      3ASAP-ED +
      4AM +
      5ROUTINE +
      6NURSE COLLECT +
      7CALL OR FAX +
      +
    - - + + - + - - - - - - - - + + + + + + + + + + - - - - - - - - - -
    -
    -
    - - - - - - - - - - -
    - -

    This value set includes all SNOMED CT codes relating to the qualifier "Known" (concepts with an is-a relationship with 36692007) - for absent or "not present" codes. -

    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - + - - + + +
    - - + + +
    - - + + +
    - + + + + + + + + + + + + + + - + \ No newline at end of file diff --git a/restful-server-example/.settings/org.eclipse.wst.common.component b/restful-server-example/.settings/org.eclipse.wst.common.component index 6bf05115533..94b3ab5842a 100644 --- a/restful-server-example/.settings/org.eclipse.wst.common.component +++ b/restful-server-example/.settings/org.eclipse.wst.common.component @@ -3,10 +3,10 @@ - + uses - + uses diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 976bbf58632..4c7a0f9c309 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -6,7 +6,13 @@ HAPI FHIR Changelog - + + + Add support for "profile" and "tag" elements in the resource Meta block + when parsing DSTU2 structures. + + + Support for DSTU2 features introduced: New resource definitions, Bundle resource, encoding changes (ID in resource bodt, meta tag)